<?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: Authorisation check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659936#M881560</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;Authorization object is a way to verify if the user have permitted activities to the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a code simple using the Pattern button, like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT '/ECRS/WL'
         ID '/ECRS/RPC' FIELD '__________'
         ID '/ECRS/POI' FIELD '__________'
         ID 'ACTVT' FIELD '__________'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 13:30:38 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2008-04-16T13:30:38Z</dc:date>
    <item>
      <title>Authorisation check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659935#M881559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can any one explain how authorisation check performs and how can we code and implement&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 13:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659935#M881559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659936#M881560</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;Authorization object is a way to verify if the user have permitted activities to the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a code simple using the Pattern button, like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT '/ECRS/WL'
         ID '/ECRS/RPC' FIELD '__________'
         ID '/ECRS/POI' FIELD '__________'
         ID 'ACTVT' FIELD '__________'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 13:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659936#M881560</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2008-04-16T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659937#M881561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The authorization check checks the authorization of  the user for the authorization Object and it returns the sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on the sy-subrc value you have to make the corresponding coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     AUTHORITY-CHECK OBJECT var_authobject&lt;/P&gt;&lt;P&gt;      ID 'TCD' FIELD 'VA01'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' 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 'You are not authorized to view this' type 'E'.&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;you can create your own authorization object using the transaction SU21&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 13:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659937#M881561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659938#M881562</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 create or see the all the authorization objects in transaction SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cna speicfy the fileds and as well as permitted activites for this authorization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see any of the standard objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;Enables you to restrict user access to sales activities within specified sales areas, sales groups, and sales offices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defined fields&lt;/P&gt;&lt;P&gt;The authorization object contains seven fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity - Determines which sales activity-related tasks a user may carry out in the specified sales areas, sales group, and sales office. Assign the activities as follows:&lt;/P&gt;&lt;P&gt; Task Activity &lt;/P&gt;&lt;P&gt; Create or generate 01 &lt;/P&gt;&lt;P&gt; Change 02 &lt;/P&gt;&lt;P&gt; Display 03 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribution channel - Specifies the distribution channel of the sales area.&lt;/P&gt;&lt;P&gt;Division - Specifies the division of the sales area.&lt;/P&gt;&lt;P&gt;Sales activity type - Specifies the types of sales activity which the user is allowed to process.&lt;/P&gt;&lt;P&gt;Sales group - Specifies the sales group to which the user belongs.&lt;/P&gt;&lt;P&gt;Sales office - Specifies the sales office to which the user is assigned.&lt;/P&gt;&lt;P&gt;Sales organization - Specifies the sales organization of the sales area.&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;A user who is defined as the responsible employee in the partner screen of a sales activity may process the sales activity even though he or she is not authorized with this authorization object. Conversely, if you do not define any authorization objects for users, only those users who are defined in sales activities as partners are authorized to process sales activities.&lt;/P&gt;&lt;P&gt;If a user does not enter some of the organizational data in a sales activity (for example, the sales office), then the corresponding field in the authorization for the user must be left blank.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;User A is assigned to both a sales group and a sales office and is allowed to carry out all sales activity-related tasks in one sales area only. User A has the following authorizations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity = *&lt;/P&gt;&lt;P&gt;Distribution channel = 01&lt;/P&gt;&lt;P&gt;Division = 01&lt;/P&gt;&lt;P&gt;Sales activity = *&lt;/P&gt;&lt;P&gt;Sales group = US1&lt;/P&gt;&lt;P&gt;Sales office = 1000&lt;/P&gt;&lt;P&gt;Sales organization = US01&lt;/P&gt;&lt;P&gt;User B is assigned to the same sales group and sales office and is allowed to display sales activities in all sales areas to which sales organization US01 is assigned. User B has the following authorizations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity = 03&lt;/P&gt;&lt;P&gt;Distribution channel = *&lt;/P&gt;&lt;P&gt;Division = *&lt;/P&gt;&lt;P&gt;Sales activity type = *&lt;/P&gt;&lt;P&gt;Sales group = US1&lt;/P&gt;&lt;P&gt;Sales office = 1000&lt;/P&gt;&lt;P&gt;Sales organization = US01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 13:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/3659938#M881562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T13:39:20Z</dc:date>
    </item>
  </channel>
</rss>

