<?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: Custom Authorization Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766130#M1775866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your only option IMO is (and should be) to fix the "standard security". Fix the process of building and assigning roles. What you're doing sounds like you're making the mess even worse. Although it might sound like your way may work (for a moment... very short moment), it will pile up the problems for people that will come to fix the company and "do the right way".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 21:31:32 GMT</pubDate>
    <dc:creator>OttoGold</dc:creator>
    <dc:date>2013-10-11T21:31:32Z</dc:date>
    <item>
      <title>Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766120#M1775856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created&amp;nbsp; a custom report which is showing Account Balances, Stock and Invoice. All these reports come under one Tcode. Below are the autho rization fields which are required for my each report. (ACC Bal, Stock and Invoice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Office&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Company Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Plant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have created my own authorization class, authorization objects and authorization fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL&gt;&lt;DL&gt;&lt;DL&gt;&lt;DL&gt;&lt;DL&gt;&lt;DL&gt;&lt;DD&gt;&lt;TABLE border="1" cellpadding="4" cellspacing="0" height="22"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="100%"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZAUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (AUTH CLASS)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/DL&gt;&lt;/DL&gt;&lt;/DL&gt;&lt;/DL&gt;&lt;/DL&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" cellpadding="4" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZINVOICE(AutOb) &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZVKBUR&lt;/P&gt;&lt;P&gt;ZSPART&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="4" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZACCOUNT(AutOb)&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZVKBUR&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" cellpadding="4" cellspacing="0" width="132"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZSTOCK(AutOb)&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: 1px solid black;" width="122"&gt;&lt;P&gt;ZBUKRS&lt;/P&gt;&lt;P&gt;ZWERKS&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no overall authorization concept existing in the organization now. That is why I am going ahead with custom authorization concept. But I am confused with the steps to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the precise of what I have done so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1) Created custom Authorization fields with the existing data elements, (SU20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Created Authorization objects and class (SU21)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Created a role in PFCG. (Added values say for sales office 2000 and activity '03').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Assigned TCode to Authorization Object in SU24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Checked in my custom program with 'Authority check' for sales office with '2000'. But it is running for all sales office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will be the possible issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many levels of authorization to be achieved. First for the TCODE and then for the individual selections in the list box item. (Invoice, Stock and Accounts- All in the same tcode ). Then for the individual fields in the report. How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 05:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766120#M1775856</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2013-09-30T05:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766121#M1775857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 06:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766121#M1775857</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2013-09-30T06:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766122#M1775858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not take the regular organization objects (WERKS, BUKRS, VKORG) instead of creating custom (ZVKORG, ZBURS, ZWERKS) ones?&lt;/P&gt;&lt;P&gt;You say that "There is no overall authorization concept existing in the organization now. That is why I am going ahead with custom authorization concept." &lt;/P&gt;&lt;P&gt;It's sounds like a good first step to set up a (new) overall autorization concept using org levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you chose for creating new org objects you will have to assign these new ones to the users as well and this can be very confusing for the auth concept itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 06:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766122#M1775858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-30T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766123#M1775859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In stead of using custom fields like ZSPART or ZWERKS, Can you use standard fields SPART, VKBUR and WERKS in your authoirzation objects ZINVOICE. ZACCOUNT and ZSTOCK? Then update the roles with the new fields and restrict the value to 2000 for VKBUR and check if it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766123#M1775859</guid>
      <dc:creator>nishad_showkath</dc:creator>
      <dc:date>2013-09-30T07:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766124#M1775860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can use standard uthorization objects in your zreports only thinng is you need to call that authorization object by passing required vaules in zreports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can create a role with that particular zreport and assign the authorization object manually to that role and give required values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tabrayz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766124#M1775860</guid>
      <dc:creator>former_member209962</dc:creator>
      <dc:date>2013-09-30T07:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766125#M1775861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://answers.sap.com/people/tabrayz.abdul" id="jive-3954742679327152823097"&gt;Tabrayz Abdul&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I was asking the user who posted the question to use standard fields instead of custom one. i know that you can use standard feild in ZRreports.. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1826/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nishad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766125#M1775861</guid>
      <dc:creator>nishad_showkath</dc:creator>
      <dc:date>2013-09-30T07:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766126#M1775862</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;Yes you can use standard uthorization objects in your zreports only thinng is you need to call that authorization object by passing required vaules in zreports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can create a role with that particular zreport and assign the authorization object manually to that role and give required values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tabrayz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766126#M1775862</guid>
      <dc:creator>former_member209962</dc:creator>
      <dc:date>2013-09-30T07:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766127#M1775863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my mistake i guess i applied to wrong post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tabrayz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766127#M1775863</guid>
      <dc:creator>former_member209962</dc:creator>
      <dc:date>2013-09-30T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766128#M1775864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Check if SU24 is maintained for Sales Office. Also check with ABAP team, as to why auth.is not being checked in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Nishabd, said, use standard fields , instead of custom ones. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Auth. checks will be finally performed on the fields, for your reports. So, ensure to keep them checked in Su24.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 09:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766128#M1775864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-30T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766129#M1775865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;There is no overall authorization concept existing in the organization now.&lt;/SPAN&gt;" - was there ever? And I wonder if your approach is going to add to the mess in your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see three options here (some of it will involve removing what you have done)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Stick to SAP Standard: Look TOBJ table (or the SUIM reports) and check what authorisation checks actually exist for standard fields VKBUR; SPART; VKBUR; BUKRS; WERKS instead of your Z version. Keeps the objects standard and makes sense. Depends on purpose of report, etc&lt;/LI&gt;&lt;LI&gt;Use a mixed version - keep your ZINVOICE, ZACCOUNT and ZSTOCK but map the SAP standard fields to them instead of your Z fields. You will need to fix the auth object definitions and then check your ABAP code to clean the authority check up.&lt;/LI&gt;&lt;LI&gt;Stick to what you are doing.. and improvement: &lt;UL&gt;&lt;LI&gt;If you need to separate data for the fields &lt;SPAN style="font-size: 10pt;"&gt;ZVKBUR, &lt;/SPAN&gt;ZSPART, ZVKBUR, ZBUKRS, ZWERKS so you can build imparting/derived roles you can look at promoting these auth fields to org fields via PFCG_ORGFIELD_CREATE program&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your actual question - why isn't my authority check working - your last comment &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;"5) Checked in my custom program with 'Authority check' for sales office with '2000'. But it is running for all sales office." i&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;What is your ABAP syntax for these authority check?&lt;/LI&gt;&lt;LI&gt;Also, have you run ST01 Auth Trace to see what is passing/failing - if you are not getting an RC=0 what Return Code are you getting?&lt;/LI&gt;&lt;LI&gt;Have you passed the actual input field selection or data/etc into the authority check?&lt;/LI&gt;&lt;LI&gt;Finally, have you debugged your code?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;There are many levels of authorization to be achieved. First for the TCODE and then for the individual selections in the list box item. (Invoice, Stock and Accounts- All in the same tcode ). Then for the individual fields in the report. How to achieve this?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;This statement also comes back to your program logic - how have you managed this? On execute your cover S_TCODE but when you execute the report you need to handle each scenario and pass the selection values for the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Finally - what did you actually assign the test user? You built a role in PFCG with this access - did that user just get that access and nothing else?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Colleen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 05:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766129#M1775865</guid>
      <dc:creator>Colleen</dc:creator>
      <dc:date>2013-10-02T05:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Authorization Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766130#M1775866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your only option IMO is (and should be) to fix the "standard security". Fix the process of building and assigning roles. What you're doing sounds like you're making the mess even worse. Although it might sound like your way may work (for a moment... very short moment), it will pile up the problems for people that will come to fix the company and "do the right way".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 21:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-authorization-objects/m-p/9766130#M1775866</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2013-10-11T21:31:32Z</dc:date>
    </item>
  </channel>
</rss>

