<?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_PRODORDCONF_CREATE_TT confirmation issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086139#M731897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some advice about prod. ord. confirmation using bapi BAPI_PRODORDCONF_CREATE_TT in SAP R/3 7.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine 99'9% of time, but sometimes I get OK from the bapi but still remaining errors in CO1P, wich prevents furter operation in this order (I need to settle the order trough batch input in KO88 and cancel notification through BAPI_PRODORDCONF_CANCEL in case KO88 fails)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried all combinations of parameter POST_WRONG_ENTRIES with same results, BAPI always returns OK but confirmation still incomplete and order blocked for further processing until somebody resolves CO1P/COGI manually.&lt;/P&gt;&lt;P&gt;The error in CO1P usually has a "Backflush" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force a bapi failure in case something goes wrong in confirmation, avoiding CO1P/COGI? Or is it posible to catch an process such errors before KO88 or BAPI_PRODORDCONF_CANCEL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched forum and wiki and nobody seems to have trouble with this issue (maybe there's an OSS note wich solves it) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F. Blay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 09:15:27 GMT</pubDate>
    <dc:creator>francisco_blay2</dc:creator>
    <dc:date>2007-11-21T09:15:27Z</dc:date>
    <item>
      <title>BAPI_PRODORDCONF_CREATE_TT confirmation issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086139#M731897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some advice about prod. ord. confirmation using bapi BAPI_PRODORDCONF_CREATE_TT in SAP R/3 7.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine 99'9% of time, but sometimes I get OK from the bapi but still remaining errors in CO1P, wich prevents furter operation in this order (I need to settle the order trough batch input in KO88 and cancel notification through BAPI_PRODORDCONF_CANCEL in case KO88 fails)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried all combinations of parameter POST_WRONG_ENTRIES with same results, BAPI always returns OK but confirmation still incomplete and order blocked for further processing until somebody resolves CO1P/COGI manually.&lt;/P&gt;&lt;P&gt;The error in CO1P usually has a "Backflush" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force a bapi failure in case something goes wrong in confirmation, avoiding CO1P/COGI? Or is it posible to catch an process such errors before KO88 or BAPI_PRODORDCONF_CANCEL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched forum and wiki and nobody seems to have trouble with this issue (maybe there's an OSS note wich solves it) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F. Blay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 09:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086139#M731897</guid>
      <dc:creator>francisco_blay2</dc:creator>
      <dc:date>2007-11-21T09:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_TT confirmation issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086140#M731898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll explain becaus sb could have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can check if confirmation has finished completely using BAPI_PRODORDCONF_GETDETAIL which indicates if goods movements are already done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZCHECKLOCKOF.
*"----------------------------------------------------------------------
*"*"Interfase local
*"  IMPORTING
*"     REFERENCE(I_RUECK) TYPE  CO_RUECK
*"     REFERENCE(I_RMZHL) TYPE  CO_RMZHL
*"     REFERENCE(I_TRIES) TYPE  I DEFAULT 3
*"  EXCEPTIONS
*"      BLOCKED
*"      MOVERROR
*"----------------------------------------------------------------------

  DATA tp_tries  TYPE sy-tabix.
  DATA wa_return           TYPE BAPIRET1.
  DATA wa_conf_detail      TYPE BAPI_PP_CONFIRM.
  DATA ta_gdgoodsmovements TYPE TABLE OF BAPI2017_GM_ITEM_SHOW.
  DATA ta_failedgmoves     TYPE TABLE OF BAPI_CORU_FGM.
  DATA wa_failedgmoves     TYPE BAPI_CORU_FGM.

  tp_tries = 1.

*"Infinite loop
  WHILE 0 = 0.

    CLEAR sy-subrc.
    CLEAR wa_return.
    CLEAR wa_conf_detail.
    REFRESH ta_gdgoodsmovements.
    REFRESH ta_failedgmoves.

    CALL FUNCTION 'BAPI_PRODORDCONF_GETDETAIL'
      EXPORTING
        confirmation              = i_rueck
        confirmationcounter       = i_rmzhl
      IMPORTING
        RETURN                    = wa_return
        CONF_DETAIL               = wa_conf_detail
      TABLES
        GOODSMOVEMENTS            = ta_gdgoodsmovements
        FAILEDGMOVES              = ta_failedgmoves.

    IF  sy-subrc &amp;lt;&amp;gt; 0 OR ta_failedgmoves[] IS NOT INITIAL.

*"      Some goods movements not yet done

         READ TABLE ta_failedgmoves INTO wa_failedgmoves WITH KEY MSG_TYPE = 'E'.
        IF sy-subrc = 0.

*"        Some goods movement has an error so exit
           RAISE MOVERROR.

         ENDIF.

*"    ORDER blocked
       IF tp_tries GE i_tries.

*"        Limit of tries reached
        RAISE BLOCKED.

       ENDIF.

     ELSE.

*"    ORDER not blocked
       EXIT.

    ENDIF.

*" Wait 1 sec. and increment tries
    WAIT UP TO 1 SECONDS.
    tp_tries = tp_tries + 1.

  ENDWHILE. " 0 = 0?

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Francisco Blay on Jul 9, 2009 7:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 15:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086140#M731898</guid>
      <dc:creator>francisco_blay2</dc:creator>
      <dc:date>2007-12-18T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_TT confirmation issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086141#M731899</link>
      <description>&lt;P&gt;I had the same problem. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 03:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt-confirmation-issues/m-p/3086141#M731899</guid>
      <dc:creator>former_member599863</dc:creator>
      <dc:date>2019-10-24T03:10:57Z</dc:date>
    </item>
  </channel>
</rss>

