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: 

Doc Posting error : Cost Center XX/XXXX does not exist on XX.XX.XXXX

Former Member
0 Kudos

HI All,

I'm trying to post a document in two steps FIrst use BAPI_ACC_DOCUMENT_CHECK to check the document and then incase of

no errors , post the actual document by using BAPI_ACC_DOCUMENT_POST.

On every 999 lines, a new document is checked and posted.

Currently the BAPI_ACC_DOCUMENT_CHECK is giving errors for the cost centers as : Cost Center XX/XXXX does not exist on XX.XX.XXXX(Date). Though the Cost center exist and is valid as well.

Also, If I use only this Cost center and then post the document the document is posted successfully.

Let me know what could be the issue/error.

Any pointers will be helpful.

Thanks,

Siddhesh

2 REPLIES 2

Former Member
0 Kudos

I believe you should use full cost center# - 10 characters. Fill in with leading zeros if your cost center# is less than 10 characters.

Former Member
0 Kudos

Hi,

Use conversion_exit_alpha_input in the report to convert the cost center to internal format.

Regards

Praveen