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 function modules used in a sap script driver program?
How do you document abap/4 programs? Do you use program documentation menu option?
WHY CLUSTER TABLE CALLED AS CLUSTER TABLE.
What are different data types in abap/4?
What is the syntax of packed number?
what is call back in alv?
What are the merits of its?-
What is the difference between retroactive accounting period, earliest retroactive accounting period? : sap abap hr
2)In production what is the user exit?
What is direct input method ?
hi,how to diable the popup window which is displayed afetr executing the SAP script program?
What is the step-by-step process to create a table in data dictionary? : abap data dictionary
how do you transport lsmw data from one system to another?
Do you know any other patterns if yes.. explain
Differentiate screen painter from menu painter.