Codeunit 132203 Library - Planning

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryPlanning.Codeunit.al41 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

CreateProdOrderUsingPlanning line 18

  1. 22callsCodeunit 132202 Library - Manufacturing CreateProdOrderUsingPlanning

CreateRequisitionWkshName line 28

  1. 32validatesTable 245 Requisition Wksh. Name Worksheet Template Name
  2. 33validatesTable 245 Requisition Wksh. Name Name
  3. 36callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 37callsCodeunit 131000 Library - Utility GetFieldLength
  5. 38writesTable 245 Requisition Wksh. Name Insert(true)

CreatePlanningWkshName line 42

  1. 45validatesTable 245 Requisition Wksh. Name Worksheet Template Name
  2. 46validatesTable 245 Requisition Wksh. Name Name
  3. 49callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 50callsCodeunit 131000 Library - Utility GetFieldLength
  5. 51writesTable 245 Requisition Wksh. Name Insert(true)

CalculateLowLevelCode line 54

  1. 59runsCodeunit 3687 Low-Level Code Calculator

CalculateOrderPlanProduction line 62

  1. 66callsCodeunit 5522 Order Planning Mgt. SetDemandType
  2. 67callsCodeunit 5522 Order Planning Mgt. GetOrdersToPlan

CalculateOrderPlanAssembly line 70

  1. 74callsCodeunit 5522 Order Planning Mgt. SetDemandType
  2. 75callsCodeunit 5522 Order Planning Mgt. GetOrdersToPlan

CalculateOrderPlanSales line 78

  1. 82callsCodeunit 5522 Order Planning Mgt. SetDemandType
  2. 83callsCodeunit 5522 Order Planning Mgt. GetOrdersToPlan

CalculateOrderPlanService line 86

  1. 90callsCodeunit 5522 Order Planning Mgt. SetDemandType
  2. 91callsCodeunit 5522 Order Planning Mgt. GetOrdersToPlan

CalculateOrderPlanJob line 94

  1. 98callsCodeunit 5522 Order Planning Mgt. SetDemandType
  2. 99callsCodeunit 5522 Order Planning Mgt. GetOrdersToPlan

CalculatePlanForReqWksh line 102

  1. 107callsReport 699 Calculate Plan - Req. Wksh. SetTemplAndWorksheet
  2. 108callsReport 699 Calculate Plan - Req. Wksh. InitializeRequest
  3. 116callsReport 699 Calculate Plan - Req. Wksh. UseRequestPage

CalcRequisitionPlanForReqWksh line 120

  1. 124callsSelectRequisitionWkshName
  2. 125callsCalculatePlanForReqWksh

CalcRequisitionPlanForReqWkshAndGetLines line 128

  1. 132callsSelectRequisitionWkshName
  2. 133callsCalculatePlanForReqWksh
  3. 135callsFindRequisitionLine

CalculatePlanOnPlanningWorksheet line 138, local

  1. 144callsSelectRequisitionWkshName
  2. 146callsReport 99001017 Calculate Plan - Plan. Wksh. InitializeRequest
  3. 147callsReport 99001017 Calculate Plan - Plan. Wksh. SetTemplAndWorksheet
  4. 155callsReport 99001017 Calculate Plan - Plan. Wksh. UseRequestPage

CalcRegenPlanForPlanWksh line 159

  1. 161callsCalcRegenPlanForPlanWkshPlanningParams

CalcRegenPlanForPlanWkshPlanningParams line 164

  1. 166callsCalculatePlanOnPlanningWorksheet

CalcNetChangePlanForPlanWksh line 169

  1. 171callsCalculatePlanOnPlanningWorksheet

CarryOutActionMsgPlanWksh line 174

  1. 180callsReport 99001020 Carry Out Action Msg. - Plan. InitializeRequest
  2. 190callsReport 99001020 Carry Out Action Msg. - Plan. SetReqWkshLine
  3. 192callsReport 99001020 Carry Out Action Msg. - Plan. UseRequestPage

CarryOutPlanWksh line 196

  1. 200callsReport 99001020 Carry Out Action Msg. - Plan. SetReqWkshLine
  2. 201callsReport 99001020 Carry Out Action Msg. - Plan. InitializeRequest2
  3. 205callsReport 99001020 Carry Out Action Msg. - Plan. UseRequestPage

CarryOutReqWksh line 209

  1. 213callsReport 493 Carry Out Action Msg. - Req. SetReqWkshLine
  2. 214callsReport 493 Carry Out Action Msg. - Req. InitializeRequest
  3. 215callsReport 493 Carry Out Action Msg. - Req. UseRequestPage
  4. 217callsReport 493 Carry Out Action Msg. - Req. GetReqWkshLine

CarryOutAMSubcontractWksh line 220

  1. 224callsReport 493 Carry Out Action Msg. - Req. SetReqWkshLine
  2. 225callsReport 493 Carry Out Action Msg. - Req. UseRequestPage

CreateManufUserTemplate line 229

  1. 233writesTable 5525 Manufacturing User Template Insert(true)
  2. 234validatesTable 5525 Manufacturing User Template Make Orders
  3. 235validatesTable 5525 Manufacturing User Template Create Purchase Order
  4. 236validatesTable 5525 Manufacturing User Template Create Production Order
  5. 237validatesTable 5525 Manufacturing User Template Create Transfer Order
  6. 238writesTable 5525 Manufacturing User Template Modify(true)

CreateRequisitionLine line 241

  1. 246validatesTable 246 Requisition Line Worksheet Template Name
  2. 247validatesTable 246 Requisition Line Journal Batch Name
  3. 249validatesTable 246 Requisition Line Line No.
  4. 249callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 250writesTable 246 Requisition Line Insert(true)

CreatePlanningComponent line 253

  1. 258validatesTable 99000829 Planning Component Worksheet Template Name
  2. 259validatesTable 99000829 Planning Component Worksheet Batch Name
  3. 260validatesTable 99000829 Planning Component Worksheet Line No.
  4. 262validatesTable 99000829 Planning Component Line No.
  5. 262callsCodeunit 131000 Library - Utility GetNewLineNo
  6. 263writesTable 99000829 Planning Component Insert(true)

CreatePlanningRoutingLine line 269

  1. 273callsCodeunit 132202 Library - Manufacturing CreatePlanningRoutingLine

GetActionMessages line 286

  1. 292callsSelectRequisitionWkshName
  2. 293callsReport 99001023 Get Action Messages SetTemplAndWorksheet
  3. 294callsReport 99001023 Get Action Messages UseRequestPage

GetSalesOrders line 305

  1. 313callsReport 698 Get Sales Orders InitializeRequest
  2. 314callsReport 698 Get Sales Orders SetReqWkshLine
  3. 315callsReport 698 Get Sales Orders UseRequestPage

GetSpecialOrder line 319

  1. 326callsReport 698 Get Sales Orders SetReqWkshLine
  2. 328callsReport 698 Get Sales Orders InitializeRequest
  3. 329callsReport 698 Get Sales Orders UseRequestPage

MakeSupplyOrders line 333

  1. 337callsCodeunit 5521 Make Supply Orders (Yes/No) SetManufUserTemplate
  2. 338runsCodeunit 5521 Make Supply Orders (Yes/No)

RefreshPlanningLine line 341

  1. 346callsReport 99001021 Refresh Planning Demand InitializeRequest
  2. 357callsReport 99001021 Refresh Planning Demand UseRequestPage

SelectRequisitionTemplateName line 361

  1. 369validatesTable 244 Req. Wksh. Template Name
  2. 370callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 371writesTable 244 Req. Wksh. Template Insert(true)
  4. 372validatesTable 244 Req. Wksh. Template Type
  5. 373writesTable 244 Req. Wksh. Template Modify(true)

SelectRequisitionWkshName line 378

  1. 383callsCreateRequisitionWkshName
  2. 383callsSelectRequisitionTemplateName

SetDemandForecast line 386

  1. 389validatesTable 313 Inventory Setup Current Demand Forecast
  2. 390writesTable 313 Inventory Setup Modify

SetUseForecastOnVariants line 393

  1. 396validatesTable 313 Inventory Setup Use Forecast on Variants
  2. 397writesTable 313 Inventory Setup Modify

SetUseForecastOnLocations line 400

  1. 403validatesTable 313 Inventory Setup Use Forecast on Locations
  2. 404writesTable 313 Inventory Setup Modify

SetDefaultDampenerPercent line 407

  1. 410validatesTable 313 Inventory Setup Default Dampener %
  2. 411writesTable 313 Inventory Setup Modify

SetDefaultDampenerPeriod line 414

  1. 418writesTable 313 Inventory Setup Modify

SetDefaultSafetyLeadTime line 421

  1. 424validatesTable 313 Inventory Setup Default Safety Lead Time
  2. 425writesTable 313 Inventory Setup Modify

SetDefaultSafetyLeadTime line 428

  1. 432writesTable 313 Inventory Setup Modify

SetBlankOverflowLevel line 441

  1. 444validatesTable 313 Inventory Setup Blank Overflow Level
  2. 445writesTable 313 Inventory Setup Modify

SetCombinedMPSMRPCalculation line 448

  1. 451validatesTable 313 Inventory Setup Combined MPS/MRP Calculation
  2. 452writesTable 313 Inventory Setup Modify

SetComponentsAtLocation line 458

  1. 462callsCodeunit 132202 Library - Manufacturing SetComponentsAtLocation