Codeunit 70491906 EOS055.01 Handling Unit-Create
Codeunit 70491906 EOS055.01 Handling Unit-Create
Methods
CreateHandlingUnitContent
procedure CreateHandlingUnitContent(SystemCreatedEntry: Boolean)
Parameters / Return Value
- SystemCreatedEntry Boolean
CreateHandlingUnitContentsYesNo
procedure CreateHandlingUnitContentsYesNo(var TmpHuBuffer: Record "EOS055 Handling Unit Buffer"): Boolean
Asks for confirmation and then creates the contents in the given handling unit buffer as a system-created entry.
Parameters / Return Value
- TmpHuBuffer - Record "EOS055 Handling Unit Buffer"- The buffer of contents to be created. 
- Returns - Boolean- trueif the dialog was confirmed.
CreateHandlingUnitContentsYesNo
procedure CreateHandlingUnitContentsYesNo(var TmpHuBuffer: Record "EOS055 Handling Unit Buffer"; SystemCreatedEntry: Boolean): Boolean
Asks for confirmation and then creates the contents in the given handling unit buffer and allows to specify whether they should be created as a system-created entry.
Parameters / Return Value
- TmpHuBuffer - Record "EOS055 Handling Unit Buffer"- The buffer of contents to be created. 
- SystemCreatedEntry - Boolean- Specifies whether this is a system-created entry. A system-created entry renders the HU non-editable. 
- Returns - Boolean- trueif the dialog was confirmed.
CreateHandlingUnitContents
procedure CreateHandlingUnitContents(var TmpHuBuffer: Record "EOS055 Handling Unit Buffer")
Creates the contents in the given handling unit buffer as a system-created entry.
Parameters / Return Value
- TmpHuBuffer - Record "EOS055 Handling Unit Buffer"- The buffer of contents to be created. 
CreateHandlingUnitContents
procedure CreateHandlingUnitContents(var TmpHuBuffer: Record "EOS055 Handling Unit Buffer"; SystemCreatedEntry: Boolean)
Creates the contents in the given handling unit buffer and allows to specify whether they should be created as a system-created entry.
Parameters / Return Value
- TmpHuBuffer - Record "EOS055 Handling Unit Buffer"- The buffer of contents to be created. 
- SystemCreatedEntry - Boolean- Specifies whether this is a system-created entry. A system-created entry renders the HU non-editable. 
CreateHandlingUnitContentFor
procedure CreateHandlingUnitContentFor(TmpHuBuffer: Record "EOS055 Handling Unit Buffer")
Parameters / Return Value
- TmpHuBuffer Record "EOS055 Handling Unit Buffer"
SetHandlingUnitOrder
procedure SetHandlingUnitOrder(OrderType: Integer; OrderNo: Code[20])
Parameters / Return Value
- OrderType - Integer
- OrderNo - Code[20]
CreateHandlingUnitFromPMYesNo
procedure CreateHandlingUnitFromPMYesNo(var NewHandlingUnit: Record "EOS055 Handling Unit";HuStatus: Enum "EOS055.01 Handling Unit Status"): Boolean
Creates a new empty handling unit from a packaging material. Opens a page that allows the selection of the packaging material.
Parameters / Return Value
- NewHandlingUnit - Record "EOS055 Handling Unit"- reference to the new handling unit created 
- HuStatus - Enum "EOS055.01 Handling Unit Status"- Indicates which status the new handling unit will be created with. 
- Returns - Boolean- trueif the packaging material selection was confirmed and a handling unit was created.
CreateHandlingUnitFromPM
procedure CreateHandlingUnitFromPM(PMNo: Code[20];HuStatus: Enum "EOS055.01 Handling Unit Status";var NewHandlingUnit: Record "EOS055 Handling Unit")
Creates a new empty handling unit from a packaging material.
Parameters / Return Value
- PMNo - Code[20]- packaging material to use for the HU creation 
- HuStatus - Enum "EOS055.01 Handling Unit Status"- Indicates which status the new handling unit will be created with. 
- NewHandlingUnit - Record "EOS055 Handling Unit"- reference to the new handling unit created 
CreateHandlingUnitFromPM
procedure CreateHandlingUnitFromPM(PMNo: Code[20]; HuStatus: Enum "EOS055.01 Handling Unit Status";ParentHandlingUnitNo: Code[20];var NewHandlingUnit: Record "EOS055 Handling Unit")
Creates a new empty handling unit from a packaging material.
Parameters / Return Value
- PMNo - Code[20]- packaging material to use for the HU creation 
- HuStatus - Enum "EOS055.01 Handling Unit Status"- Indicates which status the new handling unit will be created with. 
- ParentHandlingUnitNo - Code[20]- number of the parent handling unit to use 
- NewHandlingUnit - Record "EOS055 Handling Unit"- reference to the new handling unit created 
CreateHandlingUnitFromPM
procedure CreateHandlingUnitFromPM(PMNo: Code[20]; HUNo: Code[20]; HuStatus: Enum "EOS055.01 Handling Unit Status";ParentHandlingUnitNo: Code[20];var NewHandlingUnit: Record "EOS055 Handling Unit")
Creates a new empty handling unit from a packaging material.
Parameters / Return Value
- PMNo - Code[20]- packaging material to use for the HU creation 
- HUNo - Code[20]- The new handling unit no. Leave blank to generate a new no. from the application no. series. 
- HuStatus - Enum "EOS055.01 Handling Unit Status"- Indicates which status the new handling unit will be created with. 
- ParentHandlingUnitNo - Code[20]- number of the parent handling unit to use 
- NewHandlingUnit - Record "EOS055 Handling Unit"- reference to the new handling unit created 
CheckHuInventory
procedure CheckHuInventory(WhseEntry: Record "Warehouse Entry")
Parameters / Return Value
- WhseEntry Record "Warehouse Entry"
CheckHuInventory
procedure CheckHuInventory(ItemLedgEntry: Record "Item Ledger Entry")
Parameters / Return Value
- ItemLedgEntry Record "Item Ledger Entry"
CheckHuInventory
procedure CheckHuInventory(Hu: Record "EOS055 Handling Unit")
Parameters / Return Value
- Hu Record "EOS055 Handling Unit"
CheckHuInventory
procedure CheckHuInventory(Doc: Variant)
Parameters / Return Value
- Doc Variant
CheckHuInventory
procedure CheckHuInventory(HuBuffer: Record "EOS055 Handling Unit Buffer")
Parameters / Return Value
- HuBuffer Record "EOS055 Handling Unit Buffer"
CheckHuInventory
procedure CheckHuInventory(HuNo: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10]; BinCode: Code[20]; LotNo: Code[50]; SerialNo: Code[50])
Parameters / Return Value
- HuNo - Code[20]
- ItemNo - Code[20]
- VariantCode - Code[10]
- LocationCode - Code[10]
- BinCode - Code[20]
- LotNo - Code[50]
- SerialNo - Code[50]
CheckHuInventory
procedure CheckHuInventory(HuContent: Record "EOS055 Handling Unit Content")
Parameters / Return Value
- HuContent Record "EOS055 Handling Unit Content"
UpdateHandlingUnit
procedure UpdateHandlingUnit(var HandlingUnit: Record "EOS055 Handling Unit"; ModifyHeader: Boolean)
Parameters / Return Value
- HandlingUnit - Record "EOS055 Handling Unit"
- ModifyHeader - Boolean
UpdateHandlingUnit
procedure UpdateHandlingUnit(var HandlingUnit: Record "EOS055 Handling Unit"; ModifyHeader: Boolean; UpdateParents: Boolean)
Updates the header information of a handling unit.
Parameters / Return Value
- HandlingUnit - Record "EOS055 Handling Unit"- Handling Unit 
- ModifyHeader - Boolean- true if the HU should be modified 
- UpdateParents - Boolean
BlockCalcWeightVolume
procedure BlockCalcWeightVolume(Blocked: Boolean)
Parameters / Return Value
- Blocked Boolean
SetHuStatus
procedure SetHuStatus(NewHuStatus: Enum "EOS055.01 Handling Unit Status")
Sets the predefined status that the handling unit will receive.
Parameters / Return Value
- NewHuStatus - Enum "EOS055.01 Handling Unit Status"- The status to be applied to the handling unit. 
ClearHuStatus
procedure ClearHuStatus()
Removes the predefined status that the handling unit will receive.
RaiseOnAfterUndoPostedDocumentLine
procedure RaiseOnAfterUndoPostedDocumentLine(PostedSourceDocLine: Variant; var TempHuAssignment: Record "EOS055 Handling Unit Assignm.")
Parameters / Return Value
- PostedSourceDocLine - Variant
- TempHuAssignment - Record "EOS055 Handling Unit Assignm."
Events
OnBeforeCheckHuContentEntry
local procedure OnBeforeCheckHuContentEntry(var HuContent: Record "EOS055 Handling Unit Content"; var Handled: Boolean; var HandlingUnit: Record "EOS055 Handling Unit")
Raised after a handling unit content entry has been created and before the entry created has been checked. Use this to bypass checks or alter the content entry.
Parameters / Return Value
- HuContent - Record "EOS055 Handling Unit Content"- The handling unit content being inserted. 
- Handled - Boolean- Gets or sets if the event has been correctly handled. If this is true, the default checks are skipped. 
- HandlingUnit - Record "EOS055 Handling Unit"- The handling unit. 
OnAfterCheckHuContentEntry
local procedure OnAfterCheckHuContentEntry(HuContent: Record "EOS055 Handling Unit Content"; var HandlingUnit: Record "EOS055 Handling Unit")
Raised after a handling unit content entry has been created and after the entry created has been checked. Use this to add any additional checks for the content entry or modify the handling unit.
Parameters / Return Value
- HuContent - Record "EOS055 Handling Unit Content"- The handling unit content being inserted. 
- HandlingUnit - Record "EOS055 Handling Unit"- The handling unit. 
OnAfterUndoPostedDocumentLine
local procedure OnAfterUndoPostedDocumentLine(PostedSourceDocLine: Variant; var TempUndoneHuAssignment: Record "EOS055 Handling Unit Assignm.")
Raised after the HU contents for a given posted source document line have been corrected when the source document has been undone.
Parameters / Return Value
- PostedSourceDocLine - Variant- The source document line that has been undone. 
- TempUndoneHuAssignment - Record "EOS055 Handling Unit Assignm."
OnAfterCreateHandlingUnitContentFor
local procedure OnAfterCreateHandlingUnitContentFor(SourceBuffer: Record "EOS055 Handling Unit Buffer"; var InsertHandlingUnitContent: Record "EOS055 Handling Unit Content" temporary)
Raised after values from a buffer are assigned to the handling unit content about to be created.
Parameters / Return Value
- SourceBuffer - Record "EOS055 Handling Unit Buffer"- The source buffer containing the values for the handling unit to be created. 
- InsertHandlingUnitContent - Record "EOS055 Handling Unit Content"- The handling unit content to be created. 
OnBeforeInsertHandlingUnit
local procedure OnBeforeInsertHandlingUnit(var HandlingUnit: Record "EOS055 Handling Unit")
Parameters / Return Value
- HandlingUnit Record "EOS055 Handling Unit"
OnBeforeInsertHandlingUnitContent
local procedure OnBeforeInsertHandlingUnitContent(var HandlingUnitContent: Record "EOS055 Handling Unit Content"; InsertHandlingUnitContent: Record "EOS055 Handling Unit Content" temporary)
Parameters / Return Value
- HandlingUnitContent - Record "EOS055 Handling Unit Content"
- InsertHandlingUnitContent - Record "EOS055 Handling Unit Content"
OnAfterUpdateHandlingUnit
local procedure OnAfterUpdateHandlingUnit(var HandlingUnit: Record "EOS055 Handling Unit")
Parameters / Return Value
- HandlingUnit Record "EOS055 Handling Unit"
OnBeforeCheckHuInventory
local procedure OnBeforeCheckHuInventory(HuContent: Record "EOS055 Handling Unit Content"; var Policy: Enum "EOS030 HU Inventory Check Policy"; var Handled: Boolean)
Raised before a HU inventory check is performed. Use this to implement additional custom checks or override the default one.
Parameters / Return Value
- HuContent - Record "EOS055 Handling Unit Content"- The HU content that is checked. 
- Policy - Enum "EOS030 HU Inventory Check Policy"- Gets or sets the policy to apply for the check. This is pre-set with the value from the global setup. 
- Handled - Boolean- Gets or sets whether this event has been completely handled. 
OnCheckHuInventoryBeforeVerify
local procedure OnCheckHuInventoryBeforeVerify(HuContent: Record "EOS055 Handling Unit Content"; var QtyBaseOnHu: Decimal; var QtyBaseOnInventory: Decimal; var Handled: Boolean)
Raised during a HU inventory check, right before the HU and inventory quantities are verified. If the HU quantities exceed the inventory quantities, an error is thrown. Use this to modify the calculated quantities or override the check.
Parameters / Return Value
- HuContent - Record "EOS055 Handling Unit Content"- The HU content that is checked. 
- QtyBaseOnHu - Decimal- The calculated base quantity on loaded HUs. 
- QtyBaseOnInventory - Decimal- The calculated base quantity on inventory. 
- Handled - Boolean- Gets or sets whether this event has been completely handled. 
OnHuWeightCalculation
local procedure OnHuWeightCalculation(WeightCalculation: Enum "EOS055 Weight Calculation";var TempSourceBuffer: Record "EOS055 Handling Unit Buffer";var TempHandlingUnit: Record "EOS055 Handling Unit")
Raised when filtering TempSourceBuffer before doing the CalcSums for Net Weight, Gross Weight and Volume.
Parameters / Return Value
- WeightCalculation - Enum "EOS055 Weight Calculation"- The enum value of the Weight Calculation setup. 
- TempSourceBuffer - Record "EOS055 Handling Unit Buffer"- The unfiltered TempSourceBuffer. 
- TempHandlingUnit - Record "EOS055 Handling Unit"- The handling unit. 
OnCheckHuInventoryBeforeRaiseMessage
local procedure OnCheckHuInventoryBeforeRaiseMessage(HuContent: Record "EOS055 Handling Unit Content"; QtyOnHu: Decimal; QtyOnInventory: Decimal; var InventoryMessage: Text; var Handled: Boolean)
Raised before the message or error is shown to the user, in case a HU inventory check has failed. You can use this to customize behaviour, override it or change the message displayed.
Parameters / Return Value
- HuContent - Record "EOS055 Handling Unit Content"- The content that has failed the check. 
- QtyOnHu - Decimal- The calculated quantity on HU contents. 
- QtyOnInventory - Decimal- The calculated quantity on inventory. 
- InventoryMessage - Text[]- The message that has been generated. This can be modified. 
- Handled - Boolean- Gets or sets whether this event has been completely handled. 
OnAfterCreateHandlingUnitContent
local procedure OnAfterCreateHandlingUnitContent(var HandlingUnit: Record "EOS055 Handling Unit"; var HandlingUnitContent: Record "EOS055 Handling Unit Content")
Raised after creating Handling Unit Content and updating Handling Unit.
Parameters / Return Value
- HandlingUnit - Record "EOS055 Handling Unit"- The handling unit. 
- HandlingUnitContent - Record "EOS055 Handling Unit Content"- The handling unit content. 
OnBeforeTestHandlingUnitIsBlocked
local procedure OnBeforeTestHandlingUnitIsBlocked(TempInsertHandlingUnitContent: Record "EOS055 Handling Unit Content" temporary; HandlingUnit: Record "EOS055 Handling Unit"; var IsHandledBlocked: Boolean; var IsHandledLocked: Boolean)
Raised in the procedure CreateHandlingUnitContent, before test that the Handling Unit is not blocked or locked. Use it to skip control.
Parameters / Return Value
- TempInsertHandlingUnitContent - Record "EOS055 Handling Unit Content"- The Handling Unit Content to insert 
- HandlingUnit - Record "EOS055 Handling Unit"- The Handling Unit 
- IsHandledBlocked - Boolean- if true, skip test the Handling Unit is not blocked 
- IsHandledLocked - Boolean- if true, skip test the Handling Unit is not locked 
OnUpdateHandlingUnitOnAfterFindNegativeContent
local procedure OnUpdateHandlingUnitOnAfterFindNegativeContent(HandlingUnit: Record "EOS055 Handling Unit"; var TempHandlingUnitBuffer: Record "EOS055 Handling Unit Buffer" temporary; var IsHandled: Boolean)
Raised on procedure UpdateHandlingUnit on after find negative content.
Parameters / Return Value
- HandlingUnit - Record "EOS055 Handling Unit"- The handling unit 
- TempHandlingUnitBuffer - Record "EOS055 Handling Unit Buffer"- Content buffer 
- IsHandled - Boolean- If true, skips standard code 
Feedback
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.