<?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: FI Document not getting posted with BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497299#M841206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Provided you have use the parameters of BAPI_ACC_DOCUMENT_POST correctly and it returns successful message, do you have specific needs to set the WAIT parameter in 'BAPI_TRANSACTION_COMMIT'? If you do not need it, try removing the WAIT parameter (WAIT = ' ').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeffrey Satriadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 07:20:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T07:20:57Z</dc:date>
    <item>
      <title>FI Document not getting posted with BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497298#M841205</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;I am trying to create a G/L document using the BAPI "BAPI_ACC_DOCUMENT_POST". The Bapi is returning me a success message in the return table of BAPI, but I am not able to see the document in BKPF/DFKKOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody please let me know if there is any customization that needs to be done to get the document number reflected in the corresponding tables after i execute this BAPI. Following is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REPORT  Z_MASS_FI_DOC_POSTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  lv_doc_header type BAPIACHE09,&lt;/P&gt;&lt;P&gt;       lv_conract_header type BAPIACCAHD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_return type table of BAPIRET2 with header line,&lt;/P&gt;&lt;P&gt;      lt_curr_amt type table of BAPIACCR09 with header line,&lt;/P&gt;&lt;P&gt;      lt_account_tax type table of BAPIACTX09 with header line,&lt;/P&gt;&lt;P&gt;      lt_cont_item type table of BAPIACCAIT with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_doc_header-comp_code = 'A072'.&lt;/P&gt;&lt;P&gt;lv_doc_header-doc_type = 'AB'.&lt;/P&gt;&lt;P&gt;lv_doc_header-username = sy-uname.&lt;/P&gt;&lt;P&gt;lv_doc_header-bus_act = 'RFBU'.&lt;/P&gt;&lt;P&gt;lv_doc_header-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;lv_doc_header-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_curr_amt-ITEMNO_ACC = '0000000010'.&lt;/P&gt;&lt;P&gt;lt_curr_amt-CURRENCY = 'AUD'.&lt;/P&gt;&lt;P&gt;lt_curr_amt-AMT_BASE = '49.0000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lt_curr_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_account_tax-ITEMNO_ACC = '0000000010'.&lt;/P&gt;&lt;P&gt;lt_account_tax-TAX_CODE = 'S1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lt_account_tax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_cont_item-ITEMNO_ACC = '0000000010'.&lt;/P&gt;&lt;P&gt;lt_cont_item-CONT_ACCT = '000001000220'.&lt;/P&gt;&lt;P&gt;lt_cont_item-MAIN_TRANS = 'CDOC'.&lt;/P&gt;&lt;P&gt;lt_cont_item-SUB_TRANS = '0010'.&lt;/P&gt;&lt;P&gt;lt_cont_item-VTREF = '00000000000100000047'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lt_cont_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DOCUMENTHEADER          =   lv_doc_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CUSTOMERCPD             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTRACTHEADER          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_TYPE                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_KEY                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_SYS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNTGL               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNTRECEIVABLE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNTPAYABLE          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ACCOUNTTAX              = lt_account_tax&lt;/P&gt;&lt;P&gt;    CURRENCYAMOUNT          = lt_curr_amt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CRITERIA                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUEFIELD              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSION1              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RETURN                  = lt_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PAYMENTCARD             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONTRACTITEM            = lt_cont_item.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSION2              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REALESTATE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNTWT               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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          = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried putting values for following fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docheader-obj_type = 'REACI'.&lt;/P&gt;&lt;P&gt;docheader-obj_key = 'TEST'.&lt;/P&gt;&lt;P&gt;docheader-obj_sys = 'ECSCLNT010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case also, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People have faced similar problems.I saw them on some other threads. But nobody seems to have provided the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input will be appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Devang Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497298#M841205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: FI Document not getting posted with BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497299#M841206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Provided you have use the parameters of BAPI_ACC_DOCUMENT_POST correctly and it returns successful message, do you have specific needs to set the WAIT parameter in 'BAPI_TRANSACTION_COMMIT'? If you do not need it, try removing the WAIT parameter (WAIT = ' ').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeffrey Satriadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497299#M841206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: FI Document not getting posted with BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497300#M841207</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;Use BAPI_TRANSACTION_COMMIT and set the wait parameter in it to 'X'.  This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-not-getting-posted-with-bapi-acc-document-post/m-p/3497300#M841207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:31:02Z</dc:date>
    </item>
  </channel>
</rss>

