Skip to Content

excluding application toolbar buttons

Hi folks ,

can anyone tell me if i could to exclude some application toolbar buttons from pf-status ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 02, 2005 at 10:58 PM

    Hi Herzel

    That is possible for "application toolbar". Hope you do not mean the standard toolbar.

    To exclude a single function from the application toolbar you can use:

    SET PF-STATUS 'STAT_0100' EXCLUDING 'ABCD' .

    To exclude multiple user commands, collect them in an internal table and use EXCLUDING addition giving the name of the internal name.

    <u><b>e.g.</b></u>

    DATA: BEGIN OF lt_exclude OCCURS 0,
            fcode LIKE sy-ucomm ,
          END OF lt_exclude .
    
    lt_exclude-fcode = 'ABCD' .
    APPEND lt_exclude .
    lt_exclude-fcode = 'EFGH' .
    APPEND lt_exclude .
    
    SET PF-STATUS 'STAT_0100' EXCLUDING lt_exclude .

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Herzel

      The problem should be that: Since in modules your variable declarations are always GLOBAL. Whether your condition changes, your internal table content always includes previous user commands appended. So do a refresh.

      <u><b>e.g.</b></u>

      MODULE pbo_0100 OUTPUT.
      DATA temp LIKE LINE OF tb_pf_status .
      
      REFRESH tb_pf_status . "Insert this line"
      
      IF flag2comp = 1 .
      ...
      

      OR

      Take your PBO code into a form and just call this form at your PBO, put a break-point at the statement:

      SET PF-STATUS 'STATUS100' EXCLUDING tb_pf_status .

      Be sure you have the GUI status with the name 'STATUS100' with function codes 'COMPARE' and 'UNCOMPARE', then while debugging check whether the content of the internal table "tb_pf_status" is as you want.

      *--Serdar

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2005 at 03:36 AM

    Define Itab of type SY-UCOMM

    DATA : BEGIN OF ITAB OCCURS 0,

    IT1 LIKE SY-UCOMM,

    END OF ITAB.

    ITAB-IT1 = 'AAA'.

    APPEND ITAB.

    ITAB-IT1 = 'BBB'.

    APPEND ITAB.

    SET PF-STATUS 'TOOLBAR' EXCLUDING ITAB.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2005 at 03:36 AM

    Define Itab of type SY-UCOMM

    DATA : BEGIN OF ITAB OCCURS 0,

    IT1 LIKE SY-UCOMM,

    END OF ITAB.

    ITAB-IT1 = 'AAA'.

    APPEND ITAB.

    ITAB-IT1 = 'BBB'.

    APPEND ITAB.

    SET PF-STATUS 'TOOLBAR' EXCLUDING ITAB.

    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.