Application Development and Automation 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: 
Read only

BDC Data Transfer

Former Member
0 Likes
636

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 . . .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
603

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

4 REPLIES 4
Read only

Former Member
0 Likes
603

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.

Read only

Former Member
0 Likes
603

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.

Read only

Former Member
0 Likes
604

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

Read only

0 Likes
603

Hi Murugesh,

Thanks for the reply. I try this out and get back to u.