---
article_id: KB0401540
article_type: FAQ
component_ids:
  - BNS-ARI-CI-PRT-MAP
component_descriptions:
  - SAP Integration Suite, managed gateway > Managed Gateway - Portal > Managed Gateway - Buy Side Mapping tool
products:
  - SAP Integration Suite, managed gateway for spend management and SAP Business Network
personas:
  - Buyer
language: en
created: 2026-05-07
updated: 2026-05-07
source: Knowledge Base
url: https://support.ariba.com/item/view/KB0401540
connect_url: https://support.ariba.com/item/view/KB0401540?min=1
sap_for_me_url: https://me.sap.com/notes/KB0401540
---

# How to use the Target Position Variable functionality in Managed Gateway for Spend&Network?

## Symptom

How to use the Target Position Variable functionality in Managed Gateway for Spend&Network?

## Resolution

You can follow the steps below to add a **Target Position Variable Looping**:

1. Right-click on the mapping line.
2. Click **Target Variable** > **Add Position Variable**.
3. Click the parent field of the target field.
4. Repeat step 1 and click **Add Source Condition**.
5. Place the condition on the respective parent field on the source structure.
6. Click **Position Variable** > **OK**.

## See Also

For more information about this functionality, refer to the guide SAP Help Portal > SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network > SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network Configuration Guide > Managing Custom Mappings > Editing Custom Mappings > *[Adding Target Position Variable | SAP Help Portal](https://help.sap.com/docs/sisgw/sap-ariba-cloud-integration-gateway-configuration-guide/how-to-add-target-position-variable).*

Also, to have more details with screenshots, refer to [Target Field concatenating instead of creating multiple lines in Managed Gateway for Spend&Network Mapping Tool - SAP Integration Suite, managed gateway for spend management and SAP Business Network](https://launchpad.support.sap.com/#/notes/2835485).

We have also delivered a webcast on this topic. You can find the recording in the SAP Article [How to access CIG Mapping Tool webcast recording](https://support.ariba.com/Item/view/190904%29).

There is another way to perform the loop in Managed Gateway for Spend&Network Mapping Tool using the **Target** **Value Variable.** You can find the steps to perform this in the KBA [How to use the Target Value Variable functionality in Managed Gateway for Spend&Network?](https://me.sap.com/notes/0003189941)

When using the loop functionality in Managed Gateway for Spend&Network Mapping Tool, it is a good practice to always set it after all source and target conditions. It is more certain to work if this is followed, since the Managed Gateway for the Spend&Network Mapping Tool performs the mappings in the order they are maintained. So if the loop has a condition that must be met, it won't run if that condition is set after it.

## Keywords

Multiple line items, concatenated fields, cig loop function, cloud integration gateway, cig, mapping tool, ismg, repeat
