‎2008 Mar 30 11:10 AM
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.
‎2008 Mar 30 11:48 AM
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...
‎2008 Mar 30 11:54 AM
‎2008 Mar 30 12:03 PM
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
‎2008 Mar 30 11:53 AM
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
‎2008 Mar 30 11:59 AM
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.
‎2008 Mar 30 12:13 PM
To avoid this type of table control errors in BDC's,SAP had suggested to use BAPI.Try to use BAPI.