<?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/1720153#M314397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this sample logic for Plant validations .&lt;/P&gt;&lt;P&gt;Here S_werks if selection params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  select werks&lt;/P&gt;&lt;P&gt;    into table i_auth_werks&lt;/P&gt;&lt;P&gt;    from t001w&lt;/P&gt;&lt;P&gt;    where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_auth_werks.&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;  endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 04:31:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-03T04:31:36Z</dc:date>
    <item>
      <title>Authorization Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/1720152#M314396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In V/LD transaction I have a requirement to allow users to view certain sales districts.&lt;/P&gt;&lt;P&gt;I have created an authorization object and linked it to the user profile and &lt;/P&gt;&lt;P&gt;assigned the sales district values the user is allowed in the profile.&lt;/P&gt;&lt;P&gt;Now how will I know what sales districts are linked to the user profile.&lt;/P&gt;&lt;P&gt;When I call authorization object from my program. How will I validate&lt;/P&gt;&lt;P&gt;against the values assigned to the user profile?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 14:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/1720152#M314396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T14:52: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/1720153#M314397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this sample logic for Plant validations .&lt;/P&gt;&lt;P&gt;Here S_werks if selection params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  select werks&lt;/P&gt;&lt;P&gt;    into table i_auth_werks&lt;/P&gt;&lt;P&gt;    from t001w&lt;/P&gt;&lt;P&gt;    where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_auth_werks.&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;  endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 04:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/1720153#M314397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T04:31:36Z</dc:date>
    </item>
  </channel>
</rss>

