<?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>Question Re: BAPI_PRODORD_CREATE_FROM_PLORD commit issues. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/bapi-prodord-create-from-plord-commit-issues/qaa-p/12538794#M4700690</link>
    <description>&lt;P&gt;Hello Tushant,&lt;BR /&gt;&lt;BR /&gt;This happens sometimes.. Somethings can i can suggest is:&lt;BR /&gt;If possible first run the loop to first create the Orders, Commit &amp;amp; store the Order numbers.. Next run a loop again on the Order numbers and update the date and Commit..&lt;BR /&gt;You may also check this insightful Blog below:&lt;BR /&gt;&lt;A href="https://blogs.sap.com/2013/01/24/commit-work-and-wait-does-not-work-as-expected-or-why-to-use-wait-up-to-xx-seconds/" target="test_blank"&gt;https://blogs.sap.com/2013/01/24/commit-work-and-wait-does-not-work-as-expected-or-why-to-use-wait-up-to-xx-seconds/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vijay&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 09:24:31 GMT</pubDate>
    <dc:creator>vijay_hariharan</dc:creator>
    <dc:date>2021-11-25T09:24:31Z</dc:date>
    <item>
      <title>BAPI_PRODORD_CREATE_FROM_PLORD commit issues.</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-prodord-create-from-plord-commit-issues/qaq-p/12538793</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I am working on an Idoc which calls my function module, when we receive sales order from Non-SAP system, we check if there is any production order exist for it, if not then we check for planned orders, here planned orders can be multiple.&lt;BR /&gt;So we are looping on planned orders and using BAPI BAPI_PRODORD_CREATE_FROM_PLORD to convert the planned orders to Production orders.&lt;BR /&gt;&lt;BR /&gt;Now after converting, we are changing the start and end date of the production order, However when the BAPI_PRODORD_CHANGE is in the loop sometimes only 1 Production order date is getting updated and not for the second one.&lt;/P&gt;
  &lt;P&gt;I have added the "commit work and wait" statement after every BAPI call but this issue still occurs sometimes.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me on this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 08:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-prodord-create-from-plord-commit-issues/qaq-p/12538793</guid>
      <dc:creator>former_member1345476</dc:creator>
      <dc:date>2021-11-25T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORD_CREATE_FROM_PLORD commit issues.</title>
      <link>https://community.sap.com/t5/technology-q-a/bapi-prodord-create-from-plord-commit-issues/qaa-p/12538794#M4700690</link>
      <description>&lt;P&gt;Hello Tushant,&lt;BR /&gt;&lt;BR /&gt;This happens sometimes.. Somethings can i can suggest is:&lt;BR /&gt;If possible first run the loop to first create the Orders, Commit &amp;amp; store the Order numbers.. Next run a loop again on the Order numbers and update the date and Commit..&lt;BR /&gt;You may also check this insightful Blog below:&lt;BR /&gt;&lt;A href="https://blogs.sap.com/2013/01/24/commit-work-and-wait-does-not-work-as-expected-or-why-to-use-wait-up-to-xx-seconds/" target="test_blank"&gt;https://blogs.sap.com/2013/01/24/commit-work-and-wait-does-not-work-as-expected-or-why-to-use-wait-up-to-xx-seconds/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vijay&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 09:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bapi-prodord-create-from-plord-commit-issues/qaa-p/12538794#M4700690</guid>
      <dc:creator>vijay_hariharan</dc:creator>
      <dc:date>2021-11-25T09:24:31Z</dc:date>
    </item>
  </channel>
</rss>

