---
id: object/table/5905
type: object
title: Table 5905 "Service Cost"
summary: Table 5905 "Service Cost" in Base Application (Microsoft.Service.Pricing). 9 fields, 1 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - 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: c4d2851c103ce1b92e853459f4a0480959eb6e5944aab1a6795de03df8c8471f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Pricing/ServiceCost.Table.al
    title: src/Layers/W1/BaseApp/Service/Pricing/ServiceCost.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5905
name: Service Cost
namespace: Microsoft.Service.Pricing
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 9
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 4
  referenced_by: 13
  pages: 1
  extended_by: 0
  event_subscribers: 3
  calls: 2
  called_by: 0
  implements: 0
---

# Table 5905 "Service Cost"

> Table 5905 "Service Cost" in Base Application (Microsoft.Service.Pricing). 9 fields, 1 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Service Cost |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Code | Code[10] | Specifies a code for the service cost. | NotBlank |
| 2 | Description | Text[100] | Specifies a description of the service cost. |  |
| 3 | Account No. | Code[20] | Specifies the general ledger account number to which the service cost will be posted. | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 4 | Default Unit Price | Decimal | Specifies the default unit price of the cost that is copied to the service lines containing this service cost. |  |
| 5 | Default Quantity | Decimal | Specifies the default quantity that is copied to the service lines containing this service cost. |  |
| 6 | Unit of Measure Code | Code[10] | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. | TableRelation [Table 204 "Unit of Measure"](../table/204.md) (Unit of Measure) |
| 7 | Cost Type | Option | Specifies the cost type. | OptionCaption: Travel,Support,Other |
| 8 | Service Zone Code | Code[10] | Specifies the code of the service zone, to which travel applies if the Cost Type is Travel. | TableRelation [Table 5957 "Service Zone"](../table/5957.md) (Service Zone) |
| 9 | Default Unit Cost | Decimal | Specifies the default unit cost that is copied to the service lines containing this service cost. |  |

## Keys

- Key1: Code (clustered)
- Key2: Service Zone Code

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 6457 "Serv. Price Helper V16"](../codeunit/6457.md) AfterDeleteServiceCost
- OnAfterRenameEvent: [Codeunit 6457 "Serv. Price Helper V16"](../codeunit/6457.md) AfterRenameServiceCost
- OnBeforeInsertEvent: [Codeunit 5999 "Service Experience Tier"](../codeunit/5999.md) BlockInsertServiceCost

## Procedures

- `ShowPriceListLines(PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`

Plus 1 local procedures.

## Triggers

OnDelete

## Relations

- lookup page [Page 5910 "Service Costs"](../page/5910.md)
- Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Unit of Measure Code: TableRelation [Table 204 "Unit of Measure"](../table/204.md)
- Service Zone Code: TableRelation [Table 5957 "Service Zone"](../table/5957.md)

## Referenced by

13 fields in 13 objects relate to this table (TableRelation or CalcFormula).

- [Table 5907 "Service Ledger Entry"](../table/5907.md): No.
- [Table 5908 "Warranty Ledger Entry"](../table/5908.md): No.
- [Table 5909 "Service Shipment Buffer"](../table/5909.md): No.
- [Table 5911 "Service Mgt. Setup"](../table/5911.md): Service Order Starting Fee
- [Table 5972 "Contract/Service Discount"](../table/5972.md): No.
- [Table 5976 "Filed Contract/Serv. Discount"](../table/5976.md): No.
- [Table 5991 "Service Shipment Line"](../table/5991.md): No.
- [Table 5993 "Service Invoice Line"](../table/5993.md): No.
- [Table 5995 "Service Cr.Memo Line"](../table/5995.md): No.
- [Table 5997 "Standard Service Line"](../table/5997.md): No.
- [Table 6012 "Service Line Archive"](../table/6012.md): No.
- [Table 6083 "Serv. Price Adjustment Detail"](../table/6083.md): No.
- [Table 6084 "Service Line Price Adjmt."](../table/6084.md): No.

## Pages and codeunits on this table

- [Page 5910 "Service Costs"](../page/5910.md) (source table)

## 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 6492 "Serv. Move Entries"](../codeunit/6492.md) (1 call: `OnDelete → MoveServiceCostLedgerEntries`)
- [Codeunit 7018 "Price UX Management"](../codeunit/7018.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, 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: "table", object_name: "Service Cost")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
