12-13-2006 5:48 PM
can anybody tell me l y SAP makes all other fields on right
of a field used in AT NEW are made to *****?
12-13-2006 5:54 PM
Hi nsk,
There are 2 options .
1. use this code
<b>on change of it_head_item-ebeln</b>. insted of AT NEW.
your code
<b>endon</b>
2. read the same table what you are looping.
<b> LOOP AT it_EKKO.
AT NEW ebeln.
READ TABLE IT_EKKO WITH KEY ebeln = IT_EKKO-ebeln.</b>
this will help you but try out the second option because on change is out dated
Thanks
Vikranth Khimavath
Message was edited by:
Khimavath Vikranth
12-13-2006 6:00 PM
12-13-2006 6:06 PM
12-13-2006 5:55 PM
This is due do internal handling during the AT NEW statement, for me it is still a mystery why this happens and why it hasn't been fixed. To get around it is quite easy. Just use a work area.
data: itab type table of ttab with header line.
data: xtab type ttab.
Loop at itab.
xtab = itab.
at new fld1.
write:/ xtab-fld1, xtab-fld2, xtab-fld3, xtab-fld4.
endat.
endloop.
Regards,
Rich Heilman