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 happens if only one of the commands set screen and leave screen is used without using the other?
Difference between .Include and .append?
Give few names of pooled tables in sap ?
Explain how data is stored in cluster table?
Difference between sy-tabix and sy-index?
What is human resource information systems (chris)? : sap abap hr
1. If I send 5 entries of table from one system to another system, if the only 4 entries there in the target system what I have to do? 2. If I send the customer master IDOC from one SAP system to another system, if one field is missing in target table what is the steps? 3. If I want to access the 4th row 3rd column in the hashed table how to do it? 4. Whether there is any other statement than MODIFY statement to modify the content of internal table?
What is an abap instance?
After running a BDC program in background, next day morning when you see the results, few records are not updated(error records). What will you do then ?
What is the difference between field-group header and other field groups?
To find the date difference & excude saturday & sunday in between them
What are the data types of internal tables?
What are the two ways for restricting the value range for a domain ?
What is difference between dialog program and a report?
What is the sap abap?