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: 

Enable Push Button when user selects the value in listbox

former_member282823
Active Participant
0 Kudos

Hi,

In my selection screen, I have a list box and a push button which is disabled. Now, when the user selects the value in the listbox, the push button should be enabled in the selection screen.

Can you let me know how it can be done? Any examples.

Any inputs please.

Regards,

Ramesh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ramesh,

Assign a user-command to the list box. Then in the AT SELECTION-SCREEN OUTPUT check if the entry in the list box is equal to the reqd. Then loop at the screen and set the INPUT attribute of the push button to 1.


PARAMETERS: p_list type bukrs as listbox user-command ulist.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF SCREEN-NAME = 'PUSHBUTTON'. 
    IF  P_LIST = 'ABC'.
      SCREEN-INPUT = 1.
    ELSE.
      SCREEN-INPUT = 0.
    ENDIF.
    MODIFY SCREEN.
  ENDIF.
ENDLOOP.

Regards,

Immanuel

Edited by: Immanuel T A on Oct 15, 2010 9:15 AM

1 REPLY 1

Former Member
0 Kudos

Hi Ramesh,

Assign a user-command to the list box. Then in the AT SELECTION-SCREEN OUTPUT check if the entry in the list box is equal to the reqd. Then loop at the screen and set the INPUT attribute of the push button to 1.


PARAMETERS: p_list type bukrs as listbox user-command ulist.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF SCREEN-NAME = 'PUSHBUTTON'. 
    IF  P_LIST = 'ABC'.
      SCREEN-INPUT = 1.
    ELSE.
      SCREEN-INPUT = 0.
    ENDIF.
    MODIFY SCREEN.
  ENDIF.
ENDLOOP.

Regards,

Immanuel

Edited by: Immanuel T A on Oct 15, 2010 9:15 AM