<?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_TCODE Authorization error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072699#M1901315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagamani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Tcode is not assigned with S_TCODE authorization object.&lt;BR /&gt;2. There is no entry in the table TCDCOUPLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned in the document if there is no entry in the above table FM skips the auth check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case its checking for authorization.What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I couldn't understand third point.what is that profile parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Naresh Bammidi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 10:04:44 GMT</pubDate>
    <dc:creator>naresh_bammidi</dc:creator>
    <dc:date>2015-05-13T10:04:44Z</dc:date>
    <item>
      <title>AUTHORITY_CHECK_TCODE Authorization error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072697#M1901313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a requirement to fix all security issues in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report we are calling one custom Tcode using the statement CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as per security fixes,i need to check authorization before calling the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that I used FM AUTHORITY_CHECK_TCODE to check authorization for the tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/703565" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After addition of above code,it's showing authorization error for the user in production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After R&amp;amp;D I got to know that, CALL TRANSACTION won't check for authorization for the TCODE.&lt;BR /&gt;Now its checking Tcode authorization&amp;nbsp; in production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my doubt is YTOCDE is not assigned with any authorization objects not event S_TCODE in SU24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case user should not get authorization error as there is not auth object assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me why authorization is failing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 07:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072697#M1901313</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2015-05-13T07:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECK_TCODE Authorization error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072698#M1901314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read the below documetation related to authority check issue while calling tcode using CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If no authorization check is performed for &lt;SPAN class="qtext"&gt;CALL TRANSACTION&lt;/SPAN&gt; and no check is performed in the called program, a check can be run in the called program by calling the function module &lt;A class="lnkgreen" href="https://community.sap.com/" title="External Object"&gt;AUTHORITY_CHECK_TCODE&lt;/A&gt;. This function module checks the authorization object S_TCODE, if the database field OKFLAG in TCDCOUPLES has the value "X" or is empty. If the field has the value "N", the function module does not perform a check. If the authorization is to be checked regardless of the table entries, the statement &lt;A class="blue" href="https://community.sap.com/"&gt;&lt;SPAN class="qtext"&gt;AUTHORITY-CHECK&lt;/SPAN&gt;&lt;/A&gt; needs to be used. &lt;BR /&gt;&lt;BR /&gt; &lt;/LI&gt;&lt;LI&gt;The entries in the database table TCDCOUPLES can be defined in transaction &lt;A class="lnkgreen" href="https://community.sap.com/" title="External Object"&gt;SE97&lt;/A&gt;. The entry in the column MAINTFLAG controls the &lt;A class="blue" href="https://community.sap.com/"&gt;program behavior&lt;/A&gt; if the authorization is missing. &lt;BR /&gt;&lt;BR /&gt; &lt;/LI&gt;&lt;LI&gt;The standard behavior described here for the authorization check can be overridden by the hidden profile parameter &lt;A class="lnkgreen" href="https://community.sap.com/" title="External Object"&gt;auth/check/calltransaction&lt;/A&gt;. This profile parameter is not provided as standard but it can be created manually. The following table shows the value combinations - value in OKFLAG in TCDCOUPLES (first column) and value of existing profile parameter (first row) - for which an authorization check is performed. &lt;/LI&gt;&lt;/UL&gt;&lt;DL&gt;&lt;DD&gt;&lt;SPAN class="qtext400"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3 &lt;BR /&gt;------------------ &lt;BR /&gt;"X"&amp;nbsp; |&amp;nbsp; -&amp;nbsp; x&amp;nbsp; x&amp;nbsp; x &lt;BR /&gt;"N"&amp;nbsp; |&amp;nbsp; -&amp;nbsp; x&amp;nbsp; -&amp;nbsp; - &lt;BR /&gt;" "&amp;nbsp; |&amp;nbsp; -&amp;nbsp; x&amp;nbsp; -&amp;nbsp; x&lt;/SPAN&gt; &lt;/DD&gt;&lt;/DL&gt;&lt;DL&gt;&lt;DD&gt;The last row also describes the behavior for when TCDCOUPLES does not contain a corresponding entry. Value 2 for the profile parameter is the standard behavior. If the profile parameter is available, it influences the AUTHORITY_CHECK_TCODE function module. &lt;/DD&gt;&lt;DD&gt;&lt;/DD&gt;&lt;DD&gt;&lt;/DD&gt;&lt;DD&gt;&lt;/DD&gt;&lt;DD&gt;Regards&lt;/DD&gt;&lt;DD&gt;Mani&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 07:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072698#M1901314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-13T07:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECK_TCODE Authorization error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072699#M1901315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagamani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Tcode is not assigned with S_TCODE authorization object.&lt;BR /&gt;2. There is no entry in the table TCDCOUPLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned in the document if there is no entry in the above table FM skips the auth check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case its checking for authorization.What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I couldn't understand third point.what is that profile parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Naresh Bammidi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 10:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072699#M1901315</guid>
      <dc:creator>naresh_bammidi</dc:creator>
      <dc:date>2015-05-13T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORITY_CHECK_TCODE Authorization error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072700#M1901316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then maintain the TCDCOUPLES table with the values as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCODE --- is your main program tcode&lt;/P&gt;&lt;P&gt;CALLED ---- is your YTCODE&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;OKFLAG&amp;nbsp; ---- 'N'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/703759" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the system will bypass all the authorization checks related to that called transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and other way is check wether that user has authorization for that tcode in the production system or not. If not mainatin TCODE in the authorization object S_TCODE.&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;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 10:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-authorization-error/m-p/11072700#M1901316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-13T10:18:35Z</dc:date>
    </item>
  </channel>
</rss>

