---
title: "Codeunit 7318 Bin Create, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/7318-bin-create/points/
object: https://jonas-paprotka.de/ref/codeunit/7318-bin-create/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/7318-bin-create/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 7318 Bin Create, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/7318-bin-create/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/Warehouse/Structure/BinCreate.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 13](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L13), trigger.

- [16](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L16) calls `Code`

## Code

[Line 30](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L30), local.

- [37](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L37) calls `BinCreate`
- [39](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L39) writes [Table 7338 Bin Creation Worksheet Line](https://jonas-paprotka.de/ref/table/7338-bin-creation-worksheet-line/) DeleteAll

## BinCreate

[Line 44](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L44), local.

- [49](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L49) raises `OnBeforeBinCreate`, IsHandled
- [53](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L53) calls [Table 7338 Bin Creation Worksheet Line](https://jonas-paprotka.de/ref/table/7338-bin-creation-worksheet-line/) `EmptyLine`
- [61](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L61) calls `GetLocation`
- [72](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L72) raises `OnBeforeBinInsert`
- [73](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L73) writes [Table 7354 Bin](https://jonas-paprotka.de/ref/table/7354-bin/) Insert(true)
- [74](https://jonas-paprotka.de/ref/codeunit/7318-bin-create/source/#L74) raises `OnAfterBinInsert`

## Source

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

JOP-AL, 2026-11-20.
