cancel
Showing results for 
Search instead for 
Did you mean: 

cost center hierarchy

Former Member
0 Kudos

Hi Experts

I have to migrate CO sets from one system to another.

For this what should I use?

While searching for options I found this....How appropriate is this for my case.

Extraction logic

Depending on the structure of the group (hierarchic or not), the data needs to be extracted into a level table or a parent child table file.

Programs/ functions to be used:

Programs RGSEXPH1, RGSEXPH2

BAPI functions:

BAPI_COSTCENTERGROUP_GETDETAIL

BAPI_COSTCENTERGROUP_GETLIST

BAPI_COSTELEMENTGRP_GETDETAIL

BAPI_COSTELEMENTGRP_GETLIST

BAPI_PROFITCENTERGRP_GETDETAIL

BAPI_PROFITCENTERGRP_GETLIST

SO what should I use, Bapi or program. Can somebody also explain what exactly is this program doing.

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Ajay and Waman for your suggestion

I have found a prgram RGSEXPH2 which exports the CO set groups from sap to presentation server which suits my requirement.

The problem i am facing is which the input on selection screen, this program contains Group name as a parameter only where else I want a select-option for the groupname.

In doing so I have make some changes in this program.

I am stuck here.

SELECTION-SCREEN ON VALUE-REQUEST FOR s_grpnam-low.

  • Value request for group name

CALL FUNCTION 'G_RW_SET_SELECT'

EXPORTING

class = c_setclass

set = s_grpnam

typelist = 'BS'

show_field_name = ' '

show_table_name = ' '

IMPORTING

setid = g_setid

set_name = s_grpnam.

the program is giving a dump bcoz export paramter 'set' has compatibility issue.

Can you help me with this.

waman_shirwaicar
Active Contributor
0 Kudos

Hi,

Please review the note 101041.

Also please check the following information regarding the cost center hierarchy.

Please notice that there are two check boxes in OKE6 inside the frame 'cost centers':

o standard hierarchy

o cost center groups

Both types of groups are cost center groups (setclass '0101'). But for transport we difference between these both types:

standard hierarchy: will be transport the standard hierarchy only for the corresponding controlling area cost center groups: will be transport all alternative groups, it means all cost center groups they are not a part of standard hieararchy

You can check it in the used transport order request. Navigate to the transport order editor:

There must be different entries, for instance

R3OB SETS STAN\010100010001 for a standard hierarchy (setid behind '\')

<0101><co area><name of top node>

R3OB SETS STSD\01010001TEST for a non-standard hierarchy group

If you mark 'cost center groups' in OKE6 the system works as following:

1. determine all cost center groups from the corresponding CO area

2. reduce this amount to top nodes only

3. create for each top node a entry in transport order request

!!! exception: ignore the top node of standard hierachy !!!

regards

Waman

ajaycwa1981
Active Contributor
0 Kudos

Hi Smriti

Welcome to SDN

Why dont you just ask the user to export and import it.... Go to KSH3 -> ENter the Hierarchy -> from the menu options you can export it to a txt file

Now create the Group in Target client from KSH1 and SAVE... Then import the File into target client from same menu option.... All the hierarchy gets imported

You can also transport them using OKE5 transaction code

br, Ajay M