01-16-2009 3:51 PM
Hi All,
I have a maintenance view on a table that should validate some fields during user input.
I am using event 05 'Creating a new entry' to validate fields when user creates new entry in the table. That works fine.
I would like to have the same validations happening when the user changes fields of records already existing in the database. I tried to use event 01 'Before saving the data in the database' but the problem with this is that user can change many fields of many records before clicking 'Save'. I would like to have the error raised for incorrect entry already after the change.
So far I could not find an event to do this but only by changing the code itself. The problem with that is whenever the code is regenerated the custom part is lost.
Is there an event I can use that would help me achieve this?
Thanks in advance.
01-18-2009 5:34 AM
did u try events 07 - 08.
check these events .
see this sap help
http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
кu03B1ятu03B9к
01-19-2009 10:28 AM
Hi Kartik,
I tried those events 07 and 08 as well, they are not triggered when I change a field and hit enter. I`m not sure what they are used for...
01-19-2009 10:44 AM
01-19-2009 11:36 AM
Hi Abhishek,
I tried event 21, I`m playing around with that since that`s the only one triggered when I press Enter.
The problem with this is that
- the check runs when you press enter, so you can still change many fields of many records (one step maintenance) before the validation runs
- you can`t raise an error message, because only the key fields will be input ready, the non-key fields will be readonly
The way I currently handle is I undo the changes in 21 (get previous field values from TOTAL) and raise an information message i/o an error informing user to check the entry.
What I`m looking for is an event that will raise a message and set focus on the incorrect field (if there`s one such).
02-11-2009 11:26 AM
Hi Christine,
Are you able to find the solution for your problem of raising error message in event 01 , as i am also facing the same .
Thanks & Regards,
Deepti
02-11-2009 1:20 PM
Hi Deepti,
For me event 01 is too late for validations. If user manipulates several records, I don`t want to wait until he/she saves the changes, see my concerns in the trail.
Regards,
Krisz