hey guys,
I have seen a look at below link for BDC at table control.
but could not understand where the table control portion is used here..
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Actually i want to write bdc program to insert 5 rows in screen..where as i have to scroll my screen to enter 2more rows..how to use BDC in this case.
ambichan
Hi Ambi,
Loop at the table where u have all the line items u want to enter and then use a variable say field to hold the fieldname and the no. like in the bdc recording if u see.
PERFORM bdc_field USING 'SMEINH-UMREN'(01) it_success3-umren.
Here u can add the count as many times the loop executes for each line item.
CONCATENATE 'SMEINH-UMREN' '(' count ')' INTO field.
PERFORM bdc_field USING field
it_success3-umren.
Regards,
Vinotha
HI
DATA : IDX TYPE N
THIS IS HOW I DID BDC FOR TRANSACTION 'FB60' FOR A TABSTOP IN THE SCREEN
LOOP AT ITAB
if idx > 4.
idx = 4.
endif.
CONCATENATE 'ACGL_ITEM-HKONT(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_DATA1-HKONT.
IDX = IDX + 1.
ENDLOOP
Add a comment