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 |
|
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
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. |
wgFncIsEnabled
Check whether Reservation Rescheduler is enabled.
Returns
| Type |
Description |
Boolean |
True if Reservation Rescheduler is enabled. |
wgFncRaiseErrorIfNotEnabled
Raises an error if reservation rescheduler is not enabled.
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. |
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. |
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. |
Overrides the Reservation Term of a demand line (Sales Line, Service Line, Job Planning Line, Assembly Line or Prod. Order Component) and recalculates its Reservation Start Date, applying the same validation as a manual change on the page. Use this to implement custom logic that determines the Reservation Term (e.g. based on your own criteria), instead of writing to the underlying Reservation Terms storage directly, which is a private implementation detail of Reservation Rescheduler.
Parameters
| Type |
Name |
Description |
Variant |
pRecordVariant |
The demand line record (e.g. Sales Line) to override the reservation term for. |
DateFormula |
pReservationTerm |
The new reservation term. Must be a negative date formula so that the resulting Reservation Start Date does not fall after the line's demand 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. |
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. |
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. |
wgEvpOnAfterSetProdOrderComponentReserve
Event is triggered after setting the "WSB_RSRReserve" (Reserve) field on the "Prod. Order Component" based on the values of the WSB_RSRSetup.ReserveProdOrderComponent and Item.Reserve fields.
Parameters
| Type |
Name |
Description |
Record "Prod. Order Component" |
vRecProdOrderComponent |
The Prod. Order Component record. |
Record "Item" |
pRecItem |
The Item record. |
wgEvpOnAfterUpdatePurchasingCodeFields
Event is triggered after conistency management has updated the purchasing code fields.
Parameters
| Type |
Name |
Description |
Boolean |
pShowDialog |
Whether a dialogue was shown. |
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. |
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. |
wgEvpOnPurchaseLineGetSpecialOrderDemandRecRef
Event is triggered during updating DemandConfirmed for a demand line from a Purchase Line.
Parameters
| Type |
Name |
Description |
Record "Purchase Line" |
pRecPurchLine |
The purchase line triggering the DemandConfirmed update. |
RecordRef |
vRecRefDemand |
Recordref to the demand line with the DemandConfirmed flowfield |