How to find cost element group linked to account number

Hi all,
I have following scenario.
I have account number and i want to find out it's cost element group.
In t-code KAH3 when i enter cost element group i get all the account number in that group.
But the problem is that i have account number and i want to find out in which cost element group this
account number belongs.
Is there is any fuction module from which i can get cost element group from account number or from which table i can fetch cost element group depending upon the account number.
Thanks in advance.
sachin

hi,
check this function module.
BAPI_COSTCENTERGROUP_GETDETAIL
table - SETLEAF.

Similar Messages

  • Based cost element I need to find cost element group how

    hi
    how to find the cost element assigned to which cost element group,very difficult to open each group and search, please advise me
    Regards,
    Nagesh

    Hi,
    One easier way is goto T.Code: GS03, give the top node of the Cost Element Group then, drill down for lowest level details.
    This could also be faster process.
    Regards,
    Kiron Kumar T.

  • Display Cost Element Groups linked to a Cost Element.

    Hi ABAP Gurus,
    I am creating a program which displays a list of Cost Element Groups (maximum 10 levels) linked to a Cost Element(s) entered by the user at the selection screen.
    What I did was selecting first at SETLEAF and then at SETNODE.
    But when I was about to create the final internal table which will be used to display the data, I found out looping 10 times which is not good.
    Can you suggest as to what needs to be done on this?
    Thank you so much for your help.
    Regards,
    Onyx

    try fm K_KKB_SET_DISSOLVE
    grx
    Andreas

  • Cost element group wise budgeting

    Hi All ,
        Can any one tell me how to do cost element group wise budgeting?
    Thanks in advance,
    Manisha

    Hi
    In transaction KPZ2 you can do budgeting for a group. However you need to actually budget for the elements in the group thereby consolidating for the group.
    You cannot budget for a cost element group directly without budgeting for a cost element in SAP.
    Anand

  • To find cost element in which cost element group

    Hi,
    Need advice.
    We have many cost element group in KAH3.
    If I want to find the particular cost element is maintained in which group, may I know how to check?
    Thanks

    Go to Transaction GS03.
    Then pull down menu in the GS03 transaction screen: Utilities>Find Values in Sets
    Enter your Cost Element(s) in the From and/or To fields.

  • Function module to find cost elements in a cost element group?

    Can any one please help me find all the cost elements in a cost element group?
    Regards,
    ABAPer

    hi,
    Look at table SETHEADER. For Cost Center Groups, use SETCLASS = '0101'; for Order Groups, use SETCLASS = '0103'.
    <b>cost center
    BAPI_COSTCENTERGROUP_GETDETAIL
    the return structure HIERARCHYVALUES will hold all children cost centers.
    cost elements.
    BAPI_COSTELEMENTGRP_GETDETAIL</b>
    rgds
    anver
    Message was edited by: Anversha s

  • How can I delete a cost element group

    Hy,
    I have a new system and the cost elements groups came with the questionary. Now I want to delete them, but I have an error like : "You want to delete object (Group element cost BON_1000). This is not possible because the object is being used in another object (group, report ... )." It is possible somehow to delete cost element group?
    I don't have any other dates in the system. Thank you!

    Hi Biro Dorel 
    The cost element group can be used by either back end configuration like cost component structure or front end transactions like allocation cycles.
    Please make sure none of any front end or back end functions are using the cost element group.
    If you do sure your system is new and no transactions use it. Please check whether the group is used by another cost element group. Or if you do not know where it is used, try to use the "where used list" to find the object using the group by click the buttom on the tool bar in the cost element group maintenance window (T_KAH3).

  • How to delete cost element name from group after deleting the cost element

    Hi,
    Please let me know how to delete the cost element number  from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
    Thanks

    Hi
    Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
    Regards
    Sandesh

  • How do I migrate Cost Element Groups in a batch ?

    I want to migrate Cost Element Groups from 4.7 to ECC6. We've been exporting/importing them individually, but is there a faster way to grab multiple groups and move them to the new environment ?
    One thing of note is that the Chart of Accounts is changing between 4.7 and ECC6 and named differently.
    Edited by: Joe Malloy on Feb 19, 2008 9:35 PM

    Hi ,
    You can go on createing the
    Controlling -Cost Element AccountingCost Elements--
    Automatic Creation of Primary and Secondary Cost Elements--Make Default Settings
    Create Batch Input Session
    Execute Batch Input Session
    BY do this activite u can do the mass process of creating the cost elements.
    Hope this is clear know assign points
    With Regards
    Krishna Singareddy

  • How to created an cost element group structure from P&L FSV

    Hi All,
    My client has changed his financial statement version and I have to change the cost element group structure according to the new profit and lost structure of this new FSV.
    Do you know any transaction to do this automatically?. For example the creation of the sets' structure can be done by FSE5, is there any similar for cost element group structure?.
    Many thanks in advance!

    Hi NIketa
    Whats the detailed error message? Can you paste that here?
    Also, check the following, which may resolve your issue
    1. If you are settling to the Top most WBS, i.e. to the project itself, do not do that... Settle it to a lower level WBS, atleast one level lower than the project...
    2. Check if the status of that WBS is REL (released) and
    3. The flag for "acct asst elem." is checked in the WBS element
    Regards
    Ajay M

  • How to get the member of cost element group from Profit center group

    Hi Guys,
                  I need to get the member of cost element group from Profit center group like in Tcode KCH3 and the same from Account Group like in Tcode KDH3.
    Any Function Module available to get this data.
    Thank U for Ur time.
    Cheers
    Senthil

    I am closing this thread.

  • Cost Element and Cost element group

    Could You tell me how to chech which Cost Element Group given Cost Element belongs to? Greetings. P.

    Hello
    With Transaction code KAH3 you can able to view the cost element group.
    give your controlling area and cost element group you can easily able to find out the cost element included in concern group.
    If the above answer resove your query kindly provide the marks
    thanks and regards
    Mahesh

  • Cost Element Group & Cost Element

    Hi Friends,
    Can you please tell me how cost element groups are linked with individual cost elements(Primary and Secondary).
    Is there any standard cost element groups are there. Please let me know.
    Priya

    Hi,
    Cost element groups, like any other group for master data, is used for reporting purpose. By creating a group you unite certain objects and make it possible to present it as one entity in the reporting or use it in allocation processes. There is no such a thing as standard group, as the user chooses for himself how he wants uniting the elements.
    Regards,
    Eli

  • Cost Element Group Setup

    Hi
    How i can setup cost element groups with note pad files
    thanks
    Reddy786

    Hello,
    The system provides a functionality with which you can export and import the groups using text file. However, if you have something in a text file then create a few groups and export the data in KAH2 to find out the format of the text file and then design your file according and then import in KAH2.
    You can find the functionality in top menu > Extras in kah2.
    Kind Regards // Shaubhik

  • IDOC to JDBC scenario in case of Cost Element Group IDOC.

    This is an IDOC to JDBC scenario.
    The Cost Element Group IDOC is having different segments. The main segment E1COGH (1...unbound) is consisting of different subsegment like E1OGS (0...unbound) & E1COGV (0...unbound). The main segment (E1COGH) along with subsegments E1OGS & E1COGV) is occuring more that 1 times. I have to insert data into the table, which we can do in single rows (no hierarchy  is possible in tables). I have used "use one as many" in message mapping. Now if E1OGS or E1COGV is repeating in a single E1COGH segment then we dont get any error. But if I duplicate the main segment then I am getting runtime exception.
    Please suggest about how to map in this case.

    In my scenario:
         E1COGH
         |
          -> E1COGS
             E1COGV
    where     E1CGH -> Main segment
         E1COGS & E1COGV -> sub segment
    E1COGH -> 1..unbound
    E1COGS -> 1..unbound
    E1COGV -> 1..unbound
    At the target side I have created two Statement Structure (ie.Statement & Statement_1) . One for E1COGS (ie. Statement) & the other for E1COGV (ie. Statement_1).
    Case 1 ->  If E1COGS is present in the main segment E1COGH then it is mapped AS IS.
    Case 2 -> If E1COGS is not present in the main segment E1COGH then it is mapped as blank.
    This will be mapped with Statement & in the absence of E1COGS this Statement structure is SUPPRESSED.
    Similarly,
    Case 1 -> If E1COGV is present in the main segment E1COGH then it is mapped AS IS.
    Case 2 -> If E1COGV is not present in the main segment E1COGH then it is mapped as blank.
    This will be mapped with Statement_1 & in the absence of E1COGV this Statement_1 structure is SUPPRESSED.
    All the elements of the segment E1COGH, E1COGHT & E1COGHR are replicated in all the rows for X (no. of occurance of E1COGS) + Y (no. of occurance of E1COGV).
    While testing in Message Mapping, I am able to get the output as for multiple occurence of E1COGS & E1COGV in a single E1COGH.
    But if I increse the occurence of E1COGH the it is giving the following error :
    Runtime exception during processing target field mapping /ns0:MT_Cost_Element_Group_Response/Statement/DBtablename/access/GROUPNAME. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in first queue in function useOneAsMany. It must have the same number of contexts as second queue.] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[com.sap.aii.mappingtool.flib3.CollapseContexts@51197231, , ]
    Please suggest how to map the occurence of E1COGH simultaneously with the occurence of E1COGS & E1COGV.

Maybe you are looking for

  • 10.5.7 upgrade and windows log in errors

    Hi all Hope someone can give me some feedback I am running an Intel X-Serve which has been happily serving Mac's and Window's box's for the best part of a year. I upgraded the server to 10.5.7 over last weekend and all seemed good on Monday however y

  • MODERATOR NEEDED

    Just wondering if it might be at all possible for one of moderators to consolidate all the 2.2 Froyo threads into one?  They seem to be junking up the board.  Not trying to be offensive here to those who are dissatisfied with the lack of the update,

  • Problem in cascade-delete

    I've using cascade delete for delete rows from two entity beans....... but my problem is that if I'm doing it from ejb side...i.e. setting "fk_constraint" to false, and setting cascade-delete in ejb-jar.xml (& not in database), then its working fine.

  • How to change the color of a bullet

    I'm new to InDesign CS3. I've figured out how to create a bullet list, even change the bullet to something custom. But I now want to change the color of the bullets. I want to keep the text black, but have the bullets be a different color. Can someon

  • How to logon to Oracle Developer Suite 10g?

    I have installed Oracle Developer Suite 10g on my Windows XP Home Edition. But I don't know what to enter in the "logon dialog box". And after all, what is user/id/conncetstring?