Skip to Content

BAPI_ACC_DOCUMENT_POST: Result in Object Key $

Hello Experts,

I am posting a document through the BAPI BAPI_ACC_DOCUMENT_POST. There is no error in return table, but I am not getting any newly generated document number. Instead the BAPI returning $ in object key parameter.

Please note that, I am sending $ in DOCUMENTHEADER also as it is mandatory parameter for me.

Any lead would be really appreciated.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on 2 days ago

    Hello Bikash Rout

    '$' sign in the document number field means that the number was not assigned, it's a temporary document, not saved yet.

    If you have to provide the document's number, this probably means that the number range is set to external and you're obliged to generated and provide the doc's number manually. In this case you should provide a valid number (from a number range for example) and not the '$' sign.

    Otherwise the document number field should be empty - system will assign the next valid number.

    Kind regards,
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 2 days ago

    I have an old example where I swapped out BAPI_ACC_GL_POSTING_POST for BAPI_ACC_DOCUMENT_POST: it works and I am not using any "$" in the header data, for either BAPI.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.