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:
-
Whether the approval is required for the auto pay request based on the configuration in auto pay request type (IS_APPR_REQ = Y).
-
If the approval is required for the auto pay request, the status of the auto pay request is changed to Approval In Progress.
-
If the approval is not required for the auto pay request, the status of the auto pay request is changed to UPDATEAPAY.
-
-
At least one auto pay record is selected in the auto pay request.
-
Updated scheduled extraction date cannot be less than system date.
-
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.