‎2015 Sep 30 11:41 AM
I have created a Z table for assets (asset , sub asset , period are primary keys ) and there are validations on each field( non primary). I have written the logic of these validations in the screen.
The requirement is when the user is trying to change a field say cost type in an existing record , it should check for the other records with the same asset (Primary key) and if the cost type maintained is different then throw an inconsistency error.
For this in the PAI I have written an on change of asset and I populate the run time values in a work area . During Save I check if they are the same as this work area else give an error message.
Now the problem is , module pool validates data that is only being displayed in the screen. So if I click on position , the record is displayed first on the screen. and if I change its value then no error is given since it does not validate with the pervious records maintained in the screen.
Can someone help me resolve this issue please.
‎2015 Sep 30 11:54 AM
Hi Ami,
In the workarea you will get the modified value. I have done this thing long back.
For this first you have to modify the internal table with the new records.
Thanks
Nishant