Skip to Content

Enable Push Button when user selects the value in listbox

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.