<?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: authority-check for particular comp code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293149#M500434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'&lt;/P&gt;&lt;P&gt;ID 'BUKRS' FIELD 'CO01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '03'.&lt;/P&gt;&lt;P&gt;Have you checked the return code? Have you defined a test user which definitely doesn't have authority?&lt;/P&gt;&lt;P&gt;This checks that the user has authorisation to see CO01 data. If you do not want them to see data for other comany codes you need to do the check against all other company codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 10:34:20 GMT</pubDate>
    <dc:creator>alison_lloyd</dc:creator>
    <dc:date>2007-05-14T10:34:20Z</dc:date>
    <item>
      <title>authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293147#M500432</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;when i'm using standard Authority Object F_BKPF_BUK  for a particular standard code say 'CO01'. but it is working for all company code, but i want work for only one company code say 'CO01' ONLY.i'm using in report program (zreport prog)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I written code as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'&lt;/P&gt;&lt;P&gt;    ID 'BUKRS' FIELD 'BE10'&lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can u advice on this .&lt;/P&gt;&lt;P&gt;Many Thanks in Advance for u r Answer&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293147#M500432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293148#M500433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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; Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293148#M500433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293149#M500434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'&lt;/P&gt;&lt;P&gt;ID 'BUKRS' FIELD 'CO01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '03'.&lt;/P&gt;&lt;P&gt;Have you checked the return code? Have you defined a test user which definitely doesn't have authority?&lt;/P&gt;&lt;P&gt;This checks that the user has authorisation to see CO01 data. If you do not want them to see data for other comany codes you need to do the check against all other company codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293149#M500434</guid>
      <dc:creator>alison_lloyd</dc:creator>
      <dc:date>2007-05-14T10:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293150#M500435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narender&lt;/P&gt;&lt;P&gt;   Have a look on the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293150#M500435</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-14T10:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293151#M500436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Can u please tell me other way to use the authority check object for one particular company code, please help me on this . i'm waiting for u r answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for sending answer, i tried u r answer(created one object) but it is show as sy-subrc = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293151#M500436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293152#M500437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at sample code :&lt;/P&gt;&lt;P&gt; AUTHORITY-CHECK OBJECT 'T_FTI_LDB'&lt;/P&gt;&lt;P&gt;               ID 'BUKRS'    FIELD lt_bukrs&lt;/P&gt;&lt;P&gt;               ID 'VAL_AREA' FIELD space&lt;/P&gt;&lt;P&gt;               ID 'VVSART'   FIELD lt_vvsart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293152#M500437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293153#M500438</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 want for a particular company code, table name is BKPF , if u have an any standard Authority Object please send me (only one company code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks in Adviance&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293153#M500438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293154#M500439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-SUBRC = 12  implies that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specified object not maintained in the user&lt;/P&gt;&lt;P&gt;master record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you added the authority object in your profile, chk in SU01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AUTHORITY-CHECK OBJECT 'XXXXX'
    ID 'BUKRS' FIELD 'CO01'
    ID 'ACTVT' FIELD '03'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293154#M500439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293155#M500440</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;Can u please help me for this , is there any standard authority object for using the company code, that it is used for only one company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me on this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293155#M500440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check for particular comp code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293156#M500441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NR , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u are missing one more point ---&amp;gt; that is If user have the authorization then it will allow to run the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u have to check  the profile of that user in PFCG, and remove * from this BUKRS values, then check it will work.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-for-particular-comp-code/m-p/2293156#M500441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T12:05:26Z</dc:date>
    </item>
  </channel>
</rss>

