---
id: object/codeunit/951
type: object
title: Codeunit 951 "Time Sheet Approval Management"
summary: Codeunit 951 "Time Sheet Approval Management" in Base Application (Microsoft.Projects.TimeSheet). 20 public procedures, 22 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: b648600c3a0c494503a0d84fd07d2342975f59bee50f34e2506e357d784e6eba
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Projects/TimeSheet/TimeSheetApprovalManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Projects/TimeSheet/TimeSheetApprovalManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 951
name: Time Sheet Approval Management
namespace: Microsoft.Projects.TimeSheet
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 46
  events: 22
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 3
  calls: 1
  called_by: 4
  implements: 0
---

# Codeunit 951 "Time Sheet Approval Management"

> Codeunit 951 "Time Sheet Approval Management" in Base Application (Microsoft.Projects.TimeSheet). 20 public procedures, 22 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

Base Application · Microsoft.Projects.TimeSheet · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Projects/TimeSheet/TimeSheetApprovalManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData Employee = r |

## Events published

- `OnBeforeInsertEmployeeAbsence(var EmployeeAbsence: Record "Employee Absence"; TimeSheetLine: Record "Time Sheet Line"; var TimeSheetDetail: Record "Time Sheet Detail")` (integration)
- `OnBeforePostAbsence(var TimeSheetLine: Record "Time Sheet Line"; var IsHandled: Boolean)` (integration)
- `OnAfterSubmit(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnAfterReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnAfterReopenApproved(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnAfterReject(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnAfterApprove(var TimeSheetLine: Record "Time Sheet Line")` (integration)
  - subscribers: [Codeunit 6451 "Serv. Time Sheet Mgt."](../codeunit/6451.md) OnAfterApprove
- `OnApproveOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnRejectOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnReopenApprovedOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnReopenApprovedOnBeforeCheckLinkedDoc(var TimeSheetLine: Record "Time Sheet Line")` (integration)
  - subscribers: [Codeunit 6451 "Serv. Time Sheet Mgt."](../codeunit/6451.md) OnReopenApprovedOnBeforeCheckLinkedDoc
- `OnReopenSubmittedOnAfterModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnReopenSubmittedOnBeforeModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnSubmitOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")` (integration)
- `OnBeforeApprove(var TimeSheetLine: Record "Time Sheet Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckApproverPermissions(var TimeSheetLine: Record "Time Sheet Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeSubmit(var TimeSheetLine: Record "Time Sheet Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetTimeSheetActionDialogText(ActionType: Option; LinesQty: Decimal; var ReturnActionText: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeGetCommonTimeSheetActionDialogText(ActionType: Option; LinesQty: Decimal; var ReturnActionText: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeGetManagerTimeSheetActionDialogText(ActionType: Option; LinesQty: Decimal; var ReturnActionText: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeReject(var TimeSheetLine: Record "Time Sheet Line"; var IsHandled: Boolean)` (integration)
- `OnSubmitOnAfterCheck(var TimeSheetLine: Record "Time Sheet Line")` (integration)
  - subscribers: [Codeunit 6451 "Serv. Time Sheet Mgt."](../codeunit/6451.md) OnSubmitOnAfterCheck

## Procedures

- `ProcessAction(var TimeSheetLine: Record "Time Sheet Line"; ActionType: Option Submit,ReopenSubmitted,Approve,ReopenApproved,Reject)`
- `Submit(var TimeSheetLine: Record "Time Sheet Line")`
- `SubmitIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")`
- `ReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")`
- `ReopenSubmittedIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")`
- `ReopenApproved(var TimeSheetLine: Record "Time Sheet Line")`
- `ReopenApprovedIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")`
- `Reject(var TimeSheetLine: Record "Time Sheet Line")`
- `RejectIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")`
- `Approve(var TimeSheetLine: Record "Time Sheet Line")`
- `ApproveIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")`
- `NoTimeSheetLinesToProcess(TimeSheetAction: Enum "Time Sheet Action")` (internal)
- `PostAbsence(var TimeSheetLine: Record "Time Sheet Line")`
- `GetTimeSheetActionDialogText(ActionType: Option Submit,Reopen; LinesQty: Integer): Text`
- `GetManagerTimeSheetActionDialogText(ActionType: Option Approve,Reopen,Reject; LinesQty: Integer): Text`
- `GetCommonTimeSheetActionDialogText(ActionType: Option Submit,ReopenSubmitted,Approve,ReopenApproved,Reject; LinesQty: Integer): Text`
- `ConfirmAction(ActionType: Option Submit,Reopen,Approve,ReopenApproved,Reject): Boolean`
- `GetTimeSheetActionDialogInstruction(ActionType: Option Submit,Reopen): Text`
- `GetManagerTimeSheetActionDialogInstruction(ActionType: Option Approve,Reopen,Reject): Text`
- `GetCommonTimeSheetDialogInstruction(ActionType: Option Submit,ReopenSubmitted,Approve,ReopenApproved,Reject): Text`

Plus 4 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 950 "Time Sheet Management"](../codeunit/950.md) (1 call: `PostAbsence → CreateTSPostingEntry`)

## Called by

- [Page 974 "Time Sheet Lines Subform"](../page/974.md) (9 calls: `ApproveLines → ApproveIfConfirmed`, `GetDialogText → GetCommonTimeSheetActionDialogText`, `Process → NoTimeSheetLinesToProcess`, …)
- [Page 973 "Time Sheet Card"](../page/973.md) (7 calls: `ApproveLines → ConfirmAction`, `Process → NoTimeSheetLinesToProcess`, `Process → ProcessAction`, …)
- [Page 952 "Manager Time Sheet"](../page/952.md) (6 calls: `GetDialogText → GetManagerTimeSheetActionDialogText`, `Process → Approve`, `Process → NoTimeSheetLinesToProcess`, …)
- [Page 954 "Manager Time Sheet by Job"](../page/954.md) (6 calls: `GetDialogText → GetManagerTimeSheetActionDialogText`, `Process → Approve`, `Process → NoTimeSheetLinesToProcess`, …)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Time Sheet Approval Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
