Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
You are getting error message F5A005 when you try to cancel an invoice in VF11, and do not know the cause.

The reason for this message is as follows :

You have carried out a foreign currency valuation in FI as a result fields XBSEG-BDIFF, XBSEG-BDIF2 or XBSEG-BDIF3
have been filled in the FI document. If you then try to carry out the reversal of the billing document using transaction
VF11, the system will use the new cancellation procedure and try to reverse the FI document. "See note 400000"

Error messsage F5A005 is issued in LFACIF70 when any of the above values are not 0.00.
Note 545032 explains this FI procedure.

Solution

You can follow the instructions of note 339928 to solve the problem.
Make sure that parameter 'rule_new_cancel' has the value B. This has to be set within USEREXIT_FILL_XKOMK1 in program LV60BU01.
You can avoid this error in debug mode when releasing the invoice to accounting from VF02.

For example

Main program SAPLFACI
Source code of LFACIF70

FORM REVERSE_ITEMS

* permit postings with valuation BDiff/2/3 <> space

IF XBSEG-BDIFF NE 0
OR XBSEG-BDIF2 NE 0
OR XBSEG-BDIF3 NE 0.
MESSAGE ID 'F5A' TYPE 'E' NUMBER '005'
WITH XBSEG-BUKRS SAVE-BELNR SAVE-GJAHR XBSEG-BUZEI.

XBSEG-BDIFF 0.01 >>> not 0.00 set to 0.00 in debug
XBSEG-BDIF2 0.00
XBSEG-BDIF3 0.00

Alternatively

For release > 4.5 it is possible to reset the valuation made with balance sheet preparation by creating a new valuation method in
transaction OB59 with the RESET button flagged. Then run SAPF100 (trx f.05) with the exact same variant/paramenters that you
used for your original run (with balance sheet preparation flag on again!!!)This will set the values of BSEG-BDIFF for the documents to zero.

Please, make sure that under Selections - document number, you specify the one document number (this is very important)