<?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 Does BAPI_INTERNALORDER_CREATE require a company code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/does-bapi-internalorder-create-require-a-company-code/m-p/623244#M26030</link>
    <description>&lt;P&gt;The company code is not a required field in transaction KOT2 for the order type we use; it's just an input field. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109179-kot2-comp-code-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Through the GUI, transaction KO01 &amp;amp; KO02, I can create and maintain orders that have no company code. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109178-ko03-ztst-without-company-code.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However, when I try to create an order of the same type through the BAPI, I get the error F5 165 - Company code &lt;I&gt;(blank)&lt;/I&gt; is not defined.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109180-f5-165-company-code-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;As a workaround, I'm thinking of creating the order with a dummy company code, then use a call transaction to KO02 to remove the dummy company code. But, of course, I'd like to get it right the first time via the BAPI, if possible.&lt;/P&gt;
  &lt;P&gt;The note 2525423 describes the reverse problem: how to make company code available (by setting it to an Input field). Other SCN posts about the BAPI always seem to include COMP_CODE.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 09:52:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-02-13T09:52:11Z</dc:date>
    <item>
      <title>Does BAPI_INTERNALORDER_CREATE require a company code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/does-bapi-internalorder-create-require-a-company-code/m-p/623244#M26030</link>
      <description>&lt;P&gt;The company code is not a required field in transaction KOT2 for the order type we use; it's just an input field. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109179-kot2-comp-code-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Through the GUI, transaction KO01 &amp;amp; KO02, I can create and maintain orders that have no company code. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109178-ko03-ztst-without-company-code.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However, when I try to create an order of the same type through the BAPI, I get the error F5 165 - Company code &lt;I&gt;(blank)&lt;/I&gt; is not defined.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/109180-f5-165-company-code-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;As a workaround, I'm thinking of creating the order with a dummy company code, then use a call transaction to KO02 to remove the dummy company code. But, of course, I'd like to get it right the first time via the BAPI, if possible.&lt;/P&gt;
  &lt;P&gt;The note 2525423 describes the reverse problem: how to make company code available (by setting it to an Input field). Other SCN posts about the BAPI always seem to include COMP_CODE.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/does-bapi-internalorder-create-require-a-company-code/m-p/623244#M26030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-13T09:52:11Z</dc:date>
    </item>
  </channel>
</rss>

