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.