KVSMEDLinkedDocumentsLib
Procedures
GetInfoHeaderDocuments(Record KVSMEDInfoRequestHeader, Option, Record KVSMEDDIQueryResultBlob, Boolean) : Boolean
procedure GetInfoHeaderDocuments(InfoRequestHeader: Record "KVSMEDInfoRequestHeader"; var LinkedDocument: Option; var TempDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob" temporary; ShowError: Boolean): Boolean
GetArchivedDocuments(Code[20], Code[20], Integer, Text[50], Code[20], Code[50], Code[20], Boolean, Boolean, Boolean, Enum KVSMEDDocumentFilter, Enum KVSMEDEmptyYesNo, Integer, Record KVSMEDDIIMDocument, Record KVSMEDDIQueryResultBlob, Boolean) : Boolean
Summary: Retrieves archived DMS documents matching the given filter criteria and collects them into the temporary buffers.
procedure GetArchivedDocuments(CustomerNo: Code[20]; ProcessNo: Code[20]; ProcessPeriodNo: Integer; DocumentType: Text[50]; DocumentNo: Code[20]; Barcode: Code[50]; InfoRequestNo: Code[20]; OnlyCounter: Boolean; UseDocuments: Boolean; LinkedDocument: Boolean; DocumentFilter: Enum "KVSMEDDocumentFilter"; FormalDefect: Enum "KVSMEDEmptyYesNo"; var Counter: Integer; var TempKVSMEDDIIMDocument: Record "KVSMEDDIIMDocument" temporary; var TempKVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob" temporary; _ShowError: Boolean): Boolean
Parameters:
CustomerNo: Customer No. filter; empty to not filter.ProcessNo: Process No. filter; empty to not filter.ProcessPeriodNo: Process Period No. filter, used together with ProcessNo.DocumentType: DMS document (sub)type filter; empty to not filter.DocumentNo: Document No. filter; empty to not filter.Barcode: Barcode filter; empty to not filter.InfoRequestNo: Info Request No. filter; empty to not filter.OnlyCounter: If true, only the document count is determined and no documents/blobs are returned.UseDocuments: If true, found index entries are accumulated into the global result buffer for later retrieval.LinkedDocument: Filters on whether the DMS document is a chain-printing linked document.DocumentFilter: Determines whether all, only the first, or only the last matching document is returned.FormalDefect: Filters out archived documents whose formal-defect state does not match; " " keeps all.Counter: Returns the number of documents found (or kept after formal-defect filtering).TempKVSMEDDIIMDocument: Temporary record filled with the found DMS documents.TempKVSMEDDIQueryResultBlob: Temporary record filled with the document blobs (unless discarded/OnlyCounter).ShowError: Reserved for callers to control error display; not modified here.
Returns: True in all normal paths; false only if DMS is not active.
GetDMSDocByCommDoc(Integer, Text, Option) : Text[30]
procedure GetDMSDocByCommDoc(TableID: Integer; Position: Text; Direction: Option): Text[30]
GetShipmentInBillingPeriodByInvoiceLine(Record Sales Invoice Line, Record Sales Shipment Header) : Boolean
Summary: Finds the posted sales shipment(s) in the billing period linked to a sales invoice line's billing schedule call.
procedure GetShipmentInBillingPeriodByInvoiceLine(var SalesInvoiceLine: Record "Sales Invoice Line"; var TempSalesShipmentHeaderVar: Record "Sales Shipment Header" temporary): Boolean
Parameters:
SalesInvoiceLine: Sales invoice line whose linked billing schedule call is used to find the shipment.TempSalesShipmentHeaderVar: Temporary record filled with the found shipment header(s).
Returns: True if at least one shipment was found; otherwise false.
InfoRequestHeaderReplyOK(Record KVSMEDInfoRequestHeader, Code[20]) :
Summary: Updates the copy of the given Information Request Header. The process includes setting the received reply quality, document number, and status code. If the Information Request Header or the Communication Status Template Line are not found, the procedure will exit. In case the expected reply quality is less than the copy, the received reply quality is set to copy.
procedure InfoRequestHeaderReplyOK(KVSMEDInfoRequestHeader: Record "KVSMEDInfoRequestHeader"; DocumentNo: Code[20]):
Parameters:
KVSMEDInfoRequestHeader:DocumentNo:
GetSalesInvHeaderDocuments(Record Sales Invoice Header, Option, Record KVSMEDDIQueryResultBlob, Boolean) : Boolean
procedure GetSalesInvHeaderDocuments(salesInvoiceHeader: Record "Sales Invoice Header"; var linkedDocumentVar: Option; var TempKVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob" temporary; showError: Boolean): Boolean
GetSalesShptHeaderDocuments(Record Sales Shipment Header, Option, Record KVSMEDDIQueryResultBlob, Boolean) : Boolean
procedure GetSalesShptHeaderDocuments(salesShipmentHeader: Record "Sales Shipment Header"; var linkedDocumentVar: Option; var TempKVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob" temporary; showError: Boolean): Boolean
DiscardBlobToCreateEntries() :
procedure DiscardBlobToCreateEntries():
Events
OnBeforeSaveDMSDocument(Code[20], Text[30], Code[20], Text[30], Boolean, Record KVSMEDDIQueryResultBlob, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeSaveDMSDocument(CustomerNoPar: Code[20]; DocumentTypePar: Text[30]; DocumentNoPar: Code[20]; BarcodePar: Text[30]; ShowErrorPar: Boolean; var TempDIQueryResultBlobVar: Record "KVSMEDDIQueryResultBlob" temporary; var Result: Boolean; var isHandled: Boolean):
OnBeforeSetAdditionalValuesFilter(Code[20], Code[20], Integer, Text[50], Code[20], Code[50], Code[20], Dictionary) :
[IntegrationEvent(false, false)]
local procedure OnBeforeSetAdditionalValuesFilter(CustomerNo: Code[20]; ProcessNo: Code[20]; ProcessPeriodNo: Integer; DocumentType: Text[50]; DocumentNo: Code[20]; Barcode: Code[50]; InfoRequestNo: Code[20]; var AdditionalValues: Dictionary):