<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: excluding application toolbar buttons in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865054#M48823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a look at my code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE pbo_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  DATA temp LIKE LINE OF tb_pf_status .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF flag2comp = 1 .&lt;/P&gt;&lt;P&gt;    temp-code = 'COMPARE'.&lt;/P&gt;&lt;P&gt;    APPEND temp TO tb_pf_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;        WHEN 'PROF1'. screen-input = 0 .&lt;/P&gt;&lt;P&gt;        WHEN 'PROF2'. screen-input = 0 .&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    temp-code = 'UNCOMPARE'.&lt;/P&gt;&lt;P&gt;    APPEND temp TO tb_pf_status.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;        WHEN 'PROF1'. screen-input = 1 .&lt;/P&gt;&lt;P&gt;        WHEN 'PROF2'. screen-input = 1 .&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS100' EXCLUDING tb_pf_status .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK NOT grid IS INITIAL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT grid.&lt;/P&gt;&lt;P&gt;    PERFORM db_str_load_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " pbo_0100  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2005 09:37:26 GMT</pubDate>
    <dc:creator>herzelhaimharel_gilor</dc:creator>
    <dc:date>2005-01-03T09:37:26Z</dc:date>
    <item>
      <title>excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865049#M48818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks , &lt;/P&gt;&lt;P&gt;can anyone tell me if i could to exclude some application toolbar buttons from pf-status  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2005 18:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865049#M48818</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2005-01-02T18:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865050#M48819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herzel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is possible for "application toolbar". Hope you do not mean the standard toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To exclude a single function from the application toolbar you can use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PF-STATUS 'STAT_0100' EXCLUDING 'ABCD' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To exclude multiple user commands, collect them in an internal table and use EXCLUDING addition giving the name of the internal name.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;e.g.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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 .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2005 22:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865050#M48819</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-02T22:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865051#M48820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know for sure that it's work , but i don't know why it doesn't work on my screen. &lt;/P&gt;&lt;P&gt;i wrote it in the PBO and i don't see the results .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jan 2005 23:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865051#M48820</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2005-01-02T23:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865052#M48821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Herzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have mentioned 'PBO', are you talking about a normal screen or a selection screen? Just to remind you, in case of a selection-screen, you would have to do set the GUI status in the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, did you try using the statement &amp;lt;b&amp;gt;SET PF-STATUS SPACE.&amp;lt;/b&amp;gt;? This statement is supposed to initialize the GUI status of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 05:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865052#M48821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-03T05:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865053#M48822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herzel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should describe your case more since your question just asks whether it is possible and the answer is yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, I can think of three possibilities.&lt;/P&gt;&lt;P&gt;i.   You give wrong function code(s) at EXCLUDING addition.&lt;/P&gt;&lt;P&gt;ii.  You set the PF-STATUS somewhere else for a second time.&lt;/P&gt;&lt;P&gt;iii. There is a conditional sentence preventing execution of the 'SET' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out these and if your problem still persists describe the case more extensively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 09:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865053#M48822</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-03T09:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865054#M48823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a look at my code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE pbo_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  DATA temp LIKE LINE OF tb_pf_status .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF flag2comp = 1 .&lt;/P&gt;&lt;P&gt;    temp-code = 'COMPARE'.&lt;/P&gt;&lt;P&gt;    APPEND temp TO tb_pf_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;        WHEN 'PROF1'. screen-input = 0 .&lt;/P&gt;&lt;P&gt;        WHEN 'PROF2'. screen-input = 0 .&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    temp-code = 'UNCOMPARE'.&lt;/P&gt;&lt;P&gt;    APPEND temp TO tb_pf_status.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;        WHEN 'PROF1'. screen-input = 1 .&lt;/P&gt;&lt;P&gt;        WHEN 'PROF2'. screen-input = 1 .&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS100' EXCLUDING tb_pf_status .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK NOT grid IS INITIAL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT grid.&lt;/P&gt;&lt;P&gt;    PERFORM db_str_load_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " pbo_0100  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 09:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865054#M48823</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2005-01-03T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865055#M48824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herzel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;e.g.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE pbo_0100 OUTPUT.
DATA temp LIKE LINE OF tb_pf_status .

REFRESH tb_pf_status . "Insert this line"

IF flag2comp = 1 .
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take your PBO code into a form and just call this form at your PBO, put a break-point at the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PF-STATUS 'STATUS100' EXCLUDING tb_pf_status .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 09:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865055#M48824</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-03T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865056#M48825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define Itab of type SY-UCOMM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;          IT1 LIKE SY-UCOMM,&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt; ITAB-IT1 = 'AAA'.&lt;/P&gt;&lt;P&gt; APPEND ITAB.&lt;/P&gt;&lt;P&gt; ITAB-IT1 = 'BBB'.&lt;/P&gt;&lt;P&gt; APPEND ITAB.&lt;/P&gt;&lt;P&gt; SET PF-STATUS 'TOOLBAR' EXCLUDING ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2005 03:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865056#M48825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-04T03:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: excluding application toolbar buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865057#M48826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define Itab of type SY-UCOMM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;          IT1 LIKE SY-UCOMM,&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt; ITAB-IT1 = 'AAA'.&lt;/P&gt;&lt;P&gt; APPEND ITAB.&lt;/P&gt;&lt;P&gt; ITAB-IT1 = 'BBB'.&lt;/P&gt;&lt;P&gt; APPEND ITAB.&lt;/P&gt;&lt;P&gt; SET PF-STATUS 'TOOLBAR' EXCLUDING ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2005 03:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excluding-application-toolbar-buttons/m-p/865057#M48826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-04T03:36:30Z</dc:date>
    </item>
  </channel>
</rss>

