<?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: About BAPI_PRODORD_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884402#M1141424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Finally we use BDC to create production order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2013 03:50:04 GMT</pubDate>
    <dc:creator>pole_li</dc:creator>
    <dc:date>2013-03-01T03:50:04Z</dc:date>
    <item>
      <title>About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884394#M1141416</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;We use BAPI_PRODORD_CREATE to create production order, &lt;/P&gt;&lt;P&gt;and use BAPI_PRODORD_SCHEDULE to update SCHED_TYPE  of the order right after it's created.&lt;/P&gt;&lt;P&gt;the problem is : BAPI_PRODORD_CREATE submit the transaction to system but the order is not&lt;/P&gt;&lt;P&gt;created immediatly, the document of this BAPI said that "&lt;STRONG&gt;The method independently triggers the update to the database. After the method has been called you must not execute a COMMIT WORK again.",&lt;/STRONG&gt; so when we call BAPI_PRODORD_SCHEDULE , occasionally the order is not created yet,&lt;/P&gt;&lt;P&gt;now we use FMCT_WAIT_FOR_UPDATE between the two bapis(We think it's not a good solution because we don't know how long the system will need to create the order), Does anyone know if there is better solution? thanks very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 09:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884394#M1141416</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-12-12T09:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884395#M1141417</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 ca ncreate two programs for this:&lt;/P&gt;&lt;P&gt;In the First you can use BAPI :BAPI_PRODORD_CREATE &lt;/P&gt;&lt;P&gt;and  FMCT_WAIT_FOR_UPDATE  and the same program you can schedule a Job for another program &lt;/P&gt;&lt;P&gt;which will be using the BAPI to update the schedule type .&lt;/P&gt;&lt;P&gt;Just a suggestion &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 19:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884395#M1141417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T19:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884396#M1141418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Application server Time(SYUZEIT) right Before  calling BAPI_PRODORD_CREATE  and store this in some temp variable.&lt;/P&gt;&lt;P&gt;And Again Check the Application server time right After BAPI_PRODORD_CREATE or &lt;STRONG&gt;Commit Work&lt;/STRONG&gt;  with SYUZEIT and store in Temp2 variable ,Just evaluate the time difference between two variable and Give This Time Difference to FMCT_WAIT_FOR_UPDATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 19:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884396#M1141418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T19:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884397#M1141419</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;  Okay...Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   instead of calling the BAPI BAPI_PRODORD_CREATE ..call the function module COXT_BAPI_ORDER_CREATE directly...this is the FM used inside the BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Now to this function module COXT_BAPI_ORDER_CREATE...there is a parameter...IV_COMMIT...pass it as blank...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After the function module is executed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Give COMMIT WORK AND WAIT. This will wait for the database updates to be done..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Then call the second BAPI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 19:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884397#M1141419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884398#M1141420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But in our system(Ecc5.0), there are only two import parameters :IS_HEADER and I_ORDER_CATEGORY, No IV_COMMIT.&lt;/P&gt;&lt;P&gt;Maybe you have newer system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 01:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884398#M1141420</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-12-15T01:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884399#M1141421</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;oh..I am in ECC 6.0...looks like the parameter was added part of ECC 6.0..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok...another suggestion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a infinite loop...and check for the existence of the record in the table production order table AUFK/AFKO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the return table is not having any error / abort message....do the following..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT SINGLE * FROM AFKO&lt;/P&gt;&lt;P&gt;                WHERE AUFNR = 'Production order number'. " Which you got it from BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;     CONTINUE.&lt;/P&gt;&lt;P&gt;     WAIT UP TO 10 1 SECONDS.           " Wait for 1 second.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***We have to be careful about the infinite loop as if there is a update termination...Then this loop will never end..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Also check in your system..whether COXT_BAPI_ORDER_CREATE is doing commit work AND WAIT or just commit work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***If it is just commit work...Then inside the DO loop add a condition..that if it is more than 30 seconds then exit the loop...as there might be some problem in the updates..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 16:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884399#M1141421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884400#M1141422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your suggestion.&lt;/P&gt;&lt;P&gt;Maybe we have to use BDC finally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 08:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884400#M1141422</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-12-19T08:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884401#M1141423</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;Can you send me your code for my reference i also facing same issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 12:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884401#M1141423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-28T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_PRODORD_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884402#M1141424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Finally we use BDC to create production order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 03:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-prodord-create/m-p/4884402#M1141424</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2013-03-01T03:50:04Z</dc:date>
    </item>
  </channel>
</rss>

