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: 

Logic to get which all fields are INITIAL from a group of fields fetched

Former Member
0 Kudos

Hi All,

I am stuck in one scenario. Through a web page I am updating some fields in a Z table.

Now there are some particular fields ( 20 in number) on channge of any of which i have to trigger an event.

One way is to fetch all of them into work areas and check whether they are initial or not.But that's very

crude way of doing it.I will want to know whether there is any other way of doing it.

I just have to know whether any of them is 'NOT INITIAL'.

Thanks in advance,

saket.

2 REPLIES 2

Former Member
0 Kudos

HI,

1. If you are looping through the internal table then you can use the at new event.

Loop at ITAB.

" At New will be triggered if any change in the field1 ..field10 values of the internal table

At new <field10>.

ENDAT.

ENDLOOP.

2. If above is not the case then you have no other chance ..need to check each field.

Former Member
0 Kudos

Not needed now.

Thanks for reply anyways.