Algorithms Used in C1-WORequest

The following table lists the algorithms which are attached to the C1-WORequest 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:
  • Refund or Write Off Request Type Description

  • Refund or Write Off Request Status Description

  • Refund or Write Off Request ID

Post-Processing C1-WOPOSP C1-WOPOSP This algorithm recalculates and updates the total write off amount in the Write Off Request zone when you change the write off amount against an entity while editing a write off request.
Validation C1-WOBOVAL C1-WOBOVAL This algorithm validates the following for each entity that you have selected in the write off request:
  • The mandatory data, such as write off amount and adjustment type, is specified.

  • The write off amount is not less than zero.

  • The write off amount is not greater than the entity amount.

  • The write off amount is not greater than the eligible write off amount.

  • The partial write off is not done at the bill level.

  • The A/P Request Type is not defined in the selected adjustment type.

The following table lists the algorithms which are used in the lifecycle of the C1-WORequest business object:

Status System Event Algorithm Algorithm Type Description
Draft - - - -
Submitted Enter C1-WOSUBMIT C1-WOSUBMIT This algorithm checks the following:
  • Whether the approval is required for the write off request. If the approval is required for a write off request, the status of the write off request is changed to Approval In Progress. However, if the approval is not required for a write off request, the status of the write off request is changed to Creating Adjustment.

  • At least one debit bill line item (such as debit bill segment or adjustment) is selected in the write off request.

  • Whether the approval profile attached to the write off request type has the debit hierarchy and C1-WOREQ To Do type defined.

Approval In Progress Enter C1-WOAPPROVL C1-WOAPPROVL This algorithm creates the following:
  • A To Do using the To Do type specified in the approval profile which is attached to the write off request type. The To Do is sent to the appropriate users in the approval hierarchy depending on whether hierarchical approval is required or not.

  • A log entry is added when a To Do is created using the To Do type.

Approved Enter C1-WOAPPROVD C1-WOAPPROVD 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 write off 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 write off request is changed to Creating Adjustment.
Rejected - - - -
Creating Adjustment Enter C1-WOADJCRT C1-WOADJCRT This algorithm does the following:
  • Creates the write off adjustments for the write off request. These write off adjustments are created in the Frozen status. The adjustment ID is displayed corresponding to the entity in the Write Off Details zone.

  • Stamps the bill ID of debit line item on the adjustment and the corresponding financial transaction.

  • If a match event is present for the debit bill line item, the existing match event is stamped on the write off adjustment and the corresponding financial transaction. However, if the match event does not exist, a new match event is created and stamped on the write off adjustment and the corresponding financial transaction.

  • If you are doing a partial write off for any entity, the corresponding match event status is set to Open. However, if the entire eligible amount is written off, the corresponding match event status is set to Balanced.

Processed - - - -
Cancelled Enter C1-WOCANCEL C1-WOCANCEL

This algorithm is invoked on click of the Cancel button for a write off request which is in the Processed state.

This algorithm cancels all the frozen adjustments created for the write off request.

The algorithm fetches the adjustment cancel reason required for cancelling the adjustments in the status reason characteristics (F1_​BUS_​OBJ_​STATUS_​RSN_​ C HAR table). If the reason is not found, it will use the status reason selected by the user.