Get Name for CO Cost Center Group and BGD Processing

Hi,
I use these function modules to get the cost center group nodes in the CO hierarchy.
If I pass it a value that is in two controlling areas
if prompts another screen to pick which controlling area we want to look in.  My problem is when I try to run this report in the background it gets hung up on this screen waiting for input. any ideas on how to get around this.
here is the reference code.
thanks
Please note that the following logic is parts of SAP example report
RGSEX001.
Get the internal Set-ID from the external name of the set
Selection of sets can be restricted to a specific set class or
to sets matching a specific table field.
See documentation of function module G_SET_GET_ID_FROM_NAME
If the set class, subclass and setname is known, function module
G_SET_ENCRYPT_SETID should be used alternatively (see RGSEX020)
    CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
         EXPORTING
              shortname = w_set
              old_setid = w_setid
         IMPORTING
              new_setid = w_setid.
Read the complete hierarchy (set and all subsets)
    CALL FUNCTION 'G_SET_TREE_IMPORT'
         EXPORTING
              setid              = w_setid  "Set-ID, not the Setname!!!
              no_table_buffering = ' '
         TABLES
              set_hierarchy      = it_hierarchy
              set_values         = it_values.

Hi!
For reading cost center hierarchy you can try K_HIERARCHY_TABLES_READ.
It returns near the same info as one you've mentioned, works well for single controlling area and I hope in case of ambiguity it will raise one of exceptions provided. Give it try.
Regards,
Maxim.

Similar Messages

  • Cant change COST CENTER GROUPS and/or Standard Hierarchy

    Hello all,
    im facing some problems during change of COST CENTER GROUPS and/or Standard hierarchy.
    When im trying to select im getting following error Value maintenance not allowed ->Standard Hierarchy
    When i do get the selection of the cost center that i want to remove from the hierarchy im getting this error Function is not supported in the standard hierarchy.
    I dont know anymore what to do.
    ive searched in forum and google but still didnt find enything usefull.
    Regards
    Laurynas Prikockis

    Hello,
    There is no word called removal in SAP. It would have been properly pronounced if say "Delete".
    In case of delete, I do accept, there should not be any planned or actual line items during the fiscal year. If there are any actual or planned lines items you cannot delete the cost center during that period.
    However, you can still delete the cost center in the next fiscal year if there are no actual or planned line items.
    Hope this makes clear.
    Regards,
    Ravi

  • Cost Center Group and Profit center Group

    Hi All,
    The Client is requested to have Cost Center Group in the CO reports. I have trying to analyse how to get Cost center group in the report or Info Provider.
    When i went to T-code KS03 in ECC ( Display Cost Center), i get the Hierarchy Area field called KHINR, which shows the Cost center grp. Upon discussing with Functional person, he has told that this Field lies in Table CSKS (Cost Center Master).
    Now i am thinking to enhance the Cost Center Attribute Dsrc. with this Field KHINR.
    I just want some suggestions or advice on how to bring Cost center grp and Profit center grp
    Thanks and Regards
    Edited by: Raihaan Khan on Dec 12, 2008 3:35 PM

    Hello Simon, Thanks again for all your FICO resolutions.
    Yes i truly agree that Cost Center Grp is CostCenter Hierarchy,, but i dont understand, y the Client has told that he needs the field KHINR in the Cost Center Report too.
    Actually he wants Cost Center Group wise report and NOT Cost center wise report.
    I have thght of extracting the Complete Std Hierarchy to 0COSTCENTER and then in the report , i can give a Cost Center Hierarchy Variable(probably a selection screen), such that the User can select the Nodes he want and then drill down the CostCenter Groups to see his respective Cost center accounting.
    Please opinionate on this
    Thanks

  • Table containing Line items for a Cost center group ?

    Please help me in locating the table which will contain 'Line items' for a given 'Cost center group'.
    Hope my question is clear.
    Thanks.

    check the tables
    SETHEADER  and  SETLEAF 
    SETLEAF will contain all the line items where set class is equal to 0101 for cost center group

  • Cost center group select option

    here is my code:
    declaration of select option.
    SELECT-OPTIONS s_khinr FOR csks_itab_group-khinr no intervals.
    at selection-screen on value-request for s_khinr-low.
    at selection-screen on value-request for s_khinr-high.
    Initialization
    initialization.
      perform build_group_option.
      delete adjacent duplicates from csks_itab_group comparing all fields.
    at initialization fir build my internal table called csks_itab_group, which gets the names for the coster center groups then I delect any duplicates.
    still does work, any ideas.
    thanks

    This works.......
    REPORT ZRICH_0001 .
    tables: csks.
    data: begin of itab occurs 0,
          khinr type csks-khinr,
          end of itab.
    SELECT-OPTIONS s_khinr FOR csks-khinr no intervals.
    initialization.
    perform build_group_option.
    sort itab ascending by khinr.
    delete adjacent duplicates from itab comparing all fields.
    at selection-screen on value-request for s_khinr-low.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'KHINR'
                dynprofield = 'S_KHINR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = itab.
    at selection-screen on value-request for s_khinr-high.
    start-of-selection.
    form build_group_option.
    *** MAKE SURE YOU MODIFY THIS STATEMENT
    select khinr from csks into table itab
             where kokrs eq 'NSCO'.
    endform.
    Regards,
    Rich Heilman

  • MDG-F - Replication model for Cost Center Group

    Hello
    We are trying to create IDOC replication model for Cost center group IDOC_COSTG for data model 0G (MDG 7.0).
    When trying to assign "Outbound Parameter" = SEND_DELTA_INFO against outbound implementation 1112, we are getting error message saying : "Entry 1112 SEND_DELTA_INFO does not exist in DRFC_PARO (check table)".
    While checking table DRFC_PARO via SE16, it shows all the entries for 1012 (GL mast), 1102 (cost center) but it is missing entry for 1112 (cost center group).
    What are we missing? How to generate entry in this check table DRFC_PARO? which step is creating this entry?
    Thanks
    Luo

    Hello Luo
    You have to maintain this entry in following table -
    Go to SM30. Give table name - DRFV_PARO and click on maintain. You will get a pop-up for outbound implementation. Give 1112 and proceed. Add the send_delta_info in the table, save it and then add it in DRF. Do add package_data so that you can send multiple cost centers in your target system.
    Kiran

  • Download  for the cost center hierarchy

    I would like to help me I need to do is download a program for the cost center hierarchy, but not if there is a function that you do this?

    Go to transaction KSH3 (Cost Center Group) and enter your top node and press enter.
    Place your cursor on the top node in the list and take the menu path:
    Extras -> Export
    Click on Presentation server, enter a file name and press the enter button.
    Rob

  • Change in the cost center group

    Hi,
    Can we change the cost center from one cost center group to another group, when there are some postings in the cost center? If yes, how to go about it?
    help me out

    Yes you can!
    If you are planning to change within the standard hierarchy, Goto OKEON, drag, drop and save.
    Or you can go to KS02 for the cost center, in the basic data, you can give the new cost center group under the hierarchy area.
    If it is just non hierarchy cost center group, then go to KSH2 enter the old group, select the cost center, delete save, then go to the new cost center group and include the cost center.
    It does not matter whether it has been posted or not. It is just a grouping. But caution must be exercised. and there shall be a valid justification for doing so. Because the cost center may be used in various cycles. So better to check where and all the cost center is being used and then do the change.

  • Cost center Group & Assessment cycle

    We are running CC reports for CC groups X and Y - Report GR55, Report group 1000 - Run in both currencies Pesos and USD by running in both currency modes.
    Requirement:
    1) How can we see the net balance in CC reports after assessments out = 0 in both Pesos and USD currencies.
    2) Where we can see the link between Cost center Group and Assessment cycle.
    Thanks,
    Raju

    Hi,
    1) You will see the credit entries in the report after the assessment is run. Here, report should have configured in such a way, you can see both debit and credit entries.
    2) If you have assigned the KSB1 Actual cost line report to the report, you can doubte click and see from which cost centers the values have flown through assessment.
    Trust this helps much!
    Cheers!

  • Cost center group report

    Can I run cost center report referencing two cost center groups and two cost element groups. I know we can do multiple selection for cost centers and cost elements but that will not help my cause.
    Lets say we have cost center groups A & B and cost element group 1& 2. We would like a report that shows us Sum of A1 + Sum of B2. This explains why we cant simply use multiple selction for cost center and cost element group. It will also give you an idea of what kind of output we are looking for.
    Any help in this regard will be highly appreciated and points duely assigned.
    Nik

    Hello nik,
            what is the cost center hirearchy you are using. If you are using alternative hierarchy then you can do this by selecting higher level of the A&B.
    regards,
    sankar

  • Displaying only cost center groups

    Hi BW Gurus!
    There's a standard cost center group and cost center hierarchy in the source system that I was able to extract. My cost center infoobject (0COSTCENTER) had that hierarchy data. My question is, in the instance that I want to display only the cost center groups with its corresponding summation results, how will I able to go about it without having to display the whole hierarchy? Is that possible?
    Thanks in advance,
    Maan

    Hi Arun!
    Yes, the hierarchy would be cost center - cost center group.
    Thanks for the suggestions..
    1) The first option seems ideal with a structured hierarchy. The hierarchy I'm dealing with seems very complicated. The cost center group that I need to report on does not necessarily reside on level one of the hierarchy.
    2) It's quite embarrassing to ask but, I've really looked at the standard infoobjects and I haven't seen any that handles cost center group. Any ideas? Or, did you mean that I should create my own?
    Thank you so much again!
    Maan

  • Cancel cost center groups

    Hi All,
    I have created cost center groups and want to cancel it now, what is the T-code for it?
    And can you please suggest me how to set up cost center elements?
    Thanking You in advance

    Hi,
    Search the Forum.
    Read the Rules of Engagement of the Forum
    ~Andrew

  • Delete Cost Center Group...

    Hi CO Guys,
    I just want to know how i can delete the cost center group and what is the exact Transaction Code for delete cost center group.
    Regards

    Hi Yasir
    I think by using T code KS14 you  can delete Cost center group
    or check KSH4
    Thanks
    Ansuman

  • Cost center group language in report

    Dear all,
    In the Cost centers: Actual/Plan/Variance report (S_ALR_87013611), for one cost center group the description language of the accounts has changed from ES to FR. Unfortunately I am not able to understand why.
    How can I switch the language to ES as before? This issue happens only in our Productive system. In Dev & Quality the language is correct.
    Many thanks,
    Annabelle

    Hi,
    How do you solve the problem?

  • Mass change of profit/cost center groups

    we have a requirement to mass change the descriptions for profit/cost center groups. We tried out folowing options but they are not working.
    1. BDC recording for KCH2/KSH2.KCH5N - i think these are not supported in BDC.
    2. LSMW using available BAPI... it can be used only if the group is not assigned in the hierarchy.
    Please let me know if there is any other way of handling this.

    Have you seen note 314528 ?
    Rob

Maybe you are looking for