You are on page 1of 4

Issue

The requirements from Kelly are below:


1. When Billing System (ARIES and SAPAR are the impacted Billing Systems for Auto Rental - Fleet) gets
these Reversals - they are all of Transaction Type EZ, even though some months have already billed
delinquent.
a. The months that have not yet billed delinquent are supposed to come in as EZ and are clearing fine.
b. The months that have been billed delinquent need to come to the Billing System as Transaction Type ER
instead.

Ruth do you know what the field combinations would be that would allow us to know that the above
records should be given a Transaction Type of ER? We need to know what fields would make these
records unique so we can code to change them to the ER instead of EZ as requested.
Analysis
In CR06M00 program, the transaction type# EZ ,ER gets set based on either TRANS-TYP-CD of ACTY-
LOG table or ADT-IND of POL-COVG table in section# 2230-DERIVE-TRAN-TYP-RPTR of this program as
given below
Below are the list of possible ADT-IND values in POL-COVG table
A - ACTUAL AUDITABLE
B - ACTUAL REVERSAL/BACKOUT AUDITABLE
E - ESTIMATE NOT AUDITABLE
R - ESTIMATE REVERSAL/BACKOUT NOT AUDITABLE
Highlighted the places where the transaction type got set as EZ & ER

2230-DERIVE-TRAN-TYP-RPTR
|
EVALUATE TRUE
WHEN TRANS-TYP-CD OF ACTY-LOG = ('CANCEL' OR 'CANADJ')

IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR


(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
SET CR-TRAN-TYP-EX-CANCEL TO TRUE
MOVE POL-CAN-DT OF DCLPOL-CONTR TO WS-CHG-EFF-DT
ELSE
EVALUATE ADT-IND OF DCLPOL-COVG
WHEN 'E'
SET CR-TRAN-TYP-EE-EST TO TRUE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
WHEN 'R'
SET CR-TRAN-TYP-EZ-EST-RVRSL TO TRUE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
WHEN OTHER
SET CR-TRAN-TYP-EX-CANCEL TO TRUE
MOVE POL-CAN-DT OF DCLPOL-CONTR TO WS-CHG-EFF-DT
END-EVALUATE
END-IF
WHEN TRANS-TYP-CD OF ACTY-LOG = REINST

SET CR-TRAN-TYP-EI-REINST TO TRUE


IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR
(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
SET CR-TRAN-TYP-EI-REINST TO TRUE
MOVE POL-CAN-DT OF DCLPOL-CONTR TO WS-CHG-EFF-DT
ELSE
EVALUATE ADT-IND OF DCLPOL-COVG
WHEN 'E'
SET CR-TRAN-TYP-EE-EST TO TRUE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
WHEN 'R'
SET CR-TRAN-TYP-ER-EST-RVRSL TO TRUE
MOVE TRAN-EFF-DT OF DCLPOL-COVG
WHEN OTHER
SET CR-TRAN-TYP-EI-REINST TO TRUE
MOVE POL-CAN-DT OF DCLPOL-CONTR TO WS-CHG-EFF-DT
END-EVALUATE
END-IF

WHEN ADT-IND OF POL-COVG = 'A'


--- ACTUAL PREM ---
IF POL-TYP-RPTR-COUNTER-PRDT
SET CR-TRAN-TYP-ED-CNTR-ACT-TO-BIL TO TRUE
ELSE
SET CR-TRAN-TYP-EA-ACT-TO-BIL TO TRUE
IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR
(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
CONTINUE
ELSE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
END-IF
END-IF
WHEN ADT-IND OF POL-COVG = 'B'
--- ACTUAL PREM REVERSAL ---
SET CR-TRAN-TYP-EB-ACT-RVRSL TO TRUE
IF POL-TYP-RPTR-COUNTER-PRDT
CONTINUE
ELSE
IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR
(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
CONTINUE
ELSE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
END-IF
END-IF
WHEN ADT-IND OF POL-COVG = 'E'
--- ESTIMATE PREM ---
IF POL-TYP-RPTR-COUNTER-PRDT
SET CR-TRAN-TYP-ED-EST-CNTR TO TRUE
ELSE
SET CR-TRAN-TYP-EE-EST TO TRUE
IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR
(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
CONTINUE
ELSE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
END-IF
END-IF
WHEN ADT-IND OF POL-COVG = 'R'
--- ESTIMATE PREM REVERSAL ---
IF POL-TYP-RPTR-COUNTER-PRDT
SET CR-TRAN-TYP-ED-EST-CNTR TO TRUE
ELSE
SET CR-TRAN-TYP-ER-EST-RVRSL TO TRUE
IF (POL-SRC-CD OF DCLPOL-CONTR NOT = 'XS') OR
(ZA-STMT-LN-CD OF DCLPOL-COVG = WS-50)
CONTINUE
ELSE
MOVE TRAN-EFF-DT OF DCLPOL-COVG TO WS-CHG-EFF-DT
END-IF
END-IF
END-EVALUATE
The EZ transaction type code is specially for SAP AR Billing. The logic should have an additional check
for the dates.

In the example below, the timestamp on when the cancellation transactions came was 6/30/2016
timestamp.
The April Estimate had already become delinquent and is in a billed status.

So if you take the change effective date of 4/1/2016 & add a month, the result would be 5/31/2016.
5/31/2016 < 6/30/2016 so ER instead of EZ.

For change effective date of 5/1/2016 & add a month, the result would be 6/30/2016. 6/30/2016 is not
< timestamp of 6/30/2016 so transaction type EZ stays as EZ.