Table of Contents

GOB Calc. Shipment Proposal

Properties

Property Value
Object Type Codeunit
Object Subtype Normal
Object ID 5320523
Accessibility Level Public

Procedures

SetHideProgressWindow()

Syntax

SetHideProgressWindow(NewHideProgressWindow: Boolean)

Parameters

NewHideProgressWindow
 Type: Boolean

SetTemplAndWorksheet()

Set template and worksheet name. If this function is not used, the values must be set in the ship. proposal wksh. line parameter before calling CalculateShipmentProposal.

Syntax

SetTemplAndWorksheet(TemplateName: Code[10], WorksheetName: Code[10])

Parameters

TemplateName
 Type: Code[10]

WorksheetName
 Type: Code[10]

CalculateShipmentProposal()

Creates the ship. proposal wksh. line for the given filters by performing an availability calculation. The shipment proposal contains all documents that are available, when only considering inventory.

Syntax

CalculateShipmentProposal(NoFilter: Text, VariantFilter: Text, LocationFilter: Text, var ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line")

Parameters

NoFilter
 Type: Text

VariantFilter
 Type: Text

LocationFilter
 Type: Text

All locations in filter must have a valid availability setup that is configured for shipment proposal.

ShipProposalWkshLine
 Type: Record "GOB Ship. Proposal Wksh. Line"

The resulting shipment proposal. Use SetTemplAndWorksheet first, if template and worksheet name fields are empty in the passed variable.

Preprocessing()

Syntax

Preprocessing(ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line")

Parameters

ShipProposalWkshLine
 Type: Record "GOB Ship. Proposal Wksh. Line"

EvaluateResults()

Takes the results from availability calculation and creates ship. proposal wksh. lines if all conditions are fulfilled. For proper grouping of the lines (by line no.), this function loops the header availability entries first.

Syntax

EvaluateResults(var TempGOBAvailabilityEntryResult: Record "GOB Availability Entry" temporary, var ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line")

Parameters

TempGOBAvailabilityEntryResult
 Type: Record "GOB Availability Entry"

The result of a availability calculation.

ShipProposalWkshLine
 Type: Record "GOB Ship. Proposal Wksh. Line"

The resulting shipment proposal.

SplitResultHeaderLines()

Syntax

SplitResultHeaderLines(var TempGOBAvailabilityEntryResult: Record "GOB Availability Entry" temporary, var TempGOBAvailabilityEntryResultHeader: Record "GOB Availability Entry" temporary, var TempGOBAvailabilityEntryResultLine: Record "GOB Availability Entry" temporary)

Parameters

TempGOBAvailabilityEntryResult
 Type: Record "GOB Availability Entry"

TempGOBAvailabilityEntryResultHeader
 Type: Record "GOB Availability Entry"

TempGOBAvailabilityEntryResultLine
 Type: Record "GOB Availability Entry"

IncludeInShipmentProposal()

Checks if a document line can be included in shipment proposal. Non-document-specific conditions are (see also IncludeInShipmentProposal): Document line is available (or party available for shipping advice::partial) Item not blocked No existing whse. shipment No existing whse. activity

Document-specific conditions are checked via the "GOB Ship. Proposal Handler Interface".

Syntax

[Boolean] := IncludeInShipmentProposal(AvailabilityEntry: Record "GOB Availability Entry")

Parameters

AvailabilityEntry
 Type: Record "GOB Availability Entry"

Availability Entry for a document line.

InsertShipProposalWkshLine()

Inserts a shipment proposal line, based on an document line.

Syntax

InsertShipProposalWkshLine(AvailabilityEntry: Record "GOB Availability Entry", var ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line", LineNo: Integer)

Parameters

AvailabilityEntry
 Type: Record "GOB Availability Entry"

The availability entry for a document line.

ShipProposalWkshLine
 Type: Record "GOB Ship. Proposal Wksh. Line"

The created ship. proposal wksh. line.

LineNo
 Type: Integer

The line number is assigned to the new line.

ConvertQty()

Syntax

[Decimal] := ConvertQty(Qty: Decimal, PerUoMQty: Decimal)

Parameters

Qty
 Type: Decimal

PerUoMQty
 Type: Decimal

OpenProgressWindow()

Syntax

OpenProgressWindow()

UpdateProgressWindow()

Syntax

UpdateProgressWindow(FieldNo: Integer, NewValue: Variant)

Parameters

FieldNo
 Type: Integer

NewValue
 Type: Variant

UpdateProgressWindowCounter()

Syntax

UpdateProgressWindowCounter(CurrentNo: Integer, TotalNo: Integer)

Parameters

CurrentNo
 Type: Integer

TotalNo
 Type: Integer

CloseProgressWindow()

Syntax

CloseProgressWindow()

OnBeforeIncludeInShipmentProposal()

Syntax

OnBeforeIncludeInShipmentProposal(AvailabilityEntry: Record "GOB Availability Entry", var IsHandled: Boolean, var ReturnValue: Boolean)

Parameters

AvailabilityEntry
 Type: Record "GOB Availability Entry"

IsHandled
 Type: Boolean

ReturnValue
 Type: Boolean

OnBeforeInsertShipProposalWkshLine()

Syntax

OnBeforeInsertShipProposalWkshLine(AvailabilityEntry: Record "GOB Availability Entry", var ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line")

Parameters

AvailabilityEntry
 Type: Record "GOB Availability Entry"

ShipProposalWkshLine
 Type: Record "GOB Ship. Proposal Wksh. Line"