<?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 Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985384#M402452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand. if you are given an auth object and asked to restrict your t-code against it then why do you need to make additional check in your code? if there user does not have the authorization object in his/her role, then it will restricted automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2007 02:58:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-16T02:58:45Z</dc:date>
    <item>
      <title>Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985372#M402440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asked to do some authorisation checks on one of the Z Tcode. I am given the Auth Object Name and am asked to implement in my ABAP Code for the ZTcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i supposed to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since that i have never done this before, Plz help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 01:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985372#M402440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T01:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985373#M402441</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 need to add code similar to the below one in your Z report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    authority-check object 'Z_PLNT_AUT'&lt;/P&gt;&lt;P&gt;             id 'ACTVT' field '03'&lt;/P&gt;&lt;P&gt;             id 'WERKS' field i_auth_werks-werks.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;      message e398(00) with&lt;/P&gt;&lt;P&gt;       'User' sy-uname 'not authorised for Plant : ' i_auth_werks-werks.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985373#M402441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985374#M402442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;Thnk u for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets consider my example. my Z tcode is not allowed for few users with diff company codes. so the auth obj given to me is doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am doing another thing similar in my module pool PBO&lt;/P&gt;&lt;P&gt;i select the same from USR05 table and validate it against the PARID value having BUK ie the comp code&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0 then i am giving an error msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this similar to the auth obj which i am asked to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985374#M402442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985375#M402443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create the Z-tcode there is a field to enter the authorization object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display your z-transaction (SE93) and look for the field below your program name/selection screen/variant/.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985375#M402443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985376#M402444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the validations are different...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one you have used in the Module Pool checks the Parameter Value Set for an User. If users have authorization for setting the parameters in their USER Profile, they can change this value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best would be to you AUTHORITY-CHECK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985376#M402444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985377#M402445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean that we need nothing to do in our ABAP even after assigning the Auth Obj in SE93&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose not, as we need to give an error msg to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i had a check on the auth obj using auth check statemtn in the PBO. this shud be correct right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985377#M402445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985378#M402446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one last thing the auth check which i am supposed to do shud be done in the PBO of the screen right?&lt;/P&gt;&lt;P&gt;Plz correct me if i am wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985378#M402446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985379#M402447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be in the PAI, as in the PBO event you won't have the Company Code for which user is executing the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985379#M402447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985380#M402448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I default the Comp Code in the PBO itself.&lt;/P&gt;&lt;P&gt;So shud be OK right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985380#M402448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985381#M402449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean user can not change this Company Code? If so, it will work. But am surprised as how are you defaulting the CO code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, how are you getting (selecting) this default Company code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rahul Patni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985381#M402449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985382#M402450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the SAP User ID i get if from USR05 and default it and the user can not change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985382#M402450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985383#M402451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you given authorization to the user to set parameter values in User Profiles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then this check is fine. Or else I doubt how is this going to help.......?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985383#M402451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985384#M402452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand. if you are given an auth object and asked to restrict your t-code against it then why do you need to make additional check in your code? if there user does not have the authorization object in his/her role, then it will restricted automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 02:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985384#M402452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T02:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985385#M402453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Write code like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tcode like sy-tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tcode = sy-tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'P_TCODE'&lt;/P&gt;&lt;P&gt; ID 'TCD' FIELD TCODE.&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 error.&lt;/P&gt;&lt;P&gt;  exit.&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;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 03:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/1985385#M402453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T03:08:56Z</dc:date>
    </item>
  </channel>
</rss>

