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

abhishek37373
Participant
0 Likes
5,006

Hi Folks,

I want to display all the values for a select-option in the selection screen (value are coming from a database table) but restrict user from entering the values.

For that i have made a MODIF ID and have hidden it using the code below:

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.

    IF screen-group1 = 'HID'.

      screen-input = 0.

    ENDIF.

    MODIFY SCREEN.

  ENDLOOP.

Problem:

But the problem now is the select Option i am not able to see all value as the button "" is inactive.

The code is

But i am not able to view values expect "2".

Please let me know how to view all values of S_bukrs.

Thanks a lot in Advance!!

1 ACCEPTED SOLUTION
Read only

former_member188827
Active Contributor
0 Likes
2,764

Please use the following code:

  LOOP AT SCREEN.

     IF screen-name = 'S_BUKRS-LOW' or screen-name = 'S_BUKRS-HIGH'.

       screen-input = 0.

     ENDIF.

     MODIFY SCREEN.

   ENDLOOP.

3 REPLIES 3
Read only

mahesh_madhavan
Participant
0 Likes
2,764

Hi,

My suggestion is to use a PARAMETER and then use a search help to display the values. Another option is having drop down values.

Cheers,

Mahesh

Read only

former_member188827
Active Contributor
0 Likes
2,765

Please use the following code:

  LOOP AT SCREEN.

     IF screen-name = 'S_BUKRS-LOW' or screen-name = 'S_BUKRS-HIGH'.

       screen-input = 0.

     ENDIF.

     MODIFY SCREEN.

   ENDLOOP.

Read only

0 Likes
2,764

Thanks a lot..Worked the exact way i wanted..:)