Get the superior for the manager of a position?

Hi experts,
I'm trying to solve this issue and I'm not sure how to go up in OM structure. I want to return the manager for a position given, this is ok, but when the manager position is vacant I have to go up in the structure and get the superior-superior of this position and if this position is vacant, I have to go up again in the structure, can anybody tell me if there is any function or any relationship for doing this? I was thinking in get the organizational unit for the position and then the position in which this organizational units belongs...is this correct?!
Thanks in advance,
Best Regards,
Rebeca

I have seen two ways this is done. One is using reports to (002) relation. Get the reports to relation
of the position to find the superior position of the manager and then find out its holder. Otherway
is find the org unit in which manager's position belongs to (003). Then find the org unit to which
this org unit belongs to. Find manager of that org unit.
It depends on how org management is done in the system.
Thanks,
Aravind

Similar Messages

  • BAPI to get the manager of a vacant postion

    Hi all,
    I have a requirement where i have to get the manager of the vacant position.Is there any BAPI or FM for the same?
    Regards
    Prathima

    Preeti
      Try CRM_ORDER_READ function module.
    Thanks
    Jack
    <b>Allot points if my post helps!!!</b>

  • Hot to get the manager

    Hi,
          I am working on HR ABAP. My requirement is to find the manager of a particular employee.
         I am very new to OM. Can any body explain the procedure how to get the manager of an employee.  
         Send the code also so that I can get some idea.
        Any valuable suggestions are appreciated.
    Regards,
    Ram

    hi,
    first get employee Organization unit from PA0001 table..........
    than pass than Org Unit to HRP1001 table....as object id with following info....
    object type = 'o',
    object id = org.unit
    Relationship = top to bottom
    Relat'Ship = Manager
    Ref.objType = Position
    Refobjid is ur required manager id.........
    Reward points if helpful,
    regards,
    Imran

  • How to Get the Job, Cost center, Position description using select query

    Hi all,
    How to get the  Job, Cost center, Position description through select query without using the Function module?
    thanks,
    Prasad

    use adhoq query and take the report chose both text and value

  • How to get the Manager Name

    Hi,
    I want to display the Manager name of the Employee on the termination Date.
    In case the immediate supervisor is not there i need to display the 1st level of supervisor and if this is also not maintained i need to find the top level manager of the employee.
    Please help me how to find out the manager of the employee with the above mentioned scenario.
    Thanks,
    Poonam

    HI Poonam,
    DATA: gd_pos TYPE HRP1000-objid,
    gt_LEADING_POS TYPE STANDARD TABLE OF HROBJECT WITH HEADER LINE,
    gt_p1001 TYPE STANDARD TABLE OF HRP1001 WITH HEADER LINE.
    *Assign the position to gd_pos.
    CALL FUNCTION 'RH_GET_LEADING_POSITION'
      EXPORTING
        PLVAR                   = '01'
        OTYPE                   = 'S'
        SOBID                   = gd_pos.
        DATE                    = SY-DATUM
      AUTH                    = 'X'
      BUFFER_MODE             = ' '
      CONSIDER_VAC_POS        = ' '
      TABLES
        LEADING_POS             = gt_LEADING_POS
    EXCEPTIONS
      NO_LEAD_POS_FOUND       = 1
      OTHERS                  = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'RH_GET_PERSONS_FROM_POSITION'
      EXPORTING
        PLVAR                    = '01'
        OTYPE                    = 'S'
        OBJID                    = gt_LEADING_POS-objid
        STATUS                   = '1'
        BEGDA                    = date
      NODE_KEY                 =
      MASSN                    =
      MASSG                    =
      CHANGETYPE               = 'S '
      OLD_JOB                  =
      OLD_JOB_ENDDA            =
      TABLES
        I1001                    = gt_p1001
      I77INT                   =
    EXCEPTIONS
      WRONG_OTYPE              = 1
      PLVAR_ERROR              = 2
      POSITION_NOT_FOUND       = 3
      ORGUNIT_NOT_FOUND        = 4
      INITIAL_GSVAL            = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    The manager emp no would be there in gt_p1001-objid.
    BR/Manas

  • In backflushing, how to get batch determination for IM managed components.

    Hello friends,
    During confirmation, in Goods Movements screen, we get auto batch determination for WM managed components (based on their control cycle record).  However, we are NOT getting auto batch determination for IM managed components.
    We have created batch selection/sort, and search strategy for Orders as well as Inventory Management.  We have also created condition records for the above IM managed components.  But still auto batch determination does not take place.
    Kindly help how to get auto batch determination of IM managed components during confirmation.  Thanks.
    - Chetan

    Hi Tajuddin, Prashob,
    I marked my query as "solved", but I need one clarification please:
    OSPX is a pre-requisite config to OPJ2.  In OSPX, we have selection for "sorting" by Item-Table, Price, & Quantity.  Can you please briefly explain how these 3 sorting is supposed to work ?  Thanks.
    - Chetan

  • How to onclick an image to get the image and change position?

    Hello,
    I'm trying to write a small card game for school project and I need help on this one thing. I woud like the user click on a card (image) get the image name and value and then change position by moving it up a little (a way of saying the user selected the card). Any idea?

    Lookup the UINavigationItem class. I think you'll need to replace the titleView with your own custom view that includes text and image. You can access this from the UIViewController: self.navigationItem.titleView.
    HTH,
    - Ryan

  • Installing the License Key for Solution Manager installation

    Hi,
    Any Idea how can I get License Key for solution manager installation? Solution manager installation do not requires a key of Solution Manager.
    When I want to download a new license file form the SAP market place.SAP I ask for a key of Solution Manager. 
    Thanks

    I guess it is hardware key. Go to the Tcode slicense and there you will be able to find out the active hardware key. Take it!!

  • Getting the mangement pack from an alert via C#

    Hello all,
    I have created a custom c# service that processes scom alerts to be able to integrate with our custom problem management system. I can filter on any alert property but now i need to add functionality to filter on management pack for which the rule or monitor
    created an alert.
    Powershell code is easy to find but c# examples to get the management pack from which the alert eminates is not to be found on the net. I also found the following PS code but the monitoringclassid on the alert is deprecated now. What should i use instead?
    $alert=Get-Alert -Id 'YOUR_GUID_FROM_SUBSCRIPTION'
    $class=Get-MonitoringClass -Id $alert.MonitoringClassId
    $MP=$class.GetManagementPack()
    Do any of you here have any experience in coding this sort of functionality? Can any of you help me out?
    Regards,
    Nathan

    This is the eventual c# code:
    ManagementPackClass
    mclass =
    AlertProcessing.mgGroup.EntityTypes.GetClass(alert.ClassId);
    mclass.GetManagementPack().Name;

  • How to get the Weblogic Server Id from within java code

    I would like to log which server (among a cluster) a certain job is running on. Is there a way to get the server id from within Java code (this code is in a session bean if that is relevant.)
    By server id I mean the "Name" column in the summary of servers on the weblogic console.
    Thanks,
    ken

    Use the two entries close to the bottom of the page: "list WebLogic
    MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean.jsp"
    Nils
    Anatoly wrote:
    >
    Cameron,
    That page has these items on it:
    which one do you think helps with my issue?
    Misc WebLogic examples
    LongRunningTask
    Execute tasks in parallel using WebLogic Execute Threads
    Weblogic stats (5.1)
    Reload Servlet(s) programmatically (5.1)
    Network classload from WebLogic:using reflection,or the launcher
    Weblogic 5.1 debugging properties
    Seppuku pattern readme
    Using dynamic proxies to intercept EJB invocations (6.1)
    list WebLogic MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean
    Thanks to Marcelo Caldas for filter by type option and nice UI!
    Using com.sun.jdmk.comm.HtmlAdaptorServer with WebLogic 6.1
    Cool
    EJBGen
    Dimitri
    back
    "Cameron Purdy" <[email protected]> wrote in message news:<3c7a745d$[email protected]>...
    JMX ... see http://dima.dhs.org/misc/ for some info on JMX in Weblogic.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Anatoly" <[email protected]> wrote in message
    news:[email protected]..
    Does anyone know who to get the managing server URL's port
    from within the EJB code running on Weblogic 6.1?
    The URL port is not default (not 7001), but when creating
    initial context, I am not specifying the URL in properties.
    Due to that, trying to the the PROVIDER_URL property from
    environment does not return anything.
    Appreciate any responses.
    -Anatoly
    ============================
    [email protected]

  • How can I get the cursor value from a waveform graph

     Is there a way to get the value of cursor position on the waveform graph so mathematical calculations be performed on those values. We can see the value in cursor legend, but can we extract those values for future calculations in the block diagram somehow.

    Right-click on the waveform graph icon.  Select Create>Property Node>Cursor>Cursor Position.  That spits out a a xy cluster for the current cursor position.
    If you have more than one cursor, you can either set up a loop and set the Active Cursor property node (right click the property node and select "Change to Write") or you can pull everything you ever wanted to know about every cursor with the Cursor List property node. 

  • How to retrieve the manager employee no

    Hi All,
                      I want to get the manager employee number of a particular employee. I have the employee no (PERNR) with me.I just want to know the manager of that pernr(employee).Is there any standard function module to find it out or any table where it will be stored.Plesae guide me.........
    Regards,
    Rakesh.

    Hi
    First use the RH_STRUC_GET Function Module by passting otype as P nad objid as Personnel number and wegid as B012,u will get the Manager's org details.
    Now call the RH_GET_LEADER fm to get the complete maneger details.
    Regards,
    Sreeram

  • Getting the position of a string???!! HELP

    Hi,
    Does anyone know how to get the beginning and ending position of a string in a JTextPane of in a document??

    No, I only want to select a single word! But how do I get the start and end position and then highlight it!??
    What is am really trying to do is to create an Editor! I want to have syntax highlighting, so if the user types a certain character, I make it a certain colour! My problem is that when I do this, I can make it a different colour but I still print it out in black. I want to be able to delete the character they type and replace it with the same character only a different colour!!
    Do you have any ideas?

  • Command line for credential manager

    can anyone help me in getting command line for credential manager ... ?
    Thanks,
    VRAGHU

    If there are a lot of them you could go to a command prompt and type:
    cmdkey /list
    Or better yet:  cmdkey /list > del_creds.cmd
    Then edit the file so you are only left with, for example:
        cmdkey /delete:info-services.dev-inside.lni.wa.gov
        cmdkey /delete:info-services.inside.lni.wa.gov
        cmdkey /delete:inside.lni.wa.gov
        cmdkey /delete:lnidaptumtfs08.wads.res
        cmdkey /delete:lniduttumvm05
        cmdkey /delete:lnipstum01.wads.res
        cmdkey /delete:lnipstum02.wads.res
        cmdkey /delete:lnixapolysrm1.wads.res
        cmdkey /delete:ohr.apps-inside.lni.wa.gov
        cmdkey /delete:portal.apps-inside.lni.wa.gov
        cmdkey /delete:portal.dev-inside.lni.wa.gov
        cmdkey /delete:scsd8.unit-test.wads.wa.gov
    then run your del_creds.cmd file and they will all be gone.
    Steven Shippee

  • How to get the user created when I prepare for the BD Identity Manager

    Hi I have a query, I need to get a backup database Identity Manager 9.1, I have a problem I do not remember user created to perform the backup, how can you know that I created when I made the installation of Identity Manager, or how can I find

    Hi,
    You can do this trick:
    1) Go to "Deployment Manager" in the Web Console, and open the EXPORT applet
    2) Export the User Defined Fields from the USR form. You don't need any dependence for this.
    3) Open the generated XML with a text editor.
    3) Search for the <SDK_SCHEMA> tag
    This tag contains the OIM schema name, wich shoud be your OIM database user.
    Hope it helps,

Maybe you are looking for

  • ALV_GRID How to get number of lines after filted applyed?

    Hi, all! The task is to display title in alv_grid like "N records selected (X records on the screen)". It means, N records in dataset and X records displayed after  filter applyed by user. But i can't get number of lines after filter applyed from the

  • How can i see my formatted document??

    Hi, I have this table CREATE TABLE ARCHAEOLDB( ID_DOC NUMBER(5) PRIMARY KEY, NOME_DOC VARCHAR2(200), FMT_DOC VARCHAR2(10) this is an example of my formatted document in my table.It has stored in my file system INSERT INTO archaeoldb VALUES(1,'Rapport

  • Run HD and VGA from the mac mini

    Hi, i am looking to run a HD signal and a a VGA adapter out of the mac mini but i was told you don't have dual adaptors to do this. It is either one signal or the other. Could you please help Thanks for taking the time to read this. Cheers Paul

  • Switching from internet network to printer network to print

    I have a Macbook Pro that I use and also a new Macbook that my grandparents use. We share an HP printer. I was wondering if there was a way to adjust snow leopard so that when i decide to print i don't have to go to the airport menu and change to my

  • After updating Macbook from OS 10.4 to 10.6.8 it only boots to windows xp not Mac OS

    After updating Macbook - Mac OS from 10.4 to 10.6.8 it only boots to windows xp even when selecting start up disk as Mac HD Even option C says select drive. Mac selected still goes straight to windows? Any suggestions?