<?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 Authorisation object on plant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856649#M1135709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is:&lt;/P&gt;&lt;P&gt;The user of a particular plant should be able to get the dispatch details for that Plant only. &lt;/P&gt;&lt;P&gt;Use the Authorization object .&lt;/P&gt;&lt;P&gt;The filed WERKS is not used anywhere else in the list expect for select options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Nov 2008 12:25:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-22T12:25:41Z</dc:date>
    <item>
      <title>Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856649#M1135709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is:&lt;/P&gt;&lt;P&gt;The user of a particular plant should be able to get the dispatch details for that Plant only. &lt;/P&gt;&lt;P&gt;Use the Authorization object .&lt;/P&gt;&lt;P&gt;The filed WERKS is not used anywhere else in the list expect for select options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 12:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856649#M1135709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T12:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856650#M1135710</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;Authority Objects are always applied at the level of Table. List all the table from whom you are fetching the data and look into SU22, and go into your Functional Module like Purchase, Sales Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authority Objects Nomenclature is very simple.....every 2,3,4 &amp;amp; 5 alphabets of the Authority Object Name represents the Table with which they belongs and hence you can make sure that whether this Authority object is meaningful for you or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If WERKS is there in the Selection Screen, then Put the Relevant Authority Check in PAI of selection Screen only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 12:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856650#M1135710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T12:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856651#M1135711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First find the correct authorization object related to WERKS (There are some like  M_MATE_WRK, M_EINF_WRK, M_MRES_WWA and there may be some customer ones, ask functional or perform some where-used with the data element)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PAI of the screen or in an AT SELECTION-SCREEN AT block, perform a SELECT on the WERKS field, loading the WERKS selected by user from table T001W, then perform an AUTHORITY-CHECK on each record and remove the unauthorized WERKS from the table, issue a messages to indicate this to user.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AUTHORITY-CHECK OBJECT u2018M_EINF_WRKu2019
  ID u2018WERKSu2019 FIELD &amp;lt;werks&amp;gt;
  ID u2018ACTVTu2019 FIELD u201803u2032.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the following code use only the authorized WERKS or directly update the RANGE/SELECT-OPTIONS of WERKS with the authorized values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this thread &lt;SPAN __jive_macro_name="thread" id="936552"&gt;&lt;/SPAN&gt; where you will find a code sample to adapt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 12:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856651#M1135711</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-22T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856652#M1135712</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;*&amp;amp; Form sub_check_auth_iwerk *&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This form checks authorization for plant. * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_check_auth_iwerk .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--Constant for t code, no tcode hence value = '&lt;/STRONG&gt;' (all)&lt;/P&gt;&lt;P&gt;CONSTANTS: lc_tcd LIKE tstc-tcode VALUE '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Table for all the plants in selection screen. This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table will be used for authority check. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF li_plant OCCURS 0,&lt;/P&gt;&lt;P&gt;iwerk LIKE t001w-werks,&lt;/P&gt;&lt;P&gt;END OF li_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Select query to pick plant from table t001w&lt;/P&gt;&lt;P&gt;SELECT werks "Plant&lt;/P&gt;&lt;P&gt;INTO TABLE li_plant&lt;/P&gt;&lt;P&gt;FROM t001w&lt;/P&gt;&lt;P&gt;WHERE werks IN s_iwerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT li_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'I_SWERK'&lt;/P&gt;&lt;P&gt;ID 'TCD' FIELD lc_tcd&lt;/P&gt;&lt;P&gt;ID 'SWERK' FIELD li_plant-iwerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Check SUBRC&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*--No Authorization for Plant&lt;/P&gt;&lt;P&gt;MESSAGE e016 WITH li_plant-iwerk.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP. "loop at li_plant&lt;/P&gt;&lt;P&gt;ENDFORM. "sub_check_auth_iwerk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this link also:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/ef/4aba3b3bf00152e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/ef/4aba3b3bf00152e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link hope this would help you to give the idea about authorization object,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbacbe35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbacbe35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.guidancetech.com/people/holland/sap/abap/" target="test_blank"&gt;http://www.guidancetech.com/people/holland/sap/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 13:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856652#M1135712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856653#M1135713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankyou for all your inputs.&lt;/P&gt;&lt;P&gt;where can i mention that this  Plant is Authorised only for a particular user?should i create the authorisation object like that?in which t-code can i create it?&lt;/P&gt;&lt;P&gt;even in Neha's code-i didn't find any user validation -&lt;/P&gt;&lt;P&gt;please help me,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 15:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856653#M1135713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T15:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation object on plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856654#M1135714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using this statement :&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT object&lt;/P&gt;&lt;P&gt;                        ID name1 FIELD f1&lt;/P&gt;&lt;P&gt;                        ID name2 FIELD f2&lt;/P&gt;&lt;P&gt;                        ...&lt;/P&gt;&lt;P&gt;                        ID namen FIELD fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That statement checks the user authorization in user masters record for that particuler field and activity.&lt;/P&gt;&lt;P&gt;REPORT demo_authorithy_check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS pa_carr LIKE sflight-carrid.&lt;/P&gt;&lt;P&gt;DATA wa_flights LIKE demo_focc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_CARRID'&lt;/P&gt;&lt;P&gt;                  ID 'CARRID' FIELD pa_carr&lt;/P&gt;&lt;P&gt;                  ID 'ACTVT' FIELD '03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 4.&lt;/P&gt;&lt;P&gt;    MESSAGE e045(sabapdocu) WITH pa_carr.&lt;/P&gt;&lt;P&gt;  ELSEIF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e184(sabapdocu) WITH text-010.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  carrid connid fldate seatsmax seatsocc&lt;/P&gt;&lt;P&gt;    FROM  sflight&lt;/P&gt;&lt;P&gt;    INTO  CORRESPONDING FIELDS OF wa_flights&lt;/P&gt;&lt;P&gt;    WHERE carrid = pa_carr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: / wa_flights-carrid,&lt;/P&gt;&lt;P&gt;             wa_flights-connid,&lt;/P&gt;&lt;P&gt;             wa_flights-fldate,&lt;/P&gt;&lt;P&gt;             wa_flights-seatsmax,&lt;/P&gt;&lt;P&gt;             wa_flights-seatsocc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the system checks with the authorization object S_CARRID whether or not the user has a display authorization (03) for the airline entered on a selection screen. If this is not the case, or a different error occurs, &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;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 15:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-object-on-plant/m-p/4856654#M1135714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T15:43:44Z</dc:date>
    </item>
  </channel>
</rss>

