Analysis Consolidation and Interaction with Business Rules

In both Payment Run (PYR) and Payment Collection Run (PYC), there are two options that allow the consolidation and setting of analysis codes: Amend Consolidation (for the creditor or debtor transaction line analysis codes), and Bank Analysis (for the payment account or collection account transaction analysis codes).

You can also use Business Rules to set or validate analysis codes on the transactions generated by Payment Run and Payment Collection Run. To do this, create an Event Profile that checks for a Function Code of Payment Run, and use a Call Point of either 00015 Populate or 00016 Validate Analysis on System Generated Transactions.

Note:  If a transaction fails validation by a business rule using call points 0015 or 0016, by default the error message is not shown in the transaction report. This is because it is not included in the SunSystems sample reports; therefore, to show the details of such analysis code validation, you must add an appropriate column for this to the relevant transaction report for the process (payment, collection, and so on.).

The following tables describe how the Amend Consolidation and Bank Analysis options interact with Business Rules Call Points 00015 and 00016.

Interaction of Amend Consolidation and Business Rules

Amend Consolidation Business Rules Call Point 00015 - Populate Business Rules Call Point 00016 - Validate Allowed Combination Impact
Analysis set only in Amend Consolidation     Yes No validation against Chart of Accounts Analysis settings for the creditor or debtor account.
Analysis set only in Amend Consolidation   Call point 16 validates analysis. Yes Analysis is validated against Chart of Accounts analysis settings.
Not used Analysis is set only via Rules   Yes In this scenario Call point 16 is invoked automatically after call point 15, and analysis is validated against the Chart of Accounts settings.
Analysis set in Amend Consolidation Analysis may be further adjusted via Rules.   Yes (but unlikely). In this scenario Call point 16 is called automatically after Call Point 15, and analysis is validated against the Chart of Accounts settings. Business Rules are applied based on the original transactions, but the analysis generated via Business Rules takes precedence over that generated via Amend Consolidation.

Interaction of Bank Analysis and Business Rules

Bank Analysis Business Rules Call Point 00015 - Populate Business Rules Call Point 00016 - Validate Allowed Combination Impact
Not used Not used   Yes By default analysis is inherited from the Creditor or Debtor side of the transaction, that is, from Amend Consolidation, if this in use.
Analysis set only in Bank Analysis     Yes Analysis on the bank side becomes separate from analysis on the Creditor or Debtor side. No validation against Chart of Accounts Analysis settings for the bank account.
Not used Business Rules are defined.   Yes - see note below. In this scenario Call point 16 is invoked automatically after call point 15, and analysis is validated against the Chart of Accounts settings.
Analysis set in Bank Analysis Business Rules are defined.   No The Business Rules are ignored and the Bank Analysis settings are definitive.
Note:  You can only set analysis on the Bank transaction via Business Rules if the Single Transaction to Payment Account option is set on Payment Run, or the Single Transaction to Collection Account option is set on Payment Collection Run.

Interaction of Exchange Gain/Loss Analysis and Business Rules

Exchange Gain/Loss Analysis Business Rules Call Point 00015 - Populate Business Rules Call Point 00016 - Validate Allowed Combination Impact
Not used Not used   Yes By default analysis is inherited from the Creditor or Debtor side of the transaction, that is, from Amend Consolidation, if this in use.
Analysis set only in Exchange Gain/Loss Analysis     Yes Analysis on the Exchange Gain/Loss side becomes separate from analysis on the Creditor or Debtor side. No validation against Chart of Accounts Analysis settings for the Exchange Gain/Loss accounts.
Not used Business Rules are defined.   Yes In this scenario Call point 16 is invoked automatically after call point 15, and analysis is validated against the Chart of Accounts settings.
Analysis set in Exchange Gain/Loss Analysis Business Rules are defined.   No The Business Rules are ignored and the Exchange Gain/Loss Analysis settings are definitive.