05-10-2006 8:24 AM
hello,
i have created a table maint. dialog. Under 'enviroment->modification->events' you can create form-routines for your own coding.
I have the maint.event '01 - Before saving the data in the database'. Here i do some checks if entered values in some fields are okay or not etc.....
When the users enters 'wrong' data i do a "message e000 with 'text' " So i got a error-message and the user is not able to save the data before changing it.
BUT: i get the right error-message in the status-line, but i got an EMPTY screen, all the fields disapear. I have to go back with enter or the red cancel button. But then i 'fall back' to the selection screen of the maint. view. Thats not very user-friendly.
Any ideas ?
05-10-2006 8:38 AM
05-10-2006 8:41 AM
hi max,
i ALSO use event 05. but event 05 is for creating a NEW entry in the database !! i make my checks there, and there it works right.
but i can't use the event 05 for changing data, right ? so i have to use the event 01.
regards, martin
05-10-2006 8:52 AM
Hi martin,
1. use different message types.
2. form mysave.
break-point.
if ZAM_TBL01-MATNR is initial.
message 'error ' type 'E'.
else.
message 'OK' type 'S'.
endif.
endform.
regards,
amit m.
05-10-2006 9:03 AM
Amit,
i can see no difference between my error-handling and yours ?? I don't understand your posting
what do you mean by 'use different message types' ? i only can use 'E', as i DONT'T want the data to be saved !
Also you use type 'E'in your mysave-coding. So what do you want to explain to me ?
reg, martin
05-10-2006 9:18 AM
Hi Martin
You can try to use the event 21 to fill the hide fields, infact I saw the SM30 triggers that event although it doesn't use hide fields.
Max
05-10-2006 9:40 AM
hi,
think you have place your module not correct:
try that: (without event)
PROCESS AFTER INPUT.
...
LOOP AT EXTRACT.
...
FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
CHAIN.
FIELD Y789.
FIELD Y012.
...
MODULE LISTE_UPDATE_LISTE.
ENDCHAIN.
*begin of insertation
CHAIN.
FIELD Y123.
FIELD Y456.
module check_field ON CHAIN-input.
ENDCHAIN.
*end of insertation
ENDLOOP.
...
Andreas