Codeunit 18126146 EOS058 SCM Forecast
Codeunit 18126146 EOS058 SCM Forecast
Methods
GetPlanningPeriod
procedure GetPlanningPeriod(ScmWkshName: Record "EOS058 SCM Worksheet Name"; var StartingDate: Date; var EndingDate: Date)
Parameters / Return Value
ScmWkshName
Record "EOS058 SCM Worksheet Name"
StartingDate
Date
EndingDate
Date
GetItemStatus
procedure GetItemStatus(var ScmWkshLine: Record "EOS058 SCM Worksheet Line")
Parameters / Return Value
- ScmWkshLine
Record "EOS058 SCM Worksheet Line"
SmoothDataEntry
procedure SmoothDataEntry(var ScmWkshLine: Record "EOS058 SCM Worksheet Line")
Parameters / Return Value
- ScmWkshLine
Record "EOS058 SCM Worksheet Line"
AnalyzeForecast
procedure AnalyzeForecast(var ScmWkshLine: Record "EOS058 SCM Worksheet Line")
Parameters / Return Value
- ScmWkshLine
Record "EOS058 SCM Worksheet Line"
CreateForecast
procedure CreateForecast(var ForecastJnlLine: Record "EOS058 SCM Worksheet Line"; NoOfPeriods: Integer; ForecastEndingDate: Date)
Parameters / Return Value
ForecastJnlLine
Record "EOS058 SCM Worksheet Line"
NoOfPeriods
Integer
ForecastEndingDate
Date
FillPeriodData
procedure FillPeriodData(ForecastJnlLine: Record "EOS058 SCM Worksheet Line"; PlannedStartingDate: Date; PlannedEndingDate: Date; HistoryData: Boolean; PeriodLength: Option; FindStartingDate: Boolean; IncludeBlanketOrders: Boolean; var TempForecastFormulaLine: Record "EOS058 SCM Formula Line"; var TempTimeSeriesBuffer: Record "Time Series Buffer")
Parameters / Return Value
ForecastJnlLine
Record "EOS058 SCM Worksheet Line"
PlannedStartingDate
Date
PlannedEndingDate
Date
HistoryData
Boolean
PeriodLength
Option
FindStartingDate
Boolean
IncludeBlanketOrders
Boolean
TempForecastFormulaLine
Record "EOS058 SCM Formula Line"
TempTimeSeriesBuffer
Record "Time Series Buffer"
FilterScmEntry
procedure FilterScmEntry(var ScmDataEntry: Record "EOS058 SCM Data Entry"; ScmWkshLine: Record "EOS058 SCM Worksheet Line"; StartingDate: Date; EndingDate: Date)
Parameters / Return Value
ScmDataEntry
Record "EOS058 SCM Data Entry"
ScmWkshLine
Record "EOS058 SCM Worksheet Line"
StartingDate
Date
EndingDate
Date
CalcStartingDate
procedure CalcStartingDate(EndingDate: Date; PeriodLength: Option Day,Week,Month,Quarter,Year): Date
gets the starting date for a specific period type and ending date.
Parameters / Return Value
EndingDate
Date
PeriodLength
Option
Day
(0) ,Week
(1) ,Month
(2) ,Quarter
(3) ,Year
(4)Returns
Date
starting date
CalcEndingDate
procedure CalcEndingDate(StartingDate: Date; PeriodLength: Option Day,Week,Month,Quarter,Year): Date
gets the ending date for a specific period type and starting date.
Parameters / Return Value
StartingDate
Date
PeriodLength
Option
Day
(0) ,Week
(1) ,Month
(2) ,Quarter
(3) ,Year
(4)Returns
Date
ending date
AdjustDateByPeriodType
procedure AdjustDateByPeriodType(StartingDate: Date; EndingDate: Date; PeriodLength: Option Day,Week,Month,Quarter,Year;var NewStartingDate: Date; var NewEndingDate: Date)
Parameters / Return Value
StartingDate
Date
EndingDate
Date
PeriodLength
Option
Day
(0) ,Week
(1) ,Month
(2) ,Quarter
(3) ,Year
(4)NewStartingDate
Date
NewEndingDate
Date
CalcNoOfPeriods
procedure CalcNoOfPeriods(StartingDate: Date; EndingDate: Date; PeriodLength: Option Day,Week,Month,Quarter,Year): Integer
calculates the exact number of periods for a given date range and period type.
Parameters / Return Value
StartingDate
Date
EndingDate
Date
PeriodLength
Option
Day
(0) ,Week
(1) ,Month
(2) ,Quarter
(3) ,Year
(4)Returns
Integer
number of periods
Events
OnSmoothDataEntryCustomType
local procedure OnSmoothDataEntryCustomType(var ScmWkshLine: Record "EOS058 SCM Worksheet Line"; var IsHandled: Boolean)
Parameters / Return Value
ScmWkshLine
Record "EOS058 SCM Worksheet Line"
IsHandled
Boolean
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.