‎2010 Dec 04 7:19 AM
i want to do required field validation for select-options:s_slmtnr for mara-matnr.
that is whether user has entered the high and low value.
s_slmtnr-high and low show not be blank.
Moderator message: please search for available information/documentation before asking.
Edited by: Thomas Zloch on Dec 4, 2010 9:49 PM
‎2010 Dec 04 7:31 AM
in screen output, do the validation as
if s_matnr-low = space. message 'error' type 'E'.endif
if s_matnr-high = space. message 'error' type 'E'.endif
‎2010 Dec 04 7:36 AM
aswk,
thanks for the reply.
my code:
IF MA_DE = 'X'.
IF S_MATUM-LOW = 0 OR S_MATUM-HIGH = 0.
MESSAGE: 'PLEASE ENTER RANGE' TYPE 'E'.
ENDIF.
ENDIF.
but here if i put 'AND' instead of 'OR'.it will not work for both low and high.
what i know is 'AND' is used to do for both true,but here 'OR' works like that why.
‎2010 Dec 04 9:22 AM
Hi
If you.need to check if a low/high value is entered then high/low has to be filled too:
If not s_matner-high is initial and s_matner-low is initial
=> error
ENDIF.
If s_matner-high is initial and not s_matner-low is initial
=> error
ENDIF .
Max
‎2010 Dec 04 8:20 PM
Hi
Do the validation in at selection screen event
AT SELECTION-SCREEN.
IF SO_MATNR-LOW IS INITIAL.
MESSAGE 'ENTER FROM MATERIAL' TYPE 'E'.
ENDIF.
IF SO_MATNR-HIGH IS INITIAL.
MESSAGE 'ENTER TO MATERIAL' TYPE 'E'.
ENDIF.
hope it helps
regards
S.Prabhu