<?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: How to check authorization for company code for a selet-option variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068851#M727314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to take all the valid compnay codes into one internal table than call the AUTHORITY CHECK for every company code in that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT BUKRS
INTO IT_BUKRS
FROM T001
WHERE BUKRS IN S_BUKRS
LOOP AT IT_BUKRS.
  AUTHORITY-CHECK 'F_BUK' " &amp;lt;&amp;lt;  I am not sure about the object
   FIELD IT_BUKRS-BUKRS       
   ACTIVITY '03'  " &amp;lt;&amp;lt; 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 03:14:48 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-26T03:14:48Z</dc:date>
    <item>
      <title>How to check authorization for company code for a selet-option variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068850#M727313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to check authorization for company code for a selet-option variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 03:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068850#M727313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T03:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check authorization for company code for a selet-option variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068851#M727314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to take all the valid compnay codes into one internal table than call the AUTHORITY CHECK for every company code in that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT BUKRS
INTO IT_BUKRS
FROM T001
WHERE BUKRS IN S_BUKRS
LOOP AT IT_BUKRS.
  AUTHORITY-CHECK 'F_BUK' " &amp;lt;&amp;lt;  I am not sure about the object
   FIELD IT_BUKRS-BUKRS       
   ACTIVITY '03'  " &amp;lt;&amp;lt; 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 03:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068851#M727314</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-26T03:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check authorization for company code for a selet-option variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068852#M727315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use authorization object &amp;lt;b&amp;gt;F_BKPF_BUK&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetch all company codes into internal from select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs&lt;/P&gt;&lt;P&gt;INTO it_bukrs&lt;/P&gt;&lt;P&gt;FROM t001&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop through ur internal table and check for authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_bukrs.&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'&lt;/P&gt;&lt;P&gt;   ID 'BUKRS' FIELD it_bukrs-bukrs   " passing internal table value&lt;/P&gt;&lt;P&gt;   ID 'ACTVT' FIELD '03'.  " u can pass required value&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have considered &amp;lt;b&amp;gt;F_BKPF_BUK Accounting Document&amp;lt;/b&amp;gt;: &amp;lt;b&amp;gt;Authorization for Company Codes&amp;lt;/b&amp;gt;. This is an object in class  Financial Accounting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To refer other objects use TCODES SU20 for fields and SU21 for objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful,&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 03:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-authorization-for-company-code-for-a-selet-option-variable/m-p/3068852#M727315</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-11-26T03:34:42Z</dc:date>
    </item>
  </channel>
</rss>

