Skip to Content

Debugging tips: How to analyze error message F5 704?

Here are some hints on how to carry out an investigation, when the error message F5 704 “Inconsistent amounts” occurs.


This error F5 704 is occurring, when an invoice is trying to be released to accounting via transaction VF02:


As can be seen from the F1 help text itself, the error is caused because the characteristics of the amount (positive/negative) to be posted does not fit to the used Credit/Debit indicator (SHKZG).

If this indicator is S (= Debit) than the amount can not be negative, whereas when it is H (=Credit), than it can not be positive.

The component to create a SAP Support message is usually SD-BIL-CA. However the error can be caused as well by the polish downpayment procedure with function module ID_PL_DOWNPAYMENT.  In this case the country specific component XX-CSC-PL-LO would have to be chosen,which is for Poland.

At the very beginning this latter case has to be taken into consideration, if currency used is PLN and the mentioned function module is executed in the release to accounting process.

Analysis procedure

1. Check because of what the error message is raised

The first step is to check, for which line item the error occurs, and which SHKZG is involved. To see this a break point at the error message itself should be set:


By checking the fields of the two structures ACCIT_FI and ACCCR_FI you get the information what inconsistency occurred. In the above example for customer line with a debit indicator (ACCIT_FI-SHKZG = S) an amount (ACCCR_FI-WRBTR) is tried to be posted, which is negative. This is not allowed, therefore the error message is raised.

2. Check for changes of the amount / posting key

Usually such an error is caused by custom own modifications in user-exits. To find out, changes of the relevant line (POSNR) for which the error is given, has to be monitored starting in function module RV_ACCOUNTING_DOCUMENT_CREATE. In most cases the change occurred in exit 8:


Here it can be seen that before the user-exit is called, the value of the first line is still 4072.79.

After the exit is processed, this had been changed, and the new value is -0,03:


The call stack looked like this:


What influences the amount and the credit/debit indicator can be different. In other cases another user-exit of the SD/FI interface was responsible. In EXIT_SAPLV60B_002 some customers changed the posting key XACCIT-BSCHL, which led to a different ACCIT_FI-SHKZG (H instead of S) and as a result again F5 704 because amount and indicator did not fit together.


The error message F5 704 can have different causes, in the past most often custom own manipulations of the amount in the user-exit EXIT_SAPLV60B_008 had been responsible.

If the polish downpayment functionality is used, then it will have to be checked with a break point in function module ID_PL_DOWNPAYMENT if therein values are changed. Several notes exist in this case, but if it gets complicated a SAP Support message will have to be created with the component XX-CSC-PL-LO.

You must be Logged on to comment or reply to a post.