Application Development 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: 

bdc , creating line items

Former Member
0 Kudos

hello

i was trying to create line items thru bdc recording and then calling call transaction ( ME21) to upload the data ...but the prob is i only able to upload single item ....

3574.........100-400 1000 500 3000 (line items)

3574.........100-450 5000 600 3000 (line items)

this is my rough flat file ,,,

can u help me out how to upload the line item.

i took a counter variable and incrementing it ,,,concatenating fieldname to variable ....but somehow thigns are not working out for me

1 REPLY 1

Former Member
0 Kudos

HI Shahid,

You need to handle Table Control in BDC

Refer the link:

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

The concept is easy: it has to indicate the index of the table control in the field name, so if you have to populate the first record of table control:

BDC-FIELDNAME = <FIELDNAME>(01).

If you fill the second row:

BDC-FIELDNAME = <FIELDNAME>(02).

and so....

Now the problem is usually on how many records you have to load, because u can fill only the rows of table control available in the screen, If you have more records than it can be displayed yuo have to simulate the command to go next page.

The number of recod can be displayed can depend on pc resolution and many program haven't command to go to next page (in this case it could be impossible create a BDC program9.

A way to create a bdc program resolution indipendent is to work on the first and second row.

- Place the first hit in the first row of bdc;

- Place the second insert in the second row of bdc;

- Place the last hit to the top of table control;

- Place the next hit in the second row;

- Place the last hit to the top of table control;

- Place the next hit in the second row;

- .... and so

For more info: Search in SDN with TABLE CONTROL IN BDC.

Will get a lot of related links.

Reward points if this Helps.

Manish