Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

relation between costgroup,costelement and costcenters

Former Member
0 Kudos

Hi,

anybody can tell me the relation between costgroup,costelement and costcenters.

each costgroup may contain multiple cost elements and each cost element may contain different cost centers.

how to find costelements and cost centers associated with the cost group.

in which tables i can find these fields .

thanks in advance.

sastry

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Cost Center & Cost Elements are two elements that are related to Costs w.r.t to Controlling module.

I will give an example:

Say you are working in an software orgn where there are 5 projects.

To know the exact cost scenarios.

each project will be treated as a Cost center.

and each employee in that project is treated as a Cost element.

Or if you have 3 branches in India one in chennai, Banglore and Hyd.

Each branch may be treated as a cost center to calculate the complete company profits. and each project in a branch is treated as a cost element.

hope you understood.

<b>Tables:</b>

CSKS - Cost Center Master Data

CSKA - Cost Elements (Data Dependent on Chart of Accounts)

CSKB - Cost Elements (Data Dependent on Controlling Area)

CSKS - Cost Center Master Data

CSKT - Cost Center Texts

CSKU - Cost Element Texts

Refer this link if you need still further

http://www.sap-img.com/financial/important-tables-in-sap-co.htm

Regards,

Padmam.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Cost Center & Cost Elements are two elements that are related to Costs w.r.t to Controlling module.

I will give an example:

Say you are working in an software orgn where there are 5 projects.

To know the exact cost scenarios.

each project will be treated as a Cost center.

and each employee in that project is treated as a Cost element.

Or if you have 3 branches in India one in chennai, Banglore and Hyd.

Each branch may be treated as a cost center to calculate the complete company profits. and each project in a branch is treated as a cost element.

hope you understood.

<b>Tables:</b>

CSKS - Cost Center Master Data

CSKA - Cost Elements (Data Dependent on Chart of Accounts)

CSKB - Cost Elements (Data Dependent on Controlling Area)

CSKS - Cost Center Master Data

CSKT - Cost Center Texts

CSKU - Cost Element Texts

Refer this link if you need still further

http://www.sap-img.com/financial/important-tables-in-sap-co.htm

Regards,

Padmam.

0 Kudos

hi padmam,

can you send me the coding to find the same .

sastry

Former Member
0 Kudos
use bapis,

DATA : it_kostl TYPE TABLE OF bapi1112_values WITH HEADER LINE,
           it_kstar TYPE TABLE OF bapi1113_values WITH HEADER LINE,
           it_nodes1 TYPE TABLE OF bapiset_hier,
           it_nodes2 TYPE TABLE OF bapiset_hier,
           it_messages1 LIKE bapiret2,
           it_messages2 LIKE bapiret2.


CLEAR it_kostl.
    REFRESH : it_kostl .
    CALL FUNCTION 'BAPI_COSTCENTERGROUP_GETDETAIL'
         EXPORTING
              controllingarea = 'XXX'
              groupname       = p_ccgrp
         IMPORTING
              return          = it_messages1
         TABLES
              hierarchynodes  = it_nodes1
              hierarchyvalues = it_kostl.

CLEAR it_kstar.
    REFRESH :it_kstar.
    CALL FUNCTION 'BAPI_COSTELEMENTGRP_GETDETAIL'
         EXPORTING
              chartofaccounts = 'ERC'
              groupname       = p_cegrp
         IMPORTING
              return          = it_messages2
         TABLES
              hierarchynodes  = it_nodes2
              hierarchyvalues = it_kstar.