Finding subordinated Org. Units

Hi,
how can subordinated Org. Units be found to a determined  Org. Unit ?
Importing Paramter ->     Org. Unit
Return Table   ->            subordinated Org          
Has sap any standard Function Module
bye
sas

Hello Erdem
A very versatile fm is RH_RFC_STRUC_GET_MULTIPLE which is even RFC-enabled. Its function is basically the same as that of transaction PPST. Example:
ACT_WEGID = 'O-O-DOWN'  (evaluation path Organizational structure (sort down)
ACT_PLVAR = '01'
ACT_SVECT = '1'
Enter orgunit to ROOT_OBJECTS:
'O ' '<nnnnnnnn>'   " 8-digit number or OrgUnit
The fm returns all organisational units underneath the top-level OrgUnit.
Regards
  Uwe

Similar Messages

  • How to find delimited ORG unit in a report?

    Hi All I need to find the org unit's which doesn't have end date as 12/31/9999 and delimited within 2 years in my report?
    How can we achieve this ...waiting for reply
    PS: I believe there is no LDB required..
    Regards
    Sas

    >
    > Hi,
    > Where are you stuck?
    >
    >
    HRP1000 table, field - OTYPE(check for "O" for org unit).
    > get the difference between BEGDA and GDATE(delimited on) and check if it's more than two years.
    >
    > Regards,
    > Sumit
    I want ORG UNITS whose END DATE is within 2 years????
    I Will give you scenarios
    If HRP1000 table has changed for some reasons'  and 5000(ORG UNIT) will create 2 records
    Ex: 5000  jan 1 2005 dec 31 2009
                    jan 1 2010 12/31/9999
    This 5000 should't pick up as it has end date 12/31/9999 ok...
    EX: 5001         JAN 1 2006  OCT 1 2007
                           OCT 1 2007   MAY 5 2009
    Last record:    MAY 6 2009  Feb 6 2010
    So this 5001 org unit should pick up as this last date is FEB 6 2010.
    Sas
    Edited by: saslove sap on May 3, 2010 1:59 PM

  • How to find link between Business partner and Org unit in Solution manager

    Hi experts,
    Please!!!
    I have a requirement where my rule finds business partner assinged for that support team and in transaction ppoma_crm we have org unit assigned to that business partner number below that we have positions and user assigned...
    I can find business partner for the transaction now i need to find the org unit for the assigned business partner so i could use for agent determination in workflow.
    Thanks and Regards
    Annamalai

    do you know? ... the structure is like this... i have orgunit then a position to it and then i have assigned a business partner which is with prefix CP... i m not seeing the users assigned to it so my workflow doesnt get triggered if i use this org unit..
    regards

  • How to find company code and its org unit?

    Hi All,
    For a given company code, i need to find its org unit. Please let me know the info type table or any FM.
    Thanks,
    SKJ

    Hi Ravi,
    Yes, i just came to know about that. I clicked on account assignment features button in PPOS_OLD and specified pers area, pers sub area and company code and found that an entry was created in HRP1008 for the company code with org unit.
    Thank you very much.
    SKJ

  • Report for Org units with no positions

    Hi
    I am searchign for a report through which I can find all org units whcih have no positions assgiend.
    Please suggest.
    Thansk
    Regards
    RKGSAP

    HI,
    follow the path -
    SAP Easy Acces->Human Resources->Organizational management->Info system->Organization Unit->Organization Structure
    Here you have the SAP query, execute the one that ftis in your requirement.
    Also check the same in the Position node. Explore the 'report Structure' node as well.
    Thanks & REgards, SWapnil Mishra

  • Multiple Managers of an org unit

    Dear Friends,
    I need to know the org units where there are multiple managers apart from the one manager who is actually belongs to that particular org unit.
    for example Org unit - 5000021 has a position no- 3000012 who is the actual manager for the org unit. But when I go to hrp1001 for the org unit I see that there are multiple records for B 012 such as for the org unit-5000021 such as Position nos - 3000015, 3000021, 3000033, 3000028 etc. which should not be the case.
    Is there any way I can find such org units in th structure & rectify the same with help of any report. Please guide.
    Regards,
    Aks

    use   RHINTE00 program to create relationship, you can create the relationship for specific Org, unit by selecting Org. Unit selection field from "Further Selections".
    as the relationships is wrongly assigned to org units
    one u need to correct it and again reassign it with the existing one
    Edited by: Sikindar on Jun 8, 2009 2:29 PM

  • Obtaining Org Unit from Business Partner number

    Hi,  I am trying to obtain an org unit object id from the bp number that is created when the org unit is created.  I am in a BP BADI, so I only have the bp number, and am in the process of creating a new org unit when the BADI is called.  I have tried to use RH_STRUC_GET but because we are in the creation process this does not retrieve any results.  I understand that this fm reads a buffer to get its results, and the org unit is obviously not in the buffer at this time. 
    Could anyone help me to find a function module that will find the org unit in this case?

    Hi Ratikant,
    Thanks for your suggestion.  This may work if I was looking for an employee's org unit, but I was actually looking for the BP record for the org. unit that was being created.  It would also depend on whether this function module would work before the save and commit has occurred.
    I cannot test you solution since I managed to implement a work around where I saved the org unit using a funtion group in another(earlier) BADI so that I could retrieve it in this BADI.  This has been tested and implemented and I don't want to cahnge what is already working!
    Many thanks though!

  • Org unit head of an org unit of an employee

    Hi all,
    I want to create an abap program where i have the personal number of a person. Now i want to find the org unit of that person, which I will find from PA0001. Now i want to get the position of the manager or the head of that org unit and from that position I want to get the holder of that position ( pernr) and ultimately the name of that person.
    Can anyone help me with the CODING of the above problem?
    Can anyone provide me a sample code for it.
    Thanks
    Ribhu

    Refer this Function Module, it wil give u the immediate manager name of a employee number, u can call this in a ABAPProgram after creating it or u can copy this code and paste it in a ABAP program.
    FUNCTION ZGILL_APPROVER.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(PERNR) TYPE  PERSNO
    *"  EXPORTING
    *"     REFERENCE(NAME) TYPE  PAD_CNAME
    *"  EXCEPTIONS
    *"      NO_DATA
    DATA: ls_sobid1 TYPE sobid,
          ls_sobid2 TYPE sobid,
          ls_sobid3 TYPE sobid,
          vorna type PAD_VORNA,
          nachn type PAD_NACHN.
      SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid1
       WHERE otype = 'P'
       and   plvar = '01'
       AND   objid = pernr
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'B'
       AND   relat = '008'.
    IF sy-subrc EQ 0.
    SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid2
       WHERE otype = 'S'
       and   plvar = '01'
       AND   objid = ls_sobid1
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'A'
       AND   relat = '002'.
    IF sy-subrc EQ 0.
    SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid3
       WHERE otype = 'S'
       and   plvar = '01'
       AND   objid = ls_sobid2
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'A'
       AND   relat = '008'.
    IF sy-subrc EQ 0.
    SELECT SINGLE vorna nachn from pa0002 INTO (vorna , nachn)
       WHERE pernr = ls_sobid3
       AND   endda >= sy-datum
       AND   begda <= sy-datum.
    IF sy-subrc EQ 0.
    Concatenate vorna nachn into name separated by SPACE.
    condense name.
    else.
    Raise NO_DATA.
    endif.
    else.
    Raise NO_DATA.
    endif.
    else.
    Raise NO_DATA.
    endif.
    else.
    RAISE no_data.
    endif.
    ENDFUNCTION.

  • Possibility of Focusing to a Specific Org Unit ?

    Hello Everyone,
    We are using Nakisa v4.1 and a live build. I wonder whether the below action is possible or not;
    When a manager logs into the system, the OrgChart Module will display all the organizational units BUT will focus to the organizational unit that he/she is the manager of ? I mean the screen will zoom to that organizational unit he/she is managing at the moment he/she logs in ? Is there any customization on Nakisa Admin Console or R3 side for this or it is not possible at all ?
    Thanks,
    Regards.

    Tunc.
    I think this is worth a little debugging at this point to confirm the data is mapping as you expect it to.  Once you are logged in to OrgChart and getting the infamous error message, open a new tab in your browser and navigate to the debug page.
    This is done by substituting "default" with"nak-debug".  So for example if your OrgChart URL is http://myorgchart/OrgChart/default.jsp, then your debug page URL is http://myorgchart/OrgChart/nak-debug.jsp.
    On the debug page, look in your "User" table at the "User Population" row.  The value should be a list of parameters.
    e.g.
    {null=TESTUSER, Costcenter=0000002110, LANGUAGE=, Nak_ExportStructureTable_Count=1, Position=00130049, Name=Ludik, CPID=, IM_EMPSTAT=3, BUSINESS_AREA=9500, PLVN_VERSION=, Perno=00900349, PERSONNEL_SUBAREA=, EMPLOYEE_GROUP=1, Userid=TESTUSER, Nak_EMPLOYEE_DATA_Count=1, CONTROLLINGAREA_ID=1001, KEY_DATE=, PERSONNEL_AREA=1400, Org_unit=50006110, EMPLOYEE_SUBGROUP=DU, Job=50063947}
    The parameters you are interested in are...
    Userid - this should be the user ID of the account you are logging in with.
    Perno - this should be the employee number for the account to which the login ID is associated.
    Position - this should be the position ID for the position the employee is assigned to.
    Org_unit - this should be the org unit ID for the org unit the position is assigned to.  This is what I would expect to be mapped as the root of your org chart.
    Note: All entries must of course be valid for the current date.
    See if these parameter values match up to what you expect them to be.  Also see if you can find these org unit, position and employee (personnel number) entires via OrgChart's listings.
    If something doesn't match up then that's what you need to investigate next.
    Regards,
    Stephen.

  • Read data from org unit

    Hi,
    I'm looking for a fm which gives me the data (e.g. address...) from an org unit in ppoma. I have the object id of this org unit.
    I was not able to find a good fm to read the address and email and so on, means: the data you see for the org unit if you navigate from the org unit in ppoma to the details of the org unit via the menu.
    Can anybody give me a hint!
    Thanks!

    I am not sure if you have already tried these FM's.. 
    BBP_READ_ATTRIBUTES
    RH_STRUC_GET --- Returns all related org info
    SWI_GET_USERS_OF_ORG_UNIT.
    RH_STRUC_GET_MULTIPLE_ROOTS
    BBP_USER_GET_DETAIL
    BBP_OM_STRUC_GET_ORG_FROM_USER - To find the Users Org Unit.
    RH_STRUC_GET - To find the Org Unit and its higher Org units till the root.
                                 Evaluation Path is O-O.
    To find the list of users under that particular Org unit
    Please use the function module BBP_OM_STRUC_GET_USER_FROM_ORG. You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
    Regards,
    PR.

  • ORG.UNIT VALID

    HI,
    1)i wont to now how i find the org.unit valid dates begda & ennda
    i now that i have to take it from hep1000 or 1001,
    2)i wont to now how i now if org unit is valid or not
    regards

    T527X is table for org units....
    so use this....
    parameters : p_orgeh like t527x-orgeh,p_begda like t527x-begda,p_endda like t527x-endda.
    data : v_orgeh like t527x-orgeh.
    select single orgeh from t527x into v_orgeh where orgeh = p_orgeh and begda le p_endda and endda ge p_begda.
    if sy-subrc = 0.
    *--valid
    else.
    *--invalid
    endif.
    valid org unit should be present in t527x.
    if u have pernr and want to check whether he belongs to valid org unit...then proceed like this....
    select orgeh from pa0001 into v1_orgeh where pernr = p_pernr and begda le v_endda and endda ge p_begda.
    if sy-subrc = 0.
    *--proceed in above way...but use v1_orgeh instead of p_orgeh
    endif.
    Regards
    Vasu

  • Org.unit dates

    hallow
    1)i wont to now how i find the org.unit valid dates begda & ennda
    i now that i have to take it from hep1000 or 1001,
    2)i wont to now how i now if org unit is valid or not
    regards

    Hi,
    go to PP01,give plan version -current plan,object type - organisational unit
    check for its validity dates and  relationships.
    Regards,
    Manoj.

  • How to find out the main org units in the system

    Hi,
    I want to find out the all main org units in the system. It means that i have to know all the parent org units not the sub org units.
    Can you please let me know .
    Regards
    Rajesh

    Hi,
    As I understood about your query, go to PA30, select the position field, select the structure search tab, go to find(Ctrl+F), select the object type S-position, give the position no, then it will give position place and root org, unit of the position and it will expand the structure.
    Regards
    Devi

  • How to find Org unit User has selected

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    As soon as you make the profile selection,IC sets the profile and org unit in the session.
    You can read them using
    Data: lv_prof     type ref to if_ic_profile,
                    pname       type        string,
                    orgunit     type        crmt_ic_org_unit.
    lv_prof = cl_ic_profile_service=>get_instance( ).
    pname = lv_prof->get_profile( ).
    org_unit = cl_crm_ic_services=>get_org_unit(  ).
    Thanks,
    Thirumala.

  • How to find users logged on Org Unit

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    In case anyone is still looking for this solution, here is how:
      data: lr_usett type ref to cl_crm_ui_user_cb.
      lr_usett = cl_crm_ui_user_cb=>get_instance( ).
      call method lr_usett->get_org_object
        importing
          ev_org_objid   = lv_objid
          ev_org_objtype = lv_otype.

Maybe you are looking for

  • How can I use Balancing, if I connected to two ISP?

    Hello, I have NetWare6sp3 with 3 NIC's and connected to two ISP. I set two default gateways (One to first ISP, Another to second ISP). But all of trafic goes via first gateway. Can I use Balancing beetween ISP1 and IPS2? Maxim Cuznetov

  • Warning:  Backing up your iWeb 'Domain' file will not save you.

    Here's the transcript from my chat with a MobilMe Support Rep. after losing (they simply disappeared) all of my blog's very valuable comments (hundreds), for nearly two years of blog entries. I have many backed up 'domain' files, and each shows the c

  • Req for new features in nest asha 311 update

    Nokia must add several features of asha 311 next upcoming update . They should include max. features of their nokia 501 asha platform

  • QT 7.0.3. Pro and Tiger

    Hi All, Crossposting for a quick fix. Since upgrading to Tiger I can't play movies on Quicktime - I get a blank movie screen. But I can play a .mov from a CD. Is there a setting I need to ajust? Thanks in advance. Phil

  • No ringback from cisco ip phones to alcatel Phones

    I have a CUCM 7.1.3 integrated with a Alcatel OXO PBX and when a try to place a call from cisco IP-Phones registered on CUCM to phones on PBX, I have no ringback,but  when a place a call from cisco IP-Phones registered on CUCM to PSTN using PBX as it