Hi Experts,
I am trying to validate field entries in table maintenance generator. The table has 5 fields out of which 2 are key fields.
I have written my code in Events - 01, 05 and 21 but none of them are able to enable non-key fields after error message is displayed.
The two fields are from and to date. I am comparing them and if From Date is greater than To Date, I want to display an error message and enable those two date fields for correct input.
I have tried displaying the message directly as type Error(E) and also as type S DISPLAY LIKE E. However, none of these are enabling the non key fields. The key fields get enabled when I use type E but am not able to change that entry.
I want to achieve this using events and not write my code in PAI as regeneration fo table maintenance would cause an issue later.
Thanks
Kush Kashyap