Logic for using table controls in BDC?

Answer Posted / vandan

data : count type i value 1.
data : var type i value 1.
types : begin of header ,
firstfield(1),
flg(2),
.........
.........
end.
types : begin of item ,
firstfield(1),
flg(2),
.........
.........
end.
Loop at header table.
loop at item table.
if header-firstfield = 'H'.
Pass coun to header-flg.
count = count +1.
else.
pass count to item-flg.
endloop.
endloop.

loop at header data .
header BDC recording.
loop at item data where item-flg = header-flg.
item BDC recording.
var = var + 1.
if var > 3.
put click recording.
var= 1.
endif.
put save recording.
endloop.
endloop.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain lsmw?

651


what are the two methods of modifying sap standard tables ?

560


What are client dependent objects in abap/sap?

614


Explain how data is stored in cluster table?

666


How do you find the information on the current screen?

601






What is the difference between the exits created in M.M and S&D?

1615


What are the different types of parameters? : abap modularization

614


How do you find if a logical database exists for your program requrements?

605


How to read files and process BDC's automatically ?

1633


What is logical database? : abap hr

613


What is a collect statement?

577


What are the contents in technical specifications?

606


What is the difference of update types in call transaction method ? : abap bdc

635


How can we set the tablespaces and extent sizes ?

567


in bdc session method. if u run the record in fore ground manually i have a 7 records but at the time of record processing first record produces the error how can u process records manually in fore ground please tell me any one knows?

1745