KVSKBADispatchHandlingLine
Fields
| Name | Type | Note |
|---|---|---|
| Activity Type | Option | OptionMembers: ,Put-away,Pick,Movement,Invt. Put-away,Invt. Pick |
| No. | Code[20] | |
| Line No. | Integer | |
| Source Type | Integer | |
| Source Subtype | Option | OptionMembers: 0,1,2,3,4,5,6,7,8,9,10 |
| Source No. | Code[20] | |
| Source Line No. | Integer | |
| Source Subline No. | Integer | |
| Source Document | Enum (KVSKBADispatchSourceDocType) | |
| Location Code | Code[10] | |
| Shelf No. | Code[10] | |
| Sorting Sequence No. | Integer | |
| Item No. | Code[20] | |
| Variant Code | Code[10] | |
| Unit of Measure Code | Code[10] | |
| Qty. per Unit of Measure | Decimal | |
| Description | Text[100] | |
| Description 2 | Text[50] | |
| Quantity | Decimal | |
| Qty. (Base) | Decimal | |
| Qty. Outstanding | Decimal | |
| Qty. Outstanding (Base) | Decimal | |
| Qty. to Handle | Decimal | |
| Qty. to Handle (Base) | Decimal | |
| Qty. Handled | Decimal | |
| Qty. Handled (Base) | Decimal | |
| Shipping Advice | Enum Sales Header Shipping Advice | |
| Due Date | Date | |
| Destination Type | Enum Warehouse Destination Type | |
| Destination No. | Code[20] | |
| Shipping Agent Code | Code[10] | |
| Shipping Agent Service Code | Code[10] | |
| Shipment Method Code | Code[10] | |
| Starting Date | Date | |
| Service Item No. | Code[20] | |
| Posted Invoice No. | Code[20] | |
| Length | Decimal | |
| Width | Decimal | |
| Height | Decimal | |
| Gross Weight (Scale) | Decimal | |
| Weight per Unit of Measure | Decimal | |
| Gross Weight | Decimal | |
| Tara | Decimal | |
| Item Qty. Per Carrier | Decimal | |
| Package Superior Line No. | Integer | |
| Package Level No. | Integer | |
| Package Sequence Line No. | Integer | |
| Package Sequence No. | Integer | |
| Package Structure | Code[50] | |
| Carrier ID Obligation | Boolean | |
| Carrier ID | Text[50] | |
| Additional Package | Boolean | |
| Empty Package | Boolean | |
| Carrier Posting Type | Enum (KVSKBACarrierPostingType) | |
| Net Weight per Unit of Measure | Decimal | |
| Packing Suggestion Group | Code[20] | |
| Packing Suggestion No. | Code[20] | |
| Packing Suggestion Status | Enum (KVSKBAPackingSuggestionStatus) | FlowField |
| Dispatch Location Code | Code[10] | |
| Outbound Pack. Location Code | Code[10] | |
| Outbound Pack. Bin Code | Code[20] | |
| Inbound Pack. Location Code | Code[10] | |
| Inbound Pack. Bin Code | Code[20] | |
| Serial No. | Code[50] | |
| Lot No. | Code[50] | |
| Warranty Date | Date | |
| Expiration Date | Date | |
| Production Date | Date | |
| Ext. Lot No. | Code[50] | |
| Package No. | Code[50] | |
| Bin Code | Code[20] | |
| Zone Code | Code[10] | |
| Whse. Document Type | Option | OptionMembers: ,Receipt,Shipment,Internal Put-away,Internal Pick,Production,Movement Worksheet,Invt. Pick,Posted Sales Shipment,Posted Return Shipment,Posted Transfer Shipment,Pick,Posted Service Shipment |
| Whse. Document No. | Code[20] | |
| Whse. Document Line No. | Integer | |
| Net Weight | Decimal | |
| Document Line Type | Option | OptionMembers: ,Account (G/L),Item,Resource,Fixed Asset,Charge (Item),Carrier |
| Document Line No. | Code[20] | |
| Print Label | Boolean | |
| KVSKBA V-LOG Value of Goods | Decimal | |
| KVSKBAV-LOGValueOfGoodsComment | Text[200] | |
| KVSKBAGoodsValueOrigin | Enum (KVSKBAValueOfGoodsOrigin) | |
| Description of Goods | Text[70] |
Procedures
SplitLine(Record KVSKBADispatchHandlingLine) :
Summary: Splits the dispatch handling line into two lines, one with the quantity to handle and another with the remaining quantity.
procedure SplitLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
Parameters:
DispatchHandlingLine: The dispatch handling line to be split.
Remarks: This procedure creates a new dispatch handling line with the remaining quantity after handling the specified quantity. It also updates the original line to reflect the handled quantity and adjusts weights accordingly. If the dispatch handling line is associated with a warehouse activity line, it will also split that line.
TestStatusOpen() :
Summary: Tests if the status of the dispatch handling header is open.
procedure TestStatusOpen():
Remarks: This procedure checks the status of the dispatch handling header associated with the current dispatch handling line. If the status is not open, it raises an error. This ensures that modifications to dispatch handling lines are only allowed when the header is in an open state.
CalculateLineWeight() :
Summary: This function calculates the weight fields for a dispatch handling order line
procedure CalculateLineWeight():
Remarks: This procedure calculates the weight fields for a dispatch handling order line based on the document line type. If the line is of type Carrier, it calculates the Tara and Gross Weight based on the weight per unit of measure and quantity to handle. For other line types, it calculates the Gross Weight and Net Weight based on the weight per unit of measure and quantity to handle. The calculated values are then stored in the respective fields of the dispatch handling line record.
GetNextSequenceLineNo(Code[20], Integer) : Integer
Summary: This function calculates the next level sequence line no
procedure GetNextSequenceLineNo(DispatchHandlingOrderNo: Code[20]; PackageSuperiorLineNo: Integer): Integer
Parameters:
DispatchHandlingOrderNo: Dispatch Handling Order No. as Code is the document in which to searchPackageSuperiorLineNo: Packaging Parent Line No. is the associated parent package line no.
Returns: Next Sequence Line No as Integer
Remarks: This procedure calculates the next sequence line number for a dispatch handling order line based on the provided dispatch handling order number and package superior line number. It retrieves the last sequence line number for the specified order and parent line, increments it by a predefined spacing value, and returns the next available sequence line number.
GetNextOrderLineNo(Code[20]) : Integer
Summary: This function calculates the next order line no
procedure GetNextOrderLineNo(DispatchHandlingOrderNo: Code[20]): Integer
Parameters:
DispatchHandlingOrderNo: Dispatch Handling Order No. as Code is the document in which to search
Returns:
Remarks: This procedure calculates the next order line number for a dispatch handling order line based on the provided dispatch handling order number. It retrieves the last order line number for the specified order, increments it by a predefined spacing value, and returns the next available order line number.
GetValueOfGoods() : Boolean
Summary: This function calculates the value of the goods for a dispatch handling order line
procedure GetValueOfGoods(): Boolean
Returns: Boolean, returns whether the value could be written without a comment
Remarks: This procedure calculates the value of the goods for a dispatch handling order line based on the source document and line type. It retrieves the value from the corresponding sales or service invoice, sales or service order, or other relevant source documents. If a valid value is found, it updates the "KVSKBA V-LOG Value of Goods" field and sets the origin to the appropriate source. If no value is found, it prompts for manual entry and returns false.
GetValueOfGoods(Boolean) : Boolean
Summary: This function calculates the value of the goods for a dispatch handling order line
procedure GetValueOfGoods(ModifyRecord: Boolean): Boolean
Parameters:
ModifyRecord: Boolean, whether a Modify on the record is allowed. Modify must not be executed if the record has not been inserted yet.
Returns: Boolean, returns whether the value could be written without a comment
Remarks: This procedure calculates the value of the goods for a dispatch handling order line based on the source document and line type. It retrieves the value from the corresponding sales or service invoice, sales or service order, or other relevant source documents. If a valid value is found, it updates the "KVSKBA V-LOG Value of Goods" field and sets the origin to the appropriate source. If no value is found, it prompts for manual entry and returns false.
Events
OnBeforeCalculateLineWeight(Record KVSKBADispatchHandlingLine, Boolean) :
Summary: This event is raised before the line weight is calculated.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalculateLineWeight(var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean):
Parameters:
KVSKBADispatchHandlingLine: The record of the dispatch handling line for which the weight is being calculated.IsHandled: Set to true to skip the standard line weight calculation.
Remarks: This event allows subscribers to perform custom logic before the line weight is calculated for a dispatch handling line. By setting the IsHandled parameter to true, subscribers can prevent the standard weight calculation from occurring, allowing for complete customization of the weight calculation process.
OnAfterSplitLine(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine) :
Summary: This event is raised after a dispatch handling line has been split.
[IntegrationEvent(false, false)]
local procedure OnAfterSplitLine(var xKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var NewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
Parameters:
xKVSKBADispatchHandlingLine: The original dispatch handling line before the split.KVSKBADispatchHandlingLine: The dispatch handling line after the split.NewKVSKBADispatchHandlingLine: The new dispatch handling line created as a result of the split.
Remarks: This event allows subscribers to perform custom logic after a dispatch handling line has been split. Subscribers can use the original line, the line after the split, and the new line to implement any necessary adjustments or additional processing that should occur as a result of the split operation.
OnBeforeGetValueOfGoods(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Boolean, Boolean) :
Summary: This event is raised before the value of goods is calculated for a dispatch handling line.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetValueOfGoods(var Rec: Record "KVSKBADispatchHandlingLine"; var xRec: Record "KVSKBADispatchHandlingLine"; var LineValue: Boolean; var IsHandled: Boolean):
Parameters:
Rec: The current dispatch handling line record for which the value of goods is being calculated.xRec: A copy of the dispatch handling line record before any modifications are made during the value of goods calculation process.LineValue: Set the calculated value of goods for the line.IsHandled: Set to true to skip the standard value of goods calculation.
Remarks: This event allows subscribers to perform custom logic before the value of goods is calculated for a dispatch handling line. By setting the LineValue parameter, subscribers can provide a custom calculated value for the goods. Additionally, by setting the IsHandled parameter to true, subscribers can prevent the standard value of goods calculation from occurring, allowing for complete customization of the value calculation process.
OnBeforeGetLineNoSpacing(Integer) :
Summary: This event is raised before the line no spacing is calculated.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetLineNoSpacing(var Spacing: Integer):
Parameters:
Spacing: Set the spacing to use as an integer.
Remarks: This event allows subscribers to define custom spacing for line numbers in dispatch handling lines. By setting the Spacing parameter, subscribers can control the increment between line numbers, which can be useful for accommodating future insertions of lines without needing to renumber existing lines.
OnBeforeGetSequenceLineNoSpacing(Integer) :
Summary: This event is raised before the sequence line no spacing is calculated.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetSequenceLineNoSpacing(var Spacing: Integer):
Parameters:
Spacing: Set the spacing to use as an integer.
Remarks: This event allows subscribers to define custom spacing for sequence line numbers in dispatch handling lines. By setting the Spacing parameter, subscribers can control the increment between sequence line numbers, which can be useful for accommodating future insertions of lines without needing to renumber existing lines.
OnBeforeGetPackageSequenceLineNoSpacing(Integer) :
Summary: This event is raised before the package sequence line no spacing is calculated.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetPackageSequenceLineNoSpacing(var Spacing: Integer):
Parameters:
Spacing: Set the spacing to use as an integer.
Remarks: This event allows subscribers to define custom spacing for package sequence line numbers in dispatch handling lines. By setting the Spacing parameter, subscribers can control the increment between package sequence line numbers, which can be useful for accommodating future insertions of lines without needing to renumber existing lines.