<?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 Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301401#M1534170</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;The CALL TRANSACTION function module will not perform an authority check on the t-code being called unless you&lt;/P&gt;&lt;P&gt;call function module AUTHORITY_CHECK_TCODE prior to the CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is explained in OSS Note: 696574 as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No authorization check is performed with CALL TRANSACTION - in contrast to when you start the transaction directly.&lt;/P&gt;&lt;P&gt;If the same authorizations are to be checked for CALL TRANSACTION as when starting the transaction directly, the function module AUTHORITY_CHECK_TCODE must be called before CALL TRANSACTION. This performs exactly the same authorization checks as when the transaction is called directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 04:06:25 GMT</pubDate>
    <dc:creator>soumya_jose3</dc:creator>
    <dc:date>2010-09-17T04:06:25Z</dc:date>
    <item>
      <title>Authority_check_tcode Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301398#M1534167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling a custom trasaction from within a report program. If the security roles have already been set up fo rthe custom transaction,Is it required to perform an explicit authority check using FM AUTHORITY_CHECK_TCODE. Is there any benefit in doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function AUTHORITY_CHECK_TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction ZXYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You comments are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 17:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301398#M1534167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Authority_check_tcode Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301399#M1534168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have that code in the program, people with only SA38/SE38 authorization and do not have ZXY T-code authrization, can not run the program. It gives more restrictions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 17:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301399#M1534168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Authority_check_tcode Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301400#M1534169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally when custom transaction is created, the scope of people who are going to use it will be restricted to whom received proper authorization entry in their profile. In simple words, it is Basis team who determines who can access the transaction. So authorization check is right there, no need to add any custom one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrary, when you call transaction from within the program it is likely that tcode authorization check is skipped. Actually it is up to configuration made in SE95 (as far as I remember there should be some global check box saying whether to check auth or not). Unless someone changed that setting, there will be no check made by default during CALL TRANSACTION. So checking this authorization yourself is proper way of ensuring unathorizated access to tcode is not made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To conclude, yest this is good approach:)&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>Thu, 16 Sep 2010 18:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301400#M1534169</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-16T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authority_check_tcode Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301401#M1534170</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;The CALL TRANSACTION function module will not perform an authority check on the t-code being called unless you&lt;/P&gt;&lt;P&gt;call function module AUTHORITY_CHECK_TCODE prior to the CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is explained in OSS Note: 696574 as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No authorization check is performed with CALL TRANSACTION - in contrast to when you start the transaction directly.&lt;/P&gt;&lt;P&gt;If the same authorizations are to be checked for CALL TRANSACTION as when starting the transaction directly, the function module AUTHORITY_CHECK_TCODE must be called before CALL TRANSACTION. This performs exactly the same authorization checks as when the transaction is called directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 04:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-tcode-function-module/m-p/7301401#M1534170</guid>
      <dc:creator>soumya_jose3</dc:creator>
      <dc:date>2010-09-17T04:06:25Z</dc:date>
    </item>
  </channel>
</rss>

