Codeunit 70491904 EOS055.01 HU Assignment

Codeunit 70491904 EOS055.01 HU Assignment

Contains functions and events to manage handling unit assignments and data retrieval.

Methods

CheckHuAssignmentValid

procedure CheckHuAssignmentValid(SourceDoc: Variant)

Checks if a given source document is valid for handling unit assignments.

Parameters / Return Value

  • SourceDoc Variant

    The source document to check.


GetAssignments

procedure GetAssignments(SourceDoc: Variant;HandlingUnitNo: Code[20];DocumentLevelAssignments: Enum "EOS066 TriState Boolean";var TempHandlingUnitBuffer: Record "EOS055 Handling Unit Buffer" temporary)

Calculates the assignments for one source document and a (optionally) given handling unit and returns a temporary buffer with the assigned content.

Parameters / Return Value

  • SourceDoc Variant

    The source document.

  • HandlingUnitNo Code[20]

    The handling unit no. If this is empty, all handling units assigned to the document are calculated.

  • DocumentLevelAssignments Enum "EOS066 TriState Boolean"

    Indicates how document-level assignments should be handed.

  • True: Only DLAs are returned.

  • False: No DLAs are returned.

  • Undefined: Both normal and DLAs are included.

  • TempHandlingUnitBuffer Record "EOS055 Handling Unit Buffer"

    A temporary buffer that contains the assigned handling unit contents. Any existing contents in this buffer will NOT be replaced.


GetAssignments

procedure GetAssignments(SourceDoc: Variant;HandlingUnitNo: Code[20];DocumentLevelAssignments: Enum "EOS066 TriState Boolean";PostedDocuments: Enum "EOS066 TriState Boolean";var TempHandlingUnitBuffer: Record "EOS055 Handling Unit Buffer" temporary)

Calculates the assignments for one source document and a (optionally) given handling unit and returns a temporary buffer with the assigned content.

Parameters / Return Value

  • SourceDoc Variant

    The source document.

  • HandlingUnitNo Code[20]

    The handling unit no. If this is empty, all handling units assigned to the document are calculated.

  • DocumentLevelAssignments Enum "EOS066 TriState Boolean"

    Indicates how document-level assignments should be handed.

  • True: Only DLAs are returned.

  • False: No DLAs are returned.

  • Undefined: Both normal and DLAs are included.

  • PostedDocuments Enum "EOS066 TriState Boolean"

    Specifies how to handle posted document assignments. Yes: return only posted documents, No: exclude posted documents, Undefined: return all.

  • TempHandlingUnitBuffer Record "EOS055 Handling Unit Buffer"

    A temporary buffer that contains the assigned handling unit contents. Any existing contents in this buffer will NOT be replaced.


GetAssignments

procedure GetAssignments(HandlingUnitNo: Code[20]; var Result: Record "EOS055 Handling Unit Buffer"): Boolean

Retrieve all assignments made for a given handling unit.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    The handling unit no.

  • Result Record "EOS055 Handling Unit Buffer"

    A result buffer containing all assignments made. Any existing contents in this buffer will be replaced.

  • Returns Boolean


TestOpenItemTrackingLines

procedure TestOpenItemTrackingLines(DocVariant: Variant; Throw: Boolean): Boolean

Tests if item tracking lines for the given document can be opened. You can specify if a runtime error should be thrown.

Parameters / Return Value

  • DocVariant Variant

    The source document variant.

  • Throw Boolean

    Indicates if a runtime error is throw when tracking lines can not be opened.

  • Returns Boolean

    true if item tracking lines can be opened.


GetAssignedHandlingUnits

procedure GetAssignedHandlingUnits(DocVariant: Variant;var TempHandlingUnit: Record "EOS055 Handling Unit" temporary): Boolean

Adds all handling units assigned to a specific document to the buffer.

Parameters / Return Value

  • DocVariant Variant

    The document line or header.

  • TempHandlingUnit Record "EOS055 Handling Unit"

    The result buffer.

  • Returns Boolean

    Indicates whether the document passed in DocLineVariant is valid and the buffer was retrieved.


GetAssignedTopLevelHandlingUnits

procedure GetAssignedTopLevelHandlingUnits(DocVariant: Variant;var TempHandlingUnit: Record "EOS055 Handling Unit" temporary)

Collects all top-level handling units that are assigned to a single source document.

Parameters / Return Value

  • DocVariant Variant

    The source document.

  • TempHandlingUnit Record "EOS055 Handling Unit"

    The resulting buffer containing all top-level handling units. All contents in this buffer will be replaced.


GetAssignedHandlingUnits

procedure GetAssignedHandlingUnits(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer;var TempHandlingUnit: Record "EOS055 Handling Unit" temporary)

Adds all handling units assigned to a specific document to the buffer.

Parameters / Return Value

  • SourceType Integer

    The document table ID.

  • SourceSubtype Integer

  • SourceNo Code[20]

    The document no.

  • SourceLineNo Integer

    The document line no.

  • SourceSublineNo Integer

    The document subline no.

  • TempHandlingUnit Record "EOS055 Handling Unit"

    The result buffer.


CalcAssignedQty

procedure CalcAssignedQty(DocLineVariant: Variant): Decimal

Calculates the assigned quantity for one source document line.

Parameters / Return Value

  • DocLineVariant Variant

    The source document line.

  • Returns Decimal

    The total base quantity assigned.


CalcAssignedQty

procedure CalcAssignedQty(TransferLine: Record "Transfer Line"; Inbound: Boolean): Decimal

Calculates the assigned quantity for one transfer line.

Parameters / Return Value

  • TransferLine Record "Transfer Line"

    The transfer line.

  • Inbound Boolean

    Specifies if inbound or outbound quantities are to be calculated.

  • Returns Decimal

    The total base quantity assigned.


CalcAssignedQty

procedure CalcAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer): Decimal

Calculates the assigned quantity for one source document line.

Parameters / Return Value

  • SourceType Integer

    Source Type

  • SourceSubtype Integer

  • SourceNo Code[20]

    Source No.

  • SourceLineNo Integer

    Source Line No.

  • SourceSublineNo Integer

    Source Subline No.

  • Returns Decimal

    The total base quantity assigned.


CalcAssignedQty

procedure CalcAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer;LotNo: Code[50]; SerialNo: Code[50]; FilterByItemTracking: Boolean): Decimal

Parameters / Return Value

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • SourceLineNo Integer

  • SourceSublineNo Integer

  • LotNo Code[50]

  • SerialNo Code[50]

  • FilterByItemTracking Boolean

  • Returns Decimal


AssignHandlingUnitToSource

procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";DocVariant: Variant)

Fully assigns the content of a handling unit to a source document header.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit to assign.

  • DocVariant Variant

    The source document.


AssignHandlingUnitToSource

procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";TransHeader: Record "Transfer Header"; Inbound: Boolean)

Fully assigns the content of a handling unit to a transfer order.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit to assign.

  • TransHeader Record "Transfer Header"

    The transfer order.

  • Inbound Boolean

    Specifies whether the assignment should be made to the inbound or outbound side of the order.


AssignHandlingUnitToSource

procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";DocVariant: Variant;var TouchedLines: Record "EOS Record Ident. Buffer")

Fully assigns the content of a handling unit to a source document header.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit to assign.

  • DocVariant Variant

    The source document.

  • TouchedLines Record "EOS Record Ident. Buffer"

    A temporary buffer that holds all records that have been touched by the assignment operation.


AssignHandlingUnitToSource

procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20])

Fully assigns the content of a handling unit to a source document header.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit to assign.

  • SourceType Integer

    The source type (table ID) of the source document.

  • SourceSubtype Integer

    The subtype of the source document.

  • SourceNo Code[20]

    The no. of the source document.


AssignHandlingUnitToSource

procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];var TouchedLine: Record "EOS Record Ident. Buffer")

Fully assigns the content of a handling unit to a source document header.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit to assign.

  • SourceType Integer

    The source type (table ID) of the source document.

  • SourceSubtype Integer

    The subtype of the source document.

  • SourceNo Code[20]

    The no. of the source document.

  • TouchedLine Record "EOS Record Ident. Buffer"


UpdateTransferItemTackingLines

procedure UpdateTransferItemTackingLines(TransLine: Record "Transfer Line"; Inbound: Boolean)

Parameters / Return Value

  • TransLine Record "Transfer Line"

  • Inbound Boolean


UpdateItemTrackingLines

procedure UpdateItemTrackingLines(SourceDocLine: Variant)

Updates item tracking lines of the source document line to match those of the assigned handling units.

Parameters / Return Value

  • SourceDocLine Variant

GetAssignedSourceDocuments

procedure GetAssignedSourceDocuments(HandlingUnitNo: Code[20]; var Result: Record "EOS Record Ident. Buffer"): Boolean

Retrieves a list of all source documents a handling unit has been assigned to.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    The handling unit no.

  • Result Record "EOS Record Ident. Buffer"

    The result buffer containg the found source documents.

  • Returns Boolean

    true if at least one source document has been found.


GetAssignedSourceDocuments

procedure GetAssignedSourceDocuments(HandlingUnitNo: Code[20]; DocumentLevelAssignments: Enum "EOS066 TriState Boolean"; var Result: Record "EOS Record Ident. Buffer"): Boolean

Retrieves a list of all source documents a handling unit has been assigned to. You can calso specify how to handle document-level assignments.

Document-level assignments are “empty” assignments that indicate the original source document that the handling unit has been assigned to. The effective line-level assignments can be different documents, especially for warehouse documents.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    The handling unit no.

  • DocumentLevelAssignments Enum "EOS066 TriState Boolean"

    Specifies how to handle document-level assignments (DLA). Yes: return only DLAs, No: exclude DLAs, Undefined: return all.

  • Result Record "EOS Record Ident. Buffer"

    The result buffer containg the found source documents.

  • Returns Boolean

    true if at least one source document has been found.


GetAssignedSourceDocuments

procedure GetAssignedSourceDocuments(HandlingUnitNo: Code[20];DocumentLevelAssignments: Enum "EOS066 TriState Boolean";PostedDocuments: Enum "EOS066 TriState Boolean";var Result: Record "EOS Record Ident. Buffer"): Boolean

Retrieves a list of all source documents a handling unit has been assigned to. You can calso specify how to handle document-level assignments and posted document assignments.

Document-level assignments are “empty” assignments that indicate the original source document that the handling unit has been assigned to. The effective line-level assignments can be different documents, especially for warehouse documents.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    The handling unit no.

  • DocumentLevelAssignments Enum "EOS066 TriState Boolean"

    Specifies how to handle document-level assignments (DLA). Yes: return only DLAs, No: exclude DLAs, Undefined: return all.

  • PostedDocuments Enum "EOS066 TriState Boolean"

    Specifies how to handle posted document assignments. Yes: return only posted documents, No: exclude posted documents, Undefined: return all.

  • Result Record "EOS Record Ident. Buffer"

    The result buffer containg the found source documents.

  • Returns Boolean

    true if at least one source document has been found.


ReassignHandlingUnit

procedure ReassignHandlingUnit(HuNo: Code[20])

Reassigns a handling unit to the same document it has already been assigned to. This is done by removing all assignments and recreating them on the same source document.

Parameters / Return Value

  • HuNo Code[20]

AssignHandlingUnitFromSourceLine

procedure AssignHandlingUnitFromSourceLine(var TempSourceLineBuffer: Record "EOS055 Handling Unit Buffer" temporary; var HandlingUnit: Record "EOS055 Handling Unit")

Parameters / Return Value

  • TempSourceLineBuffer Record "EOS055 Handling Unit Buffer"

  • HandlingUnit Record "EOS055 Handling Unit"


GetAssignmentTargets

procedure GetAssignmentTargets(SourceDocument: Variant; var TmpAssignmentTarget: Record "EOS055.01 HU Assignment Target")

Retrieves a list of all assignment targets for a given source document.

Parameters / Return Value

  • SourceDocument Variant

    The source document to check.

  • TmpAssignmentTarget Record "EOS055.01 HU Assignment Target"

    The buffer containing the results. Any contents in this buffer will be replaced.


GetAssignmentTargets

procedure GetAssignmentTargets(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var TmpAssignmentTarget: Record "EOS055.01 HU Assignment Target")

Retrieves a list of all assignment targets for a given source document.

Parameters / Return Value

  • SourceType Integer

    The source type.

  • SourceSubtype Integer

    The source subtype.

  • SourceNo Code[20]

    The source no.

  • TmpAssignmentTarget Record "EOS055.01 HU Assignment Target"

    The buffer containing the results. Any contents in this buffer will be replaced.


GetAssignmentTargets

procedure GetAssignmentTargets(var TmpItemBuffer: Record "EOS055 Handling Unit Buffer"; var TmpAssignmentTarget: Record "EOS055.01 HU Assignment Target")

Retrieves a list of all assignment targets for a given list of source document items.

Parameters / Return Value

  • TmpItemBuffer Record "EOS055 Handling Unit Buffer"

    A buffer containing all item lines to check for.

  • TmpAssignmentTarget Record "EOS055.01 HU Assignment Target"

    The buffer containing the results. Any contents in this buffer will be replaced.


CalcAssignments

procedure CalcAssignments(Hu: Record "EOS055 Handling Unit"; SourceDocument: Variant; var TmpHuAssignment: Record "EOS055 Handling Unit Assignm."): Boolean

Calculates possible handling unit assignments for a given handling unit on a given source document.

Parameters / Return Value

  • Hu Record "EOS055 Handling Unit"

    The handling unit.

  • SourceDocument Variant

    The target source document.

  • TmpHuAssignment Record "EOS055 Handling Unit Assignm."

    A buffer containing the calculated assignments. Any contents in this buffer will be replaced.

  • Returns Boolean

    true if the handling unit was fully assigned.


CalcAssignments

procedure CalcAssignments(Hu: Record "EOS055 Handling Unit"; var TmpItemBuffer: Record "EOS055 Handling Unit Buffer"; var TmpHuAssignment: Record "EOS055 Handling Unit Assignm."): Boolean

Calculates possible handling unit assignments for a given handling unit on a given list of source items.

Parameters / Return Value

  • Hu Record "EOS055 Handling Unit"

    The handling unit.

  • TmpItemBuffer Record "EOS055 Handling Unit Buffer"

    The item buffer containing all items on which assignments should be calculated.

  • TmpHuAssignment Record "EOS055 Handling Unit Assignm."

    A buffer containing the calculated assignments that are possible. Any contents in this buffer will be replaced.

  • Returns Boolean

    If the HU was fully assigned, the assignment target hash is returned. Otherwise, an empty string is returned.


DeleteAssignments

procedure DeleteAssignments(HandlingUnitNo: Code[20])

Remove all assignments for a given handling unit.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    The handling unit no.


ClearLastAssignmentResidue

procedure ClearLastAssignmentResidue()

Clears the buffer that holds the residue of the last assignment operation - if any.


CheckDeleteSourceAssignment

procedure CheckDeleteSourceAssignment(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer)

checks the handling unit assignments for a source line, when they are deleted.

Parameters / Return Value

  • SourceType Integer

    Source Type

  • SourceSubtype Integer

  • SourceNo Code[20]

    Source No.

  • SourceLineNo Integer

    Source Line No.

  • SourceSublineNo Integer

    Source Subline No.


DeleteAssignmentContent

procedure DeleteAssignmentContent(HandlingUnitNo: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; LotNo: Code[50]; SerialNo: Code[50]; QtyToDelete: Decimal)

Deletes a requested quantity from assignments for a specific item/variant and item tracking.

Parameters / Return Value

  • HandlingUnitNo Code[20]

    Handling Unit Number

  • ItemNo Code[20]

    Item number

  • VariantCode Code[10]

    Variant Code

  • LotNo Code[50]

    The lot no. to delete.

  • SerialNo Code[50]

    The serial no. to delete.

  • QtyToDelete Decimal

    Quantity (Base) to delete from assignment


TransferAssignment

procedure TransferAssignment(Source: Variant; Target: Variant)

Parameters / Return Value

  • Source Variant

  • Target Variant


HasHuAssignments

procedure HasHuAssignments(DocLineVariant: Variant): Boolean

Checks if the given source document has any handling unit assignments.

Parameters / Return Value

  • DocLineVariant Variant

  • Returns Boolean

    true if any assignment exists.


HasHuAssignments

procedure HasHuAssignments(TransferLine: Record "Transfer Line"; Inbound: Boolean): Boolean

Checks if the given transfer line has any handling unit assignments.

Parameters / Return Value

  • TransferLine Record "Transfer Line"

  • Inbound Boolean

  • Returns Boolean

    true if any assignment exists.


TestNoHuAssignments

procedure TestNoHuAssignments(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer)

Tests that the given source document does not have any handling unit assignments. If it does, a runtime error is generated.

Parameters / Return Value

  • SourceType Integer

    The source type (table ID).

  • SourceSubtype Integer

    The source subtype (document type).

  • SourceNo Code[20]

    The source no.

  • SourceLineNo Integer

    The source line no.

  • SourceSublineNo Integer

    The source subline no.


TestNoHuAssignments

procedure TestNoHuAssignments(DocLineVariant: Variant)

Tests that the given source document does not have any handling unit assignments. If it does, a runtime error is generated.

Parameters / Return Value

  • DocLineVariant Variant

IsAssignedFromPick

procedure IsAssignedFromPick(HuNo: Code[20]; WhseShipmentNo: Code[20]): Boolean

Checks if the handling unit has been assigned through a warehouse pick.

Parameters / Return Value

  • HuNo Code[20]

  • WhseShipmentNo Code[20]

    The warehouse shipment. If this is specified, only picks for this warehouse shipment are considered. Leave this empty if you want to check for any shipment.

  • Returns Boolean

    true if any pick was found that caused the HUs assignment.


FindRegWhsePicks

procedure FindRegWhsePicks(HuNo: Code[20]; WhseShipmentNo: Code[20]; var TempRegWhseActHeader: Record "Registered Whse. Activity Hdr."): Boolean

Retrieves all warehouse picks that were used to create the assignment of the given handling unit.

Parameters / Return Value

  • HuNo Code[20]

    The handling unit no.

  • WhseShipmentNo Code[20]

    The warehouse shipment. If this is specified, only picks for this warehouse shipment are considered. Leave this empty if you want to check for any shipment.

  • TempRegWhseActHeader Record "Registered Whse. Activity Hdr."

    The temporary buffer that will contain the result records. All contents in this buffer will be replaced.

  • Returns Boolean

    false if the handling unit has no assignments. true otherwise.


DrillDownAssignedQty

procedure DrillDownAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer)

shows the assigned quantities for one source/document line.

Parameters / Return Value

  • SourceType Integer

    Source Type

  • SourceSubtype Integer

  • SourceNo Code[20]

    Source No.

  • SourceLineNo Integer

    Source Line No.

  • SourceSublineNo Integer

    Source Subline No.


DrilldownAssignedQty

procedure DrilldownAssignedQty(SourceDoc: Variant)

Opens a page containing all assignments for a given source document/line.

Parameters / Return Value

  • SourceDoc Variant

    The source document or line.


DrilldownAssignedQty

procedure DrilldownAssignedQty(TransferLine: Record "Transfer Line"; Inbound: Boolean)

Opens a page containing all assignments for a given transfer line.

Parameters / Return Value

  • TransferLine Record "Transfer Line"

  • Inbound Boolean


Events

OnAfterHandlingUnitAssigned

local procedure OnAfterHandlingUnitAssigned(HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];var TmpAssignedBuffer: Record "EOS055 Handling Unit Buffer")

Raised whenever a handling unit has been assigned to a source document.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit that has been assigned.

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • TmpAssignedBuffer Record "EOS055 Handling Unit Buffer"

    The buffer containing all assignments that have been made.


OnAfterHandlingUnitUnassigned

local procedure OnAfterHandlingUnitUnassigned(HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];var TmpAssignedBuffer: Record "EOS055 Handling Unit Buffer")

Raised whenever a handling unit has been unassigned from a source document.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit that has been unassigned.

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • TmpAssignedBuffer Record "EOS055 Handling Unit Buffer"

    The buffer containing all assignments that have been removed.


OnAfterCreateHuAssignment

local procedure OnAfterCreateHuAssignment(var HuAssignment: Record "EOS055 Handling Unit Assignm."; QtyBaseToAssign: Decimal; TmpHuContent: Record "EOS055 Handling Unit Buffer")

Raised whenever a handling unit assignment has been created or updated.

Parameters / Return Value

  • HuAssignment Record "EOS055 Handling Unit Assignm."

    The handlung unit assignment.

  • QtyBaseToAssign Decimal

    The base quantity being assigned.

  • TmpHuContent Record "EOS055 Handling Unit Buffer"

    The content being assigned to the handling unit.


OnBeforeCheckHuAssignmentValid

local procedure OnBeforeCheckHuAssignmentValid(SourceDoc: Variant; var Handled: Boolean)

Parameters / Return Value

  • SourceDoc Variant

  • Handled Boolean


OnDeleteHuAssignmentEntry

local procedure OnDeleteHuAssignmentEntry(var HuAssignment: Record "EOS055 Handling Unit Assignm."; var Handled: Boolean)

Raised whenever a single HU assignment entry is about to be deleted. You can use this to add additional custom checks to prevent deletion of an assignment or to override the default checks that are already in place by using the Handled parameter.

Parameters / Return Value

  • HuAssignment Record "EOS055 Handling Unit Assignm."

    The assignment entry about to be deleted.

  • Handled Boolean

    Gets or sets if the event has been completely handled.


OnBeforeUpdateItemTrackingLines

local procedure OnBeforeUpdateItemTrackingLines(SourceDocLine: Variant;var TempOriginalBuffer: Record "EOS055 Handling Unit Buffer";var TempBufferToUpdate: Record "EOS055 Handling Unit Buffer";var Handled: Boolean)

Raised before item tracking lines are updated on a source document line from the assigned handling units.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.

  • TempOriginalBuffer Record "EOS055 Handling Unit Buffer"

    The original buffer containing all assignments that have been made on the source document line.

  • TempBufferToUpdate Record "EOS055 Handling Unit Buffer"

    The modified buffer containing all assignments that will be used to update item tracking lines This is essentially the same as TempOriginalBuffer with only lines containing item tracking information included.

  • Handled Boolean

    Gets or sets if the event has been completely handled.


OnAfterUpdateItemTrackingLines

local procedure OnAfterUpdateItemTrackingLines(SourceDocLine: Variant; var TempBuffer: Record "EOS055 Handling Unit Buffer" temporary)

Raised after item tracking lines have been updated on a source document line from the assignments.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.

  • TempBuffer Record "EOS055 Handling Unit Buffer"

    The buffer that was used to update the item tracking lines.


OnUpdateItemTrackingLinesBeforeDelete

local procedure OnUpdateItemTrackingLinesBeforeDelete(SourceDocLine: Variant)

Raised when item tracking lines are updated on a source document line from the assignments, before the existing item tracking lines are deleted.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.


OnUpdateItemTrackingLinesAfterCreate

local procedure OnUpdateItemTrackingLinesAfterCreate(SourceDocLine: Variant; TempBuffer: Record "EOS055 Handling Unit Buffer" temporary)

Raised when item tracking lines are updated on a source document line from the assignments, after the item tracking line has been created for a single buffer line.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.

  • TempBuffer Record "EOS055 Handling Unit Buffer"

    The buffer line the item tracking line was created for.


OnAfterCanUpdateItemTrackingLines

local procedure OnAfterCanUpdateItemTrackingLines(SourceDocLine: Variant; var TempHuBuffer: Record "EOS055 Handling Unit Buffer" temporary; var CanUpdate: Enum "EOS066 TriState Boolean")

Raised whenever item tracking lines are tried to be updated on a source document line.

Parameters / Return Value

  • SourceDocLine Variant

    The original source document line.

  • TempHuBuffer Record "EOS055 Handling Unit Buffer"

    The handling unit buffer for the given source document line.

  • CanUpdate Enum "EOS066 TriState Boolean"

    Gets or sets whether item tracking lines can be updated. This value is pre-set to false if the source document line is handled by warehouse activities.


OnBeforeTestItemTrackingRequired

local procedure OnBeforeTestItemTrackingRequired(SourceDocLine: Variant; var TempAssignment: Record "EOS055 Handling Unit Buffer"; var Handled: Boolean)

Raised before item tracking is verified on a source document line. By default, if an item requires item tracking for a given source document line, any HU assignment must be made with item tracking. This does not apply to document lines where item tracking is determined by warehouse operations. Use this to apply custom handling and/or skip the default checks.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.

  • TempAssignment Record "EOS055 Handling Unit Buffer"

    The buffer containing the assignment entries made to the source document line. This buffer is not meant to be updated. Any changes you apply are not written back to the HU assignment entry.

  • Handled Boolean

    Gets or sets if the event has been completely handled.


OnBeforeCreateItemTrackingLines

local procedure OnBeforeCreateItemTrackingLines(Doc: Variant; AssignedBuffer: Record "EOS055 Handling Unit Buffer"; var IsHandled: Boolean)

Raised before item tracking lines are created for a single source document record.

Parameters / Return Value

  • Doc Variant

    The document line

  • AssignedBuffer Record "EOS055 Handling Unit Buffer"

    The buffer containing the assignment lines to be created.

  • IsHandled Boolean

    Gets or sets if this event has been completely handled.


OnFindItemAssignmentTargetAfterSetFilters

local procedure OnFindItemAssignmentTargetAfterSetFilters(TempHuContent: Record "EOS055 Handling Unit Buffer";var TempItemBuffer: Record "EOS055 Handling Unit Buffer";IncludeOverdelivery: Boolean)

This is raised while source document item lines are searched for candidates that can hold all or a part of the quantity of a given handling unit content.

Parameters / Return Value

  • TempHuContent Record "EOS055 Handling Unit Buffer"

    The handling unit content to be assigned.

  • TempItemBuffer Record "EOS055 Handling Unit Buffer"

  • IncludeOverdelivery Boolean

    Indicates if possible overdelivery should be taken into account.


OnBeforeHuDoesNotFitError

local procedure OnBeforeHuDoesNotFitError(HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];var TempAssignmentResidue: Record "EOS055 Handling Unit Buffer")

Raised before the error is thrown that a HU does not fit on a source document. You can use this to customize the error that is thrown by throwing the error yourself. You can however not disable the error.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit that does not fit.

  • SourceType Integer

    The type of the source document.

  • SourceSubtype Integer

    The subtype of the source document.

  • SourceNo Code[20]

    The no. of the source document.

  • TempAssignmentResidue Record "EOS055 Handling Unit Buffer"

    A temporary buffer that contains all residue contents that were not assigned.


OnBeforeCreateReservation

local procedure OnBeforeCreateReservation(ForSourceDocLine: Variant; var FromTrackingSpec: Record "Tracking Specification"; QtyBase: Decimal; QtyBaseToHandle: Decimal; var IsHandled: Boolean)

Raised before a reservation is created as part of a HU assignment to a source document. You can use this to customize or skip the reservation that is about to be created. If you choose to customize this, make sure that you update “Quantity (Base)” in FromTrackingSpec after you create the reservation with the quantity that you have effectively created. Leftover quantities in FromTrackingSpec will be created as a residual reservation otherwise.

Parameters / Return Value

  • ForSourceDocLine Variant

  • FromTrackingSpec Record "Tracking Specification"

  • QtyBase Decimal

    The quantity to create.

  • QtyBaseToHandle Decimal

    The quantity to handle to create. Note: This parameter will be pre-set with the assigned quantity from a HU. This paramter will NOT be set and will be equal to zero for residual reservations that are re-created for non assigned quantities.

  • IsHandled Boolean


OnBeforeCheckHuIsAlreadyAssignedError

local procedure OnBeforeCheckHuIsAlreadyAssignedError(HandlingUnit: Record "EOS055 Handling Unit"; SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var IsHandled: Boolean; var ErrorText: Text)

Raised at the beginning of the procedure “CheckHuIsAlreadyAssignedError()". The procedure checks if the Handling Unit is already assigned to a source document. Use the event for a custom error or to skip the check.

Parameters / Return Value

  • HandlingUnit Record "EOS055 Handling Unit"

    The handling unit that does not fit.

  • SourceType Integer

    The type of the source document.

  • SourceSubtype Integer

    The subtype of the source document.

  • SourceNo Code[20]

    The no. of the source document.

  • IsHandled Boolean

    if true, no following app code will be executed

  • ErrorText Text

    Custom Error Message


OnBeforeDeleteHuAssignmentEntryOnWhseDoc

local procedure OnBeforeDeleteHuAssignmentEntryOnWhseDoc(Hu: Record "EOS055 Handling Unit"; SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var IsHandled: Boolean)

Raised before delete the HU assignment entries, created on a Warehouse Document.

Parameters / Return Value

  • Hu Record "EOS055 Handling Unit"

    The handling unit created on a Warehouse Document.

  • SourceType Integer

    The type of the source whse document

  • SourceSubtype Integer

    The subtype of the source whse document

  • SourceNo Code[20]

    The no. of the source whse document

  • IsHandled Boolean

    If true, no following app code will be executed


OnCollectReservationsOnBeforeTrackingSpecInsert

local procedure OnCollectReservationsOnBeforeTrackingSpecInsert(var TempTrackingSpec: Record "Tracking Specification"; ReservEntry: Record "Reservation Entry")

Raised on collecting existing reservation, before inserting the record in the temporary tracking specification table.

Parameters / Return Value

  • TempTrackingSpec Record "Tracking Specification"

    The target temporary tracking specification.

  • ReservEntry Record "Reservation Entry"

    The source reservation entry.


OnCollectReservationsOnBeforeTrackingSpecModify

local procedure OnCollectReservationsOnBeforeTrackingSpecModify(var TempTrackingSpec: Record "Tracking Specification"; ReservEntry: Record "Reservation Entry"; SignFactor: Integer)

Raised on collecting existing reservation, before modifying the record in the temporary tracking specification table.

Parameters / Return Value

  • TempTrackingSpec Record "Tracking Specification"

    The target temporary tracking specification.

  • ReservEntry Record "Reservation Entry"

    The source reservation entry.

  • SignFactor Integer


OnCreateItemTrackingLinesOnBeforeCreateReservEntryFor

local procedure OnCreateItemTrackingLinesOnBeforeCreateReservEntryFor(AssignedBuffer: Record "EOS055 Handling Unit Buffer"; var TempExistingReserv: Record "Tracking Specification")

Raised on creating item tracking lines, before calling the standard procedure CreateReservEntryFor.

Parameters / Return Value

  • AssignedBuffer Record "EOS055 Handling Unit Buffer"

    The current assigned HU buffer.

  • TempExistingReserv Record "Tracking Specification"

    The existing reservation.


OnGetAssignmentsInternalOnBeforeAddLineToBuffer

local procedure OnGetAssignmentsInternalOnBeforeAddLineToBuffer(var TempHuBuffer: Record "EOS055 Handling Unit Buffer"; HuAssignment: Record "EOS055 Handling Unit Assignm."; var AddLine: Boolean)

Raised on getting assignments, before adding the line to the buffer.

Parameters / Return Value

  • TempHuBuffer Record "EOS055 Handling Unit Buffer"

    The current HU buffer.

  • HuAssignment Record "EOS055 Handling Unit Assignm."

    The HU assignment.

  • AddLine Boolean

    If false, skips adding the line to the buffer.


OnBeforeGetCanUpdateItemTrackingLines

local procedure OnBeforeGetCanUpdateItemTrackingLines(SourceDocLine: Variant; var TrackingHandled: Boolean)

Raised in procedure UpdateItemTrackingLines, before update tracking after the assigment of Handling Unit.

Parameters / Return Value

  • SourceDocLine Variant

    The source document line.

  • TrackingHandled Boolean

    if true, skip the app code


OnAfterCreateRegActivLineOnBeforeCreateHandlingUnitAssignment

local procedure OnAfterCreateRegActivLineOnBeforeCreateHandlingUnitAssignment(var TempHuContent: Record "EOS055 Handling Unit Buffer";var WarehouseActivityLine: Record "Warehouse Activity Line";var RegisteredWhseActivLine: Record "Registered Whse. Activity Line")

Raised before creating the temporary Hu content

Parameters / Return Value

  • TempHuContent Record "EOS055 Handling Unit Buffer"

    Record “EOS055 Handling Unit Buffer”

  • WarehouseActivityLine Record "Warehouse Activity Line"

    Record “Warehouse Activity Line”

  • RegisteredWhseActivLine Record "Registered Whse. Activity Line"

    Record “Registered Whse. Activity Line”


OnBeforeCheckSerialNoQtyOnCreateHuAssignment

local procedure OnBeforeCheckSerialNoQtyOnCreateHuAssignment(HuAssignment: Record "EOS055 Handling Unit Assignm."; var IsHandled: Boolean)

Raised before checking the quantity in the Handling Unit Assignment with serial no.

Parameters / Return Value

  • HuAssignment Record "EOS055 Handling Unit Assignm."

    Current Handling Unit Assignment

  • IsHandled Boolean

    If true, doesn’t check the quantity



EOS Labs -