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: 

capture change of 2 fields

Former Member
0 Kudos

hi,

I would like to capture the change of 2 fields in my intenal table and for every change need to add the corresponding currency fields. The collect statemet is failing as there are other fields(eg: currency key line item) which are chaging. I used on chage of by giving those fields and the values are not being populated properly and moved to at end of and the same story continues.

please guide to capture change of 2 fields in a n internal table and adding curreny fields on chage of atleast one field of the 2 and ignoring the rest of the fields.

1 REPLY 1

shafiq_rehman3
Active Contributor
0 Kudos

You can try AT NEW inside the loop on that internal table, provided that these two fields are first two fields of the internal table. If they are not, you can create a new internal table with same fields and just make these two fields as first two fields and move corresponsing to this new table

In Loop before AT NEW Second_Field, you can put your logic to sum the field and after AT NEW you can initialize the counter or whatever your requirement is.

I hope this will work for you.