‎2020 Nov 22 12:08 AM
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.
Thanks
‎2020 Nov 23 8:21 AM
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.
‎2020 Nov 23 9:42 AM
Thanks Andrea, But I need the account receivable and payable as well.
‎2020 Nov 23 9:51 AM
Hello bkasrout
'$' 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,‎2020 Nov 23 10:33 AM