Application Development 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: 

Making Select Option Obligatory

Former Member
0 Kudos
85

Hi all,

I am taking one field as input in select option now i want to make this obligatory..

For example:

Select-options:Budat for bkpf-budat obligatory.

but by this only budat-low is getting obligatory ..

What to do to make budat-high also obligatory?

Is it possible?

Thanks in advance...

5 REPLIES 5

Former Member
0 Kudos
46

hi SHah,

in

at selection-screen event.

 if s_budat-high is initial
   <error Message>
 endif.

Former Member
0 Kudos
46

hi..,

Add this code to your program....

<b>At selection-screen output.

loop at screen.

if screen-name = 'BUDAT-HIGH'.

screen-required = 1.

modify screen.

endif.

endloop.</b>

reward all helpful answers..

regards,

sai ramesh

varma_narayana
Active Contributor
0 Kudos
46

Hi

TRY THIS CODE.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if screen-name = 'BUDAT-HIGH'.

screen-required = 1.

modify screen.

EXIT.

endif.

endloop.

regards.

Former Member
0 Kudos
46

Loop at screen and make screen-input = 1.

*&----


*& Event AT SELECTION-SCREEN OUTPUT

*&----


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CASE screen-name.

WHEN 'S_AUART-LOW' OR 'S_AUART-HIGH'.

screen-input = 1.

MODIFY SCREEN.

WHEN 'S_PSTYV-LOW' OR 'S_PSTYV-HIGH'.

screen-input = 0.

MODIFY SCREEN.

ENDCASE.

ENDLOOP.

Regards,

Fred Morsell

Former Member
0 Kudos
46

Hi .. here is your code

report  zresd.
TABLES : BKPF .
select-options : S_BUDAT for BKPF-BUDAT .


initialization.
LOOP AT SCREEN.
    IF screen-name = 'S_BUDAT-LOW'   OR   screen-name = 'S_BUDAT-HIGH'.
      screen-required    = '1'.
      screen-intensified = '1'.
      MODIFY SCREEN.
    ENDIF.

  ENDLOOP.

reward points if it is usefull...

Girish