2007 Sep 05 10:21 AM
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
2007 Sep 05 10:54 AM
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
2007 Sep 05 11:33 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |