<?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_CHANGE performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742297#M1581879</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 can try following solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling BAPI used &lt;STRONG&gt;SET UPDATE TASK LOCAL&lt;/STRONG&gt; statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SET UPDATE TASK LOCAL.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = &amp;lt;lf_data&amp;gt;-vbeln
order_header_in = v_bapisdh1
order_header_inx = v_bapisdh1x
TABLES
return = it_bapiret2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your trace showing the database taking longer time, So you have to check the &lt;STRONG&gt;Notes&lt;/STRONG&gt; or &lt;STRONG&gt;write SAP&lt;/STRONG&gt; for same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2011 12:40:37 GMT</pubDate>
    <dc:creator>ravi_lanjewar</dc:creator>
    <dc:date>2011-03-25T12:40:37Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742296#M1581878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I am using BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT  to remove delivery block from an Order. &lt;/P&gt;&lt;P&gt;Not sure why it is taking some time to do the task. When I test the BAPI for a single Order in SE37, runtime analysis shows 71.8% for Database. Even if i use FM SD_SALESDOCUMENT_CHANGE with same data the runtime analysis shows 76.9% for Database.&lt;/P&gt;&lt;P&gt;Can any one please advice .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          v_bapisdh1-dlv_block = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          v_bapisdh1x-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;          v_bapisdh1x-dlv_block  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              salesdocument    = &amp;lt;lf_data&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;              order_header_in  = v_bapisdh1&lt;/P&gt;&lt;P&gt;              order_header_inx = v_bapisdh1x&lt;/P&gt;&lt;P&gt;            TABLES&lt;/P&gt;&lt;P&gt;              return           = it_bapiret2.&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;Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 08:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742296#M1581878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T08:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742297#M1581879</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 can try following solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling BAPI used &lt;STRONG&gt;SET UPDATE TASK LOCAL&lt;/STRONG&gt; statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SET UPDATE TASK LOCAL.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = &amp;lt;lf_data&amp;gt;-vbeln
order_header_in = v_bapisdh1
order_header_inx = v_bapisdh1x
TABLES
return = it_bapiret2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your trace showing the database taking longer time, So you have to check the &lt;STRONG&gt;Notes&lt;/STRONG&gt; or &lt;STRONG&gt;write SAP&lt;/STRONG&gt; for same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 12:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742297#M1581879</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2011-03-25T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742298#M1581880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;This helped to some extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 19:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-performance/m-p/7742298#M1581880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-28T19:17:16Z</dc:date>
    </item>
  </channel>
</rss>

