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

Where the payroll results are stored

1804


What are differences between at selection-screen and at selection-screen output?

762


What is an abap/4 query? : abap hr

591


What are internal tables? How to use a specific number occurs statement?

556


What is the use of message command in a report? What are the different message types?

540






What are the various types of selection screen event?

560


How to create any functions? How to go about it?

575


Why do we use types statement in abap programming?

659


​​Can multiple abap systems connect to abap database?

597


What is the significance of hide?

569


Explain Singleton class

827


Is logo in script 1st stored as tiff format before uploading or in jpeg format?and where is that stored after uploading?

1581


How do you write manual bdc session method? : abap bdc

587


Workbench request are client dependent or client independent

548


Name a few data dictionary objects? : abap data dictionary

672