Skip to content

Enum WSB_RSRDemandConfReservMethod

Specifies the possible reserve values on which demand confirmation will be applied.

Properties

Name Value
Access Public
Extensible True

Values

Ordinal Name Description
0 Always
1 OptionalAlways
# Codeunit WSB_RSRPublic

Exposes additional event publishers and procedures next to the event publishers that are available from the public objects.

Properties

Name Value
Access Public

Methods

wgFncDisconnectSalesLine

Disconnects a special orders or drop shipments given the sales lines to which special orders/drop shipments are connected.

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The sales line records to disconnect from its special order / drop shipment.

wgFncGetCalculationDate

Gets the Calculation Date that is used to calculate the Reservation Terms Start Date.

Returns

Type Description
Date The calculation date.

wgFncGetDemandConfirmedForHeader

Gets the minimal status of the Demand Confirmed from the lines.

Parameters

Type Name Description
Variant pRecordVariant The document header record.

Returns

Type Description
Enum WSB_RSRDemandConfirmation Whether the demand of the document is confirmed.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for an assembly header.

Parameters

Type Name Description
Record "Assembly Header" vRecAssemblyHdr The assembly header record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for an assembly line.

Parameters

Type Name Description
Record "Assembly Line" vRecAssemblyLine The assembly line record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for a production order component.

Parameters

Type Name Description
Record "Prod. Order Component" vRecProdOrderComponent The production order component record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for a sales line.

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The sales line record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for a service line.

Parameters

Type Name Description
Record "Service Line" vRecServiceLine The service line record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for a job planning line.

Parameters

Type Name Description
Record "Job Planning Line" vRecJobPlanningLine The job planning line record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyBaseOnItemLedg

Gets the Reserved Qty. (Base) from Item Ledger Entry for a transfer line.

Parameters

Type Name Description
Record "Transfer Line" vRecTransferLine The transfer line record.

Returns

Type Description
Decimal A decimal which specifies the reserved base quantity.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for an assembly header.

Parameters

Type Name Description
Record "Assembly Header" vRecAssemblyHeader The assembly header record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for an assembly line.

Parameters

Type Name Description
Record "Assembly Line" vRecAssemblyLine The assembly line record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for a production order component.

Parameters

Type Name Description
Record "Prod. Order Component" vRecProdOrderComponent The production order component record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for a sales line.

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The sales line record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for a service line.

Parameters

Type Name Description
Record "Service Line" vRecServiceLine The service line record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservedQtyOnItemLedg

Gets the Reserved Qty. from Item Ledger Entry for a transfer line.

Parameters

Type Name Description
Record "Transfer Line" vRecTransferLine The transfer line record.

Returns

Type Description
Decimal A decimal which specifies the reserved quantity on item ledger entries.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed assembly header.

Parameters

Type Name Description
Record "Assembly Header" vRecAssemblyHdr The assembly header record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed assembly line.

Parameters

Type Name Description
Record "Assembly Line" vRecAssemblyLine The assembly line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed job planning line.

Parameters

Type Name Description
Record "Job Planning Line" vRecJobPlanningLine The job planning line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed production order component.

Parameters

Type Name Description
Record "Prod. Order Component" vRecProdOrderComponent The production order component record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed production order line.

Parameters

Type Name Description
Record "Prod. Order Line" vRecProdOrderLine The production order line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed sales line.

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The sales line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed service line.

Parameters

Type Name Description
Record "Service Line" vRecServiceLine The service line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncReservStatus

Obsolete

Use the wgFncGetReservationStatus procedure from codeunit WSB_RSRReservStatus instead. 1.28.0.0

Gets the reservation status for the passed transfer line.

Parameters

Type Name Description
Record "Transfer Line" vRecTransferLine The transfer line record.

Returns

Type Description
Enum WSB_RSRReservStatus The reservation status.

wgFncSaleslLinCalcShptDateFromPlannedDlvDate

Determine Shipment Date from Planned Delivery Date uses Location Calender

Parameters

Type Name Description
Record "Sales Line" pRecSalesLine The sales line to calculate the shipment date for.
Date pPlannedDeliveryDate The planned delivery date.

Returns

Type Description
Date The shipment date.

wgFncStockSufficientForCompleteShipment

Determine if there is enough inventory available for complete shipment.

Parameters

Type Name Description
Enum "WSB_RSRReservStatus" pReservationStatus The reservation status.

Returns

Type Description
Boolean true iff the inventory/stock is sufficient for complete shipment for this reservation status.

wgFncStockSufficientForPartialShipment

Determine if there is enough inventory available for partial shipment.

Parameters

Type Name Description
Enum "WSB_RSRReservStatus" pReservationStatus The reservation status.

Returns

Type Description
Boolean true iff the inventory/stock is sufficient for partial shipment for this reservation status.

wgFncTransferLineAutoReserveOutbound

Automatically create reservations for the outstanding quantity of an item of an outbound transfer order line. Prerequisite: The Reserve Method of the Transfer Line record is set to "Always". Throws an error if the "Item No." of the Transfer Line record is not filled.

Parameters

Type Name Description
Record "Transfer Line" vRecTransferLine The transfer line record.

wgFncTransferLineAutoReserveOutbound

Automatically create reservations for the outstanding quantity of an item of an outbound transfer order line. Prerequisite: The Reserve Method of the Transfer Line record is set to "Always". Directly commits the changes if the full quantity could not automatically be reserved (FullAutoReservation = false) and pCurrFieldNo != 0. Throws an error if the "Item No." of the Transfer Line record is not filled.

Parameters

Type Name Description
Record "Transfer Line" vRecTransferLine The transfer line record.
Integer pCurrFieldNo If you intend to invoke this procedure from a field's validation trigger, then you can use this parameter to specify the no. of the field that triggered the procedure.

wgFncUpdateDemandConfirmedForReservEntry

Updates "Demand Confirmed" for Reservation Entry.

Parameters

Type Name Description
Record "Reservation Entry" vRecReservationEntry The reservation entry record on which to update the "Demand Confirmed" status.

wgFncUpdateDemandConfirmedFromAssemblyHeader

Updates "Demand Confirmed" from "Assembly Header".

Parameters

Type Name Description
Record "Assembly Header" vRecAssemblyHeader The assembly header record from which to update the "Demand Confirmed" status.

wgFncUpdateDemandConfirmedFromProdOrderLine

Updates "Demand Confirmed" from "Prod. Order Line".

Parameters

Type Name Description
`` vRecAsmHdr The production order line record from which to update the "Demand Confirmed" status.

wgFncUpdateDemandConfirmedFromPurchLine

Updates "Demand Confirmed" from "Purchase Line".

Parameters

Type Name Description
Record "Purchase Line" vRecPurchLine The purchase line record from which to update the "Demand Confirmed" status.

wgFncUpdateDemandConfirmedOnSalesLine

Updates "Demand Confirmed" on "Sales Line".

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The sales line record on which to update the "Demand Confirmed" status.

wgEvpOnAfterGetCalculationDate

Event is triggered after GetCalculationDate is called when using Reservation Terms. Default values are Today or Workdate, depending on the setup.

Parameters

Type Name Description
Date vCalculationDate VAR Date vCalculationDate.

wgEvpOnAfterGetSourceHeaderValues

Event is triggered after GetSourceHeaderValues when using Demand Confirmation, you can implement additional types here.

Parameters

Type Name Description
Integer vSourceTableNo VAR Integer.
RecordRef vSourceRecRef VAR RecordRef.
Integer vSourceType VAR Integer.
Code[20] vSourceNo VAR Code[20].
Boolean vFound VAR Boolean.

wgEvpOnAfterGetSourceValues

Event is triggered after GetSourceValues when using Demand Confirmation, you can implement additional types here.

Parameters

Type Name Description
RecordRef vSourceRecRef VAR RecordRef.
Integer vSourceType VAR Integer.
Code[20] vSourceNo VAR Code[20].
Integer vSourceLineNo VAR Integer.
Integer vSourceProdOrderLineNo VAR Integer.
Decimal vOutStandingQtyBase VAR Decimal.
Enum "Reserve Method" vReserve VAR Enum "Reserve Method".
Boolean vFound VAR Boolean.

wgEvpOnAfterGetSourceValuesReservationTerm

Event is triggered after GetSourceValues when using Reservation Terms, you can implement additional types here.

Parameters

Type Name Description
RecordRef vSourceRecRef VAR RecordRef.
Integer vSourceType VAR Integer.
Code[20] vSourceNo VAR Code[20].
Integer vSourceLineNo VAR Integer.
Integer vSourceProdOrderLineNo VAR Integer.
Boolean vFound VAR Boolean.

wgEvpOnAfterSalesHeaderCalcReservStatus

Event is triggered before WSB_ReservationStatusRSR is set on Sales Header but after the vHeaderStatus is calculated.

Parameters

Type Name Description
Record "Sales Header" pRecSalesHeader Record "Sales Header".
Enum "WSB_RSRReservStatusHeader" vHeaderStatus VAR Enum WSB_RSRReservStatusHeader.

wgEvpOnBeforeGetReservationEntrySourceRecRef

Event is triggered before GetReservationEntrySourceRecRef, you can implement additional supply types.

Parameters

Type Name Description
Record "Reservation Entry" vRecReservEntry VAR Record "Reservation Entry".
RecordRef vRecRefSupply VAR RecordRef.
Boolean vFound VAR Boolean.
Boolean vIsHandled VAR Boolean.

wgEvpOnBeforeSalesHeaderCalcReservStatus

Event is triggered before WSB_ReservationStatusRSR is set on Sales Header and before the vHeaderStatus is calculated.

Parameters

Type Name Description
Record "Sales Header" pRecSalesHeader Record "Sales Header".
Enum "WSB_RSRReservStatusHeader" vHeaderStatus VAR Enum WSB_RSRReservStatusHeader.
Boolean vIsHandled VAR Boolean.

wgEvpOnBeforeUpdateDemandConfirmed

Event is triggered before DemandConfirmed is updated.

Parameters

Type Name Description
RecordRef vRecRefDemand VAR RecordRef.
Boolean vIsHandled VAR Boolean.