SAP Cost Center Tcodes & SAP Cost Center Tables, BAPI & Enhancement

SAP cost Center: this post will guide through Cost Center in SAP in a technical Overview.

The Related SAP Tables and BAPI for Cost Center display, retrieve and maintain will be exposed.

What Cost Center in SAP ?

In business a cost centre is a division that adds to the cost of an organisation, but only indirectly adds to its profit.

Typical examples include research and development, marketing and customer service. (source: wiki.scn.sap.com)

SAP Cost Center Tcodes

If you are looking for a specific tcodes for SAP CC, check the following list for CC Tcodes and related transaction Cost Center in SAP:

SAP Cost Center Basic Setting Tcodes

The List of SAP Cost Center Transaction Codes for Basic Settings are:

SAP CC TCODEBASIC SETTINGS
KS01Creation of Cost Center
KSH1Creation of Cost Center Group
F-02Posting of Transactions in FI
KSB1To View Cost Center Wise Report
KB61Repost CO Line Items
KB11NRepost Costs
KP06Planning Wise
S_ALR_87013611To View Cost Center Wise Variance Report
OKENNDisplay Standard Hierarchy
OKEONChange Standard Hierarchy
KSB5Display Cost Center Accounting Document

SAP Cost Center tcodes for Activity types

The Activity Types for Cost Center can be handled using the SAP Tcodes:

SAP ACTIVITY TYPES TCODESTCODE FOR ACTIVITY TYPES
KL01Creation of Activity Types
KLH1Creation of Activity Type Groups
KB21NEnter ActivityAllocation

Also check SAP Profit Center Tcodes (Transaction Codes): PCA, Group and Hierarchy

SAP Cost Center Codes For Statistical Key Figures

Statistical Key Figures Tcodes for Cost Center in SAP are:

SAP TCODESTRANSACTION CODE FOR STATISTICAL KEY FIGURES
KK01Creation of Statistical Key Figures
KBH1Creation of Statistical Key Figures Groups
KB31NEnter Statistical Key Figures

SAP Cost center Tcodes for Overhead Assessment

The path in SPRO for Overhead Assessment is

Path: Accounting Controlling Cost element accounting-Mater data-Cost element Individual processing Create secondary (KA06)

The SAP Overhead Assessment Cost Center Transaction Codes are:

SAP COST CENTER TCODETCODE FOR OVERHEAD ASSESSMENT
KA06Creation of Secondary Cost Element 42
KSU1Creation of Assessment Cycle
KSU5Overhead Assessment

SAP CC Overhead Distribution Tcodes

The main Tcodes for Cost Center Overhead Distribution are:

TCODETCODE FOR CC OVERHEAD DISTRIBUTION
KSV1Creation of Distribution Cycle
KSV5Overhead Distribution

SAP Cost Center BAPI

The Main SAP Cost Center BAPI are:

SAP COST CENTER BAPIDESCRIPTION
BAPI_COSTCENTER_GETDETAILhelps retrieve all detail about a SAP cost center
BAPI_COSTCENTERGROUP_GETDETAILcan be used to find cost centers in a group use this bapi
BAPI_COSTCENTER_CREATEMULTIPLECreate One or More Cost Centers
BAPI_COSTCENTER_GETDETAILDetailed Information About Cost Center For Key Date
BAPI_COSTCENTER_GETDETAIL1Detail Information for Cost Center on Key Date (1)
BAPI_COSTCENTER_GETLISTList of Cost Centers Using Selection Criteria
BAPI_COSTCENTER_GETLIST1List of Cost Centers for Selection Criteria (1)
BAPI_CTR_GETACTALLOCATIONTYPESChecks Which IST-ILV Types are Possible According to Activity Type Categ.
BAPI_CTR_GETACTIVITYPRICESRead prices for cost center/activity type according to selection
BAPI_CTR_GETACTIVITYQUANTITIESRad plan activity/capacity/scheduled activity for cost center/acty type
BAPI_CTR_GETACTIVITYTYPESList of cost centers / activity types with control information
BAPI_COSTCENTERGROUP_GETDETAIL

K_GROUP_SELECT: SAP Cost Center Read BAPI

Here an other SAP Standard function K_GROUP_SELECT to read detail of SAP cost center.

It is more generic and it can use to read SAP WBS element or even SAP Profit Center data.


Main SAP Cost Center Tables: Cost Center Table in Sap

Regarding SAP Cost Center Data Model. The main Table for Cost center is CSKU.

Here the list of Top 3 Cost Center Table in SAP are:

SAP COST CENTER TABLEDESCRIPTION
CSKTSAP Cost Center Texts
CSKUSAP Cost Element Texts
CSKVSAP Cost Center Resource texts

Check also List of Important SAP FI Tables (SAP Finance Tables)

SAP Cost Center CSKU Table

So Cost Element Table in SAP is CSKU.

Check also try to use SETLEAF Table with

  • Cost Center group in SAP : setclass = 0101
  • WBS Element group : setclass = 0110
  • SAP Profit Center Group : setclass = 0106

SAP Cost Centers Group Table and Description

In addition to CSKS-KOSTL for Cost Center, the field CSKS-KHINR – it is cost center group.

You will have the description in CSKT-KTEXT

SAP Cost Center Hierarchy Table

The main tables for sap cost center hierarchy table are:

SAP COST CENTER TABLEDESCRIPTION
CKPECO-PC Cost Object Hierarchy: Individual Objects
CSKACost Elements (Data Dependent on Chart of Accounts)
CSKBCost Elements (Data Dependent on Controlling Area)
CSKRResource master record
CSKSCost Center Master Data

Alternatives How to read Cost Center Hierarchy in SAP

Try the SETHEADER table. SETCLASS = ‘0101’. SUBCLASS may be your planning area (KOKRS)

You can also use the FM K_HIERARCHY_TABLES_READ.

You can use the following BAPI to get cost center hirarchy BAPI_COSTCENTER_GETDETAIL

To find cost centers in a group use this bapi: BAPI_COSTCENTERGROUP_GETDETAIL.

(source: Tables to be used for getting cost centre hierarchy)


SAP Cost Center Enhancements & User-Exit

SAP Customer Exit COOMKS01

Customer Exit COOMKS01 Short Text Customer Fields for Cost Center Master Data

Function module exits are called from SAP programs at defined points with the ABAP statement CALL CUSTOMER-FUNCTION <nnn>:

  • EXIT_SAPLKMA1_001
  • EXIT_SAPLKMA1_002

CI_CSKS – Include for customer specific master data for cost center.

SAP Customer Exit COOMKS02

Customer Exit COOMKS02 Short Text Cost Center: Checks When Saving

These are the components of customer exit COOMKS02.

Function module exits are called from SAP programs at defined points with the ABAP statement CALL CUSTOMER-FUNCTION <nnn>.

  • EXIT_SAPLKMA1_003

Read more on SAP Note 379464 SAP enhancement COOMKS02 (Cost center: Checks during saving)

SAP Customer Exit COOMKS03

Technical Information Customer Exit COOMKS03 Short Text Cost Center: BAPI Enhancements Components These are the components of customer exit COOMKS03.

Function Modules Function module exits are called from SAP programs at defined points with the ABAP statement CALL CUSTOMER-FUNCTION <nnn>:

EXIT_SAPL0012_001 EXIT_SAPL0012_002
EXIT_SAPL0012_003 EXIT_SAPL0012_004
EXIT_SAPL0012_005 EXIT_SAPL0012_006
EXIT_SAPL0012_007 EXIT_SAPL0012_008
EXIT_SAPL0012_009 EXIT_SAPL0012_010

SAP Cost Center Report

Within the important SAP Cost Center Report check the SAP Standard report RKACSHOW toDisplay CO Cost Segments.

Read more about SAP Cost Centers Master Data.
Here a nice article worth to read for Cost Center in SAP


SAP Cost Center Master Data

You can maintain cost center master data using time-based dependencies (see Time-Dependency of Master Data ).

The following time dependencies are possible in the SAP System:

  • Time independent (I)
  • Fiscal-year-based time dependency (Y)
  • Period-based time dependency (P)
  • Day-based time dependency (D)

SAP Cost Center Basic Data Fields

Here the main list of Cost Center Basic Data in SAP:

CC BASIC DATADESCRIPTION OF CC BASIC DATA FIELD
NameName of cost center
DescriptionDescription of cost center
Responsible personCost center manager
DepartmentDepartment to which cost center belongs
Cost center categoryClassification of cost centers
Hierarchy areaClassification of cost center in standard hierarchy
Company codeAssignment to a company code
Business areaAssignment to a business area
Profit CenterAssignment to a profit center
CurrencyCost center currency
Logical systemCost center logical system (ALE)