<?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_SALESORDER_CREATE - How do I create with a reference? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113935#M1362761</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 create read the old contract/sales order and recreate using BAPI_SALESORDER_CREATEFROMDAT2. Another options is that using BAPI_SALESORDER_COPY to copy the old sales order and then change the reference using BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use BAPI_SALESORDER_CREATEFROMDAT2. If you want create with reference, please take care below fields as well as the corresponding flag fields.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header level:&lt;/P&gt;&lt;P&gt;BAPISDHD1-REF_DOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item level:&lt;/P&gt;&lt;P&gt;BAPIITEMIN-REF_DOC &lt;/P&gt;&lt;P&gt;BAPIITEMIN-REF_DOC_IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[www.sapgeek.net]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andy Zhao on Sep 16, 2009 4:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2009 01:57:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-16T01:57:41Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATE - How do I create with a reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113932#M1362758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out if I can use the standard BAPI to create a SO with a reference to a Contract. I don't see any mention of this in the documentation and wanted to know if anyone uses this BAPI this way or if there is another method to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario we are trying to implement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old open contracts and sales orders that need to be re-created.&lt;/P&gt;&lt;P&gt;Copy old contract to new contract using the contract BAPI.&lt;/P&gt;&lt;P&gt;Copy the old open sales orders to new ones with reference to the new contract.&lt;/P&gt;&lt;P&gt;Close the old contracts/SOs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113932#M1362758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATE - How do I create with a reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113933#M1362759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Checkout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCUMENT_COPY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113933#M1362759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T19:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATE - How do I create with a reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113934#M1362760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatly this would copy the existing reference to the old contract instead of linking to the new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 17:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113934#M1362760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATE - How do I create with a reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113935#M1362761</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 create read the old contract/sales order and recreate using BAPI_SALESORDER_CREATEFROMDAT2. Another options is that using BAPI_SALESORDER_COPY to copy the old sales order and then change the reference using BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use BAPI_SALESORDER_CREATEFROMDAT2. If you want create with reference, please take care below fields as well as the corresponding flag fields.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header level:&lt;/P&gt;&lt;P&gt;BAPISDHD1-REF_DOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item level:&lt;/P&gt;&lt;P&gt;BAPIITEMIN-REF_DOC &lt;/P&gt;&lt;P&gt;BAPIITEMIN-REF_DOC_IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[www.sapgeek.net]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andy Zhao on Sep 16, 2009 4:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 01:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-create-how-do-i-create-with-a-reference/m-p/6113935#M1362761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T01:57:41Z</dc:date>
    </item>
  </channel>
</rss>

