Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_ACC_DOCUMENT_CHECK error: - FI/CO interface: Balance in transaction currency Error in document: BKPFF $

Hello All,


We have implimented a small workflow for CREDIT NOTE approval Last year and as a last step we are using "BAPI_ACC_DOCUMENT_CHECK" & "BAPI_ACC_DOCUMENT_POST" to create the CREDIT NOTE (as similar to FB75).


The program was running fine for more than a year now (in ECC 6, EHP 4) till last week when we have upgraded the system to EHP 7.


Suddenly for the same inputs the system now throws below errors


I am getting following error while executing BAPI_ACC_DOCUMENT_POST:

TYPEIDNUMBERMESSAGE
ERW021FI/CO line item without transaction currency information
ERW609Error in document: BKPFF $ CSPCLNT500

When I cross verified the system, this is due to enhancement in the code in AC_DOCUMENT_CHECK function called inside BAPI_ACC_DOCUMENT_CHECK

======================================

  IF i_comp_check  IS INITIAL AND

   t_acchd-subset  IS INITIAL AND                       "Note 1514384

   t_acchd-glvor NE 'RFBV' AND "not for document parking Note 1444750

     ( t_acchd-status_new NE 1 AND                      "Note 1471324

       t_acchd-status_new NE 2 AND                      "Note 1471324

       t_acchd-status_new NE 3 ).                       "Note 1471324

    PERFORM check_balance.

  ENDIF.


===================================

This code was not available in EHP4 (though the subroutine CHECK_BALANCE is there but it is never called). So Please Guide me on what should be done to over come this issue.

Irony is when we post the document via FB01 or FB75 things are going fine and hence business says its a Bug in program

Appreciate any kind of help in this regard.

Thanking you in advance.

Lakshmi Narayana

Former Member
Former Member replied

Guys,

After speaking to SAP via OSS, we got the solution and it is as below (in case any of you encounter this issue)

Make sure that the field "LOG_PROC" is EMPTY in the tables parameter of ACCOUNTGL

We used to populate it with text "FB75" just as reference and it was working fine in EHP4 but in EHP7 it causes extra check and fails the BALANCE condition.

Though it looks weired but this is the solution given by SAP...

So thought I should share so that others don't have to spend so much time debugging code

I am closing this as ANSWERED... Thanks to SAP.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question