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: 

select options

Former Member
0 Kudos

Hello all,

I want to make the high value input field of a select option disabled based upon some condition.

Precisely if the condition is true then the select option high value will be accepted otherwise not.

Please let me know how I will proceed.

Thanks,

Sudipto

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

1. In At Selection-Screen event , you have to use :

loop at screen.

if screen-name = 'SELCTOPTIONNAME-HIGH'.

if conditon is true.

screen-input = '1'.

else.

screen-inout = '0'.

endif.

endloop.

Thanks & Regards,

Navneeth K.

6 REPLIES 6

Former Member
0 Kudos

Hi,

1. In At Selection-Screen event , you have to use :

loop at screen.

if screen-name = 'SELCTOPTIONNAME-HIGH'.

if conditon is true.

screen-input = '1'.

else.

screen-inout = '0'.

endif.

endloop.

Thanks & Regards,

Navneeth K.

0 Kudos

Hi Navneeth,

I would use the following event:

at selection-screen OUTPUT.

This works better, I think...

Best regards,

Jörg Racz

former_member598013
Active Contributor
0 Kudos

Hi Sudipto,

For this type of requirement you can use the event " AT SELECTION SCREEN OUTPUT".

and inside this event put

Loop at Screen

if Screen-name = 'field name'.

Screen-input = 'X'.

endif.

EndLoop.

Thanks,

Chidanand

GauthamV
Active Contributor
0 Kudos

hi,

try like this.


if ........

loop at screen.
if screen-name = s_matnr-high.
screen-output = 0.
modify screen
endif.
endloop.

endif.

Former Member
0 Kudos

Here,


report ztest.

tables vbak.
select-options : p_s1 for vbak-vbeln.

at selection-screen output.

loop at screen.

* Stick the condition here.
  if screen-name = 'P_S1-HIGH'.
*    screen-active = 0.
    screen-input =  0.
    modify screen.
  endif.
endloop.

You can check for any condition before doing this. You can write the code in the PAI ( at selection-screen on ) of another select-option or parameter also.

regards,

Advait

Former Member
0 Kudos

Hi,

Check the following code:

tables: mara.

parameters: p_rd1 radiobutton group grp1 user-command cmd1,

p_rd2 radiobutton group grp1.

select-options: s_matnr for mara-matnr.

at selection-screen output.

if p_rd2 = 'X'.

loop at screen.

if screen-name = 'S_MATNR-HIGH'.

screen-input = 0.

endif.

modify screen.

endloop.

endif.

Regards,

Bhaskar