Share via


Codeunit "Planning Transparency"

ID 99000856
Namespace: Microsoft.Inventory.Planning

Methods

SetTemplAndWorksheet

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

Parameters

Name Type Description
TemplateName Code[10]
WorksheetName Code[10]

FindReason

Obsolete

This element will become obsolete from version 26.0. Replaced by procedure GetSurplusType()

[Obsolete(Replaced by procedure GetSurplusType(),26.0)]
procedure FindReason(var DemandInvProfile: Record "Inventory Profile"): Integer

Parameters

Name Type Description
DemandInvProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

Returns

Type Description
Integer

GetSurplusType

procedure GetSurplusType(var DemandInvProfile: Record "Inventory Profile"): Enum "Planning Surplus Type"

Parameters

Name Type Description
DemandInvProfile Table Microsoft.Inventory.Tracking."Inventory Profile"

Returns

Type Description
Enum Microsoft.Inventory.Planning."Planning Surplus Type"

LogSurplus

Obsolete

This element will become obsolete from version 26.0. Replaced by procedure LogPlanningSurplus()

[Obsolete(Replaced by procedure LogPlanningSurplus(),26.0)]
procedure LogSurplus(SupplyLineNo: Integer, DemandLineNo: Integer, SourceType: Integer, SourceID: Code[20], Qty: Decimal, SurplusType: Option)

Parameters

Name Type Description
SupplyLineNo Integer
DemandLineNo Integer
SourceType Integer
SourceID Code[20]
Qty Decimal
SurplusType Option

LogPlanningSurplus

procedure LogPlanningSurplus(SupplyLineNo: Integer, DemandLineNo: Integer, SourceType: Integer, SourceID: Code[20], Qty: Decimal, SurplusType: Enum "Planning Surplus Type")

Parameters

Name Type Description
SupplyLineNo Integer
DemandLineNo Integer
SourceType Integer
SourceID Code[20]
Qty Decimal
SurplusType Enum Microsoft.Inventory.Planning."Planning Surplus Type"

ModifyLogEntry

Obsolete

This element will become obsolete from version 26.0. Replaced by procedure ModifyPlanningLog()

[Obsolete(Replaced by procedure ModifyPlanningLog(),26.0)]
procedure ModifyLogEntry(SupplyLineNo: Integer, DemandLineNo: Integer, SourceType: Integer, SourceID: Code[20], Qty: Decimal, SurplusType: Option)

Parameters

Name Type Description
SupplyLineNo Integer
DemandLineNo Integer
SourceType Integer
SourceID Code[20]
Qty Decimal
SurplusType Option

ModifyPlanningLog

procedure ModifyPlanningLog(SupplyLineNo: Integer, DemandLineNo: Integer, SourceType: Integer, SourceID: Code[20], Qty: Decimal, SurplusType: Enum "Planning Surplus Type")

Parameters

Name Type Description
SupplyLineNo Integer
DemandLineNo Integer
SourceType Integer
SourceID Code[20]
Qty Decimal
SurplusType Enum Microsoft.Inventory.Planning."Planning Surplus Type"

CleanLog

procedure CleanLog(SupplyLineNo: Integer)

Parameters

Name Type Description
SupplyLineNo Integer

PublishSurplus

procedure PublishSurplus(var SupplyInvProfile: Record "Inventory Profile", var SKU: Record "Stockkeeping Unit", var ReqLine: Record "Requisition Line", var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
SupplyInvProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

SetCurrReqLine

procedure SetCurrReqLine(var CurrentReqLine: Record "Requisition Line")

Parameters

Name Type Description
CurrentReqLine Table Microsoft.Inventory.Requisition."Requisition Line"

DrillDownUntrackedQty

procedure DrillDownUntrackedQty(CaptionText: Text)

Parameters

Name Type Description
CaptionText Text

ReqLineWarningLevel

procedure ReqLineWarningLevel(ReqLine: Record "Requisition Line"): Integer

Parameters

Name Type Description
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"

Returns

Type Description
Integer

LogWarning

procedure LogWarning(SupplyLineNo: Integer, ReqLine: Record "Requisition Line", WarningLevel: Option, Source: Text[200]): Boolean

Parameters

Name Type Description
SupplyLineNo Integer
ReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
WarningLevel Option
Source Text[200]

Returns

Type Description
Boolean

Events

OnAfterShowSurplusReason

[IntegrationEvent(False,False)]
local procedure OnAfterShowSurplusReason(SurplusType: Integer, var ReturnText: Text[50])

Parameters

Name Type Description
SurplusType Integer
ReturnText Text[50]

OnBeforeFindReason

Obsolete

This element will become obsolete from version 26.0. Replaced by event OnBeforeGetSurplusType

[Obsolete(Replaced by event OnBeforeGetSurplusType,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeFindReason(var DemandInvProfile: Record "Inventory Profile", var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
DemandInvProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
Result Integer
IsHandled Boolean

OnBeforeGetSurplusType

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSurplusType(var DemandInvProfile: Record "Inventory Profile", var Result: Enum "Planning Surplus Type", var IsHandled: Boolean)

Parameters

Name Type Description
DemandInvProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
Result Enum Microsoft.Inventory.Planning."Planning Surplus Type"
IsHandled Boolean

OnLogSurplusOnCaseSurplusTypeElse

[IntegrationEvent(False,False)]
local procedure OnLogSurplusOnCaseSurplusTypeElse(SupplyLineNo: Integer, DemandLineNo: Integer, SourceType: Integer, SourceID: Code[20], Qty: Decimal, SurplusType: Integer, var Priority: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SupplyLineNo Integer
DemandLineNo Integer
SourceType Integer
SourceID Code[20]
Qty Decimal
SurplusType Integer
Priority Integer
IsHandled Boolean

OnPublishSurplusOnBeforePlanningElementInsert

[IntegrationEvent(False,False)]
local procedure OnPublishSurplusOnBeforePlanningElementInsert(var UntrackedPlanningElement: Record "Untracked Planning Element", var IsHandled: Boolean, TempInventoryProfileTrackBuffer: Record "Inventory Profile Track Buffer" temporary)

Parameters

Name Type Description
UntrackedPlanningElement Table Microsoft.Inventory.Planning."Untracked Planning Element"
IsHandled Boolean
TempInventoryProfileTrackBuffer Table Microsoft.Inventory.Tracking."Inventory Profile Track Buffer"

OnPublishSurplusOnBeforeExceptionPlanningElementInsert

[IntegrationEvent(False,False)]
local procedure OnPublishSurplusOnBeforeExceptionPlanningElementInsert(var UntrackedPlanningElement: Record "Untracked Planning Element", var IsHandled: Boolean)

Parameters

Name Type Description
UntrackedPlanningElement Table Microsoft.Inventory.Planning."Untracked Planning Element"
IsHandled Boolean

OnAfterPublishSurplus

[IntegrationEvent(False,False)]
local procedure OnAfterPublishSurplus(var InventoryProfile: Record "Inventory Profile", var StockkeepingUnit: Record "Stockkeeping Unit", var RequisitionLine: Record "Requisition Line", var ReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnLogSurplusOnBeforeInsertTempInvProfileTrack

[IntegrationEvent(False,False)]
local procedure OnLogSurplusOnBeforeInsertTempInvProfileTrack(var TempInventoryProfileTrackBuffer: Record "Inventory Profile Track Buffer" temporary)

Parameters

Name Type Description
TempInventoryProfileTrackBuffer Table Microsoft.Inventory.Tracking."Inventory Profile Track Buffer"

OnSurplusQtyOnSetReservEntryFilters

[IntegrationEvent(False,False)]
local procedure OnSurplusQtyOnSetReservEntryFilters(var ReservEntry: Record "Reservation Entry", var RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnFindReasonOnAfterSetSurplusType

[IntegrationEvent(False,False)]
local procedure OnFindReasonOnAfterSetSurplusType(var DemandInventoryProfile: Record "Inventory Profile", var SurplusType: Enum "Planning Surplus Type")

Parameters

Name Type Description
DemandInventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
SurplusType Enum Microsoft.Inventory.Planning."Planning Surplus Type"

OnTransferWarningSourceTextOnBeforeSetSourceToUntrackedPlanningElement

[IntegrationEvent(False,False)]
local procedure OnTransferWarningSourceTextOnBeforeSetSourceToUntrackedPlanningElement(var ToUntrackedPlanningElement: Record "Untracked Planning Element", var TempUntrackedPlanningElement: Record "Untracked Planning Element" temporary)

Parameters

Name Type Description
ToUntrackedPlanningElement Table Microsoft.Inventory.Planning."Untracked Planning Element"
TempUntrackedPlanningElement Table Microsoft.Inventory.Planning."Untracked Planning Element"

See also