SAP Message ACC_SYSTEM040 - No unique reference accounting system for accounting system &1

Diagnosis
Accounting systems &V2& and &V3& were determined as reference accountingsystems for accounting system &V1& in the present context (for example,for a document) by applying reference valuation rule &V4&.
But the reference accounting system must always be able to be determineduniquely for a given accounting system in an existing context.
The cause of the problem is that at least two accounting systems aredetermined for the context, and that both of these accounting systemsoccur as reference accounting systems in the valuation rule.

System Response
Processing is terminated.

Procedure
Check the settings of reference valuation rule &V4& and the selectionconditions for accounting systems &V2& and &V3&. Either restrict theselection conditions so that only one accounting system can befound for the context, or remove one of the accounting systems fromreference valuation rule &V4&.
If you cannot find any errors, then the context information transferredduring processing is not sufficient to determine one referenceaccounting system. In this case, inform your system administrator.