<?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 Reg:Authorisation checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651363#M1094499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to perform authorisation checking on a particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: In my requirement, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field Plant is not entered on the selection-screen, the authorisation check on the field EKPO-WERKS should be performed after the PO-document was selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 09:12:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T09:12:43Z</dc:date>
    <item>
      <title>Reg:Authorisation checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651363#M1094499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to perform authorisation checking on a particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: In my requirement, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field Plant is not entered on the selection-screen, the authorisation check on the field EKPO-WERKS should be performed after the PO-document was selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651363#M1094499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Authorisation checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651364#M1094500</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;Following is the syntax for the Authority Check :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; AUTHORITY-CHECK OBJECT 'Authority Object Name'&lt;/P&gt;&lt;P&gt;                      ID 'TCD'   DUMMY&lt;/P&gt;&lt;P&gt;                      ID 'BUKRS' DUMMY&lt;/P&gt;&lt;P&gt;                      ID 'PRCTR' DUMMY&lt;/P&gt;&lt;P&gt;                      ID 'SPART' DUMMY&lt;/P&gt;&lt;P&gt;                      ID 'WERKS' FIELD GS_WERKS&lt;/P&gt;&lt;P&gt;                      ID 'VKORG' DUMMY&lt;/P&gt;&lt;P&gt;                      ID 'EKORG' DUMMY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;         MESSAGE 'YOU ARE NOT AUTHORIZED FOR GIVEN PLANT' TYPE 'E'.&lt;/P&gt;&lt;P&gt;         LEAVE TO CURRENT TRANSACTION.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this example is for the plant and rest other fields should be dummy as we don't want the other authority checks only plant is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will help u&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651364#M1094500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Authorisation checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651365#M1094501</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;U need to insert the Authorization-check statament in the selection-screen and in the select and then decide which control has to be arranged:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: S_EBELN FOR EKKO-EBELN.

PARAMETERS: P_WERKS TYPE T001W-WERKS.

AT SELECTION-SCREEN.

  IF NOT P_WERKS IS INITIAL.
    AUTHORITY-CHECK OBJECT &amp;lt;AUTH OBJECT&amp;gt;
        ID WERKS FIELD P_WERKS.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
----&amp;gt; error message
    ENDIF.      
  ENDIF.

START-OF-SELECTION.

  SELECT * FROM EKPO WHERE ....
    AUTHORITY-CHECK OBJECT &amp;lt;AUTH OBJECT&amp;gt;
        ID WERKS FIELD EKPO-WERKS.
    IF SY-SUBRC = 0.
      APPEND EKPO TO ITAB.
    ENDIF. 
  ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-authorisation-checking/m-p/4651365#M1094501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:22:50Z</dc:date>
    </item>
  </channel>
</rss>

