<?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: Info about Authorization Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218645#M1206916</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;Authorization object is used to check the User Authority for a perticulaer activity (as the name itself sugests). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a Auth Object from transaction from Tcode : &lt;STRONG&gt;SU21.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: You have a Z Program and you want to ensure that only speific users will be able to run this report.&lt;/P&gt;&lt;P&gt;Then in your program you will write a Logic like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AUTHORITY-CHECK 'ZAUTH_OBJ'&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELDS 'FNAME' VALUE 'SOMEVALUE' .*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEAVE-PROGRAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement checks that whether user has the Object ZAUTH_OBJ assigned to his profile (Auth object is assigned to the user profile through tcode PFCG--- basis activity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can achieve a Authorization specific functionality using these Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if you want more documents on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 10:56:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T10:56:41Z</dc:date>
    <item>
      <title>Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218643#M1206914</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;What is Authorization Object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where it can be used? In which scenarios, it is useful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is it related with ABAP and Functional?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz send some sample code&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;Please do not ask broad, vague questions; please search the forum before asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please do not respond to such questions - the moderators watch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 24, 2009 11:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218643#M1206914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218644#M1206915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can you please check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sample code for that as below&lt;/P&gt;&lt;P&gt;SU21 is the tcode for authorization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;authority-check object 'V_VBAK_VKO'
id 'VKORG' field it_salesorg-vkorg
id 'VTWEG' dummy "FIELD '*'
id 'SPART' dummy "FIELD '*'
id 'ACTVT' dummy.
*If the user is not authorised
if sy-subrc 0.
*Give the error message.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Durga.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218644#M1206915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218645#M1206916</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;Authorization object is used to check the User Authority for a perticulaer activity (as the name itself sugests). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a Auth Object from transaction from Tcode : &lt;STRONG&gt;SU21.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: You have a Z Program and you want to ensure that only speific users will be able to run this report.&lt;/P&gt;&lt;P&gt;Then in your program you will write a Logic like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AUTHORITY-CHECK 'ZAUTH_OBJ'&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELDS 'FNAME' VALUE 'SOMEVALUE' .*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEAVE-PROGRAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement checks that whether user has the Object ZAUTH_OBJ assigned to his profile (Auth object is assigned to the user profile through tcode PFCG--- basis activity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can achieve a Authorization specific functionality using these Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if you want more documents on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218645#M1206916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218646#M1206917</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;use 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="7038034"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218646#M1206917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218647#M1206918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Here is some info about the authorization object : &lt;/P&gt;&lt;P&gt; Authorization objects allow complex checks that involve multiple&lt;/P&gt;&lt;P&gt;conditions that allow a user to perform an action. The conditions are&lt;/P&gt;&lt;P&gt;specified in authorization fields for the authorization objects and are AND&lt;/P&gt;&lt;P&gt;linked for the check. Authorization objects and their fields have descriptive&lt;/P&gt;&lt;P&gt;and technical names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  authority-check object &amp;lt;object name&amp;gt;&lt;/P&gt;&lt;P&gt;           id 'ACTVT' field &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;           id &amp;lt;fieldname&amp;gt; field &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message error&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;actvty : &lt;/P&gt;&lt;P&gt;01	Create or generate&lt;/P&gt;&lt;P&gt;02	Change&lt;/P&gt;&lt;P&gt;03	Display&lt;/P&gt;&lt;P&gt;09	Display prices&lt;/P&gt;&lt;P&gt;36	Extended maintenance&lt;/P&gt;&lt;P&gt;70	Administer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these activities define the authorization for the user.&lt;/P&gt;&lt;P&gt;basis ppl will set the authorisations for each user , per transaction  per activity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218647#M1206918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218648#M1206919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Read this link, it has my answer.&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="6815744"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218648#M1206919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218649#M1206920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is it diiffer from USER ROLES created by basis or functionals?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218649#M1206920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Info about Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218650#M1206921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Narendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not different from the USER ROLES created by the basis team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basis team uses Objects like these (Standard or Custom (Z) ) to create a role.&lt;/P&gt;&lt;P&gt;It is create in the transaction PFCG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you create an object and code accordingly in your Z program. Then your object needs to be assigned in the USER role created by your basis consultant in order to achieve the complete functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-about-authorization-object/m-p/5218650#M1206921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T11:20:08Z</dc:date>
    </item>
  </channel>
</rss>

