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

Change Values in SO at runtime

Former Member
0 Likes
563

Hi,

How do I change the values on the screen in a select option? I am hiding some fields when a radio button is clicked and I want the values of a select option also to change when this happens. I am using at selection-screen output to hide some fields.

Any ideas?

Tyken

Hi,

How do I change the values on the screen in a select option? I am hiding some fields when a radio button is clicked and I want the values of a select option also to change when this happens. I am using at selection-screen output to hide some fields.

Any ideas?

Tyken

2 REPLIES 2
Read only

Former Member
0 Likes
443

Hi,

In]

At selection-screen output.

do the things which you need and

s_matnr = 'value'.

You can just give the value in at selection screen output

rewads if helpful,

regards,

nazeer

Read only

Former Member
0 Likes
443

Hi,

When ever you declared any select-options means internally in the program one internal table will be created with the select-options name...

Ex: select-options s_mantr for mara-matnr...

it means s_matnr internal table will be created and the field of this internal table are 'Option', 'Sign', 'Low' and 'High'. So to change the contens of the select-options we need to loop through that internal table and make the changes...

Loop at s_matnr.

s_matnr-option = 'xx'

s_matnr-sign = 'X'.

s_matnr-low = value

s_matnr-high = value

modify s_matnr index sy-tabix.

endloop.

If the select option is empty.

s_matnr-option = 'xx'

s_matnr-sign = 'X'.

s_matnr-low = value

s_matnr-high = value

append s_matnr.

Satya