Codeunit 70491902 EOS055 Packaging Data Collect.
Codeunit 70491902 EOS055 Packaging Data Collect.
Methods
LoadSourceItems
procedure LoadSourceItems(SourceDoc: Variant; var TempSourceBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Adds a list of all item lines on a given source document to the provided buffer.
Parameters / Return Value
SourceDoc
VariantThe source document.
TempSourceBuffer
Record "EOS055 Handling Unit Buffer"The results will be added to this buffer. Any existing contents will be kept.
LoadSourceItems
procedure LoadSourceItems(SourceDoc: Variant;ItemNo: Code[20]; VariantCode: Code[10];var TempSourceBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Adds a list of all item lines on a given source document to the provided buffer.
Parameters / Return Value
SourceDoc
VariantThe source document.
ItemNo
Code[20]The item no. Provide an empty string to use all items.
VariantCode
Code[10]The variant code. Provide an empty string to use all variants.
TempSourceBuffer
Record "EOS055 Handling Unit Buffer"The results will be added to this buffer. Any existing contents will be kept.
LoadSourceItems
procedure LoadSourceItems(SourceDoc: Variant; SourceLineFilter: Text;ItemNo: Code[20]; VariantCode: Code[10];var TempSourceBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Adds a list of all item lines on a given source document to the provided buffer.
Parameters / Return Value
SourceDoc
VariantThe source document.
SourceLineFilter
Text[]An optional document line filter. If this is an empty string, all lines are included.
ItemNo
Code[20]The item no. Provide an empty string to use all items.
VariantCode
Code[10]The variant code. Provide an empty string to use all variants.
TempSourceBuffer
Record "EOS055 Handling Unit Buffer"The results will be added to this buffer. Any existing contents will be kept.
LoadSourceItems
procedure LoadSourceItems(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];ItemNo: Code[20]; VariantCode: Code[10];var TempSourceBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Adds a list of all item lines on a given source document to the provided buffer.
Parameters / Return Value
SourceType
IntegerThe document type.
SourceSubtype
IntegerThe document subtype.
SourceNo
Code[20]The document no.
ItemNo
Code[20]The item no. Provide an empty string to use all items.
VariantCode
Code[10]The variant code. Provide an empty string to use all variants.
TempSourceBuffer
Record "EOS055 Handling Unit Buffer"The results will be added to this buffer. Any existing contents will be kept.
LoadSourceItems
procedure LoadSourceItems(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineFilter: Text;ItemNo: Code[20]; VariantCode: Code[10];var TempSourceBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Adds a list of all item lines on a given source document to the provided buffer.
Parameters / Return Value
SourceType
IntegerThe document type.
SourceSubtype
IntegerThe document subtype.
SourceNo
Code[20]The document no.
SourceLineFilter
Text[]An optional document line filter. If this is an empty string, all lines are included.
ItemNo
Code[20]The item no. Provide an empty string to use all items.
VariantCode
Code[10]The variant code. Provide an empty string to use all variants.
TempSourceBuffer
Record "EOS055 Handling Unit Buffer"The results will be added to this buffer. Any existing contents will be kept.
SumHandlingUnitContent
procedure SumHandlingUnitContent(HandlingUnitNo: Code[20]; var TempHandlingUnitContent2: Record "EOS055 Handling Unit Buffer")
Calculates the contents of a given handling unit.
Parameters / Return Value
HandlingUnitNo
Code[20]The handling unit no. to calculate.
TempHandlingUnitContent2
Record "EOS055 Handling Unit Buffer"A temporary buffer that will hold the results. All existing contents in the buffer will be replaced.
SumHandlingUnitContent
procedure SumHandlingUnitContent(HandlingUnitNo: Code[20]; Detailed: Boolean; var TempHandlingUnitContent2: Record "EOS055 Handling Unit Buffer")
Calculates the contents of a given handling unit.
Parameters / Return Value
HandlingUnitNo
Code[20]The handling unit no. to calculate.
Detailed
BooleanSpecifies whether a detailed set is returned. If this is false, lines are grouped by item and location.
TempHandlingUnitContent2
Record "EOS055 Handling Unit Buffer"A temporary buffer that will hold the results. All existing contents in the buffer will be replaced.
SumHandlingUnitContent
procedure SumHandlingUnitContent(HandlingUnitNo: Code[20]; Detailed: Boolean; ForSourceType: Integer; ForSourceSubtype: Integer; ForSourceNo: Code[20]; var TmpHandlingUnitBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Calculates the contents of a given handling unit and all its children.
Parameters / Return Value
HandlingUnitNo
Code[20]The handling unit no. to calculate.
Detailed
BooleanSpecifies whether a detailed set is returned. If this is false, lines are grouped by item and location.
ForSourceType
IntegerOnly include contents moved by this source document.
ForSourceSubtype
IntegerOnly include contents moved by this source document.
ForSourceNo
Code[20]Only include contents moved by this source document.
TmpHandlingUnitBuffer
Record "EOS055 Handling Unit Buffer"A temporary buffer that will hold the results. All existing contents in the buffer will be replaced.
SumHandlingUnitContent
procedure SumHandlingUnitContent(HandlingUnitNo: Code[20]; Detailed: Boolean;ForSourceType: Integer; ForSourceSubtype: Integer; ForSourceNo: Code[20];IncludeChildren: Boolean;var TmpHandlingUnitBuffer: Record "EOS055 Handling Unit Buffer" temporary)
Calculates the contents of a given handling unit and all its children.
Parameters / Return Value
HandlingUnitNo
Code[20]The handling unit no. to calculate.
Detailed
BooleanSpecifies whether a detailed set is returned. If this is false, lines are grouped by item and location.
ForSourceType
IntegerOnly include contents moved by this source document.
ForSourceSubtype
IntegerOnly include contents moved by this source document.
ForSourceNo
Code[20]Only include contents moved by this source document.
IncludeChildren
BooleanSpecifies whether child handling units should be included.
TmpHandlingUnitBuffer
Record "EOS055 Handling Unit Buffer"A temporary buffer that will hold the results. All existing contents in the buffer will be replaced.
AddHandlingUnitContentToBuffer
procedure AddHandlingUnitContentToBuffer(HandlingUnitContent: Record "EOS055 Handling Unit Content";var TempTargetBuffer: Record "EOS055 Handling Unit Buffer";ParentLineNo: Integer; Level: Integer; Detailed: Boolean)
Parameters / Return Value
HandlingUnitContent
Record "EOS055 Handling Unit Content"TempTargetBuffer
Record "EOS055 Handling Unit Buffer"ParentLineNo
IntegerLevel
IntegerDetailed
Boolean
AddHandlingUnitToBuffer
procedure AddHandlingUnitToBuffer(HandlingUnit: Record "EOS055 Handling Unit";ParentLineNo: Integer; Level: Integer;var TargetBuffer: Record "EOS055 Handling Unit Buffer"): Integer
Parameters / Return Value
HandlingUnit
Record "EOS055 Handling Unit"ParentLineNo
IntegerLevel
IntegerTargetBuffer
Record "EOS055 Handling Unit Buffer"Returns
Integer
AddWhseSourceDocumentsToBuffer
procedure AddWhseSourceDocumentsToBuffer(WhseTableId: Integer; WhseDocSubtype: Integer; WhseDocNo: Code[20]; var TmpRecIdBuf: Record "EOS Record Ident. Buffer"): Boolean
Adds all source documents on the warehouse document to a buffer.
Parameters / Return Value
WhseTableId
IntegerThe source type (TableId) of the source warehouse document.
WhseDocSubtype
IntegerThe source subtype of the source warehouse document.
WhseDocNo
Code[20]The no. of the source warehouse document.
TmpRecIdBuf
Record "EOS Record Ident. Buffer"The result containing all source documents present on the warehouse document.
Returns
Booleantrueif any source document has been found.
CollectItemLedgEntries
procedure CollectItemLedgEntries(DocLine: Variant; ItemShptEntryNo: Integer; var TempItemLedgEntry: Record "Item Ledger Entry")
Parameters / Return Value
DocLine
VariantItemShptEntryNo
IntegerTempItemLedgEntry
Record "Item Ledger Entry"
SumAllHandlingUnitContentsForSourceDoc
procedure SumAllHandlingUnitContentsForSourceDoc(SourceDoc: Variant; var TempResultBuffer: Record "EOS055 Handling Unit Buffer")
Parameters / Return Value
SourceDoc
VariantTempResultBuffer
Record "EOS055 Handling Unit Buffer"
Events
OnBeforeCollectItemLedgEntries
local procedure OnBeforeCollectItemLedgEntries(DocLine: Variant; ItemShptEntryNo: Integer; var TempItemLedgEntry: Record "Item Ledger Entry"; var Handled: Boolean)
Raised when the item ledger entries for a given posted source document are tried to be loaded.
Parameters / Return Value
DocLine
VariantThe document line for which the item entries are to be retrieved. This is most probably a posted document.
ItemShptEntryNo
IntegerThe item shipment entry no. that has been set on the posted source document.
TempItemLedgEntry
Record "Item Ledger Entry"A temporary buffer that will contain all the item entries. Use this to provide the item entries.
Handled
BooleanGets or sets if this event has been completely handled.
OnAfterSumContents
local procedure OnAfterSumContents(var TempTargetBuffer: Record "EOS055 Handling Unit Buffer" temporary; HandlingUnitContent: Record "EOS055 Handling Unit Content")
Raised when adding quantities and weights of different contents to the same buffer line.
Parameters / Return Value
TempTargetBuffer
Record "EOS055 Handling Unit Buffer"The target Handling Unit Buffer.
HandlingUnitContent
Record "EOS055 Handling Unit Content"The source Handling Unit Content.
OnBeforeInsertHandlingUnitToBuffer
local procedure OnBeforeInsertHandlingUnitToBuffer(var TargetBuffer: Record "EOS055 Handling Unit Buffer"; HandlingUnit: Record "EOS055 Handling Unit")
Raised before inserting handling unit to buffer.
Parameters / Return Value
TargetBuffer
Record "EOS055 Handling Unit Buffer"The target Handling Unit Buffer.
HandlingUnit
Record "EOS055 Handling Unit"The source Handling Unit.
OnAfterCalcHandlingUnitContentFromHuAssignments
local procedure OnAfterCalcHandlingUnitContentFromHuAssignments(HandlingUnit: Record "EOS055 Handling Unit"; SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var TargetBuffer: Record "EOS055 Handling Unit Buffer"; ParentLineNo: Integer; ParentLevel: Integer; Detailed: Boolean)
Raised after adding handling unit assignments to buffer on calculating handling unit content.
Parameters / Return Value
HandlingUnit
Record "EOS055 Handling Unit"SourceType
IntegerSourceSubtype
IntegerSourceNo
Code[20]TargetBuffer
Record "EOS055 Handling Unit Buffer"The Handling Unit Buffer
ParentLineNo
IntegerThe parent line no in the buffer
ParentLevel
IntegerThe parent level in the buffer
Detailed
Boolean
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.