<?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 for company code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368681#M1039532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhagya jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont knw whether we can use this in a BAPI or not but I used this code for the same requirement in a Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT RECORD_TAB.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'ZFI_BUKRS'&lt;/P&gt;&lt;P&gt;             ID 'BUKRS' FIELD RECORD_TAB-STRING+3(4).&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      DELETE RECORD_TAB.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 06:57:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T06:57:22Z</dc:date>
    <item>
      <title>Authorisation check for company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368679#M1039530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im new to badi concepts , can anyone explain me the steps to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users should be able to post documents in any company code but should not be able to view the balance sheet of other company code. To meet this requirement BAdI FAGL_AUTH_ADD_DATA_C will be implemented. The BAdI would check for the company code values allowed in Z authorisation object in the user profile. If the authorisation object permits the company code, user will be allowed to execute the report; otherwise an error message will be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368679#M1039530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation check for company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368680#M1039531</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 go to saptechnical.com...U can get clear idea abuot BADI..There step by step procedure is there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Prabu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368680#M1039531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation check for company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368681#M1039532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhagya jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont knw whether we can use this in a BAPI or not but I used this code for the same requirement in a Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT RECORD_TAB.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'ZFI_BUKRS'&lt;/P&gt;&lt;P&gt;             ID 'BUKRS' FIELD RECORD_TAB-STRING+3(4).&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      DELETE RECORD_TAB.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check-for-company-code/m-p/4368681#M1039532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:57:22Z</dc:date>
    </item>
  </channel>
</rss>

