<?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 Authorization object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337814#M1033249</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 have an authorization object that i need to implement in a specific reporting program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the selection screen there is a select option on company code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the authorization object to implement is to allow user to execute the programes for a specific country company code only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 12:53:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T12:53:34Z</dc:date>
    <item>
      <title>Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337814#M1033249</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 have an authorization object that i need to implement in a specific reporting program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the selection screen there is a select option on company code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the authorization object to implement is to allow user to execute the programes for a specific country company code only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 12:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337814#M1033249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337815#M1033250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM authority_check.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Authority&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'&lt;/P&gt;&lt;P&gt;    ID 'VKORG' FIELD p_vkorg&lt;/P&gt;&lt;P&gt;    ID 'VTWEG' FIELD p_vtweg&lt;/P&gt;&lt;P&gt;    ID 'SPART' FIELD p_spart&lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '03'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zs) WITH 'No Authorization'(021).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " authority_check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 12:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337815#M1033250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T12:59: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/4337816#M1033251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON so-bukrs.
  SELECT * INTO TABLE it_t001
    FROM t001
    WHERE bukrs IN so-bukrs.
  IF it_t001[] IS INITIAL.
    " Message no data exists
  ENDIF.
  LOOP AT it_t001 INTO t001.
    AUTHORITY-CHECK OBJECT 'S_IWB'
      ID 'COUNTRY' FIELD t001-land1
      ID 'ACTVT' FIELD '03'.
    IF sy-subrc NE 0.
      DELETE it_t001.
    ENDIF.
  ENDLOOP.
  IF it_t001[] IS INITIAL.
    " Message no data allowed
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 13:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337816#M1033251</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-19T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337817#M1033252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your example can we instead of doing a loop in the t001 table can we just put &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the authorization ID 'BUKRS' FIELD SO_BUKRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337817#M1033252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337818#M1033253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this may work well, the check will use the value of the work area (1st record) of the select-option. e.g. society XXX, the value looks like IEQXXX.... wont work. (imagine with Exclusion records...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i prefer to "solve" the select-option, by executing the selection and then filter the results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance (many societies ?) you may perform the check after checking that user has requested an execution and not pressed ENTER &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHECK sscrfields-ucomm EQ 'ONLI' OR sscrfields-ucomm EQ 'PRIN'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/4337818#M1033253</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-21T11:53:00Z</dc:date>
    </item>
  </channel>
</rss>

