2008 Jul 04 8:20 AM
hello sdn friends,
i am uploading the data from flat file containing VENDOR MASTER DATA ( XK01) .in fllat file for one vendor having five different accounts . using XK01 transaction i am updating to database .
my struggle begins here.
i have to load through table control in screen 130.
i got the code by searching the sdn community.please dont post same code.please explain the code .
advance thanks
hello sdn friends,
i am uploading the data from flat file containing VENDOR MASTER DATA ( XK01) .in fllat file for one vendor having five different accounts . using XK01 transaction i am updating to database .
my struggle begins here.
i have to load through table control in screen 130.
i got the code by searching the sdn community.please dont post same code.please explain the code .
advance thanks
2008 Jul 04 8:38 AM
Hi sreenu,
Table control is used to enter multiple line items in BDC.
In the loop statement for BDC_INSERT we have to go for one
more loop with in this loop. An make sure is there any ADD
button is there for the table control. And write statements
accordingly.
We can handle table control using line index ,
Line index indicates which line of Table control is to be use for BDC transaction,
Ex -
perform bdc_field using 'RC29K-AUSKZ(01)'
indicates 1st line of table control is going to be used for transaction which is Line index of Table Control
visit this link to know more about " how to deal with table control in BDC " and exmaples of table control in BDC.
http://arthur_ong.tripod.com/xab023.htm
http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Regards
Anup.
2008 Jul 04 8:45 AM
Hi Friend,
Please do not use BDC of XK01, it is not recommended by SAP. Because during veersion upgrade screen sequence or screen element can change.
Use BAPI: BAPI_VENDOR_CREATE
Regards
Krishnendu