2007 Aug 02 2:10 PM
Can v use at new statement with 2 fields
for example : at new iblnr gjahr.
endat.
Please reply me
\urgent
2007 Aug 02 2:13 PM
No,
You need to use like that
loop at itab.
at new iblnr
move 'Y' to v_flg
endat.
at new gjahr.
move 'Y' to v_flg.
endat.
if v_flg eq 'Y'.
<<<< do your coding
clear v_flg.
endif,
endloop.
aRs
Points are always welcome
Message was edited by:
a®
2007 Aug 02 2:12 PM
<b>only 1 should be used in a single statement!</b> you can use looping for more fields.
regards,
srinivas
<b>*reward for useful answers*</b>
Message was edited by:
XI_Novice
2007 Aug 02 2:13 PM
Hi ram,
You mean to say with two feild ..
neone of them changes it shud trigger.
then do like this.
sort itab by fld1 fld2.
at new fld2.
endat.
it will work for both the fields.
reward if helpful.
Regards
Azad.
2007 Aug 02 2:13 PM
No,
You need to use like that
loop at itab.
at new iblnr
move 'Y' to v_flg
endat.
at new gjahr.
move 'Y' to v_flg.
endat.
if v_flg eq 'Y'.
<<<< do your coding
clear v_flg.
endif,
endloop.
aRs
Points are always welcome
Message was edited by:
a®
2007 Aug 02 2:15 PM
u can use only one fields with AT NEW statement.
loop at itab.
at new itab-field1.
endat.
endloop.
if u want to do for 2 fields u can do this way...
loop at itab.
at new itab-field1.
endat.
at new itab-field2.
endat.
endloop.
Reward Points..
2007 Aug 02 2:16 PM
Hi Ramesh,
We cannot Use At New statement for multiple fields in a single command.
2007 Aug 02 2:18 PM
HI,
We can not sue the 2 fields with a Single AT NEW Statment,
But we can use 2 AT NEW statments with in a LOOP
Regards
Sudheer