How to handle table control in BDC?

Answer Posted / narasimha reddy

Bdc Approach is Screen and function code interface.
When enter the screen we required enter multiple Data
same screen.
example va01. at enter qty and material fields. if system allowed only Limited entries. after press enter system allocated some entries. finally save button.
This logic recorded in SHDB Transaction.
loop at it_vbap into wa_vbap.
concatenate 'VBAP-AMTNR(' V1 ')' Into field.
perform sub_fld v1 wa_vbap-matnr.
" we assum system allowed 5 entries after enter data again 5 fields allowed.
v1 = v1 + 1.
if v1 = 6.
v1 = 1.
perform sub USING 'BDC_OKCODE. '00/'.
PERFORM SUB1 USING 'SAPMV45A' '4100' 'X'.
perform sub USING 'BDC_OKCODE. '00/'.
endloop.

ABOVE CODE FOR SAMPLE .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a link between modified form and modified print program?

669


What are the events used in abap in the order of execution?

650


How is conversion of data types done between abap/4 & external level?

652


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

1695


What is the transaction code to display the payroll results ? : abap hr

650






What is the use of dequeue function module? : sap abap data dictionary

719


What do you understand by work area and internal tables in abap? Why do we use it?

714


Name a few data dictionary objects? : abap data dictionary

789


What is sap locking?

688


How do I find the output type of a table or a program?

685


How do you Export a session ?

1533


what precautions or prerequisites do you follow to update a record into database table and how

5414


Explain what are standard layouts sets in the sap script?

1026


What are the different attributes that can be assigned to a variant?

684


Explain the Inportance of pa40? : abap hr

651