‎2005 Jan 16 2:50 PM
Dear Friends,
I need your help in this regard.
How to handle Table Control, while uploading records from the legacy system through the Tranaction code - ME21.
I got a list of items (materials) for the same Purchase Order, I need to upload this record into the SAP system under a single Purchase Order Number with the same Vendor.
Pls, help me in this regard . . .
‎2005 Jan 17 12:46 PM
Hello,
As suggested by other friends usage of BAPI is preferred.
But still if you want to use a BDC there are couple of points to be noted:
1. Enter the first line item material in always second line of the table control. then choose menu option edit--> enter lines options to enter second line items. Now the table scrolls by one row and sets the cursor to the senond line of the table control.
2. Set CTU_PARAMS-DEFSIZE = 'X'.
I hope this helps you.
Regards, Murugesh AS
‎2005 Jan 16 7:33 PM
If you are determined to use BDC, then use transaction SHDB to record a BDC session. Fill in some entries in the table control as you record and you will see how table control entries are referenced.
A BAPI might be a better choice. I could look for it but I bet some other SDNer's know the name.
‎2005 Jan 17 12:18 PM
Hi Dear Dinesh Kumar,
If your purpose is to create/change
purchase order and its multiple items,
you can also use BAPI
BAPI_PO_CREATE1
BAPI_PO_CHANGE
In this bapi, few tables have to be passed.
before passing we have to fill this tables
with the required details of the purchase order.
I have recently joined this sdn.
If you find this useful, pls give points.
Thanks & Regards,
Amit Mittal.
‎2005 Jan 17 12:46 PM
Hello,
As suggested by other friends usage of BAPI is preferred.
But still if you want to use a BDC there are couple of points to be noted:
1. Enter the first line item material in always second line of the table control. then choose menu option edit--> enter lines options to enter second line items. Now the table scrolls by one row and sets the cursor to the senond line of the table control.
2. Set CTU_PARAMS-DEFSIZE = 'X'.
I hope this helps you.
Regards, Murugesh AS
‎2005 Jan 17 1:52 PM
Hi Murugesh,
Thanks for the reply. I try this out and get back to u.