Codeunit 70491904 EOS055.01 HU Assignment
Contains functions and events to manage handling unit assignments and data retrieval.
procedure CheckHuAssignmentValid(SourceDoc: Variant)
Checks if a given source document is valid for handling unit assignments.
SourceDoc Variant
The source document to check.
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.
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.
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.
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.
procedure GetAssignments(HandlingUnitNo: Code[20]; var Result: Record "EOS055 Handling Unit Buffer"): Boolean
Retrieve all assignments made for a given handling unit.
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
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.
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.
procedure GetAssignedHandlingUnits(DocVariant: Variant;var TempHandlingUnit: Record "EOS055 Handling Unit" temporary): Boolean
Adds all handling units assigned to a specific document to the buffer.
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.
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.
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.
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.
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.
procedure CalcAssignedQty(DocLineVariant: Variant): Decimal
Calculates the assigned quantity for one source document line.
DocLineVariant Variant
The source document line.
Returns Decimal
The total base quantity assigned.
procedure CalcAssignedQty(TransferLine: Record "Transfer Line"; Inbound: Boolean): Decimal
Calculates the assigned quantity for one transfer line.
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.
procedure CalcAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer): Decimal
Calculates the assigned quantity for one source document line.
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.
procedure CalcAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer;LotNo: Code[50]; SerialNo: Code[50]; FilterByItemTracking: Boolean): Decimal
SourceType Integer
SourceSubtype Integer
SourceNo Code[20]
SourceLineNo Integer
SourceSublineNo Integer
LotNo Code[50]
SerialNo Code[50]
FilterByItemTracking Boolean
Returns Decimal
procedure AssignHandlingUnitToSource(HandlingUnit: Record "EOS055 Handling Unit";DocVariant: Variant)
Fully assigns the content of a handling unit to a source document header.
HandlingUnit Record "EOS055 Handling Unit"
The handling unit to assign.
DocVariant Variant
The source document.
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.
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.
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.
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.
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.
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.
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.
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"
procedure UpdateTransferItemTackingLines(TransLine: Record "Transfer Line"; Inbound: Boolean)
TransLine Record "Transfer Line"
Inbound Boolean
procedure UpdateItemTrackingLines(SourceDocLine: Variant)
Updates item tracking lines of the source document line to match those of the assigned handling units.
Variant
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.
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.
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.
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.
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.
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.
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.
Code[20]
procedure AssignHandlingUnitFromSourceLine(var TempSourceLineBuffer: Record "EOS055 Handling Unit Buffer" temporary; var HandlingUnit: Record "EOS055 Handling Unit")
TempSourceLineBuffer Record "EOS055 Handling Unit Buffer"
HandlingUnit Record "EOS055 Handling Unit"
procedure GetAssignmentTargets(SourceDocument: Variant; var TmpAssignmentTarget: Record "EOS055.01 HU Assignment Target")
Retrieves a list of all assignment targets for a given source document.
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.
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.
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.
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.
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.
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.
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.
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.
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.
procedure DeleteAssignments(HandlingUnitNo: Code[20])
Remove all assignments for a given handling unit.
HandlingUnitNo Code[20]
The handling unit no.
procedure ClearLastAssignmentResidue()
Clears the buffer that holds the residue of the last assignment operation - if any.
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.
SourceType Integer
Source Type
SourceSubtype Integer
SourceNo Code[20]
Source No.
SourceLineNo Integer
Source Line No.
SourceSublineNo Integer
Source Subline No.
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.
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
procedure TransferAssignment(Source: Variant; Target: Variant)
Source Variant
Target Variant
procedure HasHuAssignments(DocLineVariant: Variant): Boolean
Checks if the given source document has any handling unit assignments.
DocLineVariant Variant
Returns Boolean
true
if any assignment exists.
procedure HasHuAssignments(TransferLine: Record "Transfer Line"; Inbound: Boolean): Boolean
Checks if the given transfer line has any handling unit assignments.
TransferLine Record "Transfer Line"
Inbound Boolean
Returns Boolean
true
if any assignment exists.
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.
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.
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.
Variant
procedure IsAssignedFromPick(HuNo: Code[20]; WhseShipmentNo: Code[20]): Boolean
Checks if the handling unit has been assigned through a warehouse pick.
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.
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.
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.
procedure DrillDownAssignedQty(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSublineNo: Integer)
shows the assigned quantities for one source/document line.
SourceType Integer
Source Type
SourceSubtype Integer
SourceNo Code[20]
Source No.
SourceLineNo Integer
Source Line No.
SourceSublineNo Integer
Source Subline No.
procedure DrilldownAssignedQty(SourceDoc: Variant)
Opens a page containing all assignments for a given source document/line.
SourceDoc Variant
The source document or line.
procedure DrilldownAssignedQty(TransferLine: Record "Transfer Line"; Inbound: Boolean)
Opens a page containing all assignments for a given transfer line.
TransferLine Record "Transfer Line"
Inbound Boolean
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.
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.
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.
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.
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.
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.
local procedure OnBeforeCheckHuAssignmentValid(SourceDoc: Variant; var Handled: Boolean)
SourceDoc Variant
Handled Boolean
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.
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.
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.
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.
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.
SourceDocLine Variant
The source document line.
TempBuffer Record "EOS055 Handling Unit Buffer"
The buffer that was used to update the item tracking lines.
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.
SourceDocLine Variant
The source document line.
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.
SourceDocLine Variant
The source document line.
TempBuffer Record "EOS055 Handling Unit Buffer"
The buffer line the item tracking line was created for.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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
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.
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
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.
TempTrackingSpec Record "Tracking Specification"
The target temporary tracking specification.
ReservEntry Record "Reservation Entry"
The source reservation entry.
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.
TempTrackingSpec Record "Tracking Specification"
The target temporary tracking specification.
ReservEntry Record "Reservation Entry"
The source reservation entry.
SignFactor Integer
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.
AssignedBuffer Record "EOS055 Handling Unit Buffer"
The current assigned HU buffer.
TempExistingReserv Record "Tracking Specification"
The existing reservation.
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.
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.
local procedure OnBeforeGetCanUpdateItemTrackingLines(SourceDocLine: Variant; var TrackingHandled: Boolean)
Raised in procedure UpdateItemTrackingLines, before update tracking after the assigment of Handling Unit.
SourceDocLine Variant
The source document line.
TrackingHandled Boolean
if true, skip the app code
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
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”
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.
HuAssignment Record "EOS055 Handling Unit Assignm."
Current Handling Unit Assignment
IsHandled Boolean
If true, doesn’t check the quantity
local procedure OnBeforeCollectReservations(SourceLine: Variant; var IsHandled: Boolean)
Raised before finding the reservations related to the source line. Set IsHandled to true to avoid keeping reservations and to allow the recreation of the item tracking lines.
SourceLine Variant
The source document line.
IsHandled Boolean
if true, skip the standard code
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.