10-15-2010 8:00 AM
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.
10-15-2010 8:14 AM
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
10-15-2010 8:14 AM
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