Skip to content

KVSKBAItemTrackingHelper#

Procedures#

GetTrackingSpecification(Record Tracking Specification, Record Tracking Specification, Date) : Boolean#

Summary: Retrieves item tracking specifications from a source tracking specification.

procedure GetTrackingSpecification(var SourceTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; AvailableDate: Date): Boolean

Parameters:

  • SourceTrackingSpecification: Source tracking specification record
  • TempTrackingSpecification: Temporary tracking specification to store results
  • AvailableDate: Available date for tracking

Returns: Boolean indicating if tracking specifications were found

Remarks: Opens the Item Tracking Lines page and retrieves tracking entries based on the source specification

GetTrackingSpecification_RecordId(RecordId, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a record identified by its RecordId.

procedure GetTrackingSpecification_RecordId(RecId: RecordId; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • RecId: Record ID of the source record
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Supports various document types including Sales, Purchase, Transfer, Warehouse, Production, Assembly, and Service lines

GetTrackingSpecification_RecordRef(RecordRef, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications using a RecordRef.

procedure GetTrackingSpecification_RecordRef(RecRef: RecordRef; var TempTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters:

  • RecRef: Record reference of the source record
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Wrapper method that uses the RecordId from the RecordRef

GetTrackingSpecification_SalesLine(Record Sales Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Sales Line.

procedure GetTrackingSpecification_SalesLine(var SalesLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters:

  • SalesLine: Sales line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Sales Line Reserve codeunit to initialize tracking specification and shipment date as available date

GetTrackingSpecification_PurchaseLine(Record Purchase Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Purchase Line.

procedure GetTrackingSpecification_PurchaseLine(var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters:

  • PurchaseLine: Purchase line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Handles both regular purchase lines and subcontractor scenarios, uses expected receipt date as available date

GetTrackingSpecification_PurchaseLineSubcontructor(Record Purchase Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for subcontractor Purchase Lines.

procedure GetTrackingSpecification_PurchaseLineSubcontructor(var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • PurchaseLine: Purchase line record linked to production order
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Handles purchase lines that are part of subcontracting by finding the related production order line

GetTrackingSpecification_ItemJournalLine(Record Item Journal Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for an Item Journal Line.

procedure GetTrackingSpecification_ItemJournalLine(var ItemJournalLine: Record "Item Journal Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • ItemJournalLine: Item journal line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Item Journal Line Reserve codeunit and posting date as available date

GetTrackingSpecification_ProdOrderLine(Record Prod. Order Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Production Order Line.

procedure GetTrackingSpecification_ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • ProdOrderLine: Production order line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Production Order Line Reserve codeunit and due date as available date

GetTrackingSpecification_ProdOrderComponent(Record Prod. Order Component, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Production Order Component.

procedure GetTrackingSpecification_ProdOrderComponent(var ProdOrderComponent: Record "Prod. Order Component"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • ProdOrderComponent: Production order component record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Production Order Component Reserve codeunit and due date as available date

GetTrackingSpecification_TransferLine(Record Transfer Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Transfer Line.

procedure GetTrackingSpecification_TransferLine(var TransferLine: Record "Transfer Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • TransferLine: Transfer line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Supports both inbound and outbound directions, uses shipment or receipt date based on direction

GetTrackingSpecification_WhseReceiptLine(Record Warehouse Receipt Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Warehouse Receipt Line.

procedure GetTrackingSpecification_WhseReceiptLine(WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • WarehouseReceiptLine: Warehouse receipt line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Delegates to the appropriate method based on source type (Sales, Purchase, or Transfer)

GetTrackingSpecification_WhseShipmentLine(Record Warehouse Shipment Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Warehouse Shipment Line.

procedure GetTrackingSpecification_WhseShipmentLine(WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Delegates to the appropriate method based on source type (Sales, Purchase, or Transfer)

GetTrackingSpecification_JobJournalLine(Record Job Journal Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Job Journal Line.

procedure GetTrackingSpecification_JobJournalLine(var JobJournalLine: Record "Job Journal Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • JobJournalLine: Job journal line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Job Journal Line Reserve codeunit and posting date as available date

GetTrackingSpecification_ServiceLine(Record Service Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Service Line.

procedure GetTrackingSpecification_ServiceLine(var ServiceLine: Record "Service Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • ServiceLine: Service line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Service Line Reserve codeunit with consume parameter and posting date as available date

GetTrackingSpecification_PlanningComponent(Record Planning Component, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Planning Component.

procedure GetTrackingSpecification_PlanningComponent(var PlanningComponent: Record "Planning Component"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • PlanningComponent: Planning component record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Planning Component Reserve codeunit and due date as available date

GetTrackingSpecification_RequisitionLine(Record Requisition Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for a Requisition Line.

procedure GetTrackingSpecification_RequisitionLine(var RequisitionLine: Record "Requisition Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • RequisitionLine: Requisition line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Requisition Line Reserve codeunit and due date as available date

GetTrackingSpecification_AssemblyHeader(Record Assembly Header, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for an Assembly Header.

procedure GetTrackingSpecification_AssemblyHeader(var AssemblyHeader: Record "Assembly Header"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • AssemblyHeader: Assembly header record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Assembly Header Reserve codeunit and posting date as available date

GetTrackingSpecification_AssemblyLine(Record Assembly Line, Record Tracking Specification) : Boolean#

Summary: Retrieves item tracking specifications for an Assembly Line.

procedure GetTrackingSpecification_AssemblyLine(var AssemblyLine: Record "Assembly Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • AssemblyLine: Assembly line record to get tracking for
  • TempTrackingSpecification: Temporary tracking specification to store results

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Assembly Line Reserve codeunit and due date as available date

SaveChanges(Record Tracking Specification, Record Tracking Specification, Date) :#

Summary: Saves changes to item tracking specifications.

procedure SaveChanges(var SourceTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; AvailableDate: Date): 

Parameters:

  • SourceTrackingSpecification: Source tracking specification record
  • TempTrackingSpecification: Modified tracking specification to save
  • AvailableDate: Available date for tracking

Remarks: Opens the Item Tracking Lines page and saves the modified tracking specifications

SaveChanges_RecordId(RecordId, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a record identified by its RecordId.

procedure SaveChanges_RecordId(RecId: RecordId; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • RecId: Record ID of the source record
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Supports various document types and delegates to the appropriate save method

SaveChanges_RecordRef(RecordRef, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications using a RecordRef.

procedure SaveChanges_RecordRef(RecRef: RecordRef; var TempTrackingSpecification: Record "Tracking Specification" temporary): 

Parameters:

  • RecRef: Record reference of the source record
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Wrapper method that calls GetTrackingSpecification_RecordId instead of the correct SaveChanges method - this appears to be a bug

SaveChanges_SalesLine(Record Sales Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Sales Line.

procedure SaveChanges_SalesLine(var SalesLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary): 

Parameters:

  • SalesLine: Sales line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Sales Line Reserve codeunit to initialize and save tracking changes

SaveChanges_PurchaseLine(Record Purchase Line, Record Tracking Specification) : Boolean#

Summary: Saves changes to item tracking specifications for a Purchase Line.

procedure SaveChanges_PurchaseLine(var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters:

  • PurchaseLine: Purchase line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Returns: Boolean indicating if tracking specifications were found

Remarks: Handles both regular purchase lines and subcontractor scenarios

SaveChanges_PurchaseLineSubcontructor(Record Purchase Line, Record Tracking Specification) : Boolean#

Summary: Saves changes to item tracking specifications for subcontractor Purchase Lines.

procedure SaveChanges_PurchaseLineSubcontructor(var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • PurchaseLine: Purchase line record linked to production order
  • TempTrackingSpecification: Modified tracking specification to save

Returns: Boolean indicating if tracking specifications were found

Remarks: Handles purchase lines that are part of subcontracting by finding the related production order line

SaveChanges_ItemJournalLine(Record Item Journal Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for an Item Journal Line.

procedure SaveChanges_ItemJournalLine(var ItemJournalLine: Record "Item Journal Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • ItemJournalLine: Item journal line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Item Journal Line Reserve codeunit to save tracking changes

SaveChanges_ProdOrderLine(Record Prod. Order Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Production Order Line.

procedure SaveChanges_ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • ProdOrderLine: Production order line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Production Order Line Reserve codeunit to save tracking changes

SaveChanges_ProdOrderComponent(Record Prod. Order Component, Record Tracking Specification) : Boolean#

Summary: Saves changes to item tracking specifications for a Production Order Component.

procedure SaveChanges_ProdOrderComponent(var ProdOrderComponent: Record "Prod. Order Component"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • ProdOrderComponent: Production order component record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Returns: Boolean indicating if tracking specifications were found

Remarks: Uses Production Order Component Reserve codeunit to save tracking changes

SaveChanges_TransferLine(Record Transfer Line, Record Tracking Specification) : Boolean#

Summary: Saves changes to item tracking specifications for a Transfer Line.

procedure SaveChanges_TransferLine(var TransferLine: Record "Transfer Line"; var TempTrackingSpecification: Record "Tracking Specification"): Boolean

Parameters:

  • TransferLine: Transfer line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Returns: Boolean indicating if tracking specifications were found

Remarks: Supports both inbound and outbound directions for transfer line tracking

SaveChanges_WhseReceiptLine(Record Warehouse Receipt Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Warehouse Receipt Line.

procedure SaveChanges_WhseReceiptLine(WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • WarehouseReceiptLine: Warehouse receipt line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Delegates to the appropriate save method based on source type

SaveChanges_WhseShipmentLine(Record Warehouse Shipment Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Warehouse Shipment Line.

procedure SaveChanges_WhseShipmentLine(WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • WarehouseShipmentLine: Warehouse shipment line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Delegates to the appropriate save method based on source type

SaveChanges_JobJournalLine(Record Job Journal Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Job Journal Line.

procedure SaveChanges_JobJournalLine(var JobJournalLine: Record "Job Journal Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • JobJournalLine: Job journal line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Job Journal Line Reserve codeunit to save tracking changes

SaveChanges_ServiceLine(Record Service Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Service Line.

procedure SaveChanges_ServiceLine(var ServiceLine: Record "Service Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • ServiceLine: Service line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Service Line Reserve codeunit with consume parameter to save tracking changes

SaveChanges_PlanningComponent(Record Planning Component, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Planning Component.

procedure SaveChanges_PlanningComponent(var PlanningComponent: Record "Planning Component"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • PlanningComponent: Planning component record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Planning Component Reserve codeunit to save tracking changes

SaveChanges_RequisitionLine(Record Requisition Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for a Requisition Line.

procedure SaveChanges_RequisitionLine(var RequisitionLine: Record "Requisition Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • RequisitionLine: Requisition line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Requisition Line Reserve codeunit to save tracking changes

SaveChanges_AssemblyHeader(Record Assembly Header, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for an Assembly Header.

procedure SaveChanges_AssemblyHeader(var AssemblyHeader: Record "Assembly Header"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • AssemblyHeader: Assembly header record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Assembly Header Reserve codeunit to save tracking changes

SaveChanges_AssemblyLine(Record Assembly Line, Record Tracking Specification) :#

Summary: Saves changes to item tracking specifications for an Assembly Line.

procedure SaveChanges_AssemblyLine(var AssemblyLine: Record "Assembly Line"; var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • AssemblyLine: Assembly line record to save tracking for
  • TempTrackingSpecification: Modified tracking specification to save

Remarks: Uses Assembly Line Reserve codeunit to save tracking changes

SetAvailDateParamter(Date) :#

Summary: Sets the available date parameter for tracking operations.

procedure SetAvailDateParamter(NewAvailableDate: Date): 

Parameters:

  • NewAvailableDate: New available date to use

Remarks: Overrides the default available date calculation for subsequent tracking operations

SetDirectionParameter_ForTransferOrders(Enum Transfer Direction) :#

procedure SetDirectionParameter_ForTransferOrders(var NewDirection: Enum "Transfer Direction"): 

SetConsumeParameter_ForServiceOrders() :#

Summary: Sets the consume parameter for service order tracking operations.

procedure SetConsumeParameter_ForServiceOrders(): 

Remarks: Enables consume mode for service line tracking operations

CheckIsTrackingSpecificationTemporary(Record Tracking Specification) :#

Summary: Validates that a tracking specification record is temporary.

procedure CheckIsTrackingSpecificationTemporary(var TempTrackingSpecification: Record "Tracking Specification"): 

Parameters:

  • TempTrackingSpecification: Tracking specification record to check

Remarks: Throws an error if the record is not temporary, as required for tracking operations

CreateWhseItemTrackingLine(Record KVSKBAInventorySummary, Variant, Decimal) :#

Summary: Creates a warehouse item tracking line from inventory summary and source record.

procedure CreateWhseItemTrackingLine(InventorySummary: Record "KVSKBAInventorySummary"; SourceRecord: Variant; QuantityBase: Decimal): 

Parameters:

  • InventorySummary: Inventory summary containing tracking information
  • SourceRecord: Source record (Warehouse Journal Line or Whse. Worksheet Line)
  • QuantityBase: Base quantity to track

Remarks: Creates tracking lines for warehouse operations based on inventory summary data including lot numbers, serial numbers, and dates