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

posting key in BAPI_ACC_DOCUMENT_POST ??

Former Member
0 Likes
647

hi,

i use parameter accountpayable in BAPI_ACC_DOCUMENT_POST to generate vendor credit item, and the posting key of the item in generated document is 21: Credit memo, now i need the posting key to be 22:Reverse invoice, how could i do it ?? i find through the main program of the bapi for 'bschl' and for '22', but no useful result, seems like it cann't fulfill what i need.

thank you !

2 REPLIES 2
Read only

Former Member
0 Likes
451

any idea ? or is there another bapi for document post in which posting key can be input as parameter ??

Read only

Sougata
Active Contributor
0 Likes
451

Hi Zhang,

Please look at the SAP sample (demo) program ACC_BAPI_TEST_DOCUMENT. It's pretty easily written for customers so if you debug through it you'll be able to understand how to achieve the various functionalities in regards to bapi_acc_doc.

Hope this helps.

Don't forget to reward points.

Cheers,

Sougata.