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

Issue with BAPI_ACC_DOCUMENT_POST for posting key

Former Member
0 Likes
1,108

Hi,

I am using BAPI_ACC_DOCUMENT_POST to Post the vendor invoice within my custom program to post the vendor invoice, But the invoice that is being getting post with Posting Key 21 (Cedit Memo) and 11 (Credit Memo) where in my selection screen I do have the options same like in FB60 e.g. (Invoice, Credit Memo).

Currently while executing this BAPi no matter what option is being selected, the posting keys are updated as 21 and 11.

I am not able to find the place holder or any parameter within this BAPi "BAPI_ACC_DOCUMENT_POST" where I can mention the Transaction type.

Please suggest..

Thanks in advance..

Regards,

Atul

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
814

I think the BAPI is determing posting keys based on configuration, try with different vendor or GL accounts.

Also try posting manually to check if this is also an issue in FB60.

Message was edited by:

Manohar Reddy Kallem

4 REPLIES 4
Read only

Manohar2u
Active Contributor
0 Likes
815

I think the BAPI is determing posting keys based on configuration, try with different vendor or GL accounts.

Also try posting manually to check if this is also an issue in FB60.

Message was edited by:

Manohar Reddy Kallem

Read only

Former Member
0 Likes
814

Hi Manohar,

I already have tried with manual posting in FV60. But there it does give this problem.

I need the place holder within this BAPI where I can mention the posting key..

Regards,

Atul

Read only

Former Member
0 Likes
814

Hi Manohar,

I already have tried with manual posting in FV60. But there it does <b>NOT</b> give this problem.

I also have tried with different combinations of vendors an GL accounts, but the problem is same...

I need the place holder within this BAPI where I can mention the posting key..

Regards,

Atul

Read only

Former Member
0 Likes
814

My problem has been solved. The issue was with DR/CR indicator and amount sign. I was passing just opposite amounts and indicators and because of this it was creating Credit memo instead of Invoice.

Thanks anyways for your inputs...

Regards,

Atul