<?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 BAPI_CONTRACT_CHANGE performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091529#M1971914</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;Good day!&lt;/P&gt;
  &lt;P&gt;We are experiencing performance issue when using BAPI_CONTRACT_CHANGE to add new items in an existing contract (ME32K).&lt;/P&gt;
  &lt;P&gt;It approximately takes 30 seconds to add 1 record. Below are the structure of the BAPI that we are using.&lt;/P&gt;
  &lt;P&gt; CALL FUNCTION 'BAPI_CONTRACT_CHANGE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; PURCHASINGDOCUMENT = contract_number&lt;BR /&gt; TABLES&lt;BR /&gt; ITEM = lt_items&lt;BR /&gt; ITEMX = lt_itemsx&lt;BR /&gt; ITEM_COND_VALIDITY = lt_cond_validit&lt;BR /&gt; ITEM_COND_VALIDITYX = lt_cond_validityx &lt;BR /&gt; ITEM_CONDITION = lt_cond&lt;BR /&gt; ITEM_CONDITIONX = lt_condx&lt;BR /&gt; RETURN = lt_return.&lt;/P&gt;
  &lt;P&gt;I'm populating below fields under item table while all required fields for the other table&lt;/P&gt;
  &lt;P&gt;1. Vendor material number, material number, price date, target quantity = constant 99999, po unit, net price and material long&lt;/P&gt;
  &lt;P&gt;Tried to read below blog but the SAP note for the BAPI performance issue is for support pack 601602 and 603, while we have higher support pack already.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://blogs.sap.com/2015/05/11/performance-issue-during-purchasing-document-and-goods-movement-with-view-from-various-oss-notes/"&gt;https://blogs.sap.com/2015/05/11/performance-issue-during-purchasing-document-and-goods-movement-with-view-from-various-oss-notes/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;We also did below changes to see if performance issue can be resolve&lt;/P&gt;
  &lt;P&gt;1. Instead of calling the BAPI per contract item, we have populated the ITEM table with all the contract item and call BAPI once to create all the items. But this approach will stop creation of other contract item if one encounters an error.&lt;/P&gt;
  &lt;P&gt;Please let us know if you encounter the same and have fix it.&lt;/P&gt;
  &lt;P&gt;Many thanks!&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Marc.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 09:43:42 GMT</pubDate>
    <dc:creator>mdejesus</dc:creator>
    <dc:date>2019-11-22T09:43:42Z</dc:date>
    <item>
      <title>BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091529#M1971914</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;Good day!&lt;/P&gt;
  &lt;P&gt;We are experiencing performance issue when using BAPI_CONTRACT_CHANGE to add new items in an existing contract (ME32K).&lt;/P&gt;
  &lt;P&gt;It approximately takes 30 seconds to add 1 record. Below are the structure of the BAPI that we are using.&lt;/P&gt;
  &lt;P&gt; CALL FUNCTION 'BAPI_CONTRACT_CHANGE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; PURCHASINGDOCUMENT = contract_number&lt;BR /&gt; TABLES&lt;BR /&gt; ITEM = lt_items&lt;BR /&gt; ITEMX = lt_itemsx&lt;BR /&gt; ITEM_COND_VALIDITY = lt_cond_validit&lt;BR /&gt; ITEM_COND_VALIDITYX = lt_cond_validityx &lt;BR /&gt; ITEM_CONDITION = lt_cond&lt;BR /&gt; ITEM_CONDITIONX = lt_condx&lt;BR /&gt; RETURN = lt_return.&lt;/P&gt;
  &lt;P&gt;I'm populating below fields under item table while all required fields for the other table&lt;/P&gt;
  &lt;P&gt;1. Vendor material number, material number, price date, target quantity = constant 99999, po unit, net price and material long&lt;/P&gt;
  &lt;P&gt;Tried to read below blog but the SAP note for the BAPI performance issue is for support pack 601602 and 603, while we have higher support pack already.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://blogs.sap.com/2015/05/11/performance-issue-during-purchasing-document-and-goods-movement-with-view-from-various-oss-notes/"&gt;https://blogs.sap.com/2015/05/11/performance-issue-during-purchasing-document-and-goods-movement-with-view-from-various-oss-notes/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;We also did below changes to see if performance issue can be resolve&lt;/P&gt;
  &lt;P&gt;1. Instead of calling the BAPI per contract item, we have populated the ITEM table with all the contract item and call BAPI once to create all the items. But this approach will stop creation of other contract item if one encounters an error.&lt;/P&gt;
  &lt;P&gt;Please let us know if you encounter the same and have fix it.&lt;/P&gt;
  &lt;P&gt;Many thanks!&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Marc.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 09:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091529#M1971914</guid>
      <dc:creator>mdejesus</dc:creator>
      <dc:date>2019-11-22T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091530#M1971915</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/30451/marcanthonydejesus.html"&gt;Marc A De Jesus&lt;/A&gt; Did you get chance to take ST12 trace and check which call is taking more runtime?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 10:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091530#M1971915</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2019-11-22T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091531#M1971916</link>
      <description>&lt;P&gt; @&lt;A href="https://answers.sap.com/users/30451/marcanthonydejesus.html"&gt;Marc A De Jesus&lt;/A&gt; I remember we also had similar issue and then after debugging we found that it is because of some TEXT reading, please refer to below SAP notes which is &lt;/P&gt;&lt;P&gt;&lt;A href="https://launchpad.support.sap.com/#/notes/2277232" target="_blank"&gt;2277232 - BAPI: Text fetched in BAPI_SAG_GETDETAIL and BAPI_CONTRACT_GETDETAIL when unneeded&lt;/A&gt; valid from 605 to 618&lt;/P&gt;&lt;P&gt;&lt;A href="https://launchpad.support.sap.com/#/notes/2286454" target="_blank"&gt;2286454 - BAPI: Text reading slows processing of Outline Agreements&lt;/A&gt; valid from 600 to 618&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091531#M1971916</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2019-11-22T12:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091532#M1971917</link>
      <description>&lt;P&gt;We can use ANST transaction to identify relevant SAP Notes. Other that that, I'd recommend reaching out to SAP Support with this. If there is a correction but you're unable to find it it is an issue and perhaps the SAP Note needs to be updated. SAP Support can do this if someone opens an incident.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091532#M1971917</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2019-11-22T22:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091533#M1971918</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks for all your replies. We actually solved this issue by calling the BAPI per 3000 items (or depends on the parameter but not exceeding 9000) instead of calling it per item.&lt;/P&gt;&lt;P&gt;The bad side for this is that if one item fails, then the rest will not be posted. We just need to make sure that all items are free of error before calling the BAPI.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 12:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091533#M1971918</guid>
      <dc:creator>mdejesus</dc:creator>
      <dc:date>2020-10-14T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CHANGE performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091534#M1971919</link>
      <description>&lt;P&gt;Hi Marc&lt;/P&gt;&lt;P&gt;I know its very old post, but do you mind sharing the code for creating the new line items using BAPI_CONTRACT_CHANGE?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Surya&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 11:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-change-performance-issue/m-p/12091534#M1971919</guid>
      <dc:creator>former_member651865</dc:creator>
      <dc:date>2021-11-23T11:28:01Z</dc:date>
    </item>
  </channel>
</rss>

