<?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: Supress standard function codes in a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690488#M1451016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i understand your problem correctly,you can set PF-STATUS excluding this button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA fcode TYPE TABLE OF sy-ucomm. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT. &lt;/P&gt;&lt;P&gt;  APPEND 'CHANGE'  TO fcode. &lt;/P&gt;&lt;P&gt;  APPEND 'SAVE' TO fcode. &lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. &lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yossi Rozenberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 15:16:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-15T15:16:45Z</dc:date>
    <item>
      <title>Supress standard function codes in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690487#M1451015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to supress the button and menue entry for getting existing variants in a report. (Goto-&amp;gt;Variants-&amp;gt;Get) .&lt;/P&gt;&lt;P&gt;It would also be ok to popup a message if the user want to execute this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to check SSCRFIELDS-UCOMM on event AT SELECTION-SCREEN but this does not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690487#M1451015</guid>
      <dc:creator>ralf_schfer</dc:creator>
      <dc:date>2010-03-15T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Supress standard function codes in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690488#M1451016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i understand your problem correctly,you can set PF-STATUS excluding this button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA fcode TYPE TABLE OF sy-ucomm. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT. &lt;/P&gt;&lt;P&gt;  APPEND 'CHANGE'  TO fcode. &lt;/P&gt;&lt;P&gt;  APPEND 'SAVE' TO fcode. &lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. &lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yossi Rozenberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690488#M1451016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T15:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Supress standard function codes in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690489#M1451017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out below sample code which exactly works in the way you want. Here i have added two buttons to the selection screen and disabled the option Get variants. Similarly you can disable what ever options you want simply by passing the function codes to be excluded to the internal table li_exclude. You can check the function codes by opening the standard PF status for report selection screen (Program &lt;STRONG&gt;RSSYSTDB&lt;/STRONG&gt; and status &lt;STRONG&gt;%_00&lt;/STRONG&gt; in SE41).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: smp_dyntxt, sscrfields.

DATA: li_exclude TYPE TABLE OF rsexfcode,

lwa_exclude TYPE rsexfcode.

CONSTANTS: lc_fc01 TYPE sy-ucomm VALUE 'FC01',

lc_fc02 TYPE sy-ucomm VALUE 'FC02'.

PARAMETERS: po_test TYPE c.

SELECTION-SCREEN FUNCTION KEY 1.

SELECTION-SCREEN FUNCTION KEY 2.

LOAD-OF-PROGRAM.

  MOVE: 'test1' TO smp_dyntxt-quickinfo,

  'test1' TO smp_dyntxt-icon_text,

  smp_dyntxt TO sscrfields-functxt_01,

  'test2' TO smp_dyntxt-quickinfo,

  'test2' TO smp_dyntxt-icon_text,

  smp_dyntxt TO sscrfields-functxt_02.

INITIALIZATION.

  lwa_exclude-fcode = 'GET'.

  APPEND lwa_exclude TO li_exclude.

AT SELECTION-SCREEN OUTPUT.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = '%_00'
      p_program = 'RSSYSTDB'
    TABLES
      p_exclude = li_exclude.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690489#M1451017</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-15T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Supress standard function codes in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690490#M1451018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two possibilites&lt;/P&gt;&lt;P&gt;1) Create your own GUI STATUS with only BACK or EXIT button on it and then set it in PBO &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
  SET PF-STATUS 'MY_STATUS'.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2) Modyfing standard GUI STATUS the system sets for you. For this append all function codes you want to exclude and pass the table to FM &lt;STRONG&gt;RS_SET_SELSCREEN_STATUS&lt;/STRONG&gt; in screen PBO. &lt;/P&gt;&lt;P&gt;Refer to program &lt;STRONG&gt;DEMO_SEL_SCREEN_STATUS&lt;/STRONG&gt; for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690490#M1451018</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-03-15T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Supress standard function codes in a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690491#M1451019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 07:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supress-standard-function-codes-in-a-report/m-p/6690491#M1451019</guid>
      <dc:creator>ralf_schfer</dc:creator>
      <dc:date>2010-03-16T07:21:25Z</dc:date>
    </item>
  </channel>
</rss>

