‎2007 May 31 11:44 AM
I have an XML file from XI
I have created a BAPI with the structure same as the XML file
Now, the XML file may have 1000 records
I want this BAPI to process the records one by one
How can a record of the XML file correspond to a structure of the BAPI
Can this be done in a loop
Any example would be good
Thanks
‎2007 May 31 11:48 AM
You could create an ABAP proxy, then use the CALL TRANSFORMATION statement to convert the XML to an internal table.
‎2007 May 31 11:51 AM
How to create ABAP proxy
Can all the records in the file be converted as a bulk into an internal table
‎2007 May 31 11:52 AM
Hi,
no need to send each record individually from XI to bapi.
send the whole file to a function module as a table. In this function module you proces each record individually.
Regards,
Sooness
‎2007 May 31 12:35 PM
How to send the whole file as a FM and process it, any examples please
‎2007 May 31 12:52 PM
Hi,
tell your XI-team to transform the data and pass it over to SAP(your function module) via RFC port. Thus , you will have just to code for the function module
(remote enabled) which will take as input a table containing the xml file contents.