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
What are the buffering options in abap?
How to read files and process BDC's automatically ?
what is a text table ?
how do you call third selection screen ?
What is the purpose of sum statement?
What are th control break events in abap?
What is append structure?
What is repository info. Systems?
Can you create a table with fields not referring to data elements? : abap data dictionary
Explain the session method? : abap bdc
Can we write the code both call transaction and session method in single program?
how to modify the standard method as per your requirement
Select up to 1 row and select single difference ?
How to debug rfc function module?
Can we make use of flow logic control key words in abap/4 and vice-versa?