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

How to determine whether Save button disabled

Hello,

I need to know whether some user added fields should be disabled or not depending on whether the current transaction only allows the user to look at the data or not. At the moment I check the sy-tcode whether it contains any of the transactions of which I know that they are for data display only. This is not very satisfactory as the code will break when a new transaction is created that serves for data display only.

So I would like to check whether the Save button in the horizontal button bar (left to the three buttons for Back, Finish, Cancel) is disabled or not. Does anybody know how to do this?

Thanks, Oliver Plohmann

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 07:57 AM

    Disabling and enabling are the functionalities that we can set in pf-status.

    if you set ok-code for save it will display else it will not.

    u can do this dynamically using this

    SET PF-STATUS '1000' EXCLUDING itab.

    in the itab u have set the ok-codes which are to be diaplayed,.

    regds

    gv

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      thanks for the answer. What I get with GET PF-STATUS is the current status, which turned out to be GLOBAL. And that doesn't tell me much. I need the specific function code of the save button. I think I will have to dive into SAP's own includes to figure out how they are doing this.

      Regarsd, Oliver

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 08:15 AM

    Perhaps you can find a table with the pf-status and the matching configuration of this status? Then you would be able to check it.

    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.