<?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 SALESORDER_CREATEFROMDAT2 BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/salesorder-createfromdat2-bapi/m-p/2485756#M560562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement to create a sales order of Order Type 'ZDR'.&lt;/P&gt;&lt;P&gt;I am using a std BAPI &lt;/P&gt;&lt;P&gt;Business Object      BUS2032&lt;/P&gt;&lt;P&gt;Method                   CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;Message Type         SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;Basic Type              SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to execute it i am getting the following error. &lt;/P&gt;&lt;P&gt;'Unpermitted combination of business object BUS2032 and sales doc. category L'&lt;/P&gt;&lt;P&gt;Kindly let me know wat could be the pblm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Meera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 09:31:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T09:31:32Z</dc:date>
    <item>
      <title>SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salesorder-createfromdat2-bapi/m-p/2485756#M560562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement to create a sales order of Order Type 'ZDR'.&lt;/P&gt;&lt;P&gt;I am using a std BAPI &lt;/P&gt;&lt;P&gt;Business Object      BUS2032&lt;/P&gt;&lt;P&gt;Method                   CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;Message Type         SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;Basic Type              SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to execute it i am getting the following error. &lt;/P&gt;&lt;P&gt;'Unpermitted combination of business object BUS2032 and sales doc. category L'&lt;/P&gt;&lt;P&gt;Kindly let me know wat could be the pblm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Meera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salesorder-createfromdat2-bapi/m-p/2485756#M560562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: SALESORDER_CREATEFROMDAT2 BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salesorder-createfromdat2-bapi/m-p/2485757#M560563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I think there is no need to clone BAPI BAPI_SALESORDER_CREATEFROMDAT2 because the BAPI does nothing else but calling SD_SALESDOCUMENT_CREATE which itself is a BAPI (even if it is not called like a BAPI).&lt;/P&gt;&lt;P&gt;If you look at the coding of BAPI_SALESORDER_CREATEFROMDAT2 you will see that creating sales order is indeed restricted to business object 'BUS2032'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you call SD_SALESDOCUMENT_CREATE directly you should be able to create most, if not all, types of sales orders because IMPORTING parameter BUSINESS_OBJECT is optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking under the hood SD_SALESDOCUMENT_CREATE you will see the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  if business_object ne space.&lt;/P&gt;&lt;P&gt;     perform i_check_type tables return&lt;/P&gt;&lt;P&gt;                          using sales_header_in&lt;/P&gt;&lt;P&gt;                                business_object.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not provide any business object (= space) then this check is not executed. Looking into the FORM routine you will find function module SD_OBJECT_TYPE_DETERMINE which determines the allowed business objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In conclusion, do not use the BAPI but use SD_SALESDOCUMENT_CREATE directly (RFC-enabled). That is how I create sales order in a currently ongoing project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1152642"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salesorder-createfromdat2-bapi/m-p/2485757#M560563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T09:37:29Z</dc:date>
    </item>
  </channel>
</rss>

