<?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: Problemn with BAPI_TRANSACTION_COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795082#M912759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEMNO_ACC                     0000000010&lt;/P&gt;&lt;P&gt;CURR_TYPE&lt;/P&gt;&lt;P&gt;CURRENCY                       USD&lt;/P&gt;&lt;P&gt;CURRENCY_ISO&lt;/P&gt;&lt;P&gt;AMT_DOCCUR                                            0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE&lt;/P&gt;&lt;P&gt;AMT_BASE                                            250.0000&lt;/P&gt;&lt;P&gt;DISC_BASE                                             0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE_V                       0.00000.00000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEMNO_ACC                     0000000020&lt;/P&gt;&lt;P&gt;CURR_TYPE&lt;/P&gt;&lt;P&gt;CURRENCY                       USD&lt;/P&gt;&lt;P&gt;CURRENCY_ISO&lt;/P&gt;&lt;P&gt;AMT_DOCCUR                                            0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE&lt;/P&gt;&lt;P&gt;AMT_BASE                                            250.0000&lt;/P&gt;&lt;P&gt;DISC_BASE                                             0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE_V                       0.00000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 20:42:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-09T20:42:57Z</dc:date>
    <item>
      <title>Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795076#M912753</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 am testing the BAPI_ACC_INVOICE_RECEIPT_POST in SE37 using a test sequence followed by BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI is doing successful showing out the document no but i could not see the document(s) in FB03.&lt;/P&gt;&lt;P&gt;It seems BAPI_TRANSACTION_COMMIT is not working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please suggest on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 19:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795076#M912753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795077#M912754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is most likely in BAPI_ACC_INVOICE_RECEIPT_POST I had that problem the other day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show here your test data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 19:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795077#M912754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T19:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795078#M912755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramiro,&lt;/P&gt;&lt;P&gt;I gave valid Vendor, comp code &amp;amp; GL data.  &lt;/P&gt;&lt;P&gt;What i am saying is that the BAPI_ACC_INVOICE_RECEIPT_POST is giving succes message with document no posted successfully.. &lt;/P&gt;&lt;P&gt;But i could not see/ display the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Immediately i am also exec BAPI_TRANSACTION_COMMIT next and passig 'X' into the wait parameter. This is  not returning anything not even error msg in retuurn parameter.&lt;/P&gt;&lt;P&gt;But still i could not see/display the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795078#M912755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795079#M912756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, same happened to me two days ago, except it was bapi_acc_document_post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case it was a problem with the currency table.&lt;/P&gt;&lt;P&gt;Are you filling? OBJ_TYPE , OBJ_KEY or OBJ_SYS in the header? There's a lot of posts that comment this fields gave them the same problem, if those are filled try to clear them and try again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795079#M912756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795080#M912757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Dear &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;  they  OBJ_TYPE , OBJ_KEY or OBJ_SYS in the header are always clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795080#M912757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795081#M912758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you filling the currency table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795081#M912758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795082#M912759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEMNO_ACC                     0000000010&lt;/P&gt;&lt;P&gt;CURR_TYPE&lt;/P&gt;&lt;P&gt;CURRENCY                       USD&lt;/P&gt;&lt;P&gt;CURRENCY_ISO&lt;/P&gt;&lt;P&gt;AMT_DOCCUR                                            0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE&lt;/P&gt;&lt;P&gt;AMT_BASE                                            250.0000&lt;/P&gt;&lt;P&gt;DISC_BASE                                             0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE_V                       0.00000.00000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEMNO_ACC                     0000000020&lt;/P&gt;&lt;P&gt;CURR_TYPE&lt;/P&gt;&lt;P&gt;CURRENCY                       USD&lt;/P&gt;&lt;P&gt;CURRENCY_ISO&lt;/P&gt;&lt;P&gt;AMT_DOCCUR                                            0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE&lt;/P&gt;&lt;P&gt;AMT_BASE                                            250.0000&lt;/P&gt;&lt;P&gt;DISC_BASE                                             0.0000&lt;/P&gt;&lt;P&gt;EXCH_RATE_V                       0.00000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795082#M912759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795083#M912760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think amt_base needs to be negative in the second position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEre is an example I found check it against yours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZRKBAPITEST . 
DATA: doc_header LIKE bapiache08, 
ACCOUNTPAYABLE LIKE BAPIACAP03 OCCURS 0 WITH HEADER LINE, 
ACCOUNTGL LIKE BAPIACGL03 OCCURS 0 WITH HEADER LINE, 
ACCOUNTTAX LIKE BAPIACTX01 OCCURS 0 WITH HEADER LINE, 
CURRENCYAMOUNT LIKE BAPIACCR01 OCCURS 0 WITH HEADER LINE, 
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE, 
obj_type LIKE bapiache08-obj_type, 
obj_key LIKE bapiache02-obj_key, 
obj_sys LIKE bapiache02-obj_sys, 
docnum LIKE bkpf-belnr. 
* Get last SA type document posted to build document key. 
SELECT MAX( belnr ) 
INTO docnum 
FROM bkpf 
WHERE BUKRS = '001' 
AND bstat = ' ' 
AND BLART = 'KR' 
AND gjahr = sy-datlo(4). 
* Create new document number to be used. 
docnum = docnum + 1. 
* Begin to populate docnument header. 
CONCATENATE '0' DOCNUM '001 ' SY-DATLO(4) INTO DOC_HEADER-OBJ_KEY. 
DOC_HEADER-OBJ_TYPE = 'BKPFI'. 
CONCATENATE SY-SYSID SY-MANDT INTO DOC_HEADER-OBJ_SYS. 
*doc_header-obj_sys = '1900000363' 
doc_header-username = sy-uname. 
DOC_HEADER-HEADER_TXT = 'SE38 ZRKBAPITEST2'. 
DOC_HEADER-COMP_CODE = '001'. 
DOC_HEADER-DOC_DATE = '20040924'. 
doc_header-pstng_date = sy-datlo. 
DOC_HEADER-DOC_TYPE = 'KR'. 
CONCATENATE '0' docnum INTO docnum. 
doc_header-fisc_year = '2004'. 
doc_header-ac_doc_no = docnum. 
* fill account payable 
ACCOUNTPAYABLE-ITEMNO_ACC = '1'. 
ACCOUNTPAYABLE-VENDOR_NO = '0000140088'. 
ACCOUNTPAYABLE-GL_ACCOUNT = '0000901102'. 
*accountpayable-w_tax_code = 'V0'. 
APPEND ACCOUNTPAYABLE. 
* fill account gl 
ACCOUNTGL-ITEMNO_ACC = '2'. 
ACCOUNTGL-GL_ACCOUNT = '0000188601'. 
ACCOUNTGL-TAX_CODE = 'V0'. 
ACCOUNTGL-FISC_YEAR = '2004'. 
ACCOUNTGL-FIS_PERIOD = '10'. 
APPEND ACCOUNTGL. 
* fill currency amount 
CURRENCYAMOUNT-ITEMNO_ACC = '1'. 
CURRENCYAMOUNT-CURRENCY = 'GBP'. 
CURRENCYAMOUNT-AMT_DOCCUR = '0.0200'. 
CURRENCYAMOUNT-CURR_TYPE = '00'. 
APPEND CURRENCYAMOUNT. 
* fill currency amount 
CURRENCYAMOUNT-ITEMNO_ACC = '2'. 
CURRENCYAMOUNT-CURRENCY = 'GBP'. 
CURRENCYAMOUNT-AMT_DOCCUR = '-0.0200'. 
CURRENCYAMOUNT-CURR_TYPE = '00'. 
APPEND CURRENCYAMOUNT. 
* fill currency amount 
*curencyamount-itemno_acc = '3'. 
*curencyamount-currency = 'GBP'. 
*curencyamount-amt_doccur = '0.0200'. 
*curencyamount-curr_type = '00'. 
*append curencyamount. 

* All tables filled - now call BAPI. 

CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST' 
EXPORTING 
DOCUMENTHEADER = DOC_HEADER 
* IMPORTING 
* OBJ_TYPE = 
* OBJ_KEY = 
* OBJ_SYS = 
TABLES 
ACCOUNTPAYABLE = ACCOUNTPAYABLE 
ACCOUNTGL = ACCOUNTGL 
ACCOUNTTAX = ACCOUNTTAX 
CURRENCYAMOUNT = CURRENCYAMOUNT 
* PURCHASEORDER = 
* PURCHASEAMOUNT = 
RETURN = RETURN 
* CRITERIA = 
* VALUEFIELD = 
* EXTENSION1 = 
. 

LOOP AT RETURN WHERE TYPE = 'E'. 
WRITE: / RETURN-MESSAGE. 
* exit. 
ENDLOOP. 
IF sy-subrc EQ 0. 
WRITE: / 'BAPI call failed - debug and fix!'. 
ELSE. 
CLEAR return. 
REFRESH return. 
* COMMIT WORK AND WAIT. 
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
EXPORTING 
WAIT = 'X' 
IMPORTING 
return = return. 
WRITE: / 'BAPI call worked!!'. 
WRITE: / doc_header-obj_key, ' posted'. 
ENDIF. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795083#M912760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795084#M912761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sir..Just now i tried..but no luck..&lt;/P&gt;&lt;P&gt;Please tell me where to pass posting keys 31 &amp;amp; 40..i mean in which fields..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 20:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795084#M912761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T20:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795085#M912762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it worded?&lt;/P&gt;&lt;P&gt;it generated the document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, sorry, those functions don't permit to change the posting key, they are hardcoded, if the keys are wrong try to flip the credit/debit entry (make the first position negative and the secon positive) and see what happens.&lt;/P&gt;&lt;P&gt;Also, maybe the problem is the document type, but check my first suggestion first I also had troubles with the posting keys and flipping the negative corrected them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 21:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795085#M912762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T21:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795086#M912763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can't pass the posting keys, they are automatically determined by the BAPI (if the value is negative for instance) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I got the same problem that commit doesn't generate a record while the bapi said it was succesfull &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 14:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795086#M912763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T14:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problemn with BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795087#M912764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just tajke care of posting keys..etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problemn-with-bapi-transaction-commit/m-p/3795087#M912764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T20:19:45Z</dc:date>
    </item>
  </channel>
</rss>

