<?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: AUTHORITY-CHECK before Selection-screen? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947915#M1488224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;did you try event LOAD-OF-PROGRAM ?&lt;/P&gt;&lt;P&gt;regards,darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 May 2010 15:03:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-31T15:03:23Z</dc:date>
    <item>
      <title>AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947913#M1488222</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;i want to check the authority before the selection-screen. I do it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
*
  AUTHORITY-CHECK OBJECT 'Z_REPORT'
           ID 'PROGRAM' FIELD SY-REPID
           ID 'ACTVT'   FIELD '16'. "Ausführen
*
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE E010 WITH 'Keine Berechtigung für Programm: '
    SY-REPID.
  ENDIF.
*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the selection appears without any parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to check without the selection-screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 14:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947913#M1488222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947914#M1488223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code for at selection screen authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Handling selection screen events &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_carrid. &lt;/P&gt;&lt;P&gt;  IF p_carrid IS INITIAL. &lt;/P&gt;&lt;P&gt;    MESSAGE 'Please enter a value' TYPE 'E'. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_CARRID' &lt;/P&gt;&lt;P&gt;                      ID 'CARRID' FIELD p_carrid &lt;/P&gt;&lt;P&gt;                      ID 'ACTVT'  FIELD '03'. &lt;/P&gt;&lt;P&gt;  IF sy-subrc = 4. &lt;/P&gt;&lt;P&gt;    MESSAGE 'No authorization for carrier' TYPE 'E'. &lt;/P&gt;&lt;P&gt;  ELSEIF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;    MESSAGE 'Error in authority check' TYPE 'A'. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    IF sy-ucomm = 'ONLI'. &lt;/P&gt;&lt;P&gt;      CALL SELECTION-SCREEN '0500'. &lt;/P&gt;&lt;P&gt;    ENDIF. &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;Regards,&lt;/P&gt;&lt;P&gt;Md Ziauddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 14:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947914#M1488223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947915#M1488224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;did you try event LOAD-OF-PROGRAM ?&lt;/P&gt;&lt;P&gt;regards,darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 15:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947915#M1488224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947916#M1488225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not, processing is already in PBO stage at this point, same with INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an authorization group in the program attributes that is checked before any selection screen appears, but this works with standard authorization objects S_PROGRAM and S_DEVELOP. Maybe look into using these instead of your own Z_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 15:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947916#M1488225</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-05-31T15:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947917#M1488226</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 you give Error message in AT SELECTION-SCREEN OUTPUT, control directly exits from the screen. Give your authorization group in program attributes or give it in the transaction code created for that program. This will make sure that the check happens before the program is started for execution.&lt;/P&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, 31 May 2010 15:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947917#M1488226</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-05-31T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY-CHECK before Selection-screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947918#M1488227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer, i will do it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 15:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-before-selection-screen/m-p/6947918#M1488227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T15:32:27Z</dc:date>
    </item>
  </channel>
</rss>

