| |||||||||
How to use the For-Each function on the Managed Gateway for Spend&Network Mapping Tool?
The For-Each function works as a loop in the mapping. Follow the steps below to perform the mapping:
It is also possible to perform an Inner Loop on the For-Each by adding a Target Position Variable into it. For this, please follow the steps below:
A source condition can also be set to trigger the For-Each. For this, please follow the steps below:
Please note that the For-Each function's purpose is to create new repeatable structures, and not to update the existing values of a looped structure. This means that the For-Each will be recommended only for non-standardly repeated segments (e.g., PO_EXTENSIONIN/item for PurchaseOrderExportRequest). If the structure needed is already repeated by the standard mapping (e.g., PO_ITEMS/item for PurchaseOrderExportRequest), then the Position/Variable loop should be used instead.
For more information about how to perform the Target Variables loop, please refer to the following resources:
3180750 - How to use the position looping functionality in SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network Mapping Tool?
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 Variables | SAP Help Portal
SAP Integration Suite Managed Gateway > Managed Gateway Foundation & Tools > Managed Gateway for Managed Gateway Portal