2013 Oct 03 2:30 PM
Hi Experts,
I have a requirement, where I used Control break statement and I am using the At New---Endat statement.
As this statement will invoke when a perticular value of table field will change.
But I have a table and the table has the following fields like below.
field1 field2 field3
5 5 5
5 6 5
5 5 5
When I used At New statement for the first row, it ll not invoke and also for 2nd row first column it will not invoke but when it goes for 2nd row 2nd column what will happen and again for all.
Please explain ??
Regards,
Ajit
2013 Oct 04 8:38 AM
Please search scn before posting..Similar cases have been answered many times..
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm
2013 Oct 04 8:46 AM
Hi Ajit ,
Loop at <your table name>
AT NEW <field name>
write : 'field is changed' .
ENDAT.
ENDLOOP.
Now in your example
if the Field name is Field 1 . Nothing is printed as there is no change of field.
NOTE : at new -- endat will work only for the first field of the internal table if the field name is mentioned. if no field name is mentiond it will consider the whole workarea as the field .