<?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: Plant Authorization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700940#M307305</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, it is possible with the authority check object. Here the basis/ function people will creat the Object and assigns the valid plants to it. we need to add the following code in the custome program to restict the execution to the specific plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         Authority check for Plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      AUTHORITY-CHECK OBJECT 'Z_WERKS'(Authority check object)&lt;/P&gt;&lt;P&gt;                   ID 'ACTVT' FIELD  '03'&lt;/P&gt;&lt;P&gt;                   ID 'WERKS' FIELD  P_WERKS(Selection parameter)&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        MESSAGE e000 WITH&lt;/P&gt;&lt;P&gt;                    'No authorization to Division:'(054)&lt;/P&gt;&lt;P&gt;                    i_spart.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2006 12:08:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-24T12:08:23Z</dc:date>
    <item>
      <title>Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700933#M307298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I was trying to restrict the user to get data for spefic plant . Is their a std approach to do this. I would like to have this restriction to custom programs/reports only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting a reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 10:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700933#M307298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T10:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700934#M307299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;   Any replies pls...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700934#M307299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T11:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700935#M307300</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;Can You elaborate Your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sksingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700935#M307300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T11:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700936#M307301</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;It depends upon the kind of data you want to display and if you are using a standard transaction or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700936#M307301</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2006-10-24T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700937#M307302</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;I am not quite sure but user restrictions are basically done through authorisation role checks...usually we write function modules which allows access to users or restrict them.&lt;/P&gt;&lt;P&gt;for instance we create a program..a report or program and create a transaction code for it...we assign the transaction codes to roles: users,clerks,admin officers and superusers using Badis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: we have transaction code t0001 for program ZTEST  and you want him to give authorisation ...then u check &lt;/P&gt;&lt;P&gt;if tcode = t0001&lt;/P&gt;&lt;P&gt;and (criterion eg:sy-uname NE 'PRIYA')&lt;/P&gt;&lt;P&gt;message 'No Authorisation' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one method which i have seen widely being implemeted..Although the whole example was vague i hope it gave you some basic idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 12:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700937#M307302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700938#M307303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   That purely depends on the Roles, You have restrict there itself. You can put the same condition in program also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 12:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700938#M307303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T12:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700939#M307304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to apply it only for custom programs/reports you must check first if and what authority-checks are implemented in the code (what objects, activities etc.). Once you get that information you can adjust your profiles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 12:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700939#M307304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700940#M307305</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, it is possible with the authority check object. Here the basis/ function people will creat the Object and assigns the valid plants to it. we need to add the following code in the custome program to restict the execution to the specific plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         Authority check for Plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      AUTHORITY-CHECK OBJECT 'Z_WERKS'(Authority check object)&lt;/P&gt;&lt;P&gt;                   ID 'ACTVT' FIELD  '03'&lt;/P&gt;&lt;P&gt;                   ID 'WERKS' FIELD  P_WERKS(Selection parameter)&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        MESSAGE e000 WITH&lt;/P&gt;&lt;P&gt;                    'No authorization to Division:'(054)&lt;/P&gt;&lt;P&gt;                    i_spart.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 12:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700940#M307305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Plant Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700941#M307306</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;Create an authorization object for plant and assign allowed users to this object.&lt;/P&gt;&lt;P&gt;and use following code to restrict your user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authority-check object 'ZPLANT'&lt;/P&gt;&lt;P&gt;         id 'WERKS' field '__________'&lt;/P&gt;&lt;P&gt;         id 'ACTIVITY' field '__________'.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message' No authorization to access plant details'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 12:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plant-authorization/m-p/1700941#M307306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T12:11:54Z</dc:date>
    </item>
  </channel>
</rss>

