‎2006 Nov 22 2:23 PM
hi experts,
i have one doubt on bdc's. if we want to transfer item data and header data ato a table .how can we transfer.can we use any special type of programming ? explaine details.
thanks in advance.
‎2006 Nov 22 2:26 PM
no need...loop at table...
at new <key field>
populate header fields.
endat.
populate item details.
endloop.
So, for every new header, it fills only header data & then fills all the itm data & so..on
before that sort the internal table.
‎2006 Nov 22 2:26 PM
no need...loop at table...
at new <key field>
populate header fields.
endat.
populate item details.
endloop.
So, for every new header, it fills only header data & then fills all the itm data & so..on
before that sort the internal table.
‎2006 Nov 22 2:29 PM
hi,
handling of header and item data in bdc is a common requirement
if we have a 2 different flat files one for header and one for item
there should be a common field in both the files on order to match the records
for eg in header file the record of 100 is single record ,but in item file it may contain several item records of 100 records.
while programing in loop we have to see that for each header record we have to loop for items belonging to same header record.
regards
srinivas
‎2006 Nov 22 3:05 PM
Hi,
loop at header.
populate BDC header data
loop at item where matnr = header-item.
populate BDC item data
endloop.
endloop.
REgards
amole