Cost Centers and Cost Units (CST)

The cst submodule of acc owns the analytical accounting dimensions: cost centers (one per Department) and cost units (a per-document-line dimension that lets postings be tagged to a project, an inventory lot, or any other tracked unit). It depends on com.org for the department a cost center is for, on acc.doc for the source document line a cost unit was created against, and on cat.itm for the item a cost unit relates to.

Concepts

Cost Center

The accounting projection of a Department. Postings tagged with a department are aggregated under its cost center for departmental P&L reporting.

Cost Unit

A finer-grained analytical dimension created from a specific document line. Used to attach posted amounts to a project, a customer order, an inventory lot, or any other "thing" that needs its own P&L. Each cost unit can be marked financially closed once all postings are settled.

Cost Allocation

An enum that says, in a given context, whether a cost-unit reference is optional, mandatory, or not allowed.

Entities

CST entities

Cost Center (CostCenter)

The accounting projection of a department.

FieldDescription

department

The department this cost center is for (one-to-one, business key).

Cost Unit (CostUnit)

A document-line-derived analytical dimension.

FieldDescription

code

Business key (up to 24 characters).

description

Human-readable name.

externalCode

Optional code from an external system.

sourceDocumentLine

The document line the cost unit was created from (final).

item

The item the cost unit relates to (final).

financiallyClosed

Whether the cost unit is closed for further postings.

biOwnerCompany

Derived owning company (business-information field).

biOwnerPartner

Derived owning partner (business-information field).

Cost Allocation (CostAllocation)

CodeNameMeaning

O

Optional

Cost-unit reference may be supplied.

M

Mandatory

Cost-unit reference is required.

N

Not allowed

Cost-unit reference must be absent.

Functionality

The submodule does not currently expose Spring services from this package. Cost centers and cost units are maintained through the standard CRUD pages, and downstream postings reference cost units directly through the standard generated readers/writers.

Public API

ACC_CST_QueryApi

The query API class exists as an empty placeholder — no methods are exposed at this time. Other modules read cost units and cost centers through the standard generated readers.

ACC_CST_CommandApi

This submodule does not provide a command API class. Cost centers and cost units are maintained through the default CRUD pages; downstream document-line writers create cost units when needed.

ViewModel actions

The submodule defines view models for CostCenter and CostUnit but does not declare any custom UI actions.