<?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: SD_SALESDOCUMENT_CREATE bad performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695443#M2017959</link>
    <description>&lt;P&gt;You could try to use BAPI_SALESORDER_SIMULATE.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 12:49:21 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2023-03-21T12:49:21Z</dc:date>
    <item>
      <title>SD_SALESDOCUMENT_CREATE bad performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695441#M2017957</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;We have an interface which SAP is the provider and we return the price of each material that supplied in the request.&lt;/P&gt;
  &lt;P&gt;The process execute FM SD_SALESDOCUMENT_CREATE which take too long apprx 7.5 seconds which is alot.&lt;/P&gt;
  &lt;P&gt;In the trace I can see that in this FM the SD_SALES_DOCU_MAINTAIN take 7.5.&lt;/P&gt;
  &lt;P&gt;All we need is to execute SD_SALESDOCUMENT_CREATE in test mode and return the price of material according to the terms of payment of each material.&lt;/P&gt;
  &lt;P&gt;Is there any option to improve the performance ?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695441#M2017957</guid>
      <dc:creator>gili81</dc:creator>
      <dc:date>2023-03-20T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: SD_SALESDOCUMENT_CREATE bad performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695442#M2017958</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;First of all, I would use BAPI_SALESORDER_CREATEFROMDAT2 instead of SD_SALESDOCUMENT_CREATE. The BAPI uses SD_SALESDOCUMENT_CREATE internally, so it won't help with the performance, but the BAPI is released for end customer usage whereas SD_SALESDOCUMENT_CREATE is not. Better stick to official interfaces.&lt;/P&gt;&lt;P&gt;Besides, I think what you are doing is the correct approach. Don't look for any shortcuts here, as there are none. You have to build a sales order fully in order to get the price. There are many different functions executed behind the scenes while creating a sales order like partner determination, scheduling, ATP, pricing etc. They all take time. I'd suggest to run a trace and check what the bottle neck is and try to optimize that. If you do that, online sales order processing in VA01 will be faster too. &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 07:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695442#M2017958</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-03-21T07:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: SD_SALESDOCUMENT_CREATE bad performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695443#M2017959</link>
      <description>&lt;P&gt;You could try to use BAPI_SALESORDER_SIMULATE.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-bad-performance/m-p/12695443#M2017959</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-03-21T12:49:21Z</dc:date>
    </item>
  </channel>
</rss>

