I am trying a scenario where a flat file, in which each line represents a purchase order, is sent to XI through File Adapter, and then XI creates one RFC for each line to call a purchase order creation BAPI in a SAP system. This BAPI only has a structure as input parameter.
The line structure can be easily mapped to the BAPI input structure using XI provided mapping tool.
My question is: how can I loop through all the lines in the file to generate multiple RFC calls within XI? Is there an easy way to make this happen?
One workaround solution might be: create a BAPI wrapper in the target system so that it can accept an input table (a row corresponding to a line in the file) and then loop through the table to call the PO Creation BAPI for each row. However, this needs a little bit of coding.
Any comment / help is appreciated!