Direct answer

Primary cost elements represent operating costs or revenues originating in business transactions, such as electricity, materials or salaries. Secondary cost elements represent internal value flows, such as a maintenance department charging another department for its work. In SAP S/4HANA both are represented by G/L accounts with appropriate account types and cost element categories.

Why distinguish the two?

Finance wants to know what the enterprise spent; management wants to know which activities or products consumed those resources. These are related but different questions. When a supplier invoice is posted to a maintenance cost center, the primary cost captures the nature of the expense. An internal charge can subsequently move responsibility for some of that cost to production without creating a second supplier bill.

Illustration of a controller and plant accountant reviewing an electricity invoice and allocation worksheet
The finance team checks original cost evidence before reviewing the basis for internal charges.

Example: one expense, two perspectives

Assume a plant maintenance department receives an electricity invoice for INR 100,000. The original expense is recorded against an appropriate primary cost account and cost object. At month-end, assume an approved internal assessment assigns INR 60,000 to production and leaves INR 40,000 with maintenance. The secondary cost account identifies the internal transfer; the original company expense is still INR 100,000 in this simplified example, ignoring other movements.

Original invoice of INR 100,000, maintenance cost of INR 100,000 and internal allocation of INR 60,000 to production
The example separates initial recognition from internal redistribution; the remaining maintenance balance is INR 40,000.

Account type and cost element category

In S/4HANA a cost-relevant G/L account uses an account type appropriate to primary costs or revenue, or to secondary costs. The cost element category constrains the CO transactions for which the account is suitable. For example, the category used for internal settlement is not interchangeable with one intended for every type of allocation. Not all G/L accounts are cost elements.

Earlier SAP ERP designs maintained cost elements separately from G/L master records. S/4HANA integrates them into G/L account master data. When discussing migration, identify the source and target release rather than assuming the same master-data procedure applies everywhere.

Controls and consultant questions

Ask the controller to identify the original expense account, the sending and receiving cost objects, the approved allocation basis and the expected effect on each cost report. Reconcile totals before and after the allocation and check whether the transaction is intended to retain the original cost identity or use a secondary cost account. The exact accounting behavior depends on the chosen allocation method and configuration.

Do not treat all internal postings as secondary costs or every primary expense as a cash payment. Validate the business transaction, account category and document evidence together.

Related N2i Knowledge

Official SAP References

SAP Learning — Maintaining General Ledger Accounts · SAP Learning — Managing Master Data