Skip to Content
author's profile photo Former Member
Former Member

change icon on the pushbutton at runtime

Hi all,

I am new to ABAP.

I have one requirement in screen programming.

I need to change the icon on the pushbutton at runtime.

can somebody give me idea or any sample code.

thanks in advance.

Raju Naga.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 08:03 AM

    hi,

    You will have to basically set your pf-status with the option EXCLUDING fcodes, where fcodes can be just one fcode of your pushbuttons on the menu, or it can be an internal table of several fcodes, if you are disabling them. This will disable them and to re-enable them you just have to set pf-status without the option EXCLUDING.

    IF <mycondition>

    SET PF-STATUS <mystatus> EXCLUDING 'ABCD'.

    *-- or SET PF-STATUS <mystatus> EXCLUDING fcodes_itab ]

    • where fcodes_itab has more than one fcodes

    ELSE.

    SET PF-STATUS <mystatus>.

    ENDIF.

    ____________________________________________________________________

    In order to grey-out instead of removing altogether, you still need to do ....

    SET PF-STATUS '0100' EXCLUDING....

    Also you need to change a setting in the gui status.

    Go into your gui status by double clicking on the status name, click Go To --> Attributes --> PushButton Assignment. You will get a dialog box, select the radiobutton for "Display All". Save and activate. Now instead of the buttons being removed, they will be greyed out.

    Pls : useful award points.

    Sri

    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.