<?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: authorization to custom t code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716174#M313038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AUTHORITY-CHECK OBJECT 'ZTCODE'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '16' &lt;/P&gt;&lt;P&gt;ID 'TCODE' FIELD &amp;lt;Transcation code for report/program&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 17:08:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-07T17:08:18Z</dc:date>
    <item>
      <title>authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716171#M313035</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 A MODULE POOL PROGRAM AND I  NEED TO PROVIDE AUTHORIZATION TO ACCESS THE THE Z TCODE FOR THAT MODULE POOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write code checking sy-uname or is there any other way that can be used to provide access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 16:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716171#M313035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716172#M313036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write a code in your program or you can request your basis/security team to provide the access for the Z Tcode to whom ever required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are writing the code, check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_repid = sy-repid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Authorization check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'Authobj name'&lt;/P&gt;&lt;P&gt;                     ID 'ACTVT' FIELD '16'          " Execute&lt;/P&gt;&lt;P&gt;                     ID 'REPID' FIELD w_repid       " Program Name&lt;/P&gt;&lt;P&gt;                     ID 'WERKS' DUMMY               " Dummy&lt;/P&gt;&lt;P&gt;                     ID 'BUKRS' DUMMY.              " Dummy&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e278(rt).&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;Shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716172#M313036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716173#M313037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For new transaction you do not have to develop any checks in your program (if you want to check access rights for that transaction code only), just update your auth. profiles for object S_TCODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716173#M313037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716174#M313038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AUTHORITY-CHECK OBJECT 'ZTCODE'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '16' &lt;/P&gt;&lt;P&gt;ID 'TCODE' FIELD &amp;lt;Transcation code for report/program&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716174#M313038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716175#M313039</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;THANKS FOR YOUR REPLIES .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANYONE BE MORE CLEAR .&lt;/P&gt;&lt;P&gt;IF I HAVE USER XYZ THEN WHERE SHOULD I GIVE XYZ IN ORDER TO HAVE ACCESS FOR XYZ IN THE FOLLOWING CODE&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZTCODE'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '16' &lt;/P&gt;&lt;P&gt;ID 'TCODE' FIELD &amp;lt;Transcation code for report/program&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;SWATHI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716175#M313039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716176#M313040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swathi,&lt;/P&gt;&lt;P&gt;You can maintain profiles via for example PFCG, reports are available in SUIM. If it is a new transaction, you do not have to develop any checks in your program. System will check automatically access rights using object S_TCODE. Your user must have in its profile this object and your transaction code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716176#M313040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: authorization to custom t code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716177#M313041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basis/Security team (depends on your organisation) creates an object and assigns to the profile of the user 'XYZ' thru txn PFCG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put similar piece of code in your module pool :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZOBJECT'   "Object&lt;/P&gt;&lt;P&gt;        ID 'TCODE' FIELD 'ZTCODE'  "Your tcode        &lt;/P&gt;&lt;P&gt;        ID 'ACTVT' FIELD '16'.    "Activity&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;        MESSAGE E001 with 'User does not have   &lt;/P&gt;&lt;P&gt;                            authorisation'.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Pls reward for helpful replies!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-to-custom-t-code/m-p/1716177#M313041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T17:42:58Z</dc:date>
    </item>
  </channel>
</rss>

