how to handle multiple line items in bdc??

Answer Posted / balamurugan

LOOP AT IT_ITEM INTO WA_ITEM WHERE VBELN = WA_HEADER-VBELN.
INDX = INDX + 1.

CONCATENATE 'WA_SO2-MATNR('INDX')' INTO V_MATNR.
perform bdc_field using V_MATNR WA_ITEM-MATNR.
CONCATENATE 'WA_SO2-MENGE('INDX')' INTO V_MENGE.
perform bdc_field using V_MENGE WA_ITEM-MENGE.
perform bdc_field using BDC_OKCODE '/00'.
ENDLOOP.

We can upload multiple line items Using table control.The
above code explain the same.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the events we use in dialog programming and explain them?

529


Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?

1672


Explain what are the events in screen programming?

576


visibility section for class level and attributes level

817


Can a domain, assigned to a data element be changed? : abap data dictionary

552






How to load data from ms excel sheet to sap by using bdc method ? : abap bdc

730


Explain the table, which contain the details of all the name of the programs and forms?

526


What is table buffer?

585


Why do we use Abstract classes give an example from your project?

889


What is the use of lock objects?

575


Why do we use FOR ALL ENTRIES and what is the pre-requisite

924


The commands through which an abap/4 module can “branch to “ or “call” the next screen are?

636


what is defference between repository and non repository Object?

6700


What is the abap program name to process the batch input session automatically? : abap bdc

652


Which type of tables used this buffer?

603