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
Variant
The 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
Variant
The 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
Variant
The 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
Integer
The document type.
SourceSubtype
Integer
The 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
Integer
The document type.
SourceSubtype
Integer
The 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
Boolean
Specifies 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
Boolean
Specifies whether a detailed set is returned. If this is false, lines are grouped by item and location.
ForSourceType
Integer
Only include contents moved by this source document.
ForSourceSubtype
Integer
Only 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
Boolean
Specifies whether a detailed set is returned. If this is false, lines are grouped by item and location.
ForSourceType
Integer
Only include contents moved by this source document.
ForSourceSubtype
Integer
Only include contents moved by this source document.
ForSourceNo
Code[20]
Only include contents moved by this source document.
IncludeChildren
Boolean
Specifies 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.
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
Integer
Level
Integer
TargetBuffer
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
Integer
The source type (TableId) of the source warehouse document.
WhseDocSubtype
Integer
The 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
Boolean
true
if any source document has been found.
CollectItemLedgEntries
procedure CollectItemLedgEntries(DocLine: Variant; ItemShptEntryNo: Integer; var TempItemLedgEntry: Record "Item Ledger Entry")
Parameters / Return Value
DocLine
Variant
ItemShptEntryNo
Integer
TempItemLedgEntry
Record "Item Ledger Entry"
SumAllHandlingUnitContentsForSourceDoc
procedure SumAllHandlingUnitContentsForSourceDoc(SourceDoc: Variant; var TempResultBuffer: Record "EOS055 Handling Unit Buffer")
Parameters / Return Value
SourceDoc
Variant
TempResultBuffer
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
Variant
The document line for which the item entries are to be retrieved. This is most probably a posted document.
ItemShptEntryNo
Integer
The 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
Boolean
Gets 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.
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.