Application Development 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: 

Select-Option display only

abhishek37373
Participant
0 Kudos
2,676

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

former_member188827
Active Contributor
0 Kudos
434

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

mahesh_madhavan
Participant
0 Kudos
434

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

former_member188827
Active Contributor
0 Kudos
435

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.

0 Kudos
434

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