<?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: ABAP General in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775843#M646947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Authorization Checks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following actions are subject to authorization checks that are performed before the start of a program or table maintenance and which the SAP applications cannot avoid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Starting SAP transactions (authorization object S_TCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Starting reports (authorization object S_PROGRAM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Calling RFC function modules (authorization object S_RFC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Table maintenance with generic tools (S_TABU_DIS)&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;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 09:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T09:27:59Z</dc:date>
    <item>
      <title>ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775842#M646946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please help me out in answering this question &lt;/P&gt;&lt;P&gt;What is Authority-Check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rizwana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775842#M646946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775843#M646947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Authorization Checks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following actions are subject to authorization checks that are performed before the start of a program or table maintenance and which the SAP applications cannot avoid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Starting SAP transactions (authorization object S_TCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Starting reports (authorization object S_PROGRAM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Calling RFC function modules (authorization object S_RFC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Table maintenance with generic tools (S_TABU_DIS)&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;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775843#M646947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775844#M646948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/67129f439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/52/67129f439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/authorit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/authorit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links for further info...........&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775844#M646948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775845#M646949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can refer following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/authorit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/authorit.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775845#M646949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775846#M646950</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;AUTHORITY-CHECK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AUTHORITY-CHECK OBJECT object     ID name1  FIELD f1 &lt;/P&gt;&lt;P&gt;    ID name2  FIELD f2 &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;    ID name10 FIELD f10.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Explanation of IDs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;object &lt;/P&gt;&lt;P&gt;Field which contains the name of the object for which the authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the names of the &lt;/P&gt;&lt;P&gt;name10 &lt;/P&gt;&lt;P&gt;authorization fields defined in the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the values for which the &lt;/P&gt;&lt;P&gt;f10 &lt;/P&gt;&lt;P&gt;authorization is to be checked.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept). &lt;/P&gt;&lt;P&gt;You must specify all authorizations for an object and a also a value for each ID (or DUMMY). &lt;/P&gt;&lt;P&gt;The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user. &lt;/P&gt;&lt;P&gt;If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected. &lt;/P&gt;&lt;P&gt;If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue. &lt;/P&gt;&lt;P&gt;The return code value changes according to the different error scenarios&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775846#M646950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP General</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775847#M646951</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;To check the authorization of the user of an ABAP program, use the AUTHORITY-CHECK statement:&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT '&amp;lt;object&amp;gt;'&lt;/P&gt;&lt;P&gt;ID '&amp;lt;name1&amp;gt;' FIELD &amp;lt;f1&amp;gt;&lt;/P&gt;&lt;P&gt;ID '&amp;lt;name2&amp;gt;' FIELD &amp;lt;f2&amp;gt;&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;ID '&amp;lt;name10&amp;gt;' FIELD &amp;lt;f10&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;object&amp;gt; is the name of the object that you want to check. You must list the names (&amp;lt;name1&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;lt;name2&amp;gt; ...) of all authorization fields that occur in &amp;lt;object&amp;gt;. You can enter the values &amp;lt;f1&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;lt;f2&amp;gt;.... for which the authorization is to be checked either as variables or as literals. The AUTHORITY-CHECK statement checks the user&amp;#146;s profile for the listed object, to see whether the user has authorization for all values of &amp;lt;f&amp;gt;. Then, and only then, is SY-SUBRC set to 0. You can avoid checking a field by replacing FIELD &amp;lt;f&amp;gt; with DUMMY. You can only evaluate the result of the authorization check by checking the contents of SY-SUBRC. For a list of the possible return values and further information, see the keyword documentation for the AUTHORITY-CHECK statement. For further general information about the SAP authorization concept, refer to Users and Authorizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an authorization object called F_SPFLI. It contains the fields ACTVT,&lt;/P&gt;&lt;P&gt;NAME, and CITY.&lt;/P&gt;&lt;P&gt;SELECT * FROM SPFLI.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_SPFLI'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'&lt;/P&gt;&lt;P&gt;ID 'NAME' FIELD SPFLI-CARRID&lt;/P&gt;&lt;P&gt;ID 'CITY' DUMMY.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;If the user has the following authorizations for F_SPFLI:&lt;/P&gt;&lt;P&gt;ACTVT 01-03, NAME AA-LH, CITY none, and the value of SPFLI-CARRID is not between &amp;#147;AA&amp;#148; and &amp;#147;LH&amp;#148;, the authorization check terminates the SELECT loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2775847#M646951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T11:52:15Z</dc:date>
    </item>
  </channel>
</rss>

