---
title: "Codeunit 99000856 Planning Transparency"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/99000856-planning-transparency/
type: codeunit
id: 99000856
name: "Planning Transparency"
app: "Base Application"
namespace: Microsoft.Inventory.Planning
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/99000856-planning-transparency/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 99000856 Planning Transparency

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/99000856-planning-transparency/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Planning |
| Versions | 17-28 |
| Source file | Inventory/Planning/PlanningTransparency.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetTemplAndWorksheet | (Code[10], Code[10]) | - | public | 17-28 | - | - |
| FindReason | (var Record Inventory Profile) | Integer | public | 17-27 | Pending 26.0 | Replaced by procedure GetSurplusType() |
| LogSurplus | (Integer, Integer, Integer, Code[20], Decimal, Option) | - | public | 17-28 | Pending 26.0 | Replaced by procedure LogPlanningSurplus() |
| ModifyLogEntry | (Integer, Integer, Integer, Code[20], Decimal, Option) | - | public | 17-28 | Pending 26.0 | Replaced by procedure ModifyPlanningLog() |
| CleanLog | (Integer) | - | public | 17-28 | - | - |
| PublishSurplus | (var Record Inventory Profile, var Record Stockkeeping Unit, var Record Requisition Line, var Record Reservation Entry) | - | public | 17-28 | - | - |
| SetCurrReqLine | (var Record Requisition Line) | - | public | 17-28 | - | - |
| DrillDownUntrackedQty | (Text) | - | public | 17-28 | - | - |
| ReqLineWarningLevel | (Record Requisition Line) | Integer | public | 17-28 | - | - |
| LogWarning | (Integer, Record Requisition Line, Option, Text[200]) | Boolean | public | 17-28 | - | - |
| GetSurplusType | (var Record Inventory Profile) | Enum Planning Surplus Type | public | 26-28 | - | - |
| LogPlanningSurplus | (Integer, Integer, Integer, Code[20], Decimal, Enum Planning Surplus Type) | - | public | 26-28 | - | - |
| ModifyPlanningLog | (Integer, Integer, Integer, Code[20], Decimal, Enum Planning Surplus Type) | - | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnPublishSurplusOnBeforePlanningElementInsert | (var Record Untracked Planning Element) | 17-21 | - | - |
| Integration event | OnAfterShowSurplusReason | (Integer, var Text[50]) | 18-28 | - | - |
| Integration event | OnBeforeFindReason | (var Record Inventory Profile, var Integer, var Boolean) | 18-28 | Pending 26.0 | Replaced by event OnBeforeGetSurplusType |
| Integration event | OnLogSurplusOnCaseSurplusTypeElse | (Integer, Integer, Integer, Code[20], Decimal, Integer, var Integer, var Boolean) | 18-28 | - | - |
| Integration event | OnPublishSurplusOnBeforePlanningElementInsert | (var Record Untracked Planning Element, var Boolean) | 22 | - | - |
| Integration event | OnPublishSurplusOnBeforeExceptionPlanningElementInsert | (var Record Untracked Planning Element, var Boolean) | 22-28 | - | - |
| Integration event | OnPublishSurplusOnBeforePlanningElementInsert | (var Record Untracked Planning Element, var Boolean, Record Inventory Profile Track Buffer) | 23-28 | - | - |
| Integration event | OnAfterPublishSurplus | (var Record Inventory Profile, var Record Stockkeeping Unit, var Record Requisition Line, var Record Reservation Entry) | 23-28 | - | - |
| Integration event | OnLogSurplusOnBeforeInsertTempInvProfileTrack | (var Record Inventory Profile Track Buffer) | 23-28 | - | - |
| Integration event | OnBeforeGetSurplusType | (var Record Inventory Profile, var Enum Planning Surplus Type, var Boolean) | 26-28 | - | - |
| Integration event | OnSurplusQtyOnSetReservEntryFilters | (var Record Reservation Entry, var Record Requisition Line) | 26-28 | - | - |
| Integration event | OnFindReasonOnAfterSetSurplusType | (var Record Inventory Profile, var Enum Planning Surplus Type) | 26-28 | - | - |
| Integration event | OnTransferWarningSourceTextOnBeforeSetSourceToUntrackedPlanningElement | (var Record Untracked Planning Element, var Record Untracked Planning Element) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
