Algorithms Used in C1-RefundReq
The following table lists the algorithms which are attached to the C1-RefundReq business object:
System Event | Algorithm | Algorithm Type | Description |
---|---|---|---|
Information | C1-REFREQINF | C1-REFREQINF | This algorithm generates the refund and write off request
information string which appears throughout the application. It concatenates
the following fields:
|
Post-Processing | C1-REFWOPOSP | C1-REFWOPOSP | This algorithm recalculates and updates the total refund amount in the Refund Request zone when you change the refund amount against an entity while editing a refund request. |
Validation | C1-REFUNDVAL | C1-REFUNDVAL | This algorithm validates the following for each entity that
you have selected in the refund request:
|
The following table lists the algorithms which are used in the lifecycle of the C1-RefundReq business object:
Status | System Event | Algorithm | Algorithm Type | Description |
---|---|---|---|---|
Draft | Enter | C1-REF-DFT | C1-REF-DFT | This algorithm fetches the account's main customer's name
and address and displays in the Refund Request zone. In addition, when you refund the payments from the Payment Event Summary screen, this algorithm does the
following:
|
Submitted | Enter | C1-REFUNDSUB | C1-REFUNDSUB | This algorithm checks the following:
|
Approval In Progress | Enter | C1-REFUNDAPP | C1-REFUNDAPP | This algorithm creates the following:
|
Approved | Enter | C1-REFAPPRVD | C1-REFAPPRVD | This algorithm is triggered when the approver clicks the Approve button. It checks whether the approval is required from users at the next level in the approval hierarchy. If the approval is required from the next level in the approval hierarchy, the status of the refund request is changed to Approval In Progress and the algorithm attached to the Approval In Progress status is invoked. If further approval is not required, the status of the refund request is changed to Creating Adjustment. |
Rejected | - | - | - | - |
Creating Adjustment | Enter | C1-REFADJCRI | C1-REFADJCRI | This algorithm does the following:
|
Processed | - | - | - | - |
Voided | Enter | C1-REFVOID | C1-REFVOID |
This algorithm is invoked on click of the Void button for a refund request which is in processed state. The algorithm cancels all the frozen adjustments created for the refund request. The algorithm fetches the adjustment cancel reason required for cancelling the adjustments in the status reason characteristics (F1_BUS_OBJ_STATUS_RSN_CHAR table). If the reason is not found, it will use the status reason selected by the user |