We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] BAPI_ACC_DOCUMENT_POST error

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from edcshn on May 8 at 4:44 AM
Indeed, the account should be started with one "0" at least.

---------------Original Message---------------
From: venjamin
Sent: Tuesday, March 18, 2008 9:20 PM
Subject: BAPI_ACC_DOCUMENT_POST error

Hi FI ABAP Experts!
I am using two BAPI (BAPI_ACC_DOCUMENT_POST for F-02,
BAPI_ACC_GL_POSTING_REV_POST for FB08).
but i got error during posting...
1. comments

i checked if G/L Account 254500 is defined in chart of account CAHS or
NOT, but this G/L Account is defined in CAHS.

i tried to post document with above same data by T-code F-02 instead of
my bapi code, it was posted as well.

does any body what somthing wrong on my code?

2 Entries error

E RW 609 Error in document : BKPFF $ HMDCLNT200

E F5 507 G/L Account 254500 is not defined in chart of account CAHS
2, comments

4 Entries error

E RW 609 Error in document :

E RW 602 Required field OBJ_TYPE was not transferred in parameter
REVERSAL.

E RW 602 Required field OBJ_KEY_R was not transferred in parameter
REVERSAL.

E RW 602 Required field OBJ_SYS was not transferred in parameter
REVERSAL.

pleaes review my code.
1. BAPI_ACC_DOCUMENT_POST

refresh lt_doc_header.

lt_doc_header-bus_act = 'RFBU'.

lt_doc_header-username = sy-uname.

lt_doc_header-doc_date = lv_month.

"

lt_doc_header-pstng_date = lv_month.

".

lt_doc_header-fisc_year = sy-datum(4).

"

lt_doc_header-fis_period = sy-datum+4(2).

lt_doc_header-doc_type = 'SA'.

lt_doc_header-comp_code = 'H410'.

append lt_doc_header.

refresh lt_acc_gl.

lt_acc_gl-itemno_acc = '1'.

"40

lt_acc_gl-gl_account = '557130'.

" GL Account

lt_acc_gl-item_text = ''.

" Line Item Text

lt_acc_gl-doc_type = 'SA'.

lt_acc_gl-comp_code = '1000'.

" Company Code

lt_acc_gl-pstng_date = sy-datum.

" Posting Date

lt_acc_gl-wbs_element = 'E-2008-001-R1'.

" WBS Element

append lt_acc_gl.

clear lt_acc_gl.

lt_acc_gl-itemno_acc = '2'.

"50

lt_acc_gl-gl_account = '254500'.

" GL Account

lt_acc_gl-item_text = ''.

" Line Item Text

lt_acc_gl-doc_type = 'SA'.

lt_acc_gl-comp_code = '1000'.

" Company Code

lt_acc_gl-pstng_date = sy-datum.

" Posting Date

append lt_acc_gl.

refresh lt_curr_amt.

lt_curr_amt-itemno_acc = '1'.

"

lt_curr_amt-curr_type = '00'.

lt_curr_amt-currency = 'KRW'.

"bdc_source-col_g. " Currancy

lt_curr_amt-amt_doccur = '10'.

" Line Item Amount

append lt_curr_amt.

clear lt_curr_amt.

lt_curr_amt-itemno_acc = '2'.

"

lt_curr_amt-curr_type = '00'.

lt_curr_amt-currency = 'KRW'.

" Currancy

lt_curr_amt-amt_doccur = '-10'.

"gt_itab-setwr * -1. " Line Item
Amount

append lt_curr_amt.

refresh lt_return.

call function 'BAPI_ACC_DOCUMENT_POST'

exporting

documentheader

= lt_doc_header

tables

accountgl

= lt_acc_gl

currencyamount

= lt_curr_amt

return

= lt_return

2 Entries error
E RW 609 Error in document : BKPFF $ HMDCLNT200
E F5 507 G/L Account 254500 is not defined in chart of account CAHS

i checked if G/L Account 254500 is defined in chart of account CAHS or
NOT, but this G/L Account is defined in CAHS.

i tried to post document with above same data by T-code F-02 instead of
my bapi code, it was posted as well.

does any body what somthing wrong on my code?

2. BAPI_ACC_GL_POSTING_REV_POST

data : lt_reversal like bapiacrev occurs 0 with header line,

lt_return like bapiret2 occurs 0 with header line.

refresh lt_reversal.

lt_reversal-COMP_CODE = '1000'.

lt_reversal-AC_DOC_NO = '1100000005'.

append lt_reversal.

call function 'BAPI_ACC_GL_POSTING_REV_POST'

exporting

reversal

= lt_reversal
*

IMPORTING
*

OBJ_TYPE

*

OBJ_KEY

*

OBJ_SYS


tables

return

= lt_return.
4 Entries error
E RW 609 Error in document :
E RW 602 Required field OBJ_TYPE was not transferred in parameter
REVERSAL.
E RW 602 Required field OBJ_KEY_R was not transferred in parameter
REVERSAL.
E RW 602 Required field OBJ_SYS was not transferred in parameter
REVERSAL.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
edcshn  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language