Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI Error

Former Member
0 Kudos

Hello Forums,

I am using BAPI_ACC_GL_POSTING_POST and I am getting the error:

"FI/CO interface: Inconsistent FI/CO document header data for updating"

Anyone had to deal with this error before?

Thanks

22 REPLIES 22

Former Member
0 Kudos

Hi keith

you must be passing the structure of type BAPIACHE08 as an import parameter for the BAPI [export parameter from program].

check what data u are passing. i guess the problem lies just there

Former Member
0 Kudos

hi,

Might be your are not passing mandatory fields in the structure( BAPIACHE08).

for example transaction Fb60 or Fb70 in the header at least you have to fill the posting date ,document date,currency key ,posting key,company code.These are the mandatory fields to fill the header,So you need to fill BAPIACHE08 structure with mandatory fields.

thanks & regards,

rakesh

0 Kudos

Thanks Gents,

here is what I am passing:

DATA: gv_doc_header LIKE bapiache08,

SELECT SINGLE WAERS FROM BKPF

INTO gv_comp_curr

where BUKRS = gv_bukrs.

gv_doc_header-doc_date = gv_Posting_Date.

gv_doc_header-comp_code = gv_bukrs.

gv_doc_header-username = sy-uname.

gv_doc_header-doc_type = DocType. "'YP'.

CONCATENATE '2009' '/' pcard_post_rec-ZLGPSPD

INTO ls_ref.

gv_doc_header-REF_DOC_NO = ls_ref.

CONCATENATE 'PCARD ' gv_hdrtxt gv_Posting_Date

INTO gv_doc_header-header_txt

SEPARATED BY space.

if cb_test = 'X'.

gv_doc_header-pstng_date = sy-datum.

else.

gv_doc_header-pstng_date = gv_Posting_date.

endif.

Edited by: keith warnock on Jun 16, 2009 3:40 PM

0 Kudos

which transaction are you using?

0 Kudos

keith,

thanks for posting the code...

we are checking it...

can u please keep a break point on the BAPI call and see the values in that gv_doc_header, whether all values are coming accordingly to the struc.

0 Kudos

I am using BAPI_ACC_GL_POSTING_POST for posting.

0 Kudos

On the return of my BAPI Call the Document header is like this:

BKPFF$ ECDCLNT200WARNOCKE PCARD actual 20090427 1000 20092009042720090616000000

0 Kudos

hi...

BEFORE the BAPI CALL, out a break point and match the corresponding fields of that structure to the value u have passed.

are they looking correct?

0 Kudos

Hello,

Yes, the values for the header b\4 the BAPI call are not changed and look correct to me: here they are:

SELECT SINGLE WAERS FROM BKPF

INTO gv_comp_curr

where BUKRS = gv_bukrs.

gv_doc_header-doc_date = 20090427

gv_doc_header-comp_code = 1000

gv_doc_header-username = warnocke

gv_doc_header-doc_type = YP.

gv_doc_header-REF_DOC_NO = 2009/ 4.

gv_doc_header-header_txt = PCARD actual 20090427

gv_doc_header-pstng_date = sy-datum.

gv_doc_header-FISC_YEAR = '2009'.

gv_doc_header-FIS_PERIOD = '004'.

0 Kudos

I am also getting this error:

Error in document: BKPFF $ ECDCLNT200

Former Member
0 Kudos

Have you looked at the long text for the original message?

Rob

0 Kudos

Rob,

Can you explain what you mean by Long text?

thanks

KW

0 Kudos

You have an error message in the return table:

"FI/CO interface: Inconsistent FI/CO document header data for updating"

Along with that, there should be a message ID and a number in the return table. There may be a long text that gives more information. Can you provide that ID and number?

Rob

0 Kudos

Hi Rob,

Here are the details from the BAPI gt_return

Line = 1

Id = RW

Number = 609

Message = Error in document: BKPFF $ ECDCLNT200

Line = 2

ID = RW

number = 015

message = FI/CO interface: Inconsistent FI/CO document header data for updating

0 Kudos

does the note 794974 and 667994 drop any light regarding this?

0 Kudos

Soumya,

i am not sure what you are referring to with the note numbers?

0 Kudos

Well, the message says that the description is "self explanatory", so I guess you need to look at the data. Are you sure fiscal period 4 is open in your system for 2009?

Rob

0 Kudos

Hi Rob,

I have tried many different periods and still the same result.

0 Kudos

Well, make sure you use one that is open.

Rob

0 Kudos

Gents,

I have made some progress, the issue was with the comp_code and the accounts were under different compaines...

I have fixed that and am having issues with this now:

Document type De not defined = I have put 'Debit' Here... I orignally had 'D' What should it be?

0 Kudos

This appears to be a separate problem. Since this thread is quite long, I think you should close it and start a new thread with the new question.

Rob

former_member198721
Participant
0 Kudos

This message was moderated.