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

BAPI_ACC_DOCUMENT_POST: Result in Object Key $

0 Likes
2,002

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

4 REPLIES 4
Read only

abo
Active Contributor
0 Likes
1,596

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.


Read only

1,596

Thanks Andrea, But I need the account receivable and payable as well.

Read only

MateuszAdamus
Active Contributor
1,596

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,
Mateusz
Read only

abo
Active Contributor
0 Likes
1,596

Good catch! Forgot about external ranges...