MRP Item Forecast

Description

Categories
Enginatics
Repository
GitHub
Detail report for item planning forecast, including forecast description, planner, item, bucket type, forecast start and end dates, current quantity, original qty, project related data, and confidence projection.

Show Consumption adds one row per sales order consumption of each forecast entry from the forecast consumption history: sales order, line, customer, ship-to, schedule date, order quantity, consumed quantity and the date the consumption was recorded. A negative consumed quantity reverses an earlier consumption, for example after an order line was cancelled or reduced.

With Show Consumption, the current and original forecast quantity are shown on the first row of each forecast entry only, so that they sum correctly. Original minus current quantity equals the consumed quantity of the entry, unless the forecast quantity was changed manually.

SQL 70 lines

Parameters 10

ParameterTypeList of values SQL
Forecast SetLOV
nvl(mfds0.forecast_designator,mfds.forecast_designator)=:forecast_set
ForecastLOV
nvl2(mfds.forecast_set,mfds.forecast_designator,null)=:forecast
Organization CodeLOV
ood.organization_code=:organization_code
PlannerLOV
msiv.planner_code=:planner_code
ItemLOV
msiv.concatenated_segments like :item
ProjectLOV
ppa.project_number=:project
Forecast Date FromDate
mfd.forecast_date>=:forecast_date_from
Forecast Date ToDate
mfd.forecast_date<:forecast_date_to+1
Forecast older than x daysNumber
mfd.forecast_date<sysdate-:oder_days
Show ConsumptionLOV
mso.segment1 sales_order,
mso.segment2 order_type,
mfu.line_num order_line,
hp.party_name customer,
hca.account_number customer_number,
hcsua.location ship_to,
xxen_util.meaning(mfu.demand_class,'DEMAND_CLASS',3) demand_class,
mfu.sales_order_schedule_date schedule_date,
mfu.sales_order_quantity order_quantity,
mfu.update_quantity consumed_quantity,
mfu.creation_date consumption_date,