Profit Center Hierarchy Level in ABAP-HR

I am working on an ABAP-HR report related to Organisation management.
There is a requirement wherein I need to retrieve data from a Profit Center Hierarchy Level .Can u please advice me on this.
Thanks in advance,
Raja.

Hi ,
(i_name is the entered profit center group name)
Get the internal name of the entered profit center hierarchy.
CALL FUNCTION 'G_SET_LIST_SELECT'
       EXPORTING
            SETCLASS      = '0106'
            SHORTNAME     = I_NAME
            KOKRS         = 'MIT '
            KTOPL         = 'HEUS'
       TABLES
            MATCHING_SETS = T_SETLIST.
  IF T_SETLIST[] IS INITIAL.
    MESSAGE E002(SY) WITH 'Profit Center group does not exist'.
    EXIT.
  ELSE.
    READ TABLE T_SETLIST INDEX 1.
  ENDIF.
Get the entered profit center hierarchy info.
CALL FUNCTION 'G_SET_TREE_IMPORT'
       EXPORTING
            SETID                     = T_SETLIST-SETNAME
       TABLES
            SET_HIERARCHY             = T_SETHIER
            SET_VALUES                = T_SETVALUES
       EXCEPTIONS
            SET_NOT_FOUND             = 1
            ILLEGAL_FIELD_REPLACEMENT = 2
            ILLEGAL_TABLE_REPLACEMENT = 3
            OTHERS                    = 4.
  IF SY-SUBRC <> 0.
    MESSAGE E002(SY) WITH 'Profit Center group does not exist'.
    EXIT.
  ENDIF.
or try one of these
FC_PRCTR_HIERARCHY
TXW_EXTRACT_CO_PCTR_HIERARCHY
Regards,
pankaj singh.
Message edited by pankaj singh

Similar Messages

  • Profit center hierarchy and cost center hierarchy

    Hi
    What are the things we have to consider to create Profit center hierarchy and cost center hierarchy  and what is the need to assign profit center hierarchy to profit center and cost center hierarchy to cost center. What levels does this fall into? Can some one please guide me.
    Thanks.

    As you would for any other infoobject
    Activate the business content hierarchy datasources on R3 for cost centre and profit centre
    Go into BW - replicate the metadata
    Then just connect via transformations or transfer rules the datasources to yoru infosources or master data objects
    Create an infopackage per hierarchy!!!!! - press the button available hirachies from OLTP - click the one you want on the left - fire it off
    Then repeat new infopackages for all hierachies

  • Profit Center Hierarchy is not updating in Variable

    HI Guru's,
    Profit Center Hierarchy is not updating in Variable .
    We have 3 new profit center added of which i have updated the master data ie, attr, txt, and hierarchy and Txn data. Where after updating i can find the thing updated but when i execute the report in the variable i dont find the updated profit center.
    Please guide
    Prasad

    But just to update you that we don't have data for the new profit centerin R3. Is it because of this i don't find the new profit centers in
    Variable screen ( though i can see in Query Designer)
    Please guide

  • How do I create a BW hierarchy from an R/3 profit center hierarchy?

    I am trying to create a profit center hierarchy in BW using a profit center hierarchy from R/3.  I know there is a way to do this, I just can't find the way. 
    Thank you for your help.

    Hi Aaron,
    you have to activate the specific datasource 0PROFIT_CTR_0106_HIER in R/3 transaction RSA5. After doing this, replicate your source system in BW anf then assign the datasource to 0PROFIT_CTR infosource, create an infopackage and finally load your hierarchies !
    Hope it helps (and don't forget to assign some points by clickin'on the star to the contributors that will help you !).
    Bye,
    Roberto

  • RE: Profit center hierarchy

    Hi Guru's
    Can any one explain to me about Profit Center hierarchy, Where to create that one, where i need to activate, I'm trying to create Tcode KCH1, KCH5N.
    -Please explain to me breifly, urgent.
    - Points will assing,
    thanks
    venkat.

    Hi Venkat
    You have to first assign the name of the Profit Center Standard Hierarchy in OKE5. Then come to KCH1 and create the standard hierarchy with the same name that you have given in OKE5. If it helps, plz assign points.
    Regards
    Rajaram

  • Copy cost center hierarchy to profit center hierarchy: is this possible?

    Hi,
    I would like to know or I can copy my standard cost center hierarchy to my standard profit center hierarchy. If so, how to proceed?
    Thank you in advance,
    Eric van Zundert.
    Ps. We do not have enterprise organisastional active.

    Hi Eric,
    No standard tool exists for this operation. However, if you really prefer to do it manually, you can pull a trick. You can export your cost centre hierarchy to TXT file, correct there certain parameters (change BCCSS to  BGLPCT, etc.) and then import it as profit centre hierarchy.
    Regards,
    Eli

  • Structure view "Profit center hierarchy" for Information system

    Hi Experts
    The structure view "Profit center hierarchy" is not available in standard system. I have created a new key with assignement of PS Hierarchy type '2'.
    But iam getting below message when I use this new structure view:
    Alternative hierarchy could not be determined
    Message no. OK032
    Diagnosis
    You attempted to structure your project elements according to an alternative hierarchy (profit center, cost center or summarization hierarchy). The alternative hierarchy could not be read.
    System Response
    The system uses the "Work breakdown structure" view.
    Any suggestion?
    warm regards
    ramSiva

    Ok lets start from basics
    go to CN41 and enter a project with std PS info profile 000000000000001
    if you click o the DB profile you will have basic setting 000000000000001 etc
    this gives us the project structure
    Now in transaction OPUR create a view for PC hierarchy
    Z00000000001 - whatever description
    select PS hier type 2 - Profit Ctr via set
    I think you have done this
    In this configuration there is a group name - you need to enter the profit centre hierarchy group name from your system
    this group must exist in your system check using transaction KCH3 to display group - if this is not entered correctly you will get the exact error you have got - I have been able to replicate in my system
    Now run CN41 change DB profile project view from 00000000001 to Z0000000001

  • Need profit center HIERARCHY FM

    Hello Experts,
       I know the profit center and profit center group. Could you tell me which function module i have to use to get the complete hierarchy?
    Regards,
    Amit

    Hi,
    <i>(i_name is the entered profit center group name)</i>
    Get the internal name of the entered profit center hierarchy.
    CALL FUNCTION 'G_SET_LIST_SELECT'
           EXPORTING
                SETCLASS      = '0106'
                SHORTNAME     = I_NAME
                KOKRS         = 'MIT '
                KTOPL         = 'HEUS'
           TABLES
                MATCHING_SETS = T_SETLIST.
      IF T_SETLIST[] IS INITIAL.
        MESSAGE E002(SY) WITH 'Profit Center group does not exist'.
        EXIT.
      ELSE.
        READ TABLE T_SETLIST INDEX 1.
      ENDIF.
    <i>
    Get the entered profit center hierarchy info.</i>
    CALL FUNCTION 'G_SET_TREE_IMPORT'
           EXPORTING
                SETID                     = T_SETLIST-SETNAME
           TABLES
                SET_HIERARCHY             = T_SETHIER
                SET_VALUES                = T_SETVALUES
           EXCEPTIONS
                SET_NOT_FOUND             = 1
                ILLEGAL_FIELD_REPLACEMENT = 2
                ILLEGAL_TABLE_REPLACEMENT = 3
                OTHERS                    = 4.
      IF SY-SUBRC <> 0.
        MESSAGE E002(SY) WITH 'Profit Center group does not exist'.
        EXIT.
      ENDIF.
    Regards
    Sudheer

  • Loading profit center hierarchy into 0plant

    Hi,
    I need to load 0proft_ctr hierarchy into 0plant. Can anyone please give me step by step solution ?
    I have generated export datsource for 0profit_ctr.
    Then I am creating transfer rules on exported datsource with 0plant. Here what infosource & datasource I have to assign ? profit center hierarchy datasource is not available.
    Pleasse tell me if I am wrong and give me step by step solution.
    Gud points will be provided.

    this will help http://forums.sdn.sap.com/thread.jspa?threadID=1551111
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c08b1f70-6fb1-2b10-97a5-df4c503e03cb?QuickLink=index&overridelayout=true
    http://forums.sdn.sap.com/thread.jspa?threadID=1362783

  • Alternate profit center hierarchy

    Hi All
    How to maintain alternate profit center hierarchy ?

    Hi ,
    While maintaining controlling area in OKKP in right bottom there are two tick boxes for Cost center and Profit center.Click on that .While creating standard hierarchy sytem will create alternate hierarchy side by side.
    Thanks & Regards
    Deepa

  • Profit Center Hierarchy Process Chain fails

    Hello Friends,
    I have Profit Center Hierarchy load using Process Chain daily. Last night it failed.  The log says : Saving Hierarchy Month 00 is not plausible.  Does anyone have any idea about it.
    jose

    Hi Jose,
    seems that one of yourinfoapckages seems to have a logic for naming the hierarchy where the previous month is calculated. This logic seems to fail for january.
    Regards,
    Juergen

  • Profit Center Hierarchy Maintenance

    Hello
    As part of a project we need to transfer an existing Profit Center Hierarchy (including all Profit Center groups and Profit Centers) to a different Controlling Area. The hierarchy in question contains over 2500 Profit Centers and we would like to avoid doing this manually, to reduce both time and margin for error.
    We know that we can use KCH1 to copy the Profit Center Groups to the new Controlling Area, using the original Controlling Area as a reference, but this does not copy across the Profit Centers master data.
    Master Data transaction KE55, does not allow Controlling Area to be amended.
    Questions:
    - Is there a way to transfer/copy the complete hierarchy (including Profit Centers) to a different Controlling Area?
    If we use KCH1 - how can we copy/reassign the Profit Centers to the new Controlling Area?
    Any ideas for this would be greatly appreciated
    Thanks

    Hi
    It can not be fully the way you like...
    You can go to KCH4 and select your Prof Ctr Hie.. Click on Extras > Export... This would create a text file...
    Create Std Hie with same name in new contr area and SAVE.. Then click on Extras > Import.... This would create the Hie Structure and also the profit center names under it.. But, as such the Prof Ctrs wont be created...
    You need to create them again using KE51... Ideal way would be to create it using reference of the same profit center (LSMW)
    Regards
    Ajay M

  • How to load Profit Center hierarchy from R3 to BW

    Hi people,
    Sorry, but I already saw some documentations here and I couldn´t solve my problem.
    I need to load Profit Center Hierarchy from R3 to BW.
    I already have the InfoSource 0PROFIT_CTR activated and I would like to know what are the steps to load the "Standard Hierarchy"  that we have in the transaction KCH6N in R3.
    I tried to create the Infopackage based on 0PROFIT_CTR_HIER and when I tryed to schedule, the system asked me the file name to put in the "external data", but I don´t have file to load, I need to load de hierarchy directly from R3.
    Help me please,
    Thanks,
    Rosana.

    U have to activate datasource 0PROFIT_CTR_0106_HIER in R/3 system and replicate that to BW.
    And u should install standard transfer rules (0PROFIT_CTR_0106_HIER  from BI CONTENT) in BW system.
    Create infopackage to load hierarchy.. In Infopackage properties, 'Hierarchy Selection' tab, click 'Available Hierarchies from OLTP' and select ur profit center hierarchy.
    There is no difference loading hierarchy data in BW 3.5 and BI 7.0

  • Profit Center Hierarchy Error - profit center hierarchy not defined

    in Quality client QA
    0ke5, the configuration settings is not transfered from DEV through transport request.
    now i have created the Profit Center Hierarchy and started process testing. Now i try to assign the hierarchy in 0ke5, error message standard hierarchy not defined in controlling area XXX.
    I also try to define the Dummy Profit Center KE59, but error comes profit center hierarchy not defined.
    also note that 0ke5 and 1kef are blank.

    try to re-transport PCA
    IMG; CO--> PCA --> tools --> transaport customizing set. -->
    but i believe if you transport only the "master data" Q will function fine. ( try OKEQ first)

  • How to copy standard profit center hierarchy?

    Hi!
    I should copy standard profit center hierarchy from production to development and test systems, how can I do that? Changes in standard profit center hierachy have made straight to the production system.
    Thanks!
    Points will be given!

    Hi
    Yes, it is possible.
    You can understand it better by reading the F1 help after clickin on the item "Cost element groups" available under the same Master data1 tab.
    Regards

Maybe you are looking for

  • Problem in oracle9ias

    In Hot deployment of EJBs      If our Session beans/Entity beans use other java class files, where should these class files be stored?      They cannot be stored along with Home/Remote classes because certain class files we use are common across all

  • RG23C non cenvatable J1IEX

    Hi, I want to post J1IEX for RG23C consumables materials for non cenvatable tax code. Excise invoice is captured in MIGO and duties are inventoried. While posting J1IEX, part 2 and accounting document with zero duties are generated which is not gener

  • Oracle Support for Virtual Sever

    Is it supported to run Oracle databases on Linux virtual servers without using OVM. I have a Linux server(RHEL) which has been virtualized to 3 hosts using strictly virt-install . If I have Oracle issues on those virtual servers will Oracle support t

  • Photoshop CC Extension disabled/not working

    I downloaded/paid for Adobe Photoshop CC 2014 Release. Everything is working perfectly fine expect for the Adobe Extension/Exchange Panel is greyed out and not working. I tried many things, I tried to install the adobe exchange panel CC in extension

  • Contacts take forever to load!  Grr!

    Hello all, So this has been bugging me since day one, and I figured I'd see if anyone else has the issue. iPhone 3G 16GB, 2.1 firmware, sync with MS Exchange server at work. Whenever I launch the Contacts application, it displays fairly quick, but th