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.