Application Development and Automation 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: 
Read only

issue on control break statement.

Former Member
0 Likes
370

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

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
339

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 .