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 Multiple line data

Former Member
0 Likes
1,118

Hi,

I have created a bdc for table controll to enter multiple lines.

In table controll screen visible line is only 20 and it accept only 20 lines. How can I enter more than 20 lines.

Any help will be appreciable.

With points.

Regards

Rajiv singh.

6 REPLIES 6
Read only

Former Member
0 Likes
774

Hi,

i will give example for MM02

GO TO EDIT->POSITION CURSOR

THEN CLICK DETAILS FROM ITEM BUTTON ......

IT PICKS THE LINE ITEM TO THE FIRST TAB.....

Regards,

V.Balaji

Reward if Usefull...

Read only

0 Likes
774

Thnaks,

Can you explain the same please.

Read only

0 Likes
774

Hi,

in the first pass of the loop you would get:

FNAM = LFBK-BANKS(' 01 ')

perform bdc_field using FNAM

IT_BANK-BANKS.

in the second pass:

FNAM = LFBK-BANKS(' 02 ')

perform bdc_field using FNAM

IT_BANK-BANKS.

in this way you´d be filling all the lines of the table control.

The best thing is to debugg the problem in order to understand what´s going on.

Another option is to make sure the line you´re dealing with is always the first one.

Usually there´s an option via menu that that allows to "go to line X".

You can record that and include it in your recording so that you´ll always be sure that

you´re dealing always with the first line.

Best regards

Edited by: pablo casamayor on Mar 30, 2008 1:04 PM

Read only

former_member182371
Active Contributor
0 Likes
774

Hi,

have a look at the following link:

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

Note that the key here is:


MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
  CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
  perform bdc_field       using FNAM
                                IT_BANK-BANKS.
..........
IDX = IDX + 1.
ENDLOOP.

Best regards.

Edited by: pablo casamayor on Mar 30, 2008 12:56 PM

Read only

0 Likes
774

Using your code can be enter only no. of data depend on visible lines in table controll. but I want to enter more than one screen at a time.

Please consider.

Read only

Former Member
0 Likes
774

To avoid this type of table control errors in BDC's,SAP had suggested to use BAPI.Try to use BAPI.