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 document using BAPI_ACC_GL_POSTING_POST

Former Member
0 Likes
1,114

Hi,

I am posting a document using BAPI_ACC_GL_POSTING_POST.But there is no option to pass posting key. After posting the document,when i checked the entry in BSEG table,it is taking the posting key as 50 and 40.But i need to post it with key 93 and 83.Even when i tried to post document using tcode FB50,its having the same effect.In transaction FB01,there is option to pass posting key and every thing is fine.how to get the same functionality as in FB01 using BAPI.

Thanks and Regards

Shibin

3 REPLIES 3
Read only

Former Member
0 Likes
628

Hi,

did u try to use the bapi BAPI_ACC_DOCUMENT_POST?¿ I think that using this bapi u wont have that problem.

if u need the code of that bapi, ask me. I am using it and it works fine.

Regards

Read only

Former Member
0 Likes
628

I replied just Yesterday to same thread.

Please see =>

And for More help you can see this [Search result.|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_acc_gl_posting_postpostingkey&cat=sdn_all]

Read only

0 Likes
628

Hi,

the difference between BAPI_ACC_GL_POSTING_POST and BAPI_ACC_DOCUMENT_POST is that the first one cannot be used to post to subledger accounts like customer , vendor etc...

for ur purpose u can use both.but i think the second one will be simpler.

for doubt abt posting keys,

see this answered thread:

regards

Arjun