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 option high value - Non editable

former_member309899
Participant
0 Likes
5,331

Hi all,

please tell me how to set non-editable only for select option high value.

Is it possible?

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

former_member196331
Active Contributor
4,048

you can try Like below

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF screen-name = 'S_VBELN-HIGH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

9 REPLIES 9
Read only

matt
Active Contributor
4,048

I doubt it's possible, since a select option is far more than just a range from low to high. For example, if the low is *, then a high value makes no sense.

Since this is a date range, you don't want the full functionality of a select-option anyway. Create a low parameter and a high parameter (display only), and use SELECTION-SCREEN BEGIN OF LINE... so their on the same line.

See my blog here: https://blogs.sap.com/2014/02/07/dates-and-select-options/ for why select options with dates are, in my opinion, an error.

Read only

0 Likes
4,048

Hi thank you so much

Read only

former_member196331
Active Contributor
4,049

you can try Like below

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF screen-name = 'S_VBELN-HIGH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Read only

0 Likes
4,048

Hi, thanks.

its working. and one more, before set non-editable i need to set some value on that.

Read only

0 Likes
4,048

hi,

i found the answer.

INITIALIZATION.

MOVE 'your value' TO <selectoption>-HIGH.

APPEND <selectoption>.

Read only

0 Likes
4,048

Hi thank you so much

Read only

former_member309899
Participant
0 Likes
4,048

Hi, i got solution.

thanks to Kali Charan and Matthew Billingham.

To set non-editable filed on select option-high.

AT SELECTION-SCREEN OUTPUT.


LOOP AT SCREEN.
IF screen-name = '<selectoption>-HIGH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

To set Default value for select option HIGH.

INITIALIZATION.

MOVE 'your value' TO <selectoption>-HIGH.

APPEND <selectoption>.

Read only

Sandra_Rossi
Active Contributor
4,048

If you only protect the "high" part of the SELECT-OPTIONS screen fields, the user can still change it by pressing the button at the right of this field.

So, you should also use NO-EXTENSION to hide the button :

SELECT-OPTIONS s_date FOR <globaldatefield> NO-EXTENSION.
Read only

retired_member
Product and Topic Expert
Product and Topic Expert