cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

Hi Gurus,

We are using BAPI_ACC_DOCUMENT_POST for posting mulitiple line items

through transaction code F-02. We are trying to post multiple line

items and the posting keys which we are using on BAPI are 39,40,50.

We are able to post the documents though posting keys 40 and 50, but

we are not able to post the document which is having posting key 39 and

special indicatior created L. The error is as follows :

"Balance in transaction Currency".

Please help us resolve this issue. We are running this BAPI in the

background. Can we run this BAPI through foreground and find out the

problem.

Awaiting for your reply.

Regards,

Prasanna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

could you post your code...

Answers (4)

Answers (4)

Former Member
0 Kudos

"Balance in transaction Currency". issue comes when the document is not balance check your CURRENCYAMOUNT table it should have zero amount , I mean two records ending up as balanced[zero].

Former Member
0 Kudos

You need to see whether you are passing correct data, as the special GL indicator can be passed in ACCOUNTPAYABLE-SP_GL_IND in BAPI_ACC_DOCUMENT_POST.

You can manually check the BAPI in SE37 by passing the data in internal tables.

Regards,

Gaurav

raymond_moynihan
Contributor
0 Kudos

Hello Prasanna

Please, check the BAPI documentation:

" Functionality

Using this method you can create a posing in accounting for certain

business transactions.

Possible (Business Transactions):

- Postings that generally only affect the general ledger. (RFBU)

- Billing: For billing in Sales and Distribution, accounting is

supplied with the relevant billing data. (SD00) Billing Document

- Accounting can use the data of a logistics system that result from

an Invoice Receipt. (RMRP)

- Goods Movement are triggered by transactions in Sales and

Distribution or by inventory postings."

The BAPI_ACC_DOCUMENT_POST is designed to post Billing Documents and

Invoice Receipt. Therefore, the only posting keys available for

customers and vendors are '01', '11', '31' and '21' respectively.

This is hard coded in the program source code and there is no standard

way to change this:

Include LACC9F20

IF gs_accit-bschl IS INITIAL.

CASE gs_accit-koart.

WHEN 'D' OR 'V'.

IF gs_accit-shkzg = 'S'.

gs_accit-bschl = '01'.

ELSE.

gs_accit-bschl = '11'.

ENDIF.

WHEN 'K'.

IF gs_accit-shkzg = 'S'.

gs_accit-bschl = '21'.

ELSE.

gs_accit-bschl = '31'.

ENDIF.

hope this helps to clarify.

regards

Ray

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Try with BAPI_ACC_BILLING_POST. Check if you have the tax/es item/s. Check Note 487064 - Direct posting to tax account with AC BAPIs.

I hope this helps you.

Regards,

Eduardo