<?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 Authorization check For T code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308870#M161043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody guide to set a  authorization check  for a particular Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ztable where users are assigned particular numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the users who are assigned some numbers should be able to use this particular t code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2006 13:36:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-25T13:36:17Z</dc:date>
    <item>
      <title>Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308870#M161043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody guide to set a  authorization check  for a particular Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ztable where users are assigned particular numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the users who are assigned some numbers should be able to use this particular t code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308870#M161043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308871#M161044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check These links:&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="1579903"&gt;&lt;/A&gt;&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="1655550"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308871#M161044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308872#M161045</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;chk this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT object &lt;/P&gt;&lt;P&gt;    ID name1  FIELD f1 &lt;/P&gt;&lt;P&gt;    ID name2  FIELD f2 &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;    ID name10 FIELD f10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Explanation of IDs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object &lt;/P&gt;&lt;P&gt;Field which contains the name of the object for which the authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the names of the &lt;/P&gt;&lt;P&gt;name10 &lt;/P&gt;&lt;P&gt;authorization fields defined in the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the values for which the &lt;/P&gt;&lt;P&gt;f10 &lt;/P&gt;&lt;P&gt;authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept). &lt;/P&gt;&lt;P&gt;You must specify all authorizations for an object and a also a value for each ID (or DUMMY). &lt;/P&gt;&lt;P&gt;The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user. &lt;/P&gt;&lt;P&gt;If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected. &lt;/P&gt;&lt;P&gt;If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue. &lt;/P&gt;&lt;P&gt;The return code value changes according to the different error scenarios. The return code values have the following meaning: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 &lt;/P&gt;&lt;P&gt;User has no authorization in the SAP System for such an action. If necessary, change the user master record. &lt;/P&gt;&lt;P&gt;8 &lt;/P&gt;&lt;P&gt;Too many parameters (fields, values). Maximum allowed is 10. &lt;/P&gt;&lt;P&gt;12 &lt;/P&gt;&lt;P&gt;Specified object not maintained in the user master record. &lt;/P&gt;&lt;P&gt;16 &lt;/P&gt;&lt;P&gt;No profile entered in the user master record. &lt;/P&gt;&lt;P&gt;24 &lt;/P&gt;&lt;P&gt;The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect. &lt;/P&gt;&lt;P&gt;28 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;32 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;36 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the return code value is 8 or 24, inform the person responsible for the program. If the return code value is 4, 12, 16 or 24, consult your system administrator if you think you should have the relevant authorization. In the case of errors 28 to 36, contact SAP because authorizations have probably been destroyed. &lt;/P&gt;&lt;P&gt;Individual authorizations are assigned to users in their respective user profiles, i.e. they are grouped together in profiles which are stored in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Instead of ID name FIELD f, you can also write ID name DUMMY. This means that no check is performed for the field concerned. &lt;/P&gt;&lt;P&gt;The check can only be performed on CHAR fields. All other field types result in 'unauthorized'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Check whether the user is authorized for a particular plant. In this case, the following authorization object applies: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table OBJ: Definition of authorization object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK &lt;/P&gt;&lt;P&gt;   ACTVT &lt;/P&gt;&lt;P&gt;   WERKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, M_EINF_WRK is the object name, whilst ACTVT and WERKS are authorization fields. For example, a user with the authorizations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK_BERECH1 &lt;/P&gt;&lt;P&gt;   ACTVT 01-03 &lt;/P&gt;&lt;P&gt;   WERKS 0001-0003 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can display and change plants within the Purchasing and Materials Management areas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a user would thus pass the checks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' FIELD '0002' &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '02'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' DUMMY &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '01': &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but would fail the check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' FIELD '0005' &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '04'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To suppress unnecessary authorization checks or to carry out checks before the user has entered all the values, use DUMMY - as in this example. You can confirm the authorization later with another AUTHORITY-CHECK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308872#M161045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308873#M161046</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;You can use function module AUTHORITY_CHECK_TCODE for this. Some thing like,&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 = &amp;lt;Your Tcode here&amp;gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OK = 0&lt;/P&gt;&lt;P&gt;NOT_OK = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;****No Authorization&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;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308873#M161046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308874#M161047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&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="993592"&gt;&lt;/A&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;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308874#M161047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308875#M161048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suchitra,&lt;/P&gt;&lt;P&gt;check this link..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/52/67147d439b11d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/52/67147d439b11d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_me21sp2/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_me21sp2/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&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;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308875#M161048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308876#M161049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Probably you can try that in transactions SU20 and SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&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="1470474"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aswin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308876#M161049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308877#M161050</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;refer 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="1655550"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;latheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308877#M161050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308878#M161051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take one user, find a role , by going in SU01 -&amp;gt;user name -&amp;gt;roles tab -&amp;gt; pick up Z:role or whatever . Go to tr.PFCG and paste that role -&amp;gt; hit display and -&amp;gt;click authorization tab -&amp;gt;you&amp;#146;ll see glasses sign -&amp;gt; click it after that a screen will come hit find and in object write "S_tcode" it`ll show you the place where you have to place the T-code for user . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally this is done by security, but it might help you ,.!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also see security reports in this thread !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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="1470474"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go thru the link to know abt the concept &amp;amp; creation of authorizaition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw21c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw21c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308878#M161051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308879#M161052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suchitra,&lt;/P&gt;&lt;P&gt;check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt; - 96k -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308879#M161052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308880#M161053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set authorisation check for the particular user by having a look up between sy-uname(user) and your ztable records. If there is a match, then user can proceed else come out of transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put your code in AT SELECTION-SCREEN event of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single auth_num from ztable where zuser = sy-uname.&lt;/P&gt;&lt;P&gt; if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; message 'User not authorised'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some other ways to restrict access based on authorisation like use of authority-check statement or &lt;/P&gt;&lt;P&gt;You can directly link authorization objects with transaction codes in SE93 tcode. You can enter values for the fields of an authorization object in the transaction maintenance. Before the transaction is executed, the system compares these values with the values in the user master record and only starts the transaction if the appropriate authorization exists.&lt;/P&gt;&lt;P&gt;Suggest you should go thru following link :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since you are using ztable to check authorisation, first method should suffice your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward for helpful replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308880#M161053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308881#M161054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting lost in t code authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell little bit clearly how to go about creating authorization for at Tcode.&lt;/P&gt;&lt;P&gt;Ihave a ztable in which the authorized users are assigned a number.Iwant the T-code be accessible to only those users who are assigned a numbers in z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope iam clear.&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;Suchitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 16:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308881#M161054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308882#M161055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me repeat the scenario ..!! You&amp;#146;re saying you have built up one Ztable in which you have users and Numbers . &lt;/P&gt;&lt;P&gt;User execute certain transaction&amp;lt;b&amp;gt;  NOT transactions?&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;On that transaction you want to see user in the Ztable that assigned to user as well as for number  or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_well if it standard transaction you don&amp;#146;t need to do all this hustle and haggle. If it Standard transaction let me know the transaction ? You can simple handle it by objects and roles . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-If its Z transaction still you can handle it . but if you want to restrict them on certain numbers. You can build up a logic in your program and include that transaction code in Ztable too .  So you can check sy-uname with your Ztable and fill up the data which user can or cant see ... OR  put some 1 flag parameter in your table like Authorization = 'X" . You can use it in this way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as executing the T-code , that you can assign to the user profile in Tr.PFCG . by going in to "authorization tab " and object = S_tocde .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 17:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308882#M161055</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-05-26T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308883#M161056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saquib Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all i like to thank you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrriten code for a module pool program and created a transaction zxya.Now i have  a ztable lets say zdef which contains usernames and numbers-...&lt;/P&gt;&lt;P&gt;Now when i want to authorize only those users who are present in zdef.&lt;/P&gt;&lt;P&gt;Please let me know how should i proceed.(i think i should compare with user name  right ? do i have to write code for that in PAI or is there any other way i.e i mean through se93 or su21 or....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know your valuable advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope iam clear this time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suchitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 17:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308883#M161056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T17:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308884#M161057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchitra,&lt;/P&gt;&lt;P&gt;Since you are using module pool program, you need to validate the sy-uname with the users in the ztable in PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 from ztable where field1 = sy-uname.&lt;/P&gt;&lt;P&gt;if sy-subrc  &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;lt; user is not authorised,leave to main screen&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should suffice your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way,if you were not using ZTABLE would have been attaching authorization object to the transaction and assigning this object to the user profile of the users who should be allowed to use this transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward for helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 18:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308884#M161057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check For T code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308885#M161058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl... follow the logic which Vikram Jalali  explain you in PAI.... Check Sy-uname in PAI . If it has entry in your Ztable ok " otherwise " just through "Error" message ...!! In this case you don&amp;#146;t need SE93 or su21 . As you want to check the authorization in the t-code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check your Z-code ,I mean you want restrict on that then you have to assign the your T-code to user role in Tr.PFcg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 18:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-t-code/m-p/1308885#M161058</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-05-26T18:33:11Z</dc:date>
    </item>
  </channel>
</rss>

