C1-BCRPROC
This algorithm is invoked when the status of the upload request is changed to Processing. It fetches a list of records which are in the Valid status. It derives the characteristic type specified in the Bill Cycle Rule Code option type of the C1-ASOBLLNG feature configuration. For each valid record, the system checks whether a billing preference characteristic with the derived characteristic type and effective date combination is already defined for the account. If so, the system updates the existing billing preference characteristic value of the account. However, if a billing preference characteristic with the derived characteristic type and effective date combination does not exist for the account, the system creates the billing preference characteristic for the account.
The system creates or updates the billing preference characteristic of the account using the entity business object specified in the respective upload request type.
The system derives the bill cycle from the Bill Cycle attribute of the billing preference when the respective characteristic is effective for the account. The derived bill cycle is then stamped against the account.
If the record is successfully processed, the status of the record is changed to Processed. However, if the record could not be processed successfully due to any reason, the status of the record is changed to Error. Finally, the status of the upload request is changed to Processed.
