<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426127#M822787</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 can use the authorization object M_MATE_WRK for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT 'M_MATE_WRK'
  ID 'ACTVT' FIELD '03'   "Display
  ID 'WERKS' FIELD l_plant.

IF sy-subrc NE 0.
  "Not authorised
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the help for syntax AUTHORITY-CHECK OBJECT for more detail. You can also double click at the M_MATE_WRK for more detail on the authorization object. Basically all authorization object is maintained through SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Teddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 07:20:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T07:20:50Z</dc:date>
    <item>
      <title>Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426126#M822786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Functional Guy has created a roles in which he has specified plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example.&lt;/P&gt;&lt;P&gt;Role 1 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; plants 1000 to 1300.&lt;/P&gt;&lt;P&gt;Role 2 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; plants 1300 to 1500.&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requests the basis to assign Role1 to user A.&lt;/P&gt;&lt;P&gt;assign Role 2 to user B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have writen a Yreport which gives some details about the Plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user A runs the report it must allow him run it only for Plant 1000 to 1300.&lt;/P&gt;&lt;P&gt;similarly when user B runs the same report it must alow him run only for the plant 1300 to 1500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if User A trys to execute the report for other plants. it must through error message as not authorised to run for plant---.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tomorrow if the functional consultant wishes to provide authorisation for the user A to execute the report for plant 1000 to 1500. simply he will request the basis to assign the Role2 to user A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can understand my situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my Requierment is to have a authority check against the Plant provided in the Role of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Advise, its very urgent &lt;/P&gt;&lt;P&gt;Points Will be rewarded for all usefull replys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Chandrra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 05:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426126#M822786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426127#M822787</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 can use the authorization object M_MATE_WRK for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT 'M_MATE_WRK'
  ID 'ACTVT' FIELD '03'   "Display
  ID 'WERKS' FIELD l_plant.

IF sy-subrc NE 0.
  "Not authorised
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the help for syntax AUTHORITY-CHECK OBJECT for more detail. You can also double click at the M_MATE_WRK for more detail on the authorization object. Basically all authorization object is maintained through SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Teddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426127#M822787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426128#M822788</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;Pass the plant to the authorizatio created and if you have multiple plants then pass all to authority check if they are not within the set then remove it from the list and update the same into the existing itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization/m-p/3426128#M822788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T07:26:03Z</dc:date>
    </item>
  </channel>
</rss>

