<?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 for Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678418#M618923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Suhas for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked SU24 but no values are maintained for ACTVT. but there is another object S_TABU_DIS related with ACTVT , then what should be the nature of my code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;ID 'TCD' FIELD c_tcode.&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this right.&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;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 12:43:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T12:43:55Z</dc:date>
    <item>
      <title>authority-check for Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678415#M618920</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;I have created custom transaction, in that depending on authorization i am calling two different FMs.For that i have created two users both are having acces for the transaction.But one is having display and other change authorization. In the program i am writing following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;ID 'TCD' FIELD 'ZG'.&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt; Displaying 1st FM&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; Displaying 2nd FM&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCD value is maintained at table level but ACTVT is not maintained.&lt;/P&gt;&lt;P&gt;Is this a right code.&lt;/P&gt;&lt;P&gt;&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;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 12:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678415#M618920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T12:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678416#M618921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is no ACTVT in this object.&lt;/P&gt;&lt;P&gt;It's used like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;         ID 'TCD' FIELD '__________'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look via SU21 and Class AAAB or via doubleclick on S_TCODE in abap.&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>Thu, 09 Aug 2007 12:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678416#M618921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T12:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678417#M618922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh i think u shud use the Tcode SU24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to transaction SU24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the t-code give ZTCODE &amp;amp; press execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Then press the Change 'Check Indicator'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. There you can maintain the ACTVT for ur T-Code against the TCD value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award points if u find this helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 12:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678417#M618922</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2007-08-09T12:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678418#M618923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Suhas for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked SU24 but no values are maintained for ACTVT. but there is another object S_TABU_DIS related with ACTVT , then what should be the nature of my code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;ID 'TCD' FIELD c_tcode.&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this right.&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;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 12:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678418#M618923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678419#M618924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The authorisation object S_TCODE does not work in the way you are trying to use it.  S_TCODE is checked automatically when any transaction is called and has a simple yes or no result, either user can or cannot run the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your transaction has a display and change option you will need to create a new authorisation object (transaction SU21) with field ACTVT and code this check into your program.  Then give each user the relevant value in their authorisation role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you could create two transactions, one change and one display, then you can use S_TCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 12:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-transaction/m-p/2678419#M618924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T12:54:11Z</dc:date>
    </item>
  </channel>
</rss>

