<?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 Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426345#M1647166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi here is simple solution with similar situation .... I had request to reduce visibility of IT0008 salary for some users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created Z table with user names and maximum value permitted to see for this user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report I called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single value from pa0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if value &amp;gt;  permitted .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2012 11:05:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-16T11:05:24Z</dc:date>
    <item>
      <title>Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426336#M1647157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report is fetching the data related to all employees.Based on the user who runs the report,I want to restrict the data records which were fetching i.e fetch and display records which can be permissiable by that user only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me /guide me how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426336#M1647157</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2012-01-16T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426337#M1647158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'RH_STRU_AUTHORITY_CHECK'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426337#M1647158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T08:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426338#M1647159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Restrict as on what basis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426338#M1647159</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-16T08:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426339#M1647160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on infotypes may be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426339#M1647160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T08:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426340#M1647161</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;Certain User eg Project Manager can able to see all his reportees details,TL able to see only his team details.&lt;/P&gt;&lt;P&gt;Based on User running the report need to restrict the data records fetching and display.&lt;/P&gt;&lt;P&gt;If Manager running the report he has to get all teams data where as TL running the report he has to get his team data only.&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426340#M1647161</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2012-01-16T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426341#M1647162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i think first of all you need to get all the valid team members and search their data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426341#M1647162</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-16T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426342#M1647163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of authorization checks( not sure how easily its possible ), you can get the position or designation of an employee from the organizational structure and then filter the records accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the user who runs the report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also one sap id can be used by multiple users at one time. &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;, So please try to provide the employee id in the screen or some thing which could solve this. By this you can create a authority check if the the user executing the program hs authorization to see the employee details or ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426342#M1647163</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-01-16T08:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426343#M1647164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you want reporting employee by user name! then use HRWPC_PNP_MANAGED_EMPLOYEES FM to get reporting employees for a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and search SDN to get more info&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426343#M1647164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426344#M1647165</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;If you know the authorization object which you want to use then this can be achieved very easily. In your report, create an internal table with the fields of the auth object plus one additional field (auth). Fetch all the possible values of the auth object field from the tables into the internal table and loop that internal table and set the auth field of the internal table if user has authorization. Please check below code for more help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF lwa_vkorg,&lt;/P&gt;&lt;P&gt;        vkorg TYPE vkorg,&lt;/P&gt;&lt;P&gt;        vtweg TYPE vtweg,&lt;/P&gt;&lt;P&gt;        spart TYPE spart,&lt;/P&gt;&lt;P&gt;        auth TYPE xflag,&lt;/P&gt;&lt;P&gt;        END OF lwa_vkorg.&lt;/P&gt;&lt;P&gt;  DATA: li_vkorg LIKE TABLE OF lwa_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT vkorg vtweg spart FROM tvta INTO CORRESPONDING FIELDS OF TABLE li_vkorg. "find all sales orgs&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      REFRESH li_vkorg.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    LOOP AT li_vkorg INTO lwa_vkorg.&lt;/P&gt;&lt;P&gt;      AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'&lt;/P&gt;&lt;P&gt;             ID 'ACTVT' FIELD '03'&lt;/P&gt;&lt;P&gt;             ID 'VKORG' FIELD lwa_vkorg-vkorg&lt;/P&gt;&lt;P&gt;             ID 'VTWEG' FIELD lwa_vkorg-vtweg&lt;/P&gt;&lt;P&gt;             ID 'SPART' FIELD lwa_vkorg-spart.  "check for display auth&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        lwa_vkorg-auth = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY li_vkorg FROM lwa_vkorg TRANSPORTING auth.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DELETE li_vkorg WHERE auth IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, in the table you have only those values for which user has authority. Now, you can modify/fetch your data accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Sethia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 10:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426344#M1647165</guid>
      <dc:creator>former_member150968</dc:creator>
      <dc:date>2012-01-16T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426345#M1647166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi here is simple solution with similar situation .... I had request to reduce visibility of IT0008 salary for some users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created Z table with user names and maximum value permitted to see for this user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report I called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single value from pa0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if value &amp;gt;  permitted .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 11:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426345#M1647166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T11:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426346#M1647167</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;First of take the authorization object from your basis person and then use it in your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send syntax to use authorization object.&lt;/P&gt;&lt;P&gt;Use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tcode to check authorization in SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Syntax &lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT auth_obj [FOR USER user] &lt;/P&gt;&lt;P&gt;                        ID id1 {FIELD val1} | internal tab field&lt;/P&gt;&lt;P&gt;                       [ID id2 {FIELD val2} |internal tab field&lt;/P&gt;&lt;P&gt;                        ... &lt;/P&gt;&lt;P&gt;                       [ID id10 {FIELD val10} |internal tab field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kamal_kishore_sah on Jan 16, 2012 12:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 11:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426346#M1647167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T11:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426347#M1647168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As HR is authority managed, use &lt;/P&gt;&lt;P&gt;- one of their logical database like PNP or PNPCE&lt;/P&gt;&lt;P&gt;- or one of their FM to read data like HR_READ_INFOTYPE&lt;/P&gt;&lt;P&gt;- or one of their FM to check authority like HR_CHECK_AUTHORITY_INFTY or HR_CHECK_AUTHORITY_PERNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Read some documentation like [Authorizations for Human Resources|http://help.sap.com/erp2005_ehp_03/helpdata/en/97/27973b3ea3eb0fe10000000a114084/frameset.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 15:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/8426347#M1647168</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-01-16T15:03:32Z</dc:date>
    </item>
  </channel>
</rss>

