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

select options

Former Member
0 Likes
720

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
Read only

Former Member
0 Likes
683

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
Read only

Former Member
0 Likes
684

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.

Read only

0 Likes
683

Hi Navneeth,

I would use the following event:

at selection-screen OUTPUT.

This works better, I think...

Best regards,

Jörg Racz

Read only

Former Member
0 Likes
683

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

Read only

GauthamV
Active Contributor
0 Likes
683

hi,

try like this.


if ........

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

endif.

Read only

Former Member
0 Likes
683

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

Read only

Former Member
0 Likes
683

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