How to find profit center group for any profit center

Hello,
KCH3 is the transaction code.
When you select ant profit center group and hit enter you will see the entire hierarchy, profit center groups and profit centers belonging to the group.
Now my question is i have a report where i need to display the hierarchy of the profit center that is fetched, i.e. i am getting the profit centers from FLAGFLEXT (data base) table.
Now i need to display the hierarchy from the top node till the profit center that is fetched in the report.
Please suggest, BAPI_PROFITCENTERGRP_GETDETAIL only gives all the profit center groups in one internal table and all the profit centers in one internal table.
I am looking for a place/ function module or a table that returns the relation between the profit center group and profit center.
Thank you.

Hi,
In Table SETLEAF,
1. Pass in field SETCLASS as '0106'.
2. Pass in field SUBCLASS with controlling area.
3. Pass Profit center in Field VALFROM.
4. You will get Group name in Field SETNAME.
Regards,
Ashok.

Similar Messages

  • How to find the profit center group for a profit center?

    How to find the profit center group for a profit center?

    Hi,
    try this also
    In order to pass the setid parameter of the FM, you have to concatenate the following things
    Setid + KOKRS (Controlling area) + Profit Center Group into one variable.
    In my example below, I have declared as constants and concatenating to gv_setid.
    gc_01016 is the set id for profit centers
    gc_kokrs is the controlling area
    gp_pprct is the Profit Center group entered in the selection screen.
    You will get KOKRS value from the cepc-kokrs.
    data :   gc_0106(4)   TYPE c VALUE '0106',
               gc_kokrs      LIKE cepc-kokrs VALUE 'ABCD'.
               gv_setid          LIKE sethier-setid,
               gt_set_values_1   LIKE setvalues OCCURS 0 WITH HEADER LINE.
      CONCATENATE gc_0106  gc_kokrs gp_pprct INTO gv_setid.
      CONDENSE gv_setid.
      CALL FUNCTION 'G_SET_TREE_IMPORT'
        EXPORTING
          client                    = sy-mandt
          fieldname                 = 'RPRCTR'
          langu                     = sy-langu
          setid                     = gv_setid
          tabname                   = 'GLPCT'
          no_table_buffering        = 'X'
        TABLES
          set_values                = gt_set_values_1
        EXCEPTIONS
          set_not_found             = 1
          illegal_field_replacement = 2
          illegal_table_replacement = 3
          OTHERS                    = 4.
    By using the above FM you will get the values into gt_set_values1 once sys-subrc value eq 0, it is internal table which consists of all the profit centers for the proft center group.
    Regards,
    Venkatesh

  • Re : How to find the Account Group for a Customer

    hi
    i know the Sale Area ( Sales Org,Dist Channel & Division), Company code but when i go to XD01 TO create a Customer it is asking for a Account Group.My Question is how to find the Account Group
    & is there any link between Sales Area and the Account Group?
    Regards

    Hi murali,
          Account group makes the fields in the customer master data as
          1. suppress
          2.req. entry
          3. opt. entry
          4.display
          the above 4 are the radio buttons available.
        Before u create the customer master in XD01.
        you must gothrough the following paths to create xd01
        Img->Fin.Accouting->AccountRec & Account Payable->Master data ->prepare for creating customer master data
                          In the above path
                               I. define account groups
                              In this you cretae your own account group
                                II. create number ranges for customer accounts
                                In this maintain any number range
                               III.Assign number ranges to customer account group
                                in this Assign  the number range here.
    Now go for XD01
    select the account group you created.
    Give the customer number,this number must be in the range  that u made in the above II point.

  • How to find a/c group for a customer

    hi evdrybody,
    how to find a/c group of a customer in va02
    i tried in extras a/c group ifo but there i am getting all a/c group data. but i need only a a/c group which created with this customer
    thanks
    kranthi

    Dear Kranthi
    Go to XD03, give the customer code and enter.  Now select "Extras - Administrative Data".
    Thanks
    G. Lakshmipathi

  • How to Find implemented Enhancements impementations for any Transaction ?

    Hi Folks,
               We are having standard transactions to find User Exits, Customer  Exits, Filed Exits, BAdis..
    Accordingly, in any program, we can find out the enhancement code..
    Similarly, If I implement any implicit enhancement , and if others run any transaction containing similar code in part of there application, how can these implementations can be traced out by others, with out debugging entire code..??
    <<Text removed>>
    Cheers..!!
    Edited by: Matt on Feb 16, 2009 10:12 AM - Do not offer points

    Goto CMOD
    F4 for project,
    information system
    Yow can find the PLUS button on the pop up window.
    Deselect inactive and partially active check box and press enter
    You can find the projects activated.
    Regards,
    santosh reddy

  • How to find the PAR file for standard iviews??

    HI all,
    I am trying to customize some screens provided by the standard EP portal. But i am not understanding which will be the PAR file which has code for these iviews.
    For example, in the "Approval screen for New user registration" has an iview which displays the info given by the user(seeing which user admin will either approve or reject the new user). I need to change this. 
    Also the screen where new user enters his information(when the company feature is enabled,it shows a second screen where Contact info of the user, etc. are asked) , needs to be changed which also some iviews.
    Please help me in finding the right PAR file and the JSP which needs to be edited for this purpose (and how to find these in general for any standard screens)
    Regards,
    Narahari

    Hi Narahari,
    --and how to find these in general for any standard screens)
    For getting the right par file for any standard iviews, Check out the property named <b>Code link</b>, which is there in the property list of every iview.This will give you a clear cut idea on which PAR file you have to edit to obtain the desired result.
    Regards
    Rajeev
    Do award points for helpful answers in SDN.

  • How to find the workflow admins for all costcenters ?

    Dear SRM gurus
    We are using Classic scenario with N th step workflow with BADI.
    we have a requirement.
    How to find the workflow admins for the particular costcenters.
    we used HRV1222A where ATTRIB EQ <Z attribute>(This is our own attribute to group all the costcenters)
    used table HRP1001 to find the Admins but results are not correct because it is not showing my user id(I have all authorisations).
    Is there anyway to find all the admins for a cost center(users are more than 7000+)
    can anybody send work flow related presentations or cookbook
    Thanks in Advance.
    srinu

    hi
    I have not received any thing.Please send again
    [email protected]
    [email protected]

  • Find out Account Group for already created customer

    Hi,
    How do i find out Account Group for already created customer?
    Is there any Tcode to find that?
    Thanks in advance.
    Swetha

    Hii
    Please check it in XD03 got to sales area tab under billing document tab u will find the account assignment group.

  • How to find the BTE event for FBCJ transaction code

    Hi All,
            i need to find the BTE event for Finance related transaction codes.i checked in the SWEL transaction code, didnt find any event triggered and the standard BADI doesnt suite my requirement.The transaction code  which i tried is FBCJ.can anyone help me how to find the BTE event for the above mentioned transaction.
    Thanks in Advance,
    lokesh kumar.K

    Hello Lokesh,
    The following is one of the process of finding a BTE and implementing it.
    (1)Goto transction FIBF .Execute it with Attribute type = 'A'. Then in the menubar Environment->Info System (P/S )
           Go through the list of BTE's available with the description available beside.
    (2)Select the BTE you want to implement.
    (3)Press button Sample function module
    (4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
    (5)Edit the code in the new function module
    (6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
    (7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
    Hope this will help.
    Regards,
    Samson

  • How to find the supplying plant for a purchase order

    Hi Guru,
    My requirement is to dispaly the suppling plant and some other fields for the purchase orders using ALV report.
    Could any one help me how to find the supplying palnt for a purchase order.
    Suggest me any function module or with sample coding
    Regards
    Paul

    Hi Ravi,
    You are solution is right but in that table the supplying plant is not updated
    Could you suggest me any other tables
    Regards
    Paul

  • How to find the customer exits for a particular transaction

    hi
    how to find the customer exits for a particular transaction

    Hi jyothsna vankadari ,
    ther is a convenient way to find all BADIS called. You may know that BADIS are the newer version of EXITs.
    I would suggest you to go for BADI.
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regards,
    Clemens

  • How to find the WhereUsed List for a Business Object Event?

    How to find the WhereUsed List for a Business Object Event?

    Can anybody let me know how to get which
    Whereused  function will get the data from
    different Werks in multi-level?
    Any sample program please!!!

  • How to find out the script for the table using SQL

    Hi,
    Could any one tell me that how to find out the script for the table using SQL.
    Thanks,
    kamal

    Kamal,
    You can find the SQL query in Advanced tab of Answers
    Thanks,
    Balaa...

  • REgd  How to find appropriate data sourses for given tables in Inve Mngt

    Experts!
    M completely new to Inventory Mngt where i needto extract data from R/3,
    they 've given me some tables, but i dont know how to find appropriate data
    sourses for that tables
    those are
    MKPF,MSEG
    EKKO,EKPO
    EKBE,EKET
    How to find right data sourses when table names given in any module??
    pls guide me,
    'll assign the points.
    thanks
    Srujan

    Hi,
    2LIS_03_BX is the initialization of your stocks; you'll need to perform the setup procedure for extracting this data.
    Usually this DSource is used to bring the stocks positions at a given time; from this given time you'll then extract deltas from BF and UM so your stocks are always:
    BX + BF(Delta) + UM(delta).
    Hope this clears your doubts...
    Olivier.

  • How to Find fields and tables of any Datasource

    Hi  ,
    How to find tables and fields for DataSource  2LIS_05_QE1 , and extractstruct is MC05Q1_0INSP as per requirement to find INCOMING PPM.
    is there any specific technique , to find any tables and fields related to our requirement in any DataSource .
    thank's

    Check in LBWE transaction ..
    for
    2LIS_05_QE1 , and extractstruct is MC05Q1_0INSP as per requirement to find INCOMING PPM.
    go to quality management ..
    you will get the data source
    if you click on maintenance ..
    BR
    Manthan

Maybe you are looking for

  • Select data from an XML Column in a Relational Table

    Hi guys, I read a lot of documentation from Oracle how to select xml nodes from an XML Table. The following statement works perfectly for an XML table. select extract(OBJECT_VALUE, '/loop/loop_data/description') "DESCRIPTION" from loop_table where xm

  • SAP NetWeaver 7.01 ABAP Trial Version / Windows Vista

    hello,   Has anybody tried to install "SAP NetWeaver 7.01 ABAP Trial Version"/"WebDynpro for ABAP and windows vista ultimate ? regards, Michel

  • Anything I should be worried about when installing Windows XP via Bootcamp?

    Are there any common problems I might experience? It is a 100% legit key of Windows XP. I really don't want to ruin my macbook considering it took me a long time to save up my allowance for it. Will my mac still be under warranty if I install Windows

  • PB G$ 1.67 won't start, lost install disks, can I install via FW(T) mode?

    Hi all, You, she just gives me the grey screen w/apple logo. Tried all the usual stuff (PRAM, safe mode, single user - no change. Option mode shows the drive, but when I click on it and continue, back to apple screen. I used PB as a source Firewire d

  • Scrolling up and down in Aperture

    In the 'old' days there were two types of scrolling buttons or arrows...one that worked with the mouse wheel and one that you could click and drag for more movement while still controlling it a bit.  I now have Aperture 3.4.5 and don't see [and haven