<?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_TT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270451#M150208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to this ... aren't BAPIs like APIs in the MS world?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2006 11:01:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-10T11:01:00Z</dc:date>
    <item>
      <title>BAPI_PRODORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270449#M150206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use this BAPI and it's web service to pass confirmations from an outside system.  When I run the BAPI in test, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E RU 510 "Confirmation functions can only be executed in dialog mode"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, there are posts on this forum that make it sound like you can do it as part of a program that doesn't require user action.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone out there used this BAPI to create a confirmation?  Has anyone used the SAP-supplied web service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even wrote a wrapper function ... here's the code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_IMPORT_EM_CONF_A.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_ORDERID) LIKE  AFRUD-AUFNR&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_OPERATION) LIKE  AFRUD-VORNR&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_SEQUENCE) LIKE  AFRUD-APLFL&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_FIN_CONF) LIKE  AFRUD-AUERU&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_YIELD) LIKE  AFRUD-LMNGA&lt;/P&gt;&lt;P&gt;*"     VALUE(Z_YIELD_UNIT) LIKE  AFRUD-MEINH&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(Y_RETURN_CODE) LIKE  BAPIRET1 STRUCTURE  BAPIRET1&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      Z_TIMETICKETS STRUCTURE  BAPI_PP_TIMETICKET&lt;/P&gt;&lt;P&gt;*"      Z_DETAIL_RETURN STRUCTURE  BAPI_CORU_RETURN&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  data definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Batchinputdata of single transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   s_BAPIRET1 like BAPIRET1,&lt;/P&gt;&lt;P&gt;        s_timetkt  type BAPI_PP_TIMETICKET,&lt;/P&gt;&lt;P&gt;        t_timetkt  type table of BAPI_PP_TIMETICKET,&lt;/P&gt;&lt;P&gt;        t_goodmvt  type table of BAPI2017_GM_ITEM_CREATE,&lt;/P&gt;&lt;P&gt;        t_link_conf type table of BAPI_LINK_CONF_GOODSMOV,&lt;/P&gt;&lt;P&gt;        s_dtl_rtn   type BAPI_CORU_RETURN,&lt;/P&gt;&lt;P&gt;        t_dtl_rtn   type table of BAPI_CORU_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh: t_timetkt,&lt;/P&gt;&lt;P&gt;          t_goodmvt,&lt;/P&gt;&lt;P&gt;          t_link_conf,&lt;/P&gt;&lt;P&gt;          t_dtl_rtn.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF Z_FIN_CONF = 'Y'.&lt;/P&gt;&lt;P&gt;   Z_FIN_CONF = ''.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_timetkt-ORDERID = Z_ORDERID.&lt;/P&gt;&lt;P&gt; s_timetkt-OPERATION = Z_OPERATION.&lt;/P&gt;&lt;P&gt; s_timetkt-SEQUENCE = Z_SEQUENCE.&lt;/P&gt;&lt;P&gt; s_timetkt-FIN_CONF = Z_FIN_CONF.&lt;/P&gt;&lt;P&gt; s_timetkt-YIELD = Z_YIELD.&lt;/P&gt;&lt;P&gt; s_timetkt-CONF_QUAN_UNIT = Z_YIELD_UNIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append s_timetkt to Z_TIMETICKETS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    POST_WRONG_ENTRIES       = '2'&lt;/P&gt;&lt;P&gt;    TESTRUN                  = ' '&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    RETURN                   = Y_RETURN_CODE&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     timetickets             = Z_TIMETICKETS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   GOODSMOVEMENTS           = t_goodmvt&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LINK_CONF_GOODSMOV       = t_link_conf&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DETAIL_RETURN            = Z_DETAIL_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BALW_BAPIRETURN_GET1'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                TYPE                       = SY-MSGTY&lt;/P&gt;&lt;P&gt;                CL                         = SY-MSGID&lt;/P&gt;&lt;P&gt;                NUMBER                     = SY-MSGNO&lt;/P&gt;&lt;P&gt;                PAR1                       = SY-MSGV1&lt;/P&gt;&lt;P&gt;                PAR2                       = SY-MSGV2&lt;/P&gt;&lt;P&gt;                PAR3                       = SY-MSGV3&lt;/P&gt;&lt;P&gt;                PAR4                       = SY-MSGV4&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              LOG_NO                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              LOG_MSG_NO                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                BAPIRETURN                 = Y_RETURN_CODE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at t_dtl_rtn into s_dtl_rtn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; reference field s_dtl_rtn-CONF_NO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;*EXPORTING&lt;/P&gt;&lt;P&gt;*WAIT = 'W'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;  ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried commenting out the goods movements since there are some associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when you run CO11N, to perform this same action, a dialog box pops up asking about a trigger function.  Could this be the cause of the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod Wagoner&lt;/P&gt;&lt;P&gt;Tucson, AZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 10:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270449#M150206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270450#M150207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roderic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the BAPI just explain that you could not use it in background mode or in RFC. So try another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 10:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270450#M150207</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-03-10T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270451#M150208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to this ... aren't BAPIs like APIs in the MS world?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270451#M150208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270452#M150209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original poster probably found his answer by now!&amp;nbsp; I was looking for an answer to the same issue and found &lt;STRONG&gt;several&lt;/STRONG&gt; notes that address this problem including Note 648292.&amp;nbsp; The error is caused by a flaw in SAP that expects milestones to be confirmed even when none are present in the operatoin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 17:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-create-tt/m-p/1270452#M150209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-21T17:48:28Z</dc:date>
    </item>
  </channel>
</rss>

