Application Development and Automation 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: 
Read only

cost element

Former Member
0 Likes
729

Hi all

in the KCH3 transaction we get a list of cost centres group.

can anyone tell me in which table it is stored.i saw in the SETHEADER-FIELDSNAME but there also it is given just as KSTAR i,e: the fieldname.Also tell a table such that i can access it using one of the below tables.

SETHEADER.

SETLEAF.

SETNODE.

SETHEADERT.

Vijay

Hi all

in the KCH3 transaction we get a list of cost centres group.

can anyone tell me in which table it is stored.i saw in the SETHEADER-FIELDSNAME but there also it is given just as KSTAR i,e: the fieldname.Also tell a table such that i can access it using one of the below tables.

SETHEADER.

SETLEAF.

SETNODE.

SETHEADERT.

Vijay

3 REPLIES 3
Read only

Former Member
0 Likes
677

Hi all

its KAH3 transaction not KCH3.Sorry.

Vijay

Read only

Former Member
0 Likes
677

Hi ,

The cost element Fields are there in the base table : COSS , COSP ,etc.

if you want more tables than in se11 : COS*.

Reward points if it is usefull...

Girish

Read only

Former Member
0 Likes
677

Hi,

If you want to get the list of cost centers for given costcenter group, you can try FM 'BAPI_COSTCENTERGROUP_GETDETAIL'

Sample Code:

  • Calling Function Module that returns a list of cost centers

CALL FUNCTION 'BAPI_COSTCENTERGROUP_GETDETAIL'

EXPORTING

controllingarea = l_kokrs

groupname = l_ksgru

language = ls_language

IMPORTING

return = ls_return

TABLES

hierarchynodes = lt_hiernode

hierarchyvalues = pa_gt_costcenters.

Regards,

Farheen.