Application Development and Automation 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: 
Read only

Problem with Cost Centers in BAPI BAPI_ACC_MANUAL_ALLOC_CHECK and POST

Former Member
0 Likes
1,108

Hi all,

I want to post Cost Centers with the BAPI equivalent to KB15N. BAPI_ACC_MANUAL_ALLOC_CHECK and BAPI_ACC_MANUAL_ALLOC_POST.

I use ...CHECK first to check if there is any error. I fill DOC_ITEMS with Cost Centers, but the Message Errors look like from Fund Management and Real State, something weird to me.

I'm filling this fields of DOC_HEADER:

CO_AREA

DOCDATE

POSTGDATE

PERIOD

DOC_HDR_TX

TRANS_CURR

USERNAME

and this fields in DOC_ITEMS:

SEND_CCTR

COST_ELEM (Secondary Cost Element - Assesment)

VALUE_TCUR

REC_CCTR

and the content of RETURN:

TYPE ID NUMBER MESSAGE

I KAFF 101 FM dimension not active - entry of Fund will be ignored

E 63 511 Real Estate object cannot be found

E 60 263 CN 000 00000 does not exist

E 63 511 Real Estate object cannot be found

E 60 263 CN 000 00000 does not exist

...

...

...

As you can see, it looks like messages from Fund Management and Resl State although I'm using Cost Centers. Also, the ID of the first one is KAFF when this BAPI belongs to a Sub-module KIMB.

Thanks in advance for your help.

Points are here for you.

Jose Pinedo

Madrid

Hi all,

I want to post Cost Centers with the BAPI equivalent to KB15N. BAPI_ACC_MANUAL_ALLOC_CHECK and BAPI_ACC_MANUAL_ALLOC_POST.

I use ...CHECK first to check if there is any error. I fill DOC_ITEMS with Cost Centers, but the Message Errors look like from Fund Management and Real State, something weird to me.

I'm filling this fields of DOC_HEADER:

CO_AREA

DOCDATE

POSTGDATE

PERIOD

DOC_HDR_TX

TRANS_CURR

USERNAME

and this fields in DOC_ITEMS:

SEND_CCTR

COST_ELEM (Secondary Cost Element - Assesment)

VALUE_TCUR

REC_CCTR

and the content of RETURN:

TYPE ID NUMBER MESSAGE

I KAFF 101 FM dimension not active - entry of Fund will be ignored

E 63 511 Real Estate object cannot be found

E 60 263 CN 000 00000 does not exist

E 63 511 Real Estate object cannot be found

E 60 263 CN 000 00000 does not exist

...

...

...

As you can see, it looks like messages from Fund Management and Resl State although I'm using Cost Centers. Also, the ID of the first one is KAFF when this BAPI belongs to a Sub-module KIMB.

Thanks in advance for your help.

Points are here for you.

Jose Pinedo

Madrid

2 REPLIES 2
Read only

Former Member
0 Likes
756

Hi all,

The problema was because of the DOC_ITEMS structure.

I was using an old one, and should use the same as the structure that appears in the FM of the BAPI.

Points to me.

Thanks.

Jose Pinedo

Read only

0 Likes
756

hey

I am getting the same problem but couldnt understand your reply . am trying in the BAPI only passing the sender cost centre receiver cost centre , cost element , amount .

Should i need to pass some other value in the document item

Please suggest

Thanks