<?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_PRODORDCONF_CREATE_HDR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723020#M315412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CREATE does order confirmations (similar to CO15) and goods movements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the locks created by 'BAPI_CREATE' and it does not have a lock on AFFW / AFWI which I am reading in 'BAPI_GETDETAIL'&lt;/P&gt;&lt;P&gt;Now I do a COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then while calling 'BAPI_GET_DETAIL' which reads from AFFW / AFWI depending on whether the goods movement were succesfully posted or not, &lt;/P&gt;&lt;P&gt;AFFW has not yet been updated with the material document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kapil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 05:25:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-14T05:25:34Z</dc:date>
    <item>
      <title>BAPI_PRODORDCONF_CREATE_HDR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723017#M315409</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;I am entering order confirmations as well as posting explicit goods movements using the 'BAPI_PRODORDCONF_CREATE_HDR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After commiting the transaction:&lt;/P&gt;&lt;P&gt;Calling 'BAPI_PRODORDCONF_GETDETAIL' passing Confirmation no &amp;amp; Confirmation count returned by the order confirmation BAPI to get the goods movement details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to get the Material Doc Number (MBLNR) if goods movements were posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am facing is that when I call the 'get detail' BAPI the goods movement posting &amp;amp; material document creation has not yet completed, hence i fail to get the doc number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a WAIT command just before calling the 'get detail' and it works. For obvious reasons i cannot use WAIT, anyone encountered similar problem please suggest a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Nov 2006 18:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723017#M315409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-11T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_HDR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723018#M315410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I also faced same kind of problem in a diff scenario in FICA module.&lt;/P&gt;&lt;P&gt;This happens bcoz at the same time two FMs are trying to update the same table.thats why the error comes.bcoz suppose one FM trigerred and locked all the database fields while updating and still that has not been released and the second FM is trying to update.so it fails.&lt;/P&gt;&lt;P&gt;Use WAIT upto 5 SEC and then call the second FM.its advisable in this scenario and no need to worry i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark points if helpful.&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723018#M315410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_HDR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723019#M315411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kapil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can propose one solution for this issue, apart from the WAIT option.&lt;/P&gt;&lt;P&gt;You need to create an UPDATE FUNCTION MODULE (select the radio button update function module in the attributes of the function module), say Z_PRODORDER_GETDETAIL. &lt;/P&gt;&lt;P&gt;In this new FM, you need to call  'BAPI_PRODORDCONF_GETDETAIL' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom function module has to be called as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'Z_PRODORDER_GETDETAIL' in update task&lt;/P&gt;&lt;P&gt;exporting......&lt;/P&gt;&lt;P&gt;importing.....&lt;/P&gt;&lt;P&gt;tables........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new function module you created would be executed in the same update process, as with the create BAPI..If the first bapi fails to create order, the new function module will return no details, otherwise, the details which you requires..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 12:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723019#M315411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_HDR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723020#M315412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CREATE does order confirmations (similar to CO15) and goods movements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the locks created by 'BAPI_CREATE' and it does not have a lock on AFFW / AFWI which I am reading in 'BAPI_GETDETAIL'&lt;/P&gt;&lt;P&gt;Now I do a COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then while calling 'BAPI_GET_DETAIL' which reads from AFFW / AFWI depending on whether the goods movement were succesfully posted or not, &lt;/P&gt;&lt;P&gt;AFFW has not yet been updated with the material document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kapil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-hdr/m-p/1723020#M315412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T05:25:34Z</dc:date>
    </item>
  </channel>
</rss>

