Table of Contents

GOB Create Whse. Shpt. Mgt.

Properties

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

Procedures

CreateWhseShpt()

Creates warehouse shipments for all lines of a source document of a warehouse request, according to the specified shipment proposal. The extended logic for whse. shipment creation from shipment proposal applies (i.e. aggregation/only quantities specified in shipment proposal lines). If no "ShipProposalWkshName" is specified, this function behaves like BC standard whse. shipment creation.

Syntax

CreateWhseShpt(var WhseRequest: Record "Warehouse Request", ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10])

Parameters

WhseRequest
 Type: Record "Warehouse Request"

Specifies the warehouse request for a single document.

ShipProposalWkshTemplateName
 Type: Code[10]

Specifies a shipment proposal worksheet template name.

ShipProposalWkshName
 Type: Code[10]

Specifies a shipment proposal worksheet name.

CheckCreateWhseShpt()

Syntax

[Boolean] := CheckCreateWhseShpt(var WhseRequest: Record "Warehouse Request", SalesHeader: Record "Sales Header", LocationFilter: Text)

Parameters

WhseRequest
 Type: Record "Warehouse Request"

SalesHeader
 Type: Record "Sales Header"

LocationFilter
 Type: Text

CheckUseShipmentProposal()

Syntax

[Boolean] := CheckUseShipmentProposal(WhseRequest: Record "Warehouse Request")

Parameters

WhseRequest
 Type: Record "Warehouse Request"

GetAutomaticCreateWhseShptLocationFilter()

Syntax

[Text] := GetAutomaticCreateWhseShptLocationFilter()

CalculateLocationShipmentProposal()

Calculates a shipment proposal for a single location.

Syntax

CalculateLocationShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10], LocationCode: Code[10])

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

LocationCode
 Type: Code[10]

DeleteShipmentProposal()

Syntax

DeleteShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10])

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

SetShipmentProposal()

Syntax

SetShipmentProposal(ProposalWkshTemplateName: Code[10], ProposalWkshName: Code[10], OnlyCalcLocation: Code[10])

Parameters

ProposalWkshTemplateName
 Type: Code[10]

ProposalWkshName
 Type: Code[10]

OnlyCalcLocation
 Type: Code[10]

OnBeforeGetAutomaticCreateWhseShptLocationFilter()

Syntax

OnBeforeGetAutomaticCreateWhseShptLocationFilter(var CreateShptFilter: Text, var Handled: Boolean)

Parameters

CreateShptFilter
 Type: Text

Handled
 Type: Boolean

OnBeforeCheckCreateWhseShpt()

Syntax

OnBeforeCheckCreateWhseShpt(var WhseRequest: Record "Warehouse Request", SalesHeader: Record "Sales Header", LocationFilter: Text, var Result: Boolean, var Handled: Boolean)

Parameters

WhseRequest
 Type: Record "Warehouse Request"

SalesHeader
 Type: Record "Sales Header"

LocationFilter
 Type: Text

Result
 Type: Boolean

Handled
 Type: Boolean

OnBeforeCheckUseShipmentProposal()

Syntax

OnBeforeCheckUseShipmentProposal(WhseRequest: Record "Warehouse Request", var Result: Boolean, var Handled: Boolean)

Parameters

WhseRequest
 Type: Record "Warehouse Request"

Result
 Type: Boolean

Handled
 Type: Boolean

OnBeforeCreateWhseShpt()

Syntax

OnBeforeCreateWhseShpt(var WhseRequest: Record "Warehouse Request", var ShipProposalWkshTemplateName: Code[10], var ShipProposalWkshName: Code[10], var Handled: Boolean)

Parameters

WhseRequest
 Type: Record "Warehouse Request"

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

Handled
 Type: Boolean

OnAfterCreateWhseShpt()

Syntax

OnAfterCreateWhseShpt(var WhseRequest: Record "Warehouse Request", var ShipProposalWkshTemplateName: Code[10], var ShipProposalWkshName: Code[10])

Parameters

WhseRequest
 Type: Record "Warehouse Request"

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

OnBeforeCalculateLocationShipmentProposal()

Syntax

OnBeforeCalculateLocationShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10], LocationCode: Code[10], var Handled: Boolean)

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

LocationCode
 Type: Code[10]

Handled
 Type: Boolean

OnAfterCalculateLocationShipmentProposal()

Syntax

OnAfterCalculateLocationShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10], LocationCode: Code[10])

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

LocationCode
 Type: Code[10]

OnBeforeDeleteShipmentProposal()

Syntax

OnBeforeDeleteShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10], var Handled: Boolean)

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

Handled
 Type: Boolean

OnAfterDeleteShipmentProposal()

Syntax

OnAfterDeleteShipmentProposal(ShipProposalWkshTemplateName: Code[10], ShipProposalWkshName: Code[10])

Parameters

ShipProposalWkshTemplateName
 Type: Code[10]

ShipProposalWkshName
 Type: Code[10]

OnBeforeShipProposalCreateWhseShipment()

Syntax

OnBeforeShipProposalCreateWhseShipment(var ShipProposalWkshLine: Record "GOB Ship. Proposal Wksh. Line", var EIPCreateWhseShpt: Codeunit "GOB EIP Create Whse. Shipment")

Parameters

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

EIPCreateWhseShpt
 Type: Codeunit "GOB EIP Create Whse. Shipment"

OnBeforeRunGetSourceDocuments()

Syntax

OnBeforeRunGetSourceDocuments(var GetSourceDocuments: Report "Get Source Documents", var WhseRequest: Record "Warehouse Request")

Parameters

GetSourceDocuments
 Type: Report "Get Source Documents"

WhseRequest
 Type: Record "Warehouse Request"