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

Problem with Table Control

ameesa_sameen
Explorer
0 Likes
320

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.

1 REPLY 1
Read only

nishantbansal91
Active Contributor
0 Likes
298

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