---
title: "Codeunit 132203 Library - Planning"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/132203-library-planning/
type: codeunit
id: 132203
name: "Library - Planning"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/132203-library-planning/source/"
checked: 2026-11-20
changed: 2026-10-15
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 132203 Library - Planning

JOP-AL, https://jonas-paprotka.de/ref/codeunit/132203-library-planning/

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/132203-library-planning/editions.json) |
| Source file | LibraryPlanning.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateProdOrderUsingPlanning | (var ProductionOrder: Record "Production Order"; Status: Enum "Production Order Status"; DocumentNo: Code[20]; SourceNo: Code[20]) | - | public | 28-29 | Pending 27.0 | Moved to codeunit LibraryManufacturing |
| CreateRequisitionWkshName | (var RequisitionWkshName: Record "Requisition Wksh. Name"; WorksheetTemplateName: Code[10]) | - | public | 28-29 | - | - |
| CalculateLowLevelCode | () | - | public | 28-29 | - | - |
| CalculateOrderPlanProduction | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CalculateOrderPlanAssembly | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CalculateOrderPlanSales | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CalculateOrderPlanService | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CalculateOrderPlanJob | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CalculatePlanForReqWksh | (var Item: Record Item; TemplateName: Code[10]; WorksheetName: Code[10]; StartDate: Date; EndDate: Date) | - | public | 28-29 | - | - |
| CalcRequisitionPlanForReqWksh | (var Item: Record Item; StartDate: Date; EndDate: Date) | - | public | 28-29 | - | - |
| CalcRequisitionPlanForReqWkshAndGetLines | (var RequisitionLine: Record "Requisition Line"; var Item: Record Item; StartDate: Date; EndDate: Date) | - | public | 28-29 | - | - |
| CalcRegenPlanForPlanWksh | (var ItemRec: Record Item; OrderDate: Date; ToDate: Date) | - | public | 28-29 | - | - |
| CalcRegenPlanForPlanWkshPlanningParams | (var ItemRec: Record Item; OrderDate: Date; ToDate: Date; RespectPlanningParameters: Boolean) | - | public | 28-29 | - | - |
| CalcNetChangePlanForPlanWksh | (var ItemRec: Record Item; OrderDate: Date; ToDate: Date; RespectPlanningParameters: Boolean) | - | public | 28-29 | - | - |
| CarryOutActionMsgPlanWksh | (var ReqLineRec: Record "Requisition Line") | - | public | 28-29 | - | - |
| CarryOutPlanWksh | (var RequisitionLine: Record "Requisition Line"; NewProdOrderChoice: Option; NewPurchOrderChoice: Option; NewTransOrderChoice: Option; NewAsmOrderChoice: Option; NewReqWkshTemp: Code[10]; NewReqWksh: Code[10]; NewTransWkshTemp: Code[10]; NewTransWkshName: Code[10]) | - | public | 28-29 | - | - |
| CarryOutReqWksh | (var RequisitionLine: Record "Requisition Line"; ExpirationDate: Date; OrderDate: Date; PostingDate: Date; ExpectedReceiptDate: Date; YourRef: Text[50]) | - | public | 28-29 | - | - |
| CarryOutAMSubcontractWksh | (var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CreateManufUserTemplate | (var ManufacturingUserTemplate: Record "Manufacturing User Template"; UserID: Code[50]; MakeOrders: Option; CreatePurchaseOrder: Enum "Planning Create Purchase Order"; CreateProductionOrder: Enum "Planning Create Prod. Order"; CreateTransferOrder: Enum "Planning Create Transfer Order") | - | public | 28-29 | - | - |
| CreateRequisitionLine | (var RequisitionLine: Record "Requisition Line"; WorksheetTemplateName: Code[10]; JournalBatchName: Code[10]) | - | public | 28-29 | - | - |
| CreatePlanningComponent | (var PlanningComponent: Record "Planning Component"; var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| CreatePlanningRoutingLine | (var PlanningRoutingLine: Record "Planning Routing Line"; var RequisitionLine: Record "Requisition Line"; OperationNo: Code[10]) | - | public | 28-29 | Pending 27.0 | Moved to codeunit LibraryManufacturing |
| GetActionMessages | (var Item: Record Item) | - | public | 28-29 | - | - |
| GetSalesOrders | (SalesLine: Record "Sales Line"; RequisitionLine: Record "Requisition Line"; RetrieveDimensionsFrom: Option) | - | public | 28-29 | - | - |
| GetSpecialOrder | (var RequisitionLine: Record "Requisition Line"; No: Code[20]) | - | public | 28-29 | - | - |
| MakeSupplyOrders | (var ManufacturingUserTemplate: Record "Manufacturing User Template"; var RequisitionLine: Record "Requisition Line") | - | public | 28-29 | - | - |
| RefreshPlanningLine | (var RequisitionLine: Record "Requisition Line"; SchDirection: Option; CalcRouting: Boolean; CalcCompNeed: Boolean) | - | public | 28-29 | - | - |
| SelectRequisitionTemplateName | () | Code[10] | public | 28-29 | - | - |
| SelectRequisitionWkshName | (var RequisitionWkshName: Record "Requisition Wksh. Name"; TemplateType: Enum "Req. Worksheet Template Type") | - | public | 28-29 | - | - |
| SetDemandForecast | (CurrentDemandForecast: Code[10]) | - | public | 28-29 | - | - |
| SetUseForecastOnVariants | (UseForecastOnVariants: Boolean) | - | public | 28-29 | - | - |
| SetUseForecastOnLocations | (UseForecastOnLocations: Boolean) | - | public | 28-29 | - | - |
| SetDefaultDampenerPercent | (DampenerPercent: Decimal) | - | public | 28-29 | - | - |
| SetDefaultDampenerPeriod | (DampenerPeriod: Text) | - | public | 28-29 | - | - |
| SetDefaultSafetyLeadTime | (SafetyLeadTime: DateFormula) | - | public | 28-29 | - | - |
| SetDefaultSafetyLeadTime | (SafetyLeadTime: Text) | - | public | 28-29 | - | - |
| SetSafetyWorkDate | () | Date | public | 28-29 | - | - |
| SetBlankOverflowLevel | (BlankOverflowLevel: Option) | - | public | 28-29 | - | - |
| SetCombinedMPSMRPCalculation | (CombinedMPSMRPCalculation: Boolean) | - | public | 28-29 | - | - |
| SetComponentsAtLocation | (LocationCode: Code[10]) | - | public | 28-29 | Pending 27.0 | Moved to codeunit LibraryManufacturing |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
