C1-APAYSUB

The C1-APAYSUB algorithm will be plugged at the "Enter" System event of the business object (C1-AutoPayRequest) life cycle status: SUBMITTED.

This algorithm checks the following:

  1. Whether the approval is required for the auto pay request based on the configuration in auto pay request type (IS_​APPR_​REQ = Y).

    1. If the approval is required for the auto pay request, the status of the auto pay request is changed to Approval In Progress.

    2. If the approval is not required for the auto pay request, the status of the auto pay request is changed to UPDATEAPAY.

  2. At least one auto pay record is selected in the auto pay request.

  3. Updated scheduled extraction date cannot be less than system date.

  4. Auto Pay Request cannot be created for any auto pay record if the same auto pay record is selected in another request which is in the Approval In Progress status.