Table of Contents

KVSMEDInfoRequestLib

Procedures

CreateRequestByProcessInfo(Record KVSMEDProcessPeriod, Integer, Code[20], Record KVSMEDProcessInformation, Boolean) : Boolean

Summary: Handles creating, validating, and updating an information request by the given process period. The procedure includes various checks, creating the request header and lines, updating blocking flags, creating request text and reply details. It also handles the release of the request and changes the status of the request.

procedure CreateRequestByProcessInfo(KVSMEDProcessPeriod: Record "KVSMEDProcessPeriod"; FromTableId: Integer; DocumentNo: Code[20]; KVSMEDProcessInformation: Record "KVSMEDProcessInformation"; ShowError: Boolean): Boolean

Parameters:

  • KVSMEDProcessPeriod:
  • FromTableId:
  • DocumentNo:
  • KVSMEDProcessInformation:
  • ShowError:

Returns:

UpdateDepositoryOfOriginalRelated(Record KVSMEDProcessInformation, Boolean) :

Summary: Updates the depository status of originals in related process periods for the given process information. Use this procedure to synchronize whether the original document is considered to be in house or out of house across related entries.

procedure UpdateDepositoryOfOriginalRelated(InKVSMEDProcessInformation: Record "KVSMEDProcessInformation"; InHouse: Boolean): 

Parameters:

  • InKVSMEDProcessInformation: The process information record that provides the source context for the related depository update.
  • InHouse: Set to true when the original document is in house; otherwise false.

UpdateDepositoryOfOriginal(Record KVSMEDInfoRequestHeader, Boolean) :

Summary: Updates the depository status of the original document for the process information referenced by the information request header. Use this procedure to mark the original as being in house or out of house and propagate the result to related process information records.

procedure UpdateDepositoryOfOriginal(var KVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; InHouse: Boolean): 

Parameters:

  • KVSMEDInfoRequestHeader: The information request header whose original document status is used as the source for the update.
  • InHouse: Set to true when the original document is in house; otherwise false.

RequestStatusChange(Record KVSMEDInfoRequestHeader, Enum KVSMEDInfoRequestStatus, Code[20], Boolean) : Boolean

Summary: This procedure is used to request a change in the status of a KVSMEDInfoRequestHeader record. The new status is determined by the KVSMEDInfoRequestStatus parameter. The procedure performs several checks and adjustments to other fields based on the new status, and logs the change if necessary. The function takes four parameters: KVSMEDInfoRequestHeader (a variable record that will be updated), KVSMEDInfoRequestStatus (an enumeration that defines the new status), StatusCodeFilter (a code used to filter the status), and ShowError (a boolean that indicates whether errors should be shown or not). The function returns a boolean value indicating the success or failure of the status change request.

procedure RequestStatusChange(var KVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; KVSMEDInfoRequestStatus: Enum "KVSMEDInfoRequestStatus"; StatusCodeFilter: Code[20]; ShowError: Boolean): Boolean

Parameters:

  • KVSMEDInfoRequestHeader:
  • KVSMEDInfoRequestStatus:
  • StatusCodeFilter:
  • ShowError:

Returns:

Events

OnBeforeCreateInfoRequestLinesOnCreateRequestByProcessInfo(Record KVSMEDInfoRequestHeader, Record KVSMEDInfoRequestLine) :

Summary: This event is triggered before creating info request lines on creating a request for a process period. It allows for custom logic to be executed before the lines are created.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateInfoRequestLinesOnCreateRequestByProcessInfo(KVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; var TempKVSMEDInfoRequestLine: Record "KVSMEDInfoRequestLine" temporary): 

Parameters:

  • KVSMEDInfoRequestHeader:
  • TempKVSMEDInfoRequestLine: