Application Development 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: 

processing BAPI multiple times

Former Member
0 Kudos

Experts

Looking for an easy solution to this -

I have abap code that calls a bapi and loads data from an excel spreadsheet with a header and line data. Currentlty the BAPI only processes one record. What is the easiest way of either getting the abap code to run calling multiple data files or to get the abap code to pick mutliple header and line records in the same file.

thanks

1 REPLY 1

Former Member
0 Kudos

hi Andrew ,

maintain only one file , maintain one flad that s H/L for each and every row in that file.

based on there values u have to get header and iitem data.

like

loop at i_upload.

if flag = 'H'.

header table with one more unique key to identify items for this header

else.

flag = L.

item table.

endloop.

Regards

Peram