Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Y Alphanumeric Fields on right of a field are * when 'AT NEW 'is used.

Former Member
0 Kudos

can anybody tell me l y SAP makes all other fields on right

of a field used in AT NEW are made to *****?

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

thank u .. i will check that thing

0 Kudos

Maybe you could award points for helpful answers. Also, mark the answer that solved your problem as "solved".

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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