2008 Jan 17 9:25 PM
Hello All:
I have couple of fields on selections screen that I need to validate at least one of them is populated. Making them mandatory is not an option for them but I have some code below, I have put in Start-of-selection event:
IF p_full EQ 'X'.
IF S_PERNR-LOW IS INITIAL
AND S_KOSTL-LOW IS INITIAL.
v_error = 'X'.
MESSAGE E002(sy) WITH 'Pernr or costctr must be entered to run full file'.
STOP.
ENDIF.
ENDIF.
It works fine with displaying error message on the bottom but it takes me to the blank screen instead of staying on the selection screen. I already tried "at selection screen output event" but doesn't work for me! If anyone has any suggestions, please let me know.
Thanks.
--Mithun
2008 Jan 17 9:34 PM
Put your validation in 'at selection-screen' Then error messg is displayed at the bottom and you will be in selection screen.
2008 Jan 17 9:34 PM
Put your validation in 'at selection-screen' Then error messg is displayed at the bottom and you will be in selection screen.
2008 Jan 17 9:40 PM
Thanks Janardhan. That did it and rewarded full points.
Mithun