Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI / XML

Former Member
0 Likes
1,055

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

5 REPLIES 5
Read only

Former Member
0 Likes
709

You could create an ABAP proxy, then use the CALL TRANSFORMATION statement to convert the XML to an internal table.

Read only

0 Likes
709

How to create ABAP proxy

Can all the records in the file be converted as a bulk into an internal table

Read only

dev_parbutteea
Active Contributor
0 Likes
709

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

Read only

0 Likes
709

How to send the whole file as a FM and process it, any examples please

Read only

0 Likes
709

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.