<?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_SIMULATE Performance Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797813#M342764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you can expect better solutions if you can let us know the exact requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;After this i have to use BAPI_SALESORDER_SIMULATE to simulate the creation of a sale order to check whether the material is correct or not.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do u mean by correct or not??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide a clear requirement, i guess friends here can give better advises and alternatives if any...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2006 13:37:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-07T13:37:45Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_SIMULATE Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797811#M342762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to select all Materials from MARA (as per certain condition), may be this can be some 50000 materials.....!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this i have to use BAPI_SALESORDER_SIMULATE to simulate the creation of a sale order to check whether the material is correct or not. This BAPI stops when it finds an incorrect material. I will check the material and delete from my internal table. After deleting this material, i will run the BAPI for the rest of materials. I will do this till the BAPI returns a success message. This will help me give the success Materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program of min eis running for 8 hours, when i am giving all the materials to select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a performance check, and it is telling that the most time taken one is MARA_ARRAY_READ function module and this function module is calling the subroutine "PERFORM SPERREN_MARA USING SY-SUBRC". If you see in the subroutine, the time consuming one is this function module "ENQUEUE_EMMARAS". This one is called for each material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if anything can be done to by pass this check...or to improve the performance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 08:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797811#M342762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797812#M342763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMHO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like you are using a sledge hammer to crack a walnut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not identify those specific items that constitute a correct material, and test for these. The BAPI may do it all, however, doing it all comes with a cost. You have found the cost in long run times, poor performance, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 11:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797812#M342763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T11:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_SIMULATE Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797813#M342764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you can expect better solutions if you can let us know the exact requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;After this i have to use BAPI_SALESORDER_SIMULATE to simulate the creation of a sale order to check whether the material is correct or not.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do u mean by correct or not??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide a clear requirement, i guess friends here can give better advises and alternatives if any...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 13:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-simulate-performance-problem/m-p/1797813#M342764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T13:37:45Z</dc:date>
    </item>
  </channel>
</rss>

