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 is pass by value and what is pass by reference? Which is better?
What has to be done to the packed fields before submitting to a BDC session.
Explain the types of bdc's?
Define subtype ? : abap hr
In delivery processing which step comes first picking, packing, posting goods issue ?
If I want to execute a program only in background not in foreground is there any option for this? : abap bdc
What is repository info. Systems?
What kind of BDC programs are written ?
What are the advantages of logical databases?
In select-options, how to get the default values as current month first date and last date by default?
How do you use tab sets in layout sets?
How can we access the correction and transport system?
What are the different methods of passing data? : abap modularization
If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?
how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran