Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection screen obligatory

Former Member
0 Likes
893

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?

8 REPLIES 8
Read only

Former Member
0 Likes
857

Hi

You need to add a check in

At-Selection screen.

if s_matnr-high is initial.

*message

endif.

Regards

Aditya

Read only

arjun_thakur
Active Contributor
0 Likes
857

hi,

OBLIGATORY works only for lower values.

regards

arjun

Read only

Former Member
0 Likes
857

HI,

Obligatiry checks only for lower value ...

u need to check include a check for the higher value in ur code ..

Regards

Renu

Read only

former_member225631
Active Contributor
0 Likes
857

Loop at screen.

If screen-name = u2018S_FIELD-HIGHu2019.

Screen-required = u20181u2019.

Modify screen.

endif.

Read only

0 Likes
857

>

> 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

Read only

former_member206439
Contributor
0 Likes
857

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

Read only

Former Member
0 Likes
857

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

Read only

Former Member
0 Likes
857

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.