<?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: Transaction codes executable for user in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961530#M698674</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;Please try these FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY_CHECK_TCODE       &lt;/P&gt;&lt;P&gt;AUTH_CHECK_TCODE            &lt;/P&gt;&lt;P&gt;SUSR_AUTHORITY_CHECK_S_TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check standard program RSUSR002.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 20:42:48 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-10-17T20:42:48Z</dc:date>
    <item>
      <title>Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961526#M698670</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 a function module which says whether a user acess to particular transaction code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this FM, but it says the user has authorization to a particular transaction code although he/she is not having access to that transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUSR_AUTHORITY_CHECK_SIMULATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SUSR_AUTHORITY_CHECK_SIMULATE'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  user_name       = usr21-bname&lt;/P&gt;&lt;P&gt;                  object          = 'S_TCODE'&lt;/P&gt;&lt;P&gt;                  field1          = 'TCD'&lt;/P&gt;&lt;P&gt;                  val1            = lv_tcode_val     ( transaction is ME21N)&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  sy_subrc        = lv_rc&lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  not_authorized  = 1&lt;/P&gt;&lt;P&gt;                  user_not_exists = 2&lt;/P&gt;&lt;P&gt;                  internal_error  = 3&lt;/P&gt;&lt;P&gt;                  OTHERS          = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody tell how to handle this situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 18:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961526#M698670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961527#M698671</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;Instead of use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD c_tcode.  " &amp;lt;&amp;lt; your T Code
ID 'ACTVT' FIELD '02'.
IF sy-subrc = 0.
end if.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 19:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961527#M698671</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-17T19:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961528#M698672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FM SUSR_GET_TCODES_WITH_AUTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass the User Id in the table. It will return all the User Id for which the user has the authorization. You can check the required Tcode from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek Jolly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 20:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961528#M698672</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-17T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961529#M698673</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call 'AUTH_CHECK_TCODE'&lt;/P&gt;&lt;P&gt;     id 'TCODE' field 'ZTEST1'.   " Pass your t code here..instead of ZTEST1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  Message e208(00) WITH 'Error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 20:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961529#M698673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T20:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961530#M698674</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;Please try these FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY_CHECK_TCODE       &lt;/P&gt;&lt;P&gt;AUTH_CHECK_TCODE            &lt;/P&gt;&lt;P&gt;SUSR_AUTHORITY_CHECK_S_TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check standard program RSUSR002.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 20:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961530#M698674</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-17T20:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961531#M698675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be precise my requirement is when creating a PO i am maintaining some field value which is "SAP Userid"  and I have to check the whether that Userid is having authorization to a particular transaction or not and not for the userid id with which the PO is getting created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 19:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961531#M698675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T19:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961532#M698676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer provided by Abhishek Jolly looks correct to me. Does it not work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 19:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961532#M698676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961533#M698677</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;DID you try..this is what standard sap checks..when you enter a transaction code in the command field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call 'AUTH_CHECK_TCODE'&lt;/P&gt;&lt;P&gt;id 'TCODE' field 'ZTEST1'. " Pass your t code here..instead of ZTEST1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Message e208(00) WITH 'Error'.&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 19:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961533#M698677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction codes executable for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961534#M698678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your answers.... I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I copied that code from 4.6c to 4.7 and making some changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module which I am using is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'SUSR_AUTHORITY_CHECK_SIMULATE'   and in 4.7 SAP has given additional exporting parameter which is missing in 4.6c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter is   "dummies" and you have pass  "0000" to it and it works as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the info from OSS notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou all for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-codes-executable-for-user/m-p/2961534#M698678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:55:00Z</dc:date>
    </item>
  </channel>
</rss>

