<?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: BAPI - SALES ORDER CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865776#M48958</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;You might make some tests with filling fields REFOBJTYPE, REFOBJKEY, REFDOCTYPE of structure ORDER_HEADER_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no success, you can go a longer way: &lt;/P&gt;&lt;P&gt;- Read reference document with BAPISDORDER_GETDETAILEDLIST.&lt;/P&gt;&lt;P&gt;- Delete SO-number and adjust other fields.&lt;/P&gt;&lt;P&gt;- Create new document with BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2005 14:52:03 GMT</pubDate>
    <dc:creator>christian_wohlfahrt</dc:creator>
    <dc:date>2005-02-23T14:52:03Z</dc:date>
    <item>
      <title>BAPI - SALES ORDER CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865774#M48956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are successfully completed Sales Order thru VB by using BAPI_SALESORDER_CREATEFROMDAT2. But we need some more information.  In standard SAP Menu we can create SO by using Create with reference button (by using quotation or another SO).  How can we involve the same step in VB by using the above said bapi.  Pl help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2005 05:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865774#M48956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-18T05:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - SALES ORDER CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865775#M48957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Balakumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you have registered on SDN just today. I Welcome you here and hope you will find the place very interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to your question, this forum is not exactly the right place for this question. I would like to take you to the &lt;A class="jive_macro jive_macro_community" href="https://community.sap.com/" __jive_macro_name="community" modifiedtitle="true" __default_attr="2015"&gt;&lt;/A&gt; at SDN where the chances of getting the correct answer for your question is high (almost 100%, in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mark Finnern&lt;/P&gt;&lt;P&gt;I moved the thread. Thanks for posting this answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2005 08:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865775#M48957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-18T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - SALES ORDER CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865776#M48958</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;You might make some tests with filling fields REFOBJTYPE, REFOBJKEY, REFDOCTYPE of structure ORDER_HEADER_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no success, you can go a longer way: &lt;/P&gt;&lt;P&gt;- Read reference document with BAPISDORDER_GETDETAILEDLIST.&lt;/P&gt;&lt;P&gt;- Delete SO-number and adjust other fields.&lt;/P&gt;&lt;P&gt;- Create new document with BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2005 14:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865776#M48958</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-23T14:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - SALES ORDER CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865777#M48959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call function module BAPI_SALESORDER_CREATEFROMDAT1 to create the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            order_header_in = x_so_header&lt;/P&gt;&lt;P&gt;            without_commit  = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            salesdocument   = vbeln&lt;/P&gt;&lt;P&gt;            return          = x_return&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            order_items_in  = i_so_item&lt;/P&gt;&lt;P&gt;            order_partners  = i_so_partners.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the message table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT x_return IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR IN PROCESSING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR return.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            wait   = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return = return.&lt;/P&gt;&lt;P&gt;  IF NOT return IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR IN POSTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SALES ORDER POSTED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 04:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865777#M48959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T04:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - SALES ORDER CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865778#M48960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use BAPI_SALESORDER_CREATEFROMDAT2 to create a document with the resference to another document. But there is one problem. If you are using standard transaction to create a new document with reference to other one some data will be copied from the previous deocument (depending on customizing). It's not possible to achive such effect using BAPI_SALESORDER_CREATEFROMDAT2. You must always take care about all input data. It means you must read the orginal document and preapre all BAPI structures for the new document using data of the orignal one. So there is a lot of work to do.&lt;/P&gt;&lt;P&gt;I hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Remek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2005 20:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-create/m-p/865778#M48960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-27T20:33:13Z</dc:date>
    </item>
  </channel>
</rss>

