---
title: "Codeunit 5921 ServComponent-Copy from BOM, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/points/
object: https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/
checked: 2026-11-20
changed: 2026-10-05
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 5921 ServComponent-Copy from BOM, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/points/

2 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/Item/ServComponentCopyfromBOM.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 14](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L14), trigger.

- [50](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L50) raises `OnRunOnBeforeServItemComponentInsert`
- [51](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L51) writes [Table 5941 Service Item Component](https://jonas-paprotka.de/ref/table/5941-service-item-component/) Insert
- [52](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L52) writes [Table 5941 Service Item Component](https://jonas-paprotka.de/ref/table/5941-service-item-component/) Modify
- [56](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L56) calls `ShowBOMComponentNotFoundError`

## ShowBOMComponentNotFoundError

[Line 74](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L74), local.

- [79](https://jonas-paprotka.de/ref/codeunit/5921-servcomponent-copy-from-bom/source/#L79) raises `OnBeforeShowBOMComponentNotFoundError`, IsHandled

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
