How to get profit center group and its description

According to three tables(as below), i get profit center group, how to get its description?
CEPC  (Profit Center Master Data Table)
SETLEAF
SETNODE
PS:(Referrence to teh link fields in table)
For Profit centre Group ( SETLEAF-SETNAME )
Select BSEG-BUKRS / BSEG-PRCTR from BSEG.
SELECT SINGLE SETNAME INTO WA_SETNAME
FROM SETLEAF
WHERE SETCALSS = '0106'
AND SUBCLASS = BSEG-BUKRS
AND VALFROM = BSEG-PRCTR
i can get two records, why?

Hi,
I am not sure of the significance of this table...
But looking at the table structure it is having LINEID as one of the key fields..
So you can have more than one record for the same combination..
Thanks,
Naren

Similar Messages

  • Issue on profit center group and profit center group hierarchy

    hi experts
    I have a requirement where i have profit center,profit center group and profit center group hierarchy.
    profit center group and profit center group hierarchy are same?if they are same how to get them into BI.if they are not same how to get them into BI
    im using two datasources 2lis_11_vaitm and 2lis_12_vcitm,how to connect the profit center group and profit center group hierarchy with the datasources,My dataflow is on top of these datasources there are two write optimised dso and on top of those w-o dso there are std dso and on top of the std dso there is a infocube.on infocube there is multiprovider
    Thanks,
    sivaram

    Hi Sivaram,
    Profit Center would be an attribute of any object which is used in the 2lis datasources. maybe CO Order or WBS etc...from these objects Profit Center should be or could be made as navigational attribute.
    Further you can load the master data and hierarchy from the datasource 0PROFIT_CTR_0106_HIER
    Hope this helps.
    Good Luck.
    Vikram

  • 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.

  • How to get Portal Login User and Its Related BP in CRM?

    Hi,
    An ABAP Webdynpro program is called in CRM from Portal user by a portal link. How to get the user ID and its related BP in CRM? Thanks!
    The portal is integrated with ECC, and all users and BPs are maintained in ECC then replicated to CRM.
    Best regards,
    Hao

    Hi,
    Try the below code
    IUserFactory userfact=UMFactory.getUserFactory();
    IUser user=userfact.getUserByUniqueName(request.getUser().getUserId());
    String usrid=user.getUniqueName();
    And also you can get the groups assigned to user by using the below code
    Iterator groups = user.getParentGroups(true);
    while (groups.hasNext()) {
         String groupstr = (String) groups.next();
         IGroup g = UMFactory.getGroupFactory().getGroup(groupstr);
         response.write("Group name "g.getUniqueName()"<br>");
    Regards
    Suresh

  • SQL Query to get All AD Groups and its users in Active Directory

    Hi,
       Is there any query to get all AD groups and its user in an instance of a SQL server?

    Check this blog.
    http://www.mikefal.net/2011/04/18/monday-scripts-%E2%80%93-xp_logininfo/
    It will give you more than what is required. If you dont want the extra information,then you can try this.. I took the query and removed the bits that you might not require.
    declare @winlogins table
    (acct_name sysname,
    acct_type varchar(10),
    act_priv varchar(10),
    login_name sysname,
    perm_path sysname)
    declare @group sysname
    declare recscan cursor for
    select name from sys.server_principals
    where type = 'G' and name not like 'NT%'
    open recscan
    fetch next from recscan into @group
    while @@FETCH_STATUS = 0
    begin
    insert into @winlogins
    exec xp_logininfo @group,'members'
    fetch next from recscan into @group
    end
    close recscan
    deallocate recscan
    select
    u.name,
    u.type_desc,
    wl.login_name,
    wl.acct_type
    from sys.server_principals u
    inner join @winlogins wl on u.name = wl.perm_path
    where u.type = 'G'
    order by u.name,wl.login_name
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Function module for Profit Center group and Cost Center group changes

    All,
    The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
    I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
    Help is much appreciated.
    Regards,
    Hari

    All,
    The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
    I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
    Help is much appreciated.
    Regards,
    Hari

  • How to update profit center group?! Please help

    Hello All:
          We upgraded to ECC6.0 from 4.6C and I am getting an error below when I call some transaction that uses this profit center group:
    "Profit Center group XXXXXXXX not updated. The function is not supported for the selected object"
    Could anyone please tell me how to resolve this issue? All answers will be rewarded.
    Thanks.
    Mithun

    Thanks for the reply Rob. No, that is the only information I have! I just get a popup with that message!
    Thanks.
    Mithun

  • HOW TO DELETE PROFIT CENTER GROUP.

    i am trying to delete profit center group using tcode KCH2 it is not permiting to delete it showing error "Group 2122 is still in use" how to delete group.
    Moderator: Please, search SDN and avoid posting ijn CAPITAL letters

    HI,
    you can only delete the group if you ensure that it is not used anymore. in KCH2, use "Extras / Where-used List for group" functionality to identify where the group is used.
    Best regards, Christian

  • How to get selection screen elements and its table reference of a report ?

    halo experts
    How can I get selection screen elements and its table reference of a report ? . I tried rs_refresh_from_select_options. But I am unable to get the table and field it is referring to
    For eg if my selection screen 1000 is
    parameters: p_carrid type spfli-carrid,
    select-options :s-_connid type sflight-connid.
    is there any Fm or method which gives me what are the screen elements( p_carrid and s_connid ) and what table( splfi and sflight ) and field ( carrid and conid )it is referring to ?

    The following code is an example of how you might dynamically determine all your PARAMETERS and SELECT-OPTIONS variables at run time.  The PARAMETERS and SELECT-OPTIONS only point to a dictionary element--not a specific table.  Even though you may say "spfli-carrid" or "sflight-connid", the data type really references the dictionary type and not a specific table/structure.
    REPORT  ZTEST_PROG.
    TABLES sflight.
    DATA:
           screen_tab TYPE STANDARD TABLE OF screen,
           wa_screen TYPE screen,
           scrn_nm TYPE string,
           scrn_leftover TYPE string,
           l_type TYPE REF TO cl_abap_typedescr,
           typ_nm TYPE string,
           typ_pre TYPE string.
    FIELD-SYMBOLS <fs_data> TYPE ANY.
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECT-OPTIONS s_connid FOR sflight-connid.
    INITIALIZATION.
      LOOP AT SCREEN.
        IF screen-group3 = 'PAR'
          OR screen-group3 = 'LOW'.
            APPEND screen TO screen_tab.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      LOOP AT screen_tab INTO wa_screen.
        ASSIGN (wa_screen-name) TO <fs_data>.
        l_type = cl_abap_typedescr=>describe_by_data( <fs_data> ).
        IF wa_screen-group3 = 'LOW'.
          SPLIT wa_screen-name AT '-' INTO scrn_nm scrn_leftover.
          TRANSLATE scrn_nm TO UPPER CASE.
        ELSE.
          scrn_nm = wa_screen-name.
        ENDIF.
        SPLIT l_type->absolute_name AT '=' INTO typ_pre typ_nm.
        WRITE:
                 / 'Screen Name:  ', scrn_nm,
                 / 'DDIC Type:    ', typ_nm.
      ENDLOOP.
    When you get into defining internal tables you can determine those at run time with cl_abap_structdescr.  The following is an example of how you might do that.  You can loop through the "components_table" and evaluate each field of the structure in this way.
    DATA: structure_reference TYPE REF TO cl_abap_structdescr,
          components_table TYPE abap_compdescr_tab,
          components_structure LIKE LINE OF components_table.
    structure_reference ?= cl_abap_structdescr=>describe_by_data( any_structure ).
    components_table = structure_reference->components.
    I don't know if this answers any of your questions but I hope that some of it is useful.

  • Adding profit center group and Common currency functionality S_PL0_86000028

    Hi Gurus,
    We are copying  S_PL0_86000028 into a custom program and add we need the following new features:
    First, We need to find a way to add profit center group in the selection screen and add a new column for this on the report.
    Second, add common currency functionality like on F.10 to the selection screen and also add new columns common currency and common currency rate.
    Is this  enhancements possible?
    Can anyone help me on this?
    pochenko
    Edited by: pochenko on Oct 27, 2011 12:56 AM
    Edited by: pochenko on Oct 27, 2011 12:57 AM

    I think this report is based on report painter, so If you know report painter, you can define your own form and report according to your requirement.
    Financial Accounting(new) > General Ledger Accounting(New) >Information system >Drill down Reports(GL Accounts) > Form & Report.
    Here you have to define form first and create report and assign the form created.
    Rgds
    Murali. N

  • How to deleted profit center group from alternate hierarchy

    Hi All,
    I had created a alternate profit center hierarchy in tcode kch5. I want to delete one profit center group, but system is not allowing me to delete the same.
    I tried to delete the profit center group through tcode kch2 or kch3, but system is not allowing me to so, please help me know the procedure of the same.
    Is it possible to change position of profit center group in alternate hierarchy(kch5), please let me know the procedure of changing the position of the profit center group in alternate hierarchy
    Thanks & Regards,
    Prafful Kansal

    Please select the profit centers under the group and remove first than delete the group.
    Thanks
    Mohan

  • How to get list of groups and the users from OID

    Hi,
    Can someone please tell me how to get the list of GROUPS and all the USERS in each group in OID using Java. Need to recursively get all the Groups and Users in each group using Java any samples.
    Thanks

    use examples from OTN like
    http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/src/dc/ldap/model/LDAPSearch.java
    and modify it to your needs
    Bernhard

  • Peoplecode to get dropdownlist box value and its description

    Hi,
    I have assigned a value and its description to dropdownlist box. when try to get the value and description in somewhere, i didn't get the description. i got only the value of the current row in a rowset. but i want to fetch the description which i assigned to the dropdownlist for the corresponding value. Is there any way to get the description?

    Since it is not a XLAT bound to the field, you cannot use the field class properties.
    What is the source of the dropdownlist?
    If it comes from a database record, you could fetch the description from the database using the &Field.Value as input.
    But this would cause a lot of database roundtrips.
    You could store the value and description in a two dimensional component array variable and load this array with the values and descriptions at PostBuild Event.
    This will only fires ones during the component build.
    Suppose the values are "hardcoded", something like this
    /* Create component 2-dim array */
    Component array of array of string &DropdownArray;
    &DropdownArray = CreateArrayRept("", 0);
    &DropdownArray.Push(CreateArray("value1", "descr1");
    &DropdownArray.Push(CreateArray("value2", "descr2");
    &DropdownArray.Push(CreateArray("value3", "descr3");
    After this populate the dropdownlist with values and descriptions from the array.
    For &i = 1 To &DropdownArray.Len
      &Field.AddDropDownItem(&DropdownArray[&i][1], &DropdownArray[&i][2]);
    End-For;
    Whenever you need to fetch the description of the dropdownlist value, first find the value by &Field.Value and then search within the array for the description.
    /*Get value from dropdown */
    &Value = &Field.Value;
    /*Find index for value*/
    &Ind = &DropdownArray.Find(&Value);
    /*Get description (second index in subarray)*/
    &Descr = &DropdownArray [&Ind][2];
    I am writing the code without an environment, so typos could exist
    Hope this helps.

  • How to get profit center in fbl5n in ecc6.0

    hi
    in the dynamic selection screen, in documents i am not able to get the profit center.can any one tell how to get it?

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to get cost center group from cost center

    Hello
    I have cost center and i need to get the cost center group.
    Anyone having an idea how to get it???
    Thanks
    Parvez

    Hi,
    Cost centre could be assigned to different cost centre groups. For standard hierarchy, you can retrieve it from CSKS table, but for other groups SETLEAF table (class 0101) will provide you a complete answer.
    Regards,
    Eli

Maybe you are looking for