<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983042#M704307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;       This code will work .&lt;/P&gt;&lt;P&gt;Also you can use the following function module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'AUTHORITY_CHECK_TCODE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tcode  = v_tcode&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        ok     = 1&lt;/P&gt;&lt;P&gt;        not_ok = 2&lt;/P&gt;&lt;P&gt;        OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is better way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 08:14:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-25T08:14:21Z</dc:date>
    <item>
      <title>Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983041#M704306</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 check the authorisation object for one Z transaction(To restrict it for certain users). Will this code is sufficient.&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 sy-tcode  .          &lt;/P&gt;&lt;P&gt;            if sy-subrc &amp;lt;&amp;gt; 0.                              &lt;/P&gt;&lt;P&gt;Error message.&lt;/P&gt;&lt;P&gt;  endif.                                         &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 08:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983041#M704306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T08:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983042#M704307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;       This code will work .&lt;/P&gt;&lt;P&gt;Also you can use the following function module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'AUTHORITY_CHECK_TCODE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tcode  = v_tcode&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        ok     = 1&lt;/P&gt;&lt;P&gt;        not_ok = 2&lt;/P&gt;&lt;P&gt;        OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is better way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 08:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983042#M704307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983043#M704308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This is sufficient but you have to attach the Authorization object S_TCODE with your transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check it in the transaction SE93 for your transaction.&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, 25 Oct 2007 08:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/2983043#M704308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T08:30:04Z</dc:date>
    </item>
  </channel>
</rss>

