<?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: Error while using BAPI BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965549#M1338388</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;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to combine Asset accounts &amp;amp; G/L accounts into a single GL document posting. I need to pass the transaction type 'RFBU' as it is a manadatory field. But if I pass the value it gives the error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Accounting transaction category RFBU    000000000000 is not defined"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should there be an entry in TABWD table via config? or is there any othe BAPI that solves my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I post manually through F-02 everything works fine and the document type is 'SA'. Only with posting key '70'  i.e. Asset account it gives the error.&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;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sonali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2009 20:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-24T20:49:25Z</dc:date>
    <item>
      <title>Error while using BAPI BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965545#M1338384</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;&lt;/P&gt;&lt;P&gt;I am trying to create Journal entries using the BAPI  BAPI_ACC_DOCUMENT_POST.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing the BAPI the following error message occurs:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;" Accounting transaction category RFBU    000000000000 is not defined "&lt;/P&gt;&lt;P&gt; (Message class: AAPO Message 161 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the execution of the BAPI the function module TABWD_READ&lt;/P&gt;&lt;P&gt;tries to select data from the table TABWD using the key&lt;/P&gt;&lt;P&gt;TCODE = RFBU    000000000000.&lt;/P&gt;&lt;P&gt;But no entry is available in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction F-02 we manually make the postings and everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test data is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_TYPE = empty &lt;/P&gt;&lt;P&gt;OBJ_KEY = empty &lt;/P&gt;&lt;P&gt;OBJ_SYS = empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUS_ACT  = RFBU&lt;/P&gt;&lt;P&gt;COMP_CODE = 1000&lt;/P&gt;&lt;P&gt;DOC_DATE = 12.05.2009&lt;/P&gt;&lt;P&gt;PSTNG_DATE = 12.05.2009&lt;/P&gt;&lt;P&gt;DOC_TYPE = SA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I am missing some parameters or how should I make an entry in TABWD entry or should I use a different BAPI for Journal entry postings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen couple of other similar SDN postings but could not find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;Sonali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 15:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965545#M1338384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965546#M1338385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, the error presenting refers to the module AM, its posting of this module?. In the TABWD table there are entries for assets (AM) transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JOSE ALBEIRO HUERTAS MARTINEZ on Aug 13, 2009 11:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 16:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965546#M1338385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965547#M1338386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do not pass BUS_ACT = RFBU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 20:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965547#M1338386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T20:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965548#M1338387</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;  When you manually posted the document using f-02  find the transaction type IN BKPF Table and field GLVOR .&lt;/P&gt;&lt;P&gt; The code below is working fine.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;bapiache09-username       = 'ABAPUSER1'.
bapiache09-bus_act        = 'RFBU'.
bapiache09-comp_code      = 'RS01'.
bapiache09-pstng_date     = '20090230'.
bapiache09-doc_date       = '20090230'.
bapiache09-doc_type       = 'KY'.

it_bapiacgl09-itemno_acc = '0000000001'.
it_bapiacgl09-gl_account = '0024520080'.
it_bapiacgl09-comp_code  = 'RS01'.
it_bapiacgl09-bus_area   = 'BARD'.
*it_bapiacgl09-doc_type   = 'KY'.
*it_bapiacgl09-acct_type  = 'K'.
APPEND it_bapiacgl09 .
clear it_bapiacgl09.
it_bapiacap09-itemno_acc   = '0000000002'.
it_bapiacap09-vendor_no    = 'MSHS0100'.
*it_bapiacap09-gl_account   = '0013000001'.
*it_bapiacap09-comp_code    = 'RS01'.
*it_bapiacap09-bus_area     = 'BARD'.
*it_bapiacap09-doc_type   = 'KY'.
*it_bapiacap09-acct_type  = 'K'.
*it_bapiacap09-PYMT_AMT     = '1287'.
*it_bapiacap09-PYMT_CUR_ISO = 'INR'.
APPEND it_bapiacap09.
clear  it_bapiacap09. 
it_bapiaccr09-itemno_acc   = '0000000001'.
it_bapiaccr09-currency_iso = 'INR'.
it_bapiaccr09-amt_doccur   = '-1287'.
it_bapiaccr09-amt_base     = '-1287'.
APPEND it_bapiaccr09.
 clear it_bapiaccr09.
it_bapiaccr09-itemno_acc   = '0000000002'.
it_bapiaccr09-currency_iso = 'INR'.
it_bapiaccr09-amt_doccur   = '1287'.
it_bapiaccr09-amt_base     = '1287'.
APPEND it_bapiaccr09.
clear it_bapiaccr09.


CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
  EXPORTING
    documentheader          =  bapiache09
*   CUSTOMERCPD             =
*   CONTRACTHEADER          =
* IMPORTING
*   OBJ_TYPE                =
*   OBJ_KEY                 =
*   OBJ_SYS                 =
  TABLES
   accountgl               =  it_bapiacgl09[]
*   ACCOUNTRECEIVABLE       =
   accountpayable          =  it_bapiacap09[]
*   ACCOUNTTAX              =
    currencyamount          = it_bapiaccr09[]
*   CRITERIA                =
*   VALUEFIELD              =
*   EXTENSION1              =
    return                  = it_return[]
*   PAYMENTCARD             =
*   CONTRACTITEM            =
*   EXTENSION2              =
*   REALESTATE              =
*   ACCOUNTWT               =
          .
*
*
*CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
** EXPORTING
**   WAIT          = 5
*** IMPORTING
**   RETURN        =
*          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 09:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965548#M1338387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-15T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965549#M1338388</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;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to combine Asset accounts &amp;amp; G/L accounts into a single GL document posting. I need to pass the transaction type 'RFBU' as it is a manadatory field. But if I pass the value it gives the error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Accounting transaction category RFBU    000000000000 is not defined"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should there be an entry in TABWD table via config? or is there any othe BAPI that solves my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I post manually through F-02 everything works fine and the document type is 'SA'. Only with posting key '70'  i.e. Asset account it gives the error.&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;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sonali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 20:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-bapi-acc-document-post/m-p/5965549#M1338388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T20:49:25Z</dc:date>
    </item>
  </channel>
</rss>

