‎2008 Nov 17 4:42 AM
Hi all,
in selection screen
SELECT-OPTIONS: S_MATNR FOR MATNR OBLIGATORY.
in this obligatory will comes only for lower value.but i want for upper value also. i can i do it?
‎2008 Nov 17 4:45 AM
Hi
You need to add a check in
At-Selection screen.
if s_matnr-high is initial.
*message
endif.
Regards
Aditya
‎2008 Nov 17 4:49 AM
‎2008 Nov 17 4:51 AM
HI,
Obligatiry checks only for lower value ...
u need to check include a check for the higher value in ur code ..
Regards
Renu
‎2008 Nov 17 4:57 AM
Loop at screen.
If screen-name = u2018S_FIELD-HIGHu2019.
Screen-required = u20181u2019.
Modify screen.
endif.
‎2008 Nov 17 5:10 AM
>
> Loop at screen.
> If screen-name = u2018S_FIELD-HIGHu2019.
> Screen-required = u20181u2019.
> Modify screen.
> endif.
Hi Balaji
Guess it is not S_FIELD-HIGH instead S_MATNR-HIGH
Regards
Sas
‎2008 Nov 17 5:18 AM
Hi
for select-options if you put OBLIGATORY then only LOW value is mandatory.
if you want to put HIGH also mandatory.
then write corresponding code under
at selection-screen.
LOOP AT SCREEN.
Required filed mandaory
ENDLOOP
‎2008 Nov 17 5:36 AM
Hi Katta.
What mittal said will work.
Put a error message for validation
TABLES mara.
SELECT-OPTIONS : so_matnr FOR mara-matnr OBLIGATORY.
AT SELECTION-SCREEN.
IF so_matnr-high IS INITIAL.
MESSAGE 'Enter To value for material' TYPE 'E'.
ENDIF.
START-OF-SELECTION.
WRITE 'Hai'.Regards
‎2008 Nov 17 6:17 AM
Hi,
Try as below:
At selection-screen.
if s_matnr-high is initial.
message 'High should not be left blank' type 'E'.
endif.
Thanks,
Sriram POnna.