<?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: Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770346#M1584479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why specifically do you think that BAPI_SALESDOCUMENT_COPY shouldn't be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meanwhile solved the problem by enhancing the copy control routine to also copy VKORG/VTWEG/SPART.&lt;/P&gt;&lt;P&gt;That way the debit memo is created as expected with BAPI_SALESDOCUMENT_COPY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 13:45:16 GMT</pubDate>
    <dc:creator>kai_stuke</dc:creator>
    <dc:date>2011-03-23T13:45:16Z</dc:date>
    <item>
      <title>Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770342#M1584475</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;I have to create a sales order with a reference to another order and have to change some fields in the new document.&lt;/P&gt;&lt;P&gt;According to SAP note 370988 the function BAPI_SALESDOCUMENT_COPY should allow to create a sales order with reference to another order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't work for me.&lt;/P&gt;&lt;P&gt;The BAPI doesn't return an error and creates a new order but that one is incomplete.&lt;/P&gt;&lt;P&gt;The reason seems to be that VKORG, VTWEG and SPART aren't provided and because of that the new order can't be created completely.&lt;/P&gt;&lt;P&gt;I can find no way to provide these fields to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone used the BAPI successfully or has found another way to achieve the desired result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;batch input: problematic because I have to change partners which are displayed in an table control which can't be controlled reliably from batch input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the second way described in the SAP note: high effort and high risk, as each data field has to be copied explicitly from one represantation to another.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 08:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770342#M1584475</guid>
      <dc:creator>kai_stuke</dc:creator>
      <dc:date>2011-03-23T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770343#M1584476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just read the data from VBAK and VBAP and use for example &lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CREATEFROMDAT1 to create new one ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 11:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770343#M1584476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770344#M1584477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That approach would effectively duplicate the implementation of BAPI_SALESDOCUMENT_COPY, wouldn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there is a lot more data involved than just VBAK/VBAP (e.g texts, partners, conditions, schedules) this is not only a lot more effort it's also harder to get it right, especially since there might also be copy control customization which has to be take into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless I tried it and it isn't working in my case.&lt;/P&gt;&lt;P&gt;I' have to create a debit memo request (BUS2096) out of a sales order (BUS2032), and BAPIs SALES_ORDER_CREATE* only handle BUS2032.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 11:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770344#M1584477</guid>
      <dc:creator>kai_stuke</dc:creator>
      <dc:date>2011-03-23T11:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770345#M1584478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is the right way to use BAPI_SALESDOCUMENT_COPY to create a debit memo with reference to the order. You can create BUS2096 object with RFC "SD_SALESDOCUMENT_CREATE".  For extracting the details of sales order, function module [SHP_GET_SD_DATA |http://wiki.sdn.sap.com/wiki/display/ABAP/SHP_GET_SD_DATA&lt;EM&gt;-&lt;/EM&gt;Function&lt;EM&gt;module&lt;/EM&gt;for&lt;EM&gt;Extracting&lt;/EM&gt;Sales&lt;EM&gt;order&lt;/EM&gt;Details] will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 12:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770345#M1584478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770346#M1584479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why specifically do you think that BAPI_SALESDOCUMENT_COPY shouldn't be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meanwhile solved the problem by enhancing the copy control routine to also copy VKORG/VTWEG/SPART.&lt;/P&gt;&lt;P&gt;That way the debit memo is created as expected with BAPI_SALESDOCUMENT_COPY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 13:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-sales-order-with-reference-bapi-salesdocument-copy/m-p/7770346#M1584479</guid>
      <dc:creator>kai_stuke</dc:creator>
      <dc:date>2011-03-23T13:45:16Z</dc:date>
    </item>
  </channel>
</rss>

