Skip to content

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

GetDMSDocByCommDoc(Integer, Text, Option) : Text[30]#

procedure GetDMSDocByCommDoc(TableID: Integer; Position: Text; Direction: Option): Text[30]

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDLinkedDocumentsLib", 'OnBeforeSaveDMSDocument', '', false, false)]
local procedure DoSomethingOnBeforeSaveDMSDocument(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)
begin
end;