Table of Contents

KVSKBAVLOGManagement

Procedures

Send(Record KVSKBAVLOGInterfaceLine) :

Summary: Sends the provided V-LOG interface line via SOAP request and processes the response.

procedure Send(var VLOGInterfaceLine: Record "KVSKBAVLOGInterfaceLine"): 

Parameters:

  • VLOGInterfaceLine: The V-LOG interface line record to send.

Remarks: The procedure retrieves the V-LOG setup, saves the XML port for the interface line, and sends a SOAP request to the V-LOG web service. It processes the response to update the status of the interface line accordingly. If the request is blocked by the environment or if there is an error in the response, it raises an error with the appropriate message.

GetVlogStatus(Record KVSKBAVLOGInterfaceLine) :

Summary: Retrieves the current status of the provided V-LOG interface line by sending a SOAP request and processing the response.

procedure GetVlogStatus(var VLOGInterfaceLine: Record "KVSKBAVLOGInterfaceLine"): 

Parameters:

  • VLOGInterfaceLine: The V-LOG interface line record to retrieve the status for.

Remarks: The procedure updates the "Last Status Refresh at" and "Last Status Refresh by" fields of the V-LOG interface line, sends a SOAP request to retrieve the current status, and processes the response to update the status accordingly. If the request is blocked by the environment or if there is an error in the response, it raises an error with the appropriate message.

WritePackageData(Code[20]) :

Summary: Writes the package data for the given posted dispatch handling number to the V-LOG interface line.

procedure WritePackageData(PostedDispatchHandlingNo: Code[20]): 

Parameters:

  • PostedDispatchHandlingNo: The posted dispatch handling number to write package data for.

Remarks: The procedure checks if there are any posted dispatch handling lines of type "Carrier" for the given posted dispatch handling number. If there are, it checks if a corresponding V-LOG interface line exists. If not, it creates a new V-LOG interface line with the given posted dispatch handling number.

Print(Record KVSKBAPostedDispatchHandlLine) :

Summary: Prints all waiting V-LOG interface lines by setting the interface command to "KVS:Print" and running the V-LOG worker.

procedure Print(var PostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"): 

Parameters:

  • PostedDispatchHandlLine: The posted dispatch handling line record used as context for the print operation.

Remarks: The procedure iterates over all V-LOG interface lines with the command "Waiting", sets the V-LOG company and interface command, and runs the V-LOG worker with the "PRINT" action. If an error occurs, it inserts a new error line into the V-LOG interface error line table.

GetISOCountryCode(Code[20]) : Code[2]

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Gets the ISO country code based on the country code.

[Obsolete('This procedure is no longer supported, please use procedure GetISOCountryCodeFromCountryRegion', '27.4')]
procedure GetISOCountryCode(CountryCode: Code[20]): Code[2]

Parameters:

  • CountryCode: The country code.

Returns: The ISO country code.

Remarks: This procedure is obsolete. Use GetISOCountryCodeFromCountryRegion instead.

GetISOCountryCodeFromCountryRegion(Code[10]) : Code[2]

Summary: Gets the ISO country code based on the country/region code.

procedure GetISOCountryCodeFromCountryRegion(CountryCode: Code[10]): Code[2]

Parameters:

  • CountryCode: The country/region code.

Returns: The ISO country code.

Remarks: The country/region code is used in the V-LOG interface, but the ISO country code is needed for the web service call. This function does the conversion.

IsVlogInterfaceActive() : Boolean

Summary: Checks if the V-LOG interface is active based on the global V-LOG setup

procedure IsVlogInterfaceActive(): Boolean

Returns: True if the V-LOG interface is active; otherwise, false.

Remarks: The procedure checks the global V-LOG setup to determine if the V-LOG interface is active. If it is active, it also checks that the required fields "V-LOG Webservice URL" and "V-LOG Company" are filled in. If any of these checks fail, it returns false.

AddXMLArticle(Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlDocument) :

Summary: Adds an XML article element to the provided XML parent element based on the posted dispatch handling line record.

procedure AddXMLArticle(var PostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"; var XMLParent: XmlElement; var XMLDoc: XmlDocument): 

Parameters:

  • PostedDispatchHandlLine: The posted dispatch handling line record used as context for the XML article element.
  • XMLParent: The XML parent element to which the article element will be added.
  • XMLDoc: The XML document instance used for creating the article element.

Remarks: The procedure creates an XML article element, sets its attributes, and adds it to the provided XML parent element. It also triggers events before and after the creation of the article element, allowing for customization of the XML structure.

AddXMLText(XmlElement, Text, Text) :

Summary: Adds a text element to the provided XML parent element.

procedure AddXMLText(var XMLParent: XmlElement; Name: Text; Value: Text): 

Parameters:

  • XMLParent: The XML parent element to which the text element will be added.
  • Name: The name of the text element to be added.
  • Value: The value of the text element to be added.

Remarks: The procedure creates an XML text element with the specified name and value, and adds it to the provided XML parent element.

AddXMLAttribute(XmlElement, Text, Text) :

Summary: Adds an Attribute to the xml Element.

procedure AddXMLAttribute(var XMLParent: XmlElement; Name: Text; ValueText: Text): 

Parameters:

  • XMLParent: The XML element to which the attribute will be added.
  • Name: The name of the attribute to be added.
  • ValueText: The value of the attribute to be added.

Remarks: The procedure creates an XML attribute with the specified name and value, and adds it to the provided XML element.

ReplaceInnerValue(XmlElement, Text, Text) :

Summary: Replaces the inner value of all child elements with the specified name in the provided XML parent element with the given value text.

procedure ReplaceInnerValue(var XMLParent: XmlElement; Name: Text; ValueText: Text): 

Parameters:

  • XMLParent: The XML parent element containing the child elements to be replaced.
  • Name: The name of the child elements whose inner value will be replaced.
  • ValueText: The new value text to replace the inner value of the child elements.

Remarks: The procedure iterates over all child elements with the specified name in the provided XML parent element and replaces their inner value with the given value text.

FormatAsXML(Date) : Text

Summary: Formats a date value as XML.

procedure FormatAsXML(ValueDate: Date): Text

Parameters:

  • ValueDate: The date value to be formatted.

Returns: The formatted date value as a text string.

Remarks: The procedure uses the Format function to convert the date value to a text string in the XML format.

FormatAsXML(Time) : Text

Summary: Formats a time value as XML.

procedure FormatAsXML(ValueTime: Time): Text

Parameters:

  • ValueTime: The time value to be formatted.

Returns: The formatted time value as a text string.

Remarks: The procedure uses the Format function to convert the time value to a text string in the XML format.

FormatAsXML(Decimal) : Text

Summary: Formats a decimal value as XML.

procedure FormatAsXML(ValueDecimal: Decimal): Text

Parameters:

  • ValueDecimal: The decimal value to be formatted.

Returns: The formatted decimal value as a text string.

Remarks: The procedure uses the Format function to convert the decimal value to a text string in the XML format.

FormatAsXML(Boolean) : Text

Summary: Formats a boolean value as XML.

procedure FormatAsXML(ValueBoolean: Boolean): Text

Parameters:

  • ValueBoolean: The boolean value to be formatted.

Returns: The formatted boolean value as a text string.

Remarks: The procedure converts the boolean value to 'TRUE' or 'FALSE' text strings for XML representation.

Events

OnBeforeAppendVlogWorkitemXml(Record KVSKBAVLOGInterfaceLine, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log work item XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogWorkitemXml(var VlogInterfaceLine: Record "KVSKBAVLOGInterfaceLine"; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • VlogInterfaceLine: The V-Log interface line record.
  • XmlDoc: The XML document to which the work item XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log work item XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnAfterAppendVlogWorkitemXml(Record KVSKBAVLOGInterfaceLine, XmlDocument) :

Summary: Event raised after appending the V-Log work item XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnAfterAppendVlogWorkitemXml(var VlogInterfaceLine: Record "KVSKBAVLOGInterfaceLine"; var XmlDoc: XmlDocument): 

Parameters:

  • VlogInterfaceLine: The V-Log interface line record.
  • XmlDoc: The XML document to which the work item XML has been appended.

Remarks: This event allows subscribers to perform custom logic after the V-Log work item XML has been appended to the XML document.

OnBeforeAppendVlogShipmentXml(Record KVSKBAPostedDispatchHandHeader, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log shipment XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogShipmentXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • XmlDoc: The XML document to which the shipment XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log shipment XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnAfterAppendVlogShipmentXml(Record KVSKBAPostedDispatchHandHeader, XmlElement, XmlDocument) :

Summary: Event raised after appending the V-Log shipment XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnAfterAppendVlogShipmentXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShipmentXml: XmlElement; var XmlDoc: XmlDocument): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • ShipmentXml: The XML element representing the shipment that has been appended.
  • XmlDoc: The XML document to which the shipment XML has been appended.

Remarks: This event allows subscribers to perform custom logic after the V-Log shipment XML has been appended to the XML document.

OnBeforeAppendVlogPrinterXml(XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log printer XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogPrinterXml(var ParentShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • ParentShipmentXml: The XML element representing the parent shipment to which the printer XML will be appended.
  • XmlDoc: The XML document to which the printer XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log printer XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogPackages(Record KVSKBAPostedDispatchHandHeader, XmlElement, XmlDocument, Integer, Text, Boolean) :

Summary: Event raised before appending the V-Log packages XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogPackages(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var ParentShipmentXml: XmlElement; var XmlDoc: XmlDocument; var PacketNo: Integer; var Send2nProdcode: Text; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • ParentShipmentXml: The XML element representing the parent shipment to which the packages XML will be appended.
  • XmlDoc: The XML document to which the packages XML will be appended.
  • PacketNo: The packet number.
  • Send2nProdcode: The product code to be sent.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log packages XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogPackageXml(Record KVSKBAPostedDispatchHandHeader, Record KVSKBAPostedDispatchHandlLine, Integer, Text, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log package XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogPackageXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var SendNr: Integer; var Send2nProdcode: Text; var ParentShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • SendNr: The send number.
  • Send2nProdcode: The product code to be sent.
  • ParentShipmentXml: The XML element representing the parent shipment to which the package XML will be appended.
  • XmlDoc: The XML document to which the package XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log package XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnAfterAppendVlogXmlPackage(Record KVSKBAPostedDispatchHandHeader, Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlElement, XmlDocument) :

Summary: Event raised after appending the V-Log package XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnAfterAppendVlogXmlPackage(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var PackageXml: XmlElement; var ParentShipmentXml: XmlElement; var XmlDoc: XmlDocument): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • PackageXml: The XML element representing the package that has been appended.
  • ParentShipmentXml: The XML element representing the parent shipment to which the package XML has been appended.
  • XmlDoc: The XML document to which the package XML has been appended.

Remarks: This event allows subscribers to perform custom logic after the V-Log package XML has been appended to the XML document.

OnBeforeAppendVlogArticles(Record KVSKBAPostedDispatchHandHeader, Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlElement, XmlDocument, Boolean, Record KVSKBAPostedDispatchHandlLine) :

Summary: Event raised before appending the V-Log articles XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogArticles(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var PackageXml: XmlElement; var ParentShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean; var ItemPostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • PackageXml: The XML element representing the package to which the articles XML will be appended.
  • ParentShipmentXml: The XML element representing the parent shipment to which the package XML has been appended.
  • XmlDoc: The XML document to which the articles XML will be appended.
  • IsHandled: Indicates whether the event has been handled.
  • ItemPostedDispatchHandlLine: The item posted dispatch handling line record.

Remarks: This event allows subscribers to perform custom logic before the V-Log articles XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogArticleXml(Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log article XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogArticleXml(var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var ParentPackageXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • ParentPackageXml: The XML element representing the parent package to which the article XML will be appended.
  • XmlDoc: The XML document to which the article XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log article XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnAfterAppendVlogArticleXml(Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlDocument) :

Summary: Event raised after appending the V-Log articles XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnAfterAppendVlogArticleXml(var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var ParentPackageXml: XmlElement; var XmlDoc: XmlDocument): 

Parameters:

  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • ParentPackageXml: The XML element representing the parent package to which the articles XML has been appended.
  • XmlDoc: The XML document to which the articles XML has been appended.

Remarks: This event allows subscribers to perform custom logic after the V-Log articles XML has been appended to the XML document.

OnBeforeAppendVlogFrankaturXml(Record KVSKBAPostedDispatchHandHeader, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log Frankatur XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogFrankaturXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • ShipmentXml: The XML element representing the shipment to which the Frankatur XML will be appended.
  • XmlDoc: The XML document to which the Frankatur XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log Frankatur XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogTariffCurrencyXml(Record KVSKBAPostedDispatchHandHeader, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log Tariff Currency XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogTariffCurrencyXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • ShipmentXml: The XML element representing the shipment to which the Tariff Currency XML will be appended.
  • XmlDoc: The XML document to which the Tariff Currency XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log Tariff Currency XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogValueOfGoodsCurrencyXml(Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log Value of Goods Currency XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogValueOfGoodsCurrencyXml(var PostedChildDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var PackageXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedChildDispatchHandlingLine: The posted child dispatch handling line record.
  • PackageXml: The XML element representing the package to which the Value of Goods Currency XML will be appended.
  • XmlDoc: The XML document to which the Value of Goods Currency XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log Value of Goods Currency XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogReceiverTelephoneXml(Record KVSKBAPostedDispatchHandHeader, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log Receiver Telephone XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogReceiverTelephoneXml(var PostedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShipmentXml: XmlElement; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHeader: The posted dispatch handling header record.
  • ShipmentXml: The XML element representing the shipment to which the Receiver Telephone XML will be appended.
  • XmlDoc: The XML document to which the Receiver Telephone XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log Receiver Telephone XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogShippingAgentXml(Record KVSKBAPostedDispatchHandHeader, XmlElement, Text, XmlDocument, Boolean) :

Summary: Event raised before appending the V-Log Shipping Agent XML to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogShippingAgentXml(var PostedDispatchHandlingHead: Record "KVSKBAPostedDispatchHandHeader"; var ShipmentXml: XmlElement; var Send2nProdcode: Text; var XmlDoc: XmlDocument; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandlingHead: The posted dispatch handling header record.
  • ShipmentXml: The XML element representing the shipment to which the Shipping Agent XML will be appended.
  • Send2nProdcode: The product code to be sent.
  • XmlDoc: The XML document to which the Shipping Agent XML will be appended.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before the V-Log Shipping Agent XML is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeAppendVlogField(Text, Record KVSKBAPostedDispatchHandHeader, Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlElement, XmlDocument, Boolean) :

Summary: Event raised before appending a V-Log field to the XML document.

[IntegrationEvent(false, false)]
local procedure OnBeforeAppendVlogField(fieldName: Text; var postedDispatchHandlingHeader: Record "KVSKBAPostedDispatchHandHeader"; var postedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var packageXmlNode: XmlElement; var parentShipmentXmlNode: XmlElement; var xmldDocument: XmlDocument; var isHandled: Boolean): 

Parameters:

  • fieldName: The name of the field to be appended.
  • postedDispatchHandlingHeader: The posted dispatch handling header record.
  • postedDispatchHandlingLine: The posted dispatch handling line record.
  • packageXmlNode: The XML element representing the package to which the field will be appended.
  • parentShipmentXmlNode: The XML element representing the parent shipment to which the package belongs.
  • xmldDocument: The XML document to which the field will be appended.
  • isHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before a V-Log field is appended to the XML document. If the event is handled, the default behavior will be skipped.

OnBeforeProcessPackageResponseGetPostedDispatchHandlingLine(XmlNode, Record KVSKBAPostedDispatchHandlLine, Boolean) :

Summary: Event raised before processing the package response to get the posted dispatch handling line.

[IntegrationEvent(false, false)]
local procedure OnBeforeProcessPackageResponseGetPostedDispatchHandlingLine(packageXmlNode: XmlNode; var postedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var isHandled: Boolean): 

Parameters:

  • packageXmlNode: The XML node representing the package response.
  • postedDispatchHandlingLine: The posted dispatch handling line record to be retrieved.
  • isHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before processing the package response to get the posted dispatch handling line. If the event is handled, the default behavior will be skipped.

OnBeforeAddMailAddress(Record KVSKBAPostedDispatchHandHeader, XmlElement, Boolean) :

Summary: OnBeforeAddMailAddress can be used to overwrite or skip the adding of the mailaddress.

[IntegrationEvent(false, false)]
local procedure OnBeforeAddMailAddress(var PostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var XMLShipment: XmlElement; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandHeader: The posted dispatch handling header record.
  • XMLShipment: The XML element representing the shipment.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before adding the mail address to the XML shipment. If the event is handled, the default behavior will be skipped.

OnBeforeAddSendHelpFields(Record KVSKBAPostedDispatchHandHeader, XmlElement, Boolean) :

Summary: OnBeforeAddSendHelpFields can be used to overwrite or skip the adding of the send help fields.

[IntegrationEvent(false, false)]
local procedure OnBeforeAddSendHelpFields(var PostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var XMLShipment: XmlElement; var IsHandled: Boolean): 

Parameters:

  • PostedDispatchHandHeader: The posted dispatch handling header record.
  • XMLShipment: The XML element representing the shipment.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before adding the send help fields to the XML shipment. If the event is handled, the default behavior will be skipped.

OnAfterCreatedArticleElement(Record KVSKBAPostedDispatchHandlLine, XmlElement, XmlElement, XmlDocument) :

Summary: OnAfterCreatedArticleElement can be used to add additional elements to the article element after it has been created.

[IntegrationEvent(false, false)]
local procedure OnAfterCreatedArticleElement(var PostedDispatchHandlingLine: Record "KVSKBAPostedDispatchHandlLine"; var ArticleXML: XmlElement; var ParentPackageXml: XmlElement; var XmlDoc: XmlDocument): 

Parameters:

  • PostedDispatchHandlingLine: The posted dispatch handling line record.
  • ArticleXML: The XML element representing the article.
  • ParentPackageXml: The XML element representing the parent package.
  • XmlDoc: The XML document.

Remarks: This event allows subscribers to perform custom logic after the article element has been created. Subscribers can add additional elements to the article element or modify existing elements as needed.

OnBeforeCreateCommandXML(Record KVSKBAVLOGInterfaceLine, Text) :

Summary: OnBeforeCreateCommandXML can be used to overwrite or skip the creation of the command XML.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCommandXML(var KVSKBAVLOGInterfaceLine: Record "KVSKBAVLOGInterfaceLine"; var Command: Text): 

Parameters:

  • KVSKBAVLOGInterfaceLine: The V-Log interface line record.
  • Command: The command text to be created.

Remarks: This event allows subscribers to perform custom logic before creating the command XML. Subscribers can modify the command text or skip the creation of the command XML as needed.

OnElseGetHttpAuthentication(Enum KVSKBAVLOGAuthenticationType, Interface Http Authentication, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnElseGetHttpAuthentication(VLogAuthenticationType: Enum "KVSKBAVLOGAuthenticationType"; var IHttpAuthentication: Interface "Http Authentication"; var IsHandled: Boolean): 

OnBeforeAddXMLTariffNos(XmlElement, Record KVSKBAPostedDispatchHandlLine, Boolean) :

Summary: OnBeforeAddXMLTariffNos can be used to overwrite or skip the adding of the tariff numbers.

[IntegrationEvent(false, false)]
local procedure OnBeforeAddXMLTariffNos(var PackageNode: XmlElement; PostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"; var IsHandled: Boolean): 

Parameters:

  • PackageNode: The XML element representing the package.
  • PostedDispatchHandlLine: The posted dispatch handling line record.
  • IsHandled: Indicates whether the event has been handled.

Remarks: This event allows subscribers to perform custom logic before adding the tariff numbers to the XML package. If the event is handled, the default behavior will be skipped.