<?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: authorization check objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325664#M796649</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;If the value of SY-SUBRC is 12 means the user hasn't that authorization obejct (S_LOG_COM) in his profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U shoul check in which profile S_LOG_COM is used, and check if the user has that profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 08:36:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-23T08:36:41Z</dc:date>
    <item>
      <title>authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325662#M796647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;i am stuck up at this code.&lt;/P&gt;&lt;P&gt;IF PERMISSION_CHECK = TRUE.&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;(AUTHORITY-CHECK OBJECT 'S_LOG_COM'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;ID 'COMMAND'    FIELD COMMANDNAME&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;ID 'OPSYSTEM'   FIELD OPERATINGSYSTEM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;ID 'HOST'       FIELD HELP_TARGETSYSTEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and the sy-subrc value is becoming 12 after executing this code. can you please help me undersatnd this and where can i get information about this.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325662#M796647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325663#M796648</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;Check the below links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9000821b-666a-2910-499a-aaffde140a9a" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9000821b-666a-2910-499a-aaffde140a9a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/8d/3e4e19462a11d189000000e8323d3a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/8d/3e4e19462a11d189000000e8323d3a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link for Main HR Authorization Object for Security .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/human/main-hr-authorization-object-for-security.htm" target="test_blank"&gt;http://www.sap-img.com/human/main-hr-authorization-object-for-security.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325663#M796648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325664#M796649</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;If the value of SY-SUBRC is 12 means the user hasn't that authorization obejct (S_LOG_COM) in his profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U shoul check in which profile S_LOG_COM is used, and check if the user has that profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325664#M796649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325665#M796650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sakshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have u put all these in parenthesis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope COMMANDNAME , OPERATINGSYSTEM and HELP_TARGETSYSTEM are variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this should work:&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_LOG_COM'&lt;/P&gt;&lt;P&gt;ID 'COMMAND' FIELD COMMANDNAME&lt;/P&gt;&lt;P&gt;ID 'OPSYSTEM' FIELD OPERATINGSYSTEM&lt;/P&gt;&lt;P&gt;ID 'HOST' FIELD HELP_TARGETSYSTEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user has no authorization for the authorization object  then sy-subrc value will be 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325665#M796650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325666#M796651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sakshi Rai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are checking the authorization for the object S_LOG_COM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMAND, OPSYSTEM and HOST are the fields which contain the names of the  authorization fields defined in the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMANDNAME, OPERATINGSYSTEM and HELP_TARGETSYSTEM are the fields which contain the values for which the authorization is to be checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are geeting sy-subrc value 12 means: Specified object not maintained in the user master record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Information about AUTHORITY-CHECK:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general different users will be given different authorizations based on their role in the orgn.&lt;/P&gt;&lt;P&gt;We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.&lt;/P&gt;&lt;P&gt;USe SUIM and SU21 T codes for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means you have to allocate an authorization object in the definition of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program an AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT &amp;lt;authorization object&amp;gt;&lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 1&amp;gt; FIELD &amp;lt;field value 1&amp;gt;.&lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 2&amp;gt; FIELD &amp;lt;field value 2&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ID &amp;lt;authority-field n&amp;gt; FIELD &amp;lt;field value n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OBJECT parameter specifies the authorization object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID parameter specifies an authorization field (in the authorization object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FIELD parameter specifies a value for the authorization field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sasidhar Reddy Matli on Jan 23, 2008 2:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325666#M796651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: authorization check objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325667#M796652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general different users will be given different authorizations based on their role in the orgn.&lt;/P&gt;&lt;P&gt;We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.&lt;/P&gt;&lt;P&gt;USe SUIM and SU21 T codes for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means you have to allocate an authorization object in the definition of the transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program an AUTHORITY-CHECK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT &amp;lt;authorization object&amp;gt; &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 1&amp;gt; FIELD &amp;lt;field value 1&amp;gt;. &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 2&amp;gt; FIELD &amp;lt;field value 2&amp;gt;. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority-field n&amp;gt; FIELD &amp;lt;field value n&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OBJECT parameter specifies the authorization object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID parameter specifies an authorization field (in the authorization object). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FIELD parameter specifies a value for the authorization field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You program the authorization check using the ABAP statement AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TRVL_BKS' &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' &lt;/P&gt;&lt;P&gt;ID 'CUSTTYPE' FIELD 'B'. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'S_TRVL_BKS' is a auth. object&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This Authorization concept is somewhat linked with BASIS people.&lt;/P&gt;&lt;P&gt;As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.&lt;/P&gt;&lt;P&gt;Take the help of the basis Guy and create and use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-SUBRC values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4              User has no authorization in the SAP System for&lt;/P&gt;&lt;P&gt;               such an action. If necessary, change the user&lt;/P&gt;&lt;P&gt;               master record.&lt;/P&gt;&lt;P&gt;8              Too many parameters (fields, values). Maximum&lt;/P&gt;&lt;P&gt;               allowed is 10.&lt;/P&gt;&lt;P&gt;12             Specified object not maintained in the user&lt;/P&gt;&lt;P&gt;               master record.&lt;/P&gt;&lt;P&gt;16             No profile entered in the user master record.&lt;/P&gt;&lt;P&gt;24             The field names of the check call do not match&lt;/P&gt;&lt;P&gt;               those of an authorization. Either the&lt;/P&gt;&lt;P&gt;               authorization or the call is incorrect.&lt;/P&gt;&lt;P&gt;28             Incorrect structure for user master record.&lt;/P&gt;&lt;P&gt;32             Incorrect structure for user master record.&lt;/P&gt;&lt;P&gt;36             Incorrect structure for user master record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-objects/m-p/3325667#M796652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T08:42:21Z</dc:date>
    </item>
  </channel>
</rss>

