C1-BLCORBLCN
This algorithm is invoked when a bill correction enters the Bill Cancelation status. It executes the below logic:
-
Set the lastUserAction attribute in the BO_DATA_AREA to 'CANCEL'.
-
If the number of bill segments to be canceled is greater than the online record process limit, then submit the batch job C1-BLCNL and create a record in C1_BILL_CORR_BATCH. The status of the bill correction is changed to Deferred Bill Cancelation.
-
If the number of bill segments to be canceled is not greater than the online record process limit, then the algorithm performs the cancelation of all the eligible bills in the bill correction. If the Cancelation Accounting Date Option on the Bill Correction Master Configuration is set to Current Business Date then the processing date is used as the accounting date for bill cancelation. However, if the Cancelation Accounting Date Option on the Bill Correction Master Configuration is set to Original Accounting Date, then the maximum accounting date from CI_FT for the segments of the bills is used as the accounting date for bill cancelation. For the canceled bill segments, the BILL_CYC_CD and WIN_START_DT are cleared in the table CI_BSEG. If all the segments of a bill are canceled, then the BILL_CYC_CD and WIN_START_DT are cleared in the table CI_BILL. The field BILL_CORR_REGEN_ST_FLG in C1_BILL_CORR_BILL is updated to CNLD for the canceled bills. If there are no errors while canceling the bills, then the status of the bill correction is changed to Configuration Correction, else the status is changed to Error In Cancelation. Also, the error is logged in the table C1_BILL_CORR_EXCP.
