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
3,916

Hi,

Can any one tell me how to pass on the POSTING KEY to the EXTENSION in the BAPI_ACC_DOCUMENT_POST.

I want to pass it to EXTENSION1 or EXTENSION2.

if the posting key is 21 to 39 it should be '-'

and if it is 40 , it should be '+'.

If i pass on the Posting key to EXTENSION2-VALUEPART1 , it is not considering it in calcuting the amount and it is showing the error "BALANCE IN TRANSACTION CURRENCY'.

Can any one help .

Vikki.

12 REPLIES 12
Read only

Former Member
0 Likes
2,522

Vikki,

The posting key is filled automatically determined by the BAPI based on a combination of how you populate your AccountsReceivable and AccountPayable tables in the BAPI and the GL account.

Please note that based on the kind of document that you want to populate, only one of these tables are filled.

I suggest that you write an ABAP program and pass various instances as values to the BAPI and check the actual postings.

Sojan Samuel

Read only

Former Member
0 Likes
2,522

I solved it by passing the values to EXTENSION2.

Read only

0 Likes
2,522

Hi Vikki,

I am facing the Problem regarding Posting keys in BAPI_ACC_DOCUMENT_POST

Can you tell me the steps for Passing Posting key values to Extension2 .

Your help is appreciable

Thanks,

Kishore

Read only

0 Likes
2,522

Hi , can you please help me on following issue..

I need to find the BAPI for transaction F-02 (G/L Account Post) .. but i am not bale to find the BAPI which contains Posting key as its parameter .. Please suggest the BAPI which will fulfill this requirement or any otehr solution

Regards ,

Uma

Read only

0 Likes
2,522

Hi , can you please share how did you solve your problem ....

Please help me on following issue..

I need to find the BAPI for transaction F-02 (G/L Account Post) .. but i am not able to find the BAPI which contains Posting key as its parameter .. Please suggest the BAPI which will fulfill this requirement

Regards ,

Uma

Read only

0 Likes
2,522

Uma,

You should use the BADI for posting the document with the specified posting key in the document, otherwise you can't post the documents with posting keys.

This BAPI ( BAPI_ACC_DOCUMENT_POST), will decides the posting key based on the indicator, for that we should implement BADI

(BADI_ACC_DOCUMENT) if i'm not wrong.

Please check my earlier posts.

they shoud be with my name ( Adinarayana Bathineni).

Thanks,

Adi.

Read only

0 Likes
2,522

Hi Adi,

how to pass the posting value to extension2 in the bapi.. Do you have any sample code for that.

can you please help me to resolve it.

Thnaks,

Pasumpon Karuppaiah.

Read only

Former Member
0 Likes
2,522

Hi Vikki,

I would appreciate if you share with us how you have dealt with posting keys in your code.

Regards

Vikas

Read only

0 Likes
2,522

Hi,

you can solve the issue by using the EXTENSION2 structure and the Enhancement

BADI_ACC_DCOUMENT

The Enhancement Spots are BADI_ACC_DOCUMENT and IF_EX_ACC_DOCUMENT.

I've used the BADI_ACC_DOCUMENT and now i'm able to post the documents using the keys which i've supplied to the BAPI.

Otherwise the BAPI is going to decide the posting keys based on tha amount .

Hope this will help you.

If you need any info on this, please inform me.

Thanks,

Adi.

Read only

0 Likes
2,522

Hello Adi,

Can you please share your implementation of the BADI - BADI_ACC_DOCUMENT?

I am facing a similar issue of not being able to define posting keys for the BAPI -BAPI_ACC_DOCUMENT_POST.

Will I be able to specify both credit and debit side postings for invoice postings using this BADI?

Thanks,

Rugmani

Read only

0 Likes
2,522

Hi , can you please help me on following issue..

I need to find the BAPI for transaction F-02 (G/L Account Post) .. but i am not able to find the BAPI which contains Posting key as its parameter .. Please suggest the BAPI which will fulfill this requirement

Regards ,

Uma

Read only

0 Likes
2,522

Hi... have you got the solution ,can you please share ... the problem is as follow :

I need to find the BAPI for transaction F-02 (G/L Account Post) .. but i am not bale to find the BAPI which contains Posting key as its parameter .. Please suggest the BAPI which will fulfill this requirement or any otehr solution

Regards ,

Uma

Edited by: Uma Dave (ArchitectSAP) on Jun 30, 2009 2:13 PM