---
id: object/codeunit/5134
type: object
title: Codeunit 5134 "Create Common Posting Group"
summary: Codeunit 5134 "Create Common Posting Group" in ContosoCoffeeDemoDataset (Microsoft.DemoData.Common). 11 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - contosocoffeedemodataset
versions:
  introduced: "29"
  last_changed: null
  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: 5eaa3679d2884e26f8e42def4887204171b964cfbced295e6eea5740b2bf8987
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Common/1.Setup%20Data/CreateCommonPostingGroup.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Common/1.Setup Data/CreateCommonPostingGroup.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: 5134
name: Create Common Posting Group
namespace: Microsoft.DemoData.Common
app: ContosoCoffeeDemoDataset
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 18
  implements: 0
---

# Codeunit 5134 "Create Common Posting Group"

> Codeunit 5134 "Create Common Posting Group" in ContosoCoffeeDemoDataset (Microsoft.DemoData.Common). 11 public procedures. Introduced in BC29, still in BC30.

ContosoCoffeeDemoDataset · Microsoft.DemoData.Common · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Common/1.Setup%20Data/CreateCommonPostingGroup.Codeunit.al) · facts from BC29

## Procedures

- `Service(): Code[20]`
- `Resale(): Code[20]`
- `RawMaterial(): Code[20]`
- `Domestic(): Code[20]`
- `EU(): Code[20]` (obsolete 27.0: procedure is moved to codeunit 5252 "Create Posting Groups")
- `Export(): Code[20]` (obsolete 27.0: procedure is moved to codeunit 5252 "Create Posting Groups")
- `ZeroVAT(): Code[20]` (obsolete 27.0: procedure is moved to codeunit 5473 "Create VAT Posting Groups")
- `ReducedVAT(): Code[20]` (obsolete 27.0: procedure is moved to codeunit 5473 "Create VAT Posting Groups")
- `StandardVAT(): Code[20]` (obsolete 27.0: procedure is moved to codeunit 5473 "Create VAT Posting Groups")
- `Retail(): Code[20]`
- `NonTaxable(): Code[20]`

## 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 5132 "Contoso Posting Group"](../codeunit/5132.md) (4 calls: `OnRun → InsertCustomerPostingGroup`, `OnRun → InsertInventoryPostingGroup`, `OnRun → InsertTaxGroup`, …)
- [Codeunit 5252 "Create Posting Groups"](../codeunit/5252.md) (4 calls: `Domestic → DomesticPostingGroup`, `RawMaterial → RawMatPostingGroup`, `Retail → RetailPostingGroup`, …)
- [Codeunit 5135 "Create Common GL Account"](../codeunit/5135.md) (2 calls: `OnRun → CustomerDomestic`, `OnRun → VendorDomestic`)
- [Codeunit 5229 "Create Inventory Posting Group"](../codeunit/5229.md) (1 call: `Resale → Resale`)

## Called by

- [Codeunit 4770 "Create Mfg Item"](../codeunit/4770.md) (14 calls: `CreateBOMAndRoutingItems → NonTaxable`, `CreateBOMAndRoutingItems → RawMaterial`, `CreateBOMAndRoutingItems → Retail`, …)
- [Codeunit 5192 "Create Job Item"](../codeunit/5192.md) (5 calls: `CreatePostingSetup → Resale`, `OnRun → NonTaxable`, `OnRun → Resale`, …)
- [Codeunit 5104 "Create Svc Item"](../codeunit/5104.md) (4 calls: `CreateInventoryPostingSetup → Resale`, `CreateItems → NonTaxable`, `CreateItems → Resale`, …)
- [Codeunit 4793 "Create Whse Item"](../codeunit/4793.md) (3 calls: `CreateWhseItems → NonTaxable`, `CreateWhseItems → Resale`, `CreateWhseItems → Retail`)
- [Codeunit 5102 "Create Svc GL Account"](../codeunit/5102.md) (3 calls: `OnRun → Domestic`, `OnRun → NonTaxable`, `OnRun → Service`)
- [Codeunit 5109 "Create Common Posting Setup"](../codeunit/5109.md) (3 calls: `OnRun → Domestic`, `OnRun → RawMaterial`, `OnRun → Retail`)
- [Codeunit 4768 "Create Mfg Posting Setup"](../codeunit/4768.md) (2 calls: `CreateGeneralPostingSetup → Domestic`, `CreateInventoryPostingSetup → RawMaterial`)
- [Codeunit 5105 "Create Svc Resource"](../codeunit/5105.md) (2 calls: `CreateResources → NonTaxable`, `CreateResources → Service`)
- [Codeunit 5191 "Create Job Resource"](../codeunit/5191.md) (2 calls: `OnRun → NonTaxable`, `OnRun → Service`)
- [Codeunit 5259 "Create Sust. Purchase"](../codeunit/5259.md) (2 calls: `CreatePurchaseInvoiceWithGL → NonTaxable`, `CreatePurchaseInvoiceWithItem → NonTaxable`)
- [Codeunit 4764 "Create Mfg Location"](../codeunit/4764.md) (1 call: `CreateSubcontractingInventoryPostingSetup → RawMaterial`)
- [Codeunit 4769 "Common Module"](../codeunit/4769.md) (1 call: `CreateSetupData → (object)`)
- [Codeunit 4775 "Create Mfg Capacity"](../codeunit/4775.md) (1 call: `CreateWorkAndMachineCenters → Retail`)
- [Codeunit 4777 "Create Mfg Vendor"](../codeunit/4777.md) (1 call: `OnRun → Domestic`)
- [Codeunit 5116 "Create Common Customer/Vendor"](../codeunit/5116.md) (1 call: `OnRun → Domestic`)
- [Codeunit 5148 "Create Whse Inventory Setup"](../codeunit/5148.md) (1 call: `CreateInventoryPostingSetup → Resale`)
- [Codeunit 5254 "Create Sust. Item"](../codeunit/5254.md) (1 call: `OnRun → NonTaxable`)
- [Codeunit 5310 "Create Mfg Item Template"](../codeunit/5310.md) (1 call: `OnRun → Retail`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Deprecations

- procedure EU: Pending 27.0 (#if not CLEAN27), "procedure is moved to codeunit 5252 "Create Posting Groups""
- procedure Export: Pending 27.0 (#if not CLEAN27), "procedure is moved to codeunit 5252 "Create Posting Groups""
- procedure ReducedVAT: Pending 27.0 (#if not CLEAN27), "procedure is moved to codeunit 5473 "Create VAT Posting Groups""
- procedure StandardVAT: Pending 27.0 (#if not CLEAN27), "procedure is moved to codeunit 5473 "Create VAT Posting Groups""
- procedure ZeroVAT: Pending 27.0 (#if not CLEAN27), "procedure is moved to codeunit 5473 "Create VAT Posting Groups""

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: "Create Common Posting Group")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
