KVSKBALabelMgt
Procedures
CreateLabelFile(Record KVSKBAItemLabelRelation, Code[10], Code[50], Code[50], Date, Date, Integer, Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Boolean, Code[10], Code[20], Code[50], Boolean) :
Summary: Creates a label file for the given item label relation and printing parameters using the current work date as print date.
procedure CreateLabelFile(itemLabelRelation: Record "KVSKBAItemLabelRelation"; itemUoM: Code[10]; serialNo: Code[50]; lotNo: Code[50]; expirationDate: Date; productionDate: Date; qtyToPrint: Integer; sourceType: Integer; sourceSubtype: Enum "KVSKBAIntegerAsEnum"; sourceID: Code[20]; sourceRefNo: Integer; documentNo: Code[20]; forceActiveVersion: Boolean; locationCode: Code[10]; binCode: Code[20]; extLotNo: Code[50]; showFinishMessage: Boolean):
Parameters:
itemLabelRelation: The item label relation record defining the label to print.itemUoM: The item unit of measure code.serialNo: The serial number.lotNo: The lot number.expirationDate: The expiration date.productionDate: The production date.qtyToPrint: The quantity to print.sourceType: The source type.sourceSubtype: The source sub type.sourceID: The source ID.sourceRefNo: The source reference number.documentNo: The document number.forceActiveVersion: Indicates whether to force the use of the active label version.locationCode: The location code.binCode: The bin code.extLotNo: The external lot number.showFinishMessage: Indicates whether to show a finish message after label file creation.
Remarks: Overload without explicit print date; uses WorkDate() as print date.
CreateLabelFile(Record KVSKBAItemLabelRelation, Code[10], Code[50], Code[50], Date, Date, Integer, Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Boolean, Code[10], Code[20], Code[50], Date, Boolean) :
Summary: Creates a label file for the given item label relation and printing parameters.
procedure CreateLabelFile(itemLabelRelation: Record "KVSKBAItemLabelRelation"; itemUoM: Code[10]; serialNo: Code[50]; lotNo: Code[50]; expirationDate: Date; productionDate: Date; qtyToPrint: Integer; sourceType: Integer; sourceSubtype: Enum "KVSKBAIntegerAsEnum"; sourceID: Code[20]; sourceRefNo: Integer; documentNo: Code[20]; forceActiveVersion: Boolean; locationCode: Code[10]; binCode: Code[20]; extLotNo: Code[50]; printDate: Date; showFinishMessage: Boolean):
Parameters:
itemLabelRelation: The item label relation record defining the label to print.itemUoM: The item unit of measure code.serialNo: The serial number.lotNo: The lot number.expirationDate: The expiration date.productionDate: The production date.qtyToPrint: The quantity to print.sourceType: The source type.sourceSubtype: The source sub type.sourceID: The source ID.sourceRefNo: The source reference number.documentNo: The document number.forceActiveVersion: Indicates whether to force the use of the active label version.locationCode: The location code.binCode: The bin code.extLotNo: The external lot number.printDate: The label print date.showFinishMessage: Indicates whether to show a finish message after label file creation.
Remarks: Creates the label content header and triggers label file creation.
CreateLabelFile(Record KVSKBAItemLabelRelation, Code[10], Code[50], Code[50], Date, Date, Integer, Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Boolean, Code[10], Code[10], Code[20], Code[50], Code[10], Text[30], Boolean) :
Summary: Creates a label file for the given item label relation with additional pharma fields, using the current work date as print date.
procedure CreateLabelFile(itemLabelRelation: Record "KVSKBAItemLabelRelation"; itemUoM: Code[10]; serialNo: Code[50]; lotNo: Code[50]; expirationDate: Date; productionDate: Date; qtyToPrint: Integer; sourceType: Integer; sourceSubtype: Enum "KVSKBAIntegerAsEnum"; sourceID: Code[20]; sourceRefNo: Integer; documentNo: Code[20]; forceActiveVersion: Boolean; postingCode: Code[10]; locationCode: Code[10]; binCode: Code[20]; extLotNo: Code[50]; PharmacentralNo: Code[10]; ApplianceNo: Text[30]; showFinishMessage: Boolean):
Parameters:
itemLabelRelation: The item label relation record defining the label to print.itemUoM: The item unit of measure code.serialNo: The serial number.lotNo: The lot number.expirationDate: The expiration date.productionDate: The production date.qtyToPrint: The quantity to print.sourceType: The source type.sourceSubtype: The source sub type.sourceID: The source ID.sourceRefNo: The source reference number.documentNo: The document number.forceActiveVersion: Indicates whether to force the use of the active label version.postingCode: The posting code.locationCode: The location code.binCode: The bin code.extLotNo: The external lot number.PharmacentralNo: The pharma central number.ApplianceNo: The appliance number.showFinishMessage: Indicates whether to show a finish message after label file creation.
Remarks: Overload without explicit print date; uses WorkDate() as print date.
CreateLabelFile(Record KVSKBAItemLabelRelation, Code[10], Code[50], Code[50], Date, Date, Integer, Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Boolean, Code[10], Code[10], Code[20], Code[50], Date, Code[10], Text[30], Boolean) :
Summary: Creates a label file for the given item label relation with additional pharma fields.
procedure CreateLabelFile(itemLabelRelation: Record "KVSKBAItemLabelRelation"; itemUoM: Code[10]; serialNo: Code[50]; lotNo: Code[50]; expirationDate: Date; productionDate: Date; qtyToPrint: Integer; sourceType: Integer; sourceSubtype: Enum "KVSKBAIntegerAsEnum"; sourceID: Code[20]; sourceRefNo: Integer; documentNo: Code[20]; forceActiveVersion: Boolean; postingCode: Code[10]; locationCode: Code[10]; binCode: Code[20]; extLotNo: Code[50]; printDate: Date; PharmacentralNo: Code[10]; ApplianceNo: Text[30]; showFinishMessage: Boolean):
Parameters:
itemLabelRelation: The item label relation record defining the label to print.itemUoM: The item unit of measure code.serialNo: The serial number.lotNo: The lot number.expirationDate: The expiration date.productionDate: The production date.qtyToPrint: The quantity to print.sourceType: The source type.sourceSubtype: The source sub type.sourceID: The source ID.sourceRefNo: The source reference number.documentNo: The document number.forceActiveVersion: Indicates whether to force the use of the active label version.postingCode: The posting code.locationCode: The location code.binCode: The bin code.extLotNo: The external lot number.printDate: The label print date.PharmacentralNo: The pharma central number.ApplianceNo: The appliance number.showFinishMessage: Indicates whether to show a finish message after label file creation.
Remarks: Sets pharma central number and appliance number on the label content header before creating the label file.
CreateLabelForPurchRcptLine(Record Purch. Rcpt. Line) :
Summary: Creates label files for the given purchase receipt line(s).
procedure CreateLabelForPurchRcptLine(var purchRcptLine: Record "Purch. Rcpt. Line"):
Parameters:
purchRcptLine: The purchase receipt line record.
Remarks: Delegates to the internal CreatePurchLineLabelFiles procedure.
CreateLabelForWhseReceiptHeader(Record Warehouse Receipt Header) :
Summary: Creates label files for all lines of the given warehouse receipt header.
procedure CreateLabelForWhseReceiptHeader(var whseRcptHeader: Record "Warehouse Receipt Header"):
Parameters:
whseRcptHeader: The warehouse receipt header record.
Remarks: Delegates to the internal CreateWhseRcptLabelFiles procedure.
CreateLabelForWhseReceiptLine(Record Warehouse Receipt Line) :
Summary: Creates label files for the given warehouse receipt line(s).
procedure CreateLabelForWhseReceiptLine(var whseRcptLine: Record "Warehouse Receipt Line"):
Parameters:
whseRcptLine: The warehouse receipt line record.
Remarks: Delegates to the internal CreateWhseRcptLinesLabelFiles procedure.
CreateLabelForWhseShipment(Code[20]) :
Summary: Creates label files for all lines of the given warehouse shipment.
procedure CreateLabelForWhseShipment(whseShpmtNo: Code[20]):
Parameters:
whseShpmtNo: The warehouse shipment number.
Remarks: Delegates to the internal CreateWhseShipmentLabelFiles procedure.
CreateLabelForWhseShipmenttLine(Record Warehouse Shipment Line) :
Summary: Creates label files for the given warehouse shipment line(s).
procedure CreateLabelForWhseShipmenttLine(var whseShpmtLine: Record "Warehouse Shipment Line"):
Parameters:
whseShpmtLine: The warehouse shipment line record.
Remarks: Delegates to the internal CreateWhseShipmtLinesLabelFiles procedure.
CreateLabelForProductionOrder(Record Production Order) :
Summary: Creates label files for all lines of the given production order.
procedure CreateLabelForProductionOrder(var prodOrder: Record "Production Order"):
Parameters:
prodOrder: The production order record.
Remarks: Delegates to the internal CreateProdOrderLabelFiles procedure.
CreateLabelForProdOrderLine(Record Prod. Order Line) :
Summary: Creates a label file for the given production order line.
procedure CreateLabelForProdOrderLine(var prodOrderLine: Record "Prod. Order Line"):
Parameters:
prodOrderLine: The production order line record.
Remarks: Delegates to the internal CreateProdOrderLineLabelFiles procedure with singleLine set to true.
CreateLabelForRegisteredWhseActivityLine(Record Registered Whse. Activity Line) :
Summary: Creates label files for the given registered warehouse activity line(s).
procedure CreateLabelForRegisteredWhseActivityLine(var regWhseActLine: Record "Registered Whse. Activity Line"):
Parameters:
regWhseActLine: The registered warehouse activity line record.
Remarks: Delegates to the internal CreateRegisteredWhseActivityLineLabelFiles procedure.
CreateLabelForPostedInvtPutAwayLine(Record Posted Invt. Put-away Line) :
Summary: Creates label files for the given posted inventory put-away line(s).
procedure CreateLabelForPostedInvtPutAwayLine(var postedInvtPutAwayLine: Record "Posted Invt. Put-away Line"):
Parameters:
postedInvtPutAwayLine: The posted inventory put-away line record.
Remarks: Delegates to the internal CreatePostedInvtPutAwayLineLabelFiles procedure.
CreateLabelForSalesShipmentLine(Record Sales Shipment Line) :
Summary: Creates label files for the given sales shipment line(s).
procedure CreateLabelForSalesShipmentLine(var salesShipmentLine: Record "Sales Shipment Line"):
Parameters:
salesShipmentLine: The sales shipment line record.
Remarks: Delegates to the internal CreateSalesShipmentLineLabelFiles procedure.
CreateLabelForReturnShipmentLine(Record Return Shipment Line) :
Summary: Creates label files for the given return shipment line(s).
procedure CreateLabelForReturnShipmentLine(var returnShipmentLine: Record "Return Shipment Line"):
Parameters:
returnShipmentLine: The return shipment line record.
Remarks: Delegates to the internal CreateReturnShipmentLineLabelFiles procedure.
CreateLabelForReturnReceiptLine(Record Return Receipt Line) :
Summary: Creates label files for the given return receipt line(s).
procedure CreateLabelForReturnReceiptLine(var returnReceiptLine: Record "Return Receipt Line"):
Parameters:
returnReceiptLine: The return receipt line record.
Remarks: Delegates to the internal CreateReturnReceiptLineLabelFiles procedure.
CreateLabelForWarehouseActivityLine(Record Warehouse Activity Line) :
Summary: Creates label files for the given warehouse activity line(s).
procedure CreateLabelForWarehouseActivityLine(var whseActivityLine: Record "Warehouse Activity Line"):
Parameters:
whseActivityLine: The warehouse activity line record.
Remarks: Delegates to the internal CreateWarehouseActivityLineLabelFiles procedure.
CreateLabelLogEntryContent(Text, Record KVSKBALabelContentHeader) :
Summary: Creates a label print job archive log entry for the given label content header and file content.
procedure CreateLabelLogEntryContent(fileContent: Text; TempLabelContentHeader: Record "KVSKBALabelContentHeader" temporary):
Parameters:
fileContent: The label file content to archive.TempLabelContentHeader: The temporary label content header record containing print metadata.
Remarks: Only logs if the option "Log Content File Print" is enabled in the label interface setup.
GetLabelVersion(Code[20], Date, Boolean) : Code[10]
Summary: Returns the version code of the label structure valid for the given label structure code and date.
procedure GetLabelVersion(LabelStructureCodePar: Code[20]; datePar: Date; onlyCertified: Boolean): Code[10]
Parameters:
LabelStructureCodePar: The label structure code to look up.datePar: The date for which the active version is determined.onlyCertified: Indicates whether to consider only certified versions.
Returns: The version code of the matching label structure version, or an empty code if no match is found.
Remarks: Returns the last certified (or non-closed) version whose date range includes the given date. Returns an empty code if no matching version is found.
FormatUserName(Text) : Text
Summary: Formats a user name by removing the domain prefix if present.
procedure FormatUserName(userNamePar: Text): Text
Parameters:
userNamePar: The user name to format.
Returns: The formatted user name without the domain prefix.
Remarks: Strips the domain part from a Windows user name (e.g. "DOMAIN\user" becomes "user").
CreateAndReturnLabelContentData(Record KVSKBALabelContentHeader, Record KVSKBALabelContentLine, Boolean) : Boolean
Summary: Creates label content data for the given label content header and returns the resulting content header and lines.
procedure CreateAndReturnLabelContentData(var labelContentHeader: Record "KVSKBALabelContentHeader"; var labelContentLine: Record "KVSKBALabelContentLine"; isPreview: Boolean): Boolean
Parameters:
labelContentHeader: The label content header record used as input and updated with the result.labelContentLine: The label content line record populated with the calculated content lines.isPreview: Indicates whether the content is created for preview purposes.
Returns: True if the content data was created successfully; otherwise, false.
Remarks: If the label content header does not yet exist in the temporary table, it is inserted automatically before processing.
Events
OnAfterCodeOnBeforePostWhseReceipt() :
Summary: The event is raised after the code in OnBeforePostWhseReceipt is executed.
[IntegrationEvent(false, false)]
local procedure OnAfterCodeOnBeforePostWhseReceipt():
Remarks: Can be used to execute additional logic after the warehouse receipt posting trigger is processed.
OnBeforeCreateLabelLogEntryContent(Record KVSKBALabelPrintJobArchive, Record KVSKBALabelContentHeader) :
Summary: The event is raised before the label print job archive record is inserted.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateLabelLogEntryContent(var KVSKBALabelPrintJobArchive: Record "KVSKBALabelPrintJobArchive"; KVSKBALabelContentHeader: Record "KVSKBALabelContentHeader"):
Parameters:
KVSKBALabelPrintJobArchive: The label print job archive record to be inserted.KVSKBALabelContentHeader: The label content header containing the print metadata.
Remarks: Can be used to modify the label print job archive record before it is inserted into the database.
OnCreateLabelContentHeaderOnBeforeTempLabelContentHeaderInsert(Record KVSKBALabelContentHeader, Record KVSKBAItemLabelRelation, Code[10], Code[50], Code[50], Date, Date, Integer, Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Boolean, Code[10], Code[10], Code[20], Date) :
Summary: The event is raised before the temporary label content header is inserted.
[IntegrationEvent(false, false)]
local procedure OnCreateLabelContentHeaderOnBeforeTempLabelContentHeaderInsert(var TempKVSKBALabelContentHeader: Record "KVSKBALabelContentHeader" temporary; ItemLabelRelation: Record "KVSKBAItemLabelRelation"; ItemUoM: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; ExpirationDate: Date; ProductionDate: Date; QtyToPrint: Integer; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceID: Code[20]; SourceRefNor: Integer; DocumentNo: Code[20]; ForceActiveVersion: Boolean; PostingCode: Code[10]; LocationCode: Code[10]; BinCode: Code[20]; PrintDate: Date):
Parameters:
TempKVSKBALabelContentHeader: The temporary label content header record to be inserted.ItemLabelRelation: The item label relation record.ItemUoM: The item unit of measure code.SerialNo: The serial number.LotNo: The lot number.ExpirationDate: The expiration date.ProductionDate: The production date.QtyToPrint: The quantity to print.SourceType: The source type.SourceSubtype: The source sub type.SourceID: The source ID.SourceRefNor: The source reference number.DocumentNo: The document number.ForceActiveVersion: Indicates whether to force the use of the active label version.PostingCode: The posting code.LocationCode: The location code.BinCode: The bin code.PrintDate: The label print date.
Remarks: Can be used to modify or extend the temporary label content header before it is inserted and used for content line calculation.
OnBeforeUseContentDialog(Boolean, Boolean) :
Summary: The event is raised before the show content dialog flag is assigned.
[IntegrationEvent(false, false)]
local procedure OnBeforeUseContentDialog(var ShowContentDialog: Boolean; var IsHandled: Boolean):
Parameters:
ShowContentDialog: The flag indicating whether the content dialog should be shown.IsHandled: Indicates whether the event is handled. If set to true, the default assignment is skipped.
Remarks: Can be used to override the show content dialog flag. Set IsHandled to true to prevent the default assignment.
OnBeforeSelectLabel(Boolean, Record KVSKBAItemLabelRelation, Boolean) :
Summary: The event is raised before a label is selected from the item label relation.
[IntegrationEvent(false, false)]
local procedure OnBeforeSelectLabel(var NotAborted: Boolean; var itemLabelRelation: Record "KVSKBAItemLabelRelation"; var IsHandled: Boolean):
Parameters:
NotAborted: Indicates whether the selection was not aborted by the user.itemLabelRelation: The item label relation record containing the candidates to select from.IsHandled: Indicates whether the event is handled. If set to true, the default label selection dialog is skipped.
Remarks: Can be used to implement custom label selection logic. Set IsHandled to true to skip the default selection page.
OnCreatePurchLineLabelFilesOnAfterAssignPrintDate(Record Purch. Rcpt. Header, Record Purch. Rcpt. Line, Date) :
Summary: The event is raised after assigning the print date from the purchase receipt header.
[IntegrationEvent(false, false)]
local procedure OnCreatePurchLineLabelFilesOnAfterAssignPrintDate(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchRcptLine: Record "Purch. Rcpt. Line"; var PrintDate: Date):
Parameters:
PurchRcptHeader: The purchase receipt header record.PurchRcptLine: The purchase receipt line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for purchase receipt lines.
OnCreateWhseRcptLineLabelFilesOnAfterAssignPrintDate(Record Warehouse Receipt Header, Record Warehouse Receipt Line, Date) :
Summary: The event is raised after assigning the print date from the warehouse receipt header.
[IntegrationEvent(false, false)]
local procedure OnCreateWhseRcptLineLabelFilesOnAfterAssignPrintDate(WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseReceiptLine: Record "Warehouse Receipt Line"; var PrintDate: Date):
Parameters:
WarehouseReceiptHeader: The warehouse receipt header record.WarehouseReceiptLine: The warehouse receipt line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for warehouse receipt lines.
OnCreateWhseShipmtLineLabelFilesOnAfterAssignPrintDate(Record Warehouse Shipment Header, Record Warehouse Shipment Line, Date) :
Summary: The event is raised after assigning the print date from the warehouse shipment header.
[IntegrationEvent(false, false)]
local procedure OnCreateWhseShipmtLineLabelFilesOnAfterAssignPrintDate(WarehouseShipmentHeader: Record "Warehouse Shipment Header"; whseShpmtLine: Record "Warehouse Shipment Line"; var PrintDate: Date):
Parameters:
WarehouseShipmentHeader: The warehouse shipment header record.whseShpmtLine: The warehouse shipment line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for warehouse shipment lines.
OnCreateProdOrderLineLabelFilesOnAfterAssignPrintDate(Record Prod. Order Line, Date) :
Summary: The event is raised after assigning the print date from the production order line.
[IntegrationEvent(false, false)]
local procedure OnCreateProdOrderLineLabelFilesOnAfterAssignPrintDate(ProdOrderLine: Record "Prod. Order Line"; var PrintDate: Date):
Parameters:
ProdOrderLine: The production order line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for production order lines.
OnAfterSetFilterItemLedgerEntryforOther(Record Item Ledger Entry, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Code[10], Code[20]) :
Summary: The event is raised after setting the filter on item ledger entries for non-production source types.
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterItemLedgerEntryforOther(var ItemLedgerEntry: Record "Item Ledger Entry"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; var VariantCode: Code[10]; UoM: Code[10]; Qty: Decimal; LocationCode: Code[10]; BinCode: Code[20]):
Parameters:
ItemLedgerEntry: The item ledger entry record with filters applied.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item unit of measure code.Qty: The item quantity.LocationCode: The location code.BinCode: The bin code.
Remarks: Can be used to add or modify filters on item ledger entries for label content creation for non-production source types.
OnAfterSetFilterItemLedgerEntryforProductionLine(Record Item Ledger Entry, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Code[10], Code[20]) :
Summary: The event is raised after setting the filter on item ledger entries for production order lines.
[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterItemLedgerEntryforProductionLine(var ItemLedgerEntry: Record "Item Ledger Entry"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; var VariantCode: Code[10]; UoM: Code[10]; Qty: Decimal; LocationCode: Code[10]; BinCode: Code[20]):
Parameters:
ItemLedgerEntry: The item ledger entry record with filters applied.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item unit of measure code.Qty: The item quantity.LocationCode: The location code.BinCode: The bin code.
Remarks: Can be used to add or modify filters on item ledger entries for production label content creation.
OnCollectLabelInfosOnAfterSetfilterItemLabelRelation(Record KVSKBAItemLabelRelation, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Boolean, Code[10], Code[10], Code[20], Boolean, Date) :
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: The event is raised after setting the item unit of measure filter on the item label relation.
[Obsolete('Event is obsolete, please use the new event OnCollectLabelInfosOnAfterSetItemUoMFilter instead.', '28.0')]
[IntegrationEvent(false, false)]
local procedure OnCollectLabelInfosOnAfterSetfilterItemLabelRelation(var ItemLabelRelation: Record "KVSKBAItemLabelRelation"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; VariantCode: Code[10]; UoM: Code[10]; Qty: Decimal; UseReservEntries: Boolean; PostingCode: Code[10]; LocationCode: Code[10]; BinCode: Code[20]; UserAborted: Boolean; PrintDate: Date):
Parameters:
ItemLabelRelation: The item label relation record with filters applied.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item unit of measure code.Qty: The item quantity.UseReservEntries: Indicates whether reservation entries are used.PostingCode: The posting code.LocationCode: The location code.BinCode: The bin code.UserAborted: Indicates whether the label printing process is aborted by user.PrintDate: The label print date.
Remarks: This event is obsolete. Use OnCollectLabelInfosOnAfterSetItemUoMFilter instead.
OnCollectLabelInfosOnAfterSetItemUoMFilter(Record KVSKBAItemLabelRelation, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Boolean, Code[10], Code[20], Boolean, Date) :
Summary: Collect more information for creating label content after the item uom filter is applied.
[IntegrationEvent(false, false)]
local procedure OnCollectLabelInfosOnAfterSetItemUoMFilter(var ItemLabelRelation: Record "KVSKBAItemLabelRelation"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; VariantCode: Code[10]; UoM: Code[10]; Qty: Decimal; UseReservEntries: Boolean; LocationCode: Code[10]; BinCode: Code[20]; UserAborted: Boolean; PrintDate: Date):
Parameters:
ItemLabelRelation: The record of item label relation.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item uom.Qty: The item quantity.UseReservEntries: Indicates whether use reservation entries.LocationCode: The location code.BinCode: The bin code.UserAborted: Indicates whether the label printing process is aborted by user.PrintDate: The label print date.
Remarks: The event is raised after the item uom filter is applied on item label relation. It can be used to collect more information for creating label content based on the filtered item label relation.
OnCreateRegisteredWhseActivityLineLabelFilesOnAfterAssignPrintDate(Record Registered Whse. Activity Hdr., Record Registered Whse. Activity Line, Date) :
Summary: The event is raised after assigning the print date from the registered warehouse activity header.
[IntegrationEvent(false, false)]
local procedure OnCreateRegisteredWhseActivityLineLabelFilesOnAfterAssignPrintDate(RegisteredWhseActivityHdr: Record "Registered Whse. Activity Hdr."; RegisteredWhseActivityLine: Record "Registered Whse. Activity Line"; var PrintDate: Date):
Parameters:
RegisteredWhseActivityHdr: The registered warehouse activity header record.RegisteredWhseActivityLine: The registered warehouse activity line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for registered warehouse activity lines.
OnCreatePostedInvtPutAwayLineLabelFilesOnAfterAssignPrintDate(Record Posted Invt. Put-away Header, Record Posted Invt. Put-away Line, Date) :
Summary: The event is raised after assigning the print date from the posted inventory put-away header.
[IntegrationEvent(false, false)]
local procedure OnCreatePostedInvtPutAwayLineLabelFilesOnAfterAssignPrintDate(PostedInvtPutAwayHeader: Record "Posted Invt. Put-away Header"; PostedInvtPutAwayLine: Record "Posted Invt. Put-away Line"; var PrintDate: Date):
Parameters:
PostedInvtPutAwayHeader: The posted inventory put-away header record.PostedInvtPutAwayLine: The posted inventory put-away line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for posted inventory put-away lines.
OnCreatePostedInvtPickLineLabelFilesOnAfterAssignPrintDate(Record Posted Invt. Pick Header, Record Posted Invt. Pick Line, Date) :
Summary: The event is raised after assigning the print date from the posted inventory pick header.
[IntegrationEvent(false, false)]
local procedure OnCreatePostedInvtPickLineLabelFilesOnAfterAssignPrintDate(PostedInvtPickHeader: Record "Posted Invt. Pick Header"; PostedInvtPickLine: Record "Posted Invt. Pick Line"; var PrintDate: Date):
Parameters:
PostedInvtPickHeader: The posted inventory pick header record.PostedInvtPickLine: The posted inventory pick line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for posted inventory pick lines.
OnCreateSalesShipmentLineLabelFilesOnAfterAssignPrintDate(Record Sales Shipment Header, Record Sales Shipment Line, Date) :
Summary: The event is raised after assigning the print date from the sales shipment header.
[IntegrationEvent(false, false)]
local procedure OnCreateSalesShipmentLineLabelFilesOnAfterAssignPrintDate(SalesShipmentHeader: Record "Sales Shipment Header"; SalesShipmentLine: Record "Sales Shipment Line"; var PrintDate: Date):
Parameters:
SalesShipmentHeader: The sales shipment header record.SalesShipmentLine: The sales shipment line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for sales shipment lines.
OnCreateReturnShipmentLineLabelFilesOnAfterAssignPrintDate(Record Return Shipment Header, Record Return Shipment Line, Date) :
Summary: The event is raised after assigning the print date from the return shipment header.
[IntegrationEvent(false, false)]
local procedure OnCreateReturnShipmentLineLabelFilesOnAfterAssignPrintDate(ReturnShipmentHeader: Record "Return Shipment Header"; ReturnShipmentLine: Record "Return Shipment Line"; var PrintDate: Date):
Parameters:
ReturnShipmentHeader: The return shipment header record.ReturnShipmentLine: The return shipment line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for return shipment lines.
OnCreateReturnReceiptLineLabelFilesOnAfterAssignPrintDate(Record Return Receipt Header, Record Return Receipt Line, Date) :
Summary: The event is raised after assigning the print date from the return receipt header.
[IntegrationEvent(false, false)]
local procedure OnCreateReturnReceiptLineLabelFilesOnAfterAssignPrintDate(ReturnReceiptHeader: Record "Return Receipt Header"; ReturnReceiptLine: Record "Return Receipt Line"; var PrintDate: Date):
Parameters:
ReturnReceiptHeader: The return receipt header record.ReturnReceiptLine: The return receipt line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for return receipt lines.
OnCreateWarehouseActivityLineLabelFilesOnAfterAssignPrintDate(Record Warehouse Activity Header, Record Warehouse Activity Line, Date) :
Summary: The event is raised after assigning the print date from the warehouse activity header.
[IntegrationEvent(false, false)]
local procedure OnCreateWarehouseActivityLineLabelFilesOnAfterAssignPrintDate(WhseActivityHeader: Record "Warehouse Activity Header"; WhseActivityLine: Record "Warehouse Activity Line"; var PrintDate: Date):
Parameters:
WhseActivityHeader: The warehouse activity header record.WhseActivityLine: The warehouse activity line record.PrintDate: The print date that can be overridden.
Remarks: Can be used to override the print date used when creating label files for warehouse activity lines.
OnBeforeFindItemLabelRelation(Record KVSKBAItemLabelRelation, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Boolean, Code[10], Code[10], Code[20], Boolean, Date, Boolean, Boolean) :
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: The event is raised before finding the item label relation.
[Obsolete('Event is obsolete, please use the new event OnBeforeProcedureFindItemLabelRelation instead.', '28.0')]
[IntegrationEvent(false, false)]
local procedure OnBeforeFindItemLabelRelation(var ItemLabelRelation: Record "KVSKBAItemLabelRelation"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; var VariantCode: Code[10]; UoM: Code[10]; Quantity: Decimal; UseReservEntries: Boolean; PostingCode: Code[10]; LocationCode: Code[10]; BinCode: Code[20]; UserAborted: Boolean; PrintDate: Date; var ItemLabelRelationfound: Boolean; var IsHandled: Boolean):
Parameters:
ItemLabelRelation: The item label relation record to be found.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item unit of measure code.Quantity: The item quantity.UseReservEntries: Indicates whether reservation entries are used.PostingCode: The posting code.LocationCode: The location code.BinCode: The bin code.UserAborted: Indicates whether the label printing process is aborted by user.PrintDate: The label print date.ItemLabelRelationfound: Indicates whether the item label relation was found.IsHandled: Indicates whether the event is handled. If set to true, the default finding logic is skipped.
Remarks: This event is obsolete. Use OnBeforeProcedureFindItemLabelRelation instead.
OnBeforeProcedureFindItemLabelRelation(Record KVSKBAItemLabelRelation, Code[20], Integer, Enum KVSKBAIntegerAsEnum, Code[20], Integer, Code[20], Code[10], Code[10], Decimal, Boolean, Code[10], Code[20], Boolean, Date, Boolean, Boolean) :
Summary: The event is raised before finding item label relation. It can be used to set additional filters for finding item label relation or even provide the item label relation record for creating label content.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcedureFindItemLabelRelation(var ItemLabelRelation: Record "KVSKBAItemLabelRelation"; CalledFromDocNo: Code[20]; SourceType: Integer; SourceSubtype: Enum "KVSKBAIntegerAsEnum"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; ItemNo: Code[20]; var VariantCode: Code[10]; UoM: Code[10]; Quantity: Decimal; UseReservEntries: Boolean; LocationCode: Code[10]; BinCode: Code[20]; UserAborted: Boolean; PrintDate: Date; var ItemLabelRelationfound: Boolean; var IsHandled: Boolean):
Parameters:
ItemLabelRelation: The record of item label relation.CalledFromDocNo: The document number which calls the label printing process.SourceType: The source type.SourceSubtype: The source sub type.SourceDocNo: The source document number.SourceDocLineNo: The source document line number.ItemNo: The item number.VariantCode: The item variant code.UoM: The item uom.Quantity: The item quantity.UseReservEntries: Indicates whether use reservation entries.LocationCode: The location code.BinCode: The bin code.UserAborted: Indicates whether the label printing process is aborted by user.PrintDate: The label print date.ItemLabelRelationfound: Indicates whether the item label relation is found.IsHandled: Indicates whether the event is handled. If handled, the default finding item label relation will be skipped.
Remarks: The event is raised before finding item label relation. It can be used to set additional filters for finding item label relation or even provide the item label relation record for creating label content. If the event is handled, the default finding item label relation will be skipped.
OnCollectLabelInfosOnAfterGetTempTrackingSpecificationData(Record Tracking Specification, Record KVSKBAItemLabelRelation, Integer, Boolean) :
Summary: The event is raised after getting the data of temp tracking specification. It can be used to adjust the Variable ContentHeaderCreated, to find Label if TempTrackingSpecification."Qty. to Handle (Base)" = 0
[IntegrationEvent(false, false)]
local procedure OnCollectLabelInfosOnAfterGetTempTrackingSpecificationData(var TempTrackingSpecification: Record "Tracking Specification"; var ItemLabelRelation: Record "KVSKBAItemLabelRelation"; SourceType: Integer; var ContentHeaderCreated: Boolean):
Parameters:
TempTrackingSpecification: The record of temp tracking specification.ItemLabelRelation: The record of item label relation.SourceType: The source type.ContentHeaderCreated: Indicates whether the content header is created.
Remarks: The event is raised after getting the data of temp tracking specification. It can be used to adjust the Variable ContentHeaderCreated, to find Label if TempTrackingSpecification."Qty. to Handle (Base)" = 0