05-24-2007 2:28 PM
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
05-25-2007 9:52 AM
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