KVSKBACLLCMPComplianceStatLib
Procedures
ReleaseCompliance(Record KVSKBACLLCallHeader) :
Summary: Releases the compliance record associated with the given call header.
procedure ReleaseCompliance(var callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record for which to release the compliance.
Remarks: This procedure handles the release of a compliance record associated with a call header. It first checks if the call header is in Open status and if the four-eyes principle is satisfied. Then, it checks if each release level (1 to 5) is required for the compliance record and if it has been released. If all required release levels are released, it updates the call header status to Released, sets the "Released by" field to the current user, and calls the compliance document library to perform any necessary actions related to releasing the compliance document. Finally, it checks for any open to-dos associated with the call and archives the call.
Events
OnBeforeCloseCallAtReleaseCompliance(Record KVSKBACLLCallHeader) :
Summary: Integration event raised before closing a call during compliance release.
[IntegrationEvent(false, false)]
local procedure OnBeforeCloseCallAtReleaseCompliance(var callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record being released.
Remarks: Subscribers can implement custom logic before the call is closed and archived during the compliance release process. This allows for performing additional actions or validations before the call status is updated to Released.
OnAfterReleaseCompliance(Record KVSKBACLLCallHeader) :
Summary: Integration event raised after a compliance record has been released and archived.
[IntegrationEvent(false, false)]
local procedure OnAfterReleaseCompliance(var callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The released call header record.
Remarks: Subscribers can implement custom logic after the compliance record has been successfully released. This allows for post-release processing, notifications, or related updates after the call has been archived.