<?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: User Authorization to a specific transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117167#M1186897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   you can use the additional &lt;/P&gt;&lt;P&gt;... FOR USER user &lt;/P&gt;&lt;P&gt;option with &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 10:29:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-28T10:29:44Z</dc:date>
    <item>
      <title>User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117166#M1186896</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 want to check programmatically whether a specific user has authorization to a specific transaction. The statement AUTHORITY-CHECK OBJECT 'S_TCODE' works only for the current user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module where i can pass the User name and transaction and check whether the user have access to the transaction ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117166#M1186896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117167#M1186897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   you can use the additional &lt;/P&gt;&lt;P&gt;... FOR USER user &lt;/P&gt;&lt;P&gt;option with &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117167#M1186897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117168#M1186898</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;UST04 table can used to get the list of users for specific authorization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117168#M1186898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117169#M1186899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program checks whether an authorization object is assigned to the transaction code. If this is the case, the program checks whether the user has an authorization for this authorization object. The transaction code/authorization object assignment is stored in table TSTCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The system performs authorization checks in the ABAP program using the ABAP statement AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call 'AUTHORITY_CHECK'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;USER = &amp;lt;USER&amp;gt;&lt;/P&gt;&lt;P&gt;OBJECT = 'S_TCODE'&lt;/P&gt;&lt;P&gt;FIELD1 = 'TCD'&lt;/P&gt;&lt;P&gt;VALUE1 = &amp;lt;TRANSACTION CODE&amp;gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;SY-SUBRC = &amp;lt;VAL&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117169#M1186899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117170#M1186900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6647683"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117170#M1186900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117171#M1186901</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 short report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM USR01.
*
  CALL FUNCTION 'AUTHORITY_CHECK'
    EXPORTING
      USER                = USR01-BNAME
      OBJECT              = 'S_TCODE'
      FIELD1              = 'TCD'
      VALUE1              = 'FB01'
    EXCEPTIONS
      USER_DONT_EXIST     = 1
      USER_IS_AUTHORIZED  = 2
      USER_NOT_AUTHORIZED = 3
      USER_IS_LOCKED      = 4
      OTHERS              = 5.
*
  WRITE: / USR01-BNAME.
*
  CASE SY-SUBRC.
    WHEN 2.      WRITE: 'USER_IS_AUTHORIZED'.
    WHEN 3.      WRITE: 'USER_NOT_AUTHORIZED'.
    WHEN OTHERS. WRITE: 'ERROR', SY-SUBRC.
  ENDCASE.
*
ENDSELECT.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117171#M1186901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T10:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: User Authorization to a specific transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117172#M1186902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 12:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authorization-to-a-specific-transaction/m-p/5117172#M1186902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T12:19:50Z</dc:date>
    </item>
  </channel>
</rss>

