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: 

Getting cost centers from cost center group.

Former Member
0 Kudos

Hi All,

I have one selection screen containg COST CENTER GROUP as a parameter. Now i want to get the all cost centers pertaing to that Cost center group.

which table i have to use for that?

Can any one throw light on this.

Thanks in advance

Karunakar Reddy

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

Hi,

-> tables : setheader , <b>setleaf</b>

(setclass = 0101)

-> fm G_SET_TREE_IMPORT and G_SET_TREE_ADD_POINTERS

regards

Andreas

0 Kudos

To get the cost center group, make use of BAPI

BAPI_COSTCENTERGROUP_GETLIST.

As per ur requirement to determine the list of cost centers attached to cost center group is to use

BAPI_COSTCENTERGROUP_GETDETAIL. Cost center list will be determined from the structure HIERARCHYVALUES.