Problem Using FM HR_STRUCTURE_GET  to get manger's direct reportess.

Hi Experts ,
My requirement is to identify a Manager's Direct reportess.
These Reportees may or may not belong to the Same Org Unit as the manager.They can be in the Sub- Org Unit of the manager's Org Unit i.e Manager's reportees who themselves are manger's of Sub Org Unit.
First I am identifying the Manager's Org Unit from his PERNR using FM HR_STRUCTURE_GET given as :
CALL FUNCTION 'HR_STRUCTURE_GET'
    EXPORTING
      root_plvar       = '01'
      root_otype       = 'P'
      root_objid       = p_mnger
      begda            = p_date
      endda            = '20091231'
      pathid           = 'P-S-O'
    IMPORTING
      result_objects   = li_result_objects
Then I am Using the the Org Unit which I get in the above FM to get direct reportees using PATHID = MSSDIREC .
CALL FUNCTION 'HR_STRUCTURE_GET'
      EXPORTING
        root_plvar       = '01'
        root_otype       = 'O'
        root_objid       = lwa_result_objects-objid
        begda            = p_date
        endda            = '20091231'
        pathid           = 'MSSDIREC'
      IMPORTING
        result_objects   = li_result_objects
But in return I am not getting the Manger's direct reportees .
Please let me know what am i doing wrong .
OR is there any other way to identify the Manger's direct reportees . I only have the Manger's PERNR to start with.
Thanks

Hi Abhishek,
Try  this method if its comply your requirment. As you said you have manager employee number so call FM HR_INFOTYPE_READ.
You will get the postion of the employee. Then call FM HR_STRUC_GET pass the objid as wa_emp-plans and evalution path ORGA-P. Now loop at result internal table where level = '3' and otype = 'p' . You will get all the direct repotess of the manager.
Regards,
Sandeep Surisetti.

Similar Messages

  • When i try to open a pdf using int exp i get a message that it has encountered a problem and will cl

    when i try to open a pdf using int exp i get a message that it has encountered a problem and will close

    Internet explorer.  I have adobe reader and flash player which I uninstalled and reinstalled.  I tried another browser and the pdf's open so it is a problem with IE .Thanks for your comments.
    [private data removed]

  • When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message 'An error as occurred. Please try again later'. It has been this way for some weeks. I don't have this problem using Safari or Opera.

    When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message ‘An error as occurred. Please try again later’. It has been this way for some weeks. I don’t have this problem using Safari or Opera.

    I believe that our “Werbung problem” adds an additional second hyperlink to the pop-up window. This second link is activated whenever you trigger a saved hyperlink to a Mail.com site.
    I had the same problem and eliminated it by deleting all bookmarks, hyperlinks and automatic links that take firefox to a mail.com address. So I just deleted all bookmarks I had saved for mail.com. I also changed my home page link because it also went to my email at mail.com. I then did a warm boot, opened firefox and re-saved my bookmarks and homepage to the desired addresses. Good luck.

  • I don't want the 'chat' option. how can I disable it? I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?

    I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?

    Don't expect any wonders. If you use it heavily with multiple applications running at the same time, nobody can help you. It's physics: more usage => higher energy consumption.
    Here you can find some tips to reduce the battery consumption. My tip: close applications if you don't need them right now and reduce screen brightness.

  • Problems using java.xml.xpath - How to get values from DTMNodeList?

    Sorry for the waffle in the subject title, but I was unsure what to call it. I hope this thread is in the correct forum.
    I'm having problems using xpath to parse some data from an XML file. I am able to create an expression which obtains the elements I wish to retreive, but I'm unsure on how to go about getting their values. So far I have..
    public int getTerms(int PMID)
              String uri = "http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id="
                           + PMID + "&retmode=xml";
              // Create an XPath object with the XPathFactory class
              XPathFactory factory = XPathFactory.newInstance();
              XPath xPath = factory.newXPath();
              // Define an InputSource for the XML article
              InputSource inputSource = new InputSource(uri);
              // Create the expression
              String expression = "/PubmedArticleSet/PubmedArticle/MedlineCitation/MeshHeadingList/MeshHeading/DescriptorName";
              // Use this expression to obtain a NodeSet of all the MeSH Headings for the article
              try
                   DTMNodeList nodes = (DTMNodeList) xPath.evaluate(expression,
                         inputSource, XPathConstants.NODESET);
                   int length = nodes.getLength();
                   String[] terms = new String[length];
                   // Test mesh terms are being stored.
                    *for (int i=0; i<length; i++)*
    *                    System.out.println(i + ": " + nodes.item(i).getNodeValue());*
                                                    return nodes.getLength();
              catch (XPathExpressionException e2)
              { System.out.println("Article with PMID " + PMID + " has no associated MeSH terms");}
              // return a default
              return 0;
         } The part in bold is the problematic code. I wish to retreive the values of each of the nodes I have taken into my DTMNodeList using a for loop to iterate through each node, and use the getNodeValue() method from the Node class which should return a string. However, the values I retreive are NULL. In the test document I use, the elements do have values.
    Here is a snippet of the XML file I am reading in:
    <MeshHeadingList>
      <MeshHeading>
      <DescriptorName MajorTopicYN="N">Binding Sites</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Chromatium</DescriptorName>
      <QualifierName MajorTopicYN="Y">enzymology</QualifierName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="Y">Cytochrome c Group</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Electron Spin Resonance Spectroscopy</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Flavins</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Heme</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Hydrogen-Ion Concentration</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Iron</DescriptorName>
      <QualifierName MajorTopicYN="N">analysis</QualifierName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Magnetics</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Oxidation-Reduction</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Protein Binding</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Protein Conformation</DescriptorName>
      </MeshHeading>
    - <MeshHeading>
      <DescriptorName MajorTopicYN="N">Temperature</DescriptorName>
      </MeshHeading>
      </MeshHeadingList>Any help would be appreciated.. thanks :-)

    Answered my own question....
    The element value is actually the child of the node I am current at, so instead of doing:
    i + ": " + nodes.item(i).getNodeValue()); I should have really done:
    i + ": " + nodes.item(i).getChildNode().getNodeValue());

  • I purchased a Shakira movie (HD). I watch it OK in my PC, but when trying to watch it in my TV using Apple TV I get an endless rolling wheel. I can watch other Apple Store movies with no problem. Any ideas of what's going on?

    I purchased a Shakira movie (HD). I watch it OK in my PC, but when trying to watch it in my TV using Apple TV I get an endless rolling wheel. I can watch other Apple Store movies with no problem. Any idea of what's going on?

    Welcome to the Apple Community.
    Try repopulating iTunes with the problematic files.

  • When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    Hi chasore,
    Are you still facing this issue?
    Is this issue happening with all the documents you have. If yes, i would suggest try uninstall and reinstall. Or if the documents are located on some shared drive try to copy them on local machine and test again.
    Regards,
    Ajlan Huda.

  • Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Problems using GET method in JSP

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET method in JSP?
    If anyone have solutions, please let me know.
    thanks.

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in
    windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is
    good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET
    method in JSP?
    If anyone have solutions, please let me know.
    thanks.This problem appears, when one use UTF-16 encoding in JSP - am I right?
    If so there are two solutions:
    1) Temporary: Use "UTF-8" - or any other 8 bit encoding scheme and
    encode Korean symbols with "&1234;" kind of escapes - though it
    may not work
    2) Absolute: get my piece of code, which I have managed to write
    just a month ago resolving absolutely similar problem with UTF-16
    in code using Chinese/Russian/English encodings
    But I wouldn't say that it's costs 10 DDs :) - it's much more
    expensive... So try 1st variant if it wouldn't help - let me know.
    I'll figure :)
    Paul

  • Hi Guys, I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader, What is the problem here so I can get Pictures onto my Computer. ,

    Hi Guys,
    I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader,
    What is the problem here so I can get Pictures onto my Computer. ,

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

  • Whenever I use facebook I'm getting this error message [Java Script Application] Error: options is undefined whenever I click on a link. What can I do to fix this problem? Easy step by step instructions please.

    When I use facebook, I keep getting this message [Java Script Application] Error: options is undefined whenever I try to return something, click on a link, or message, open a game, etc. ... I have Windows 7, addons of greasemonkey and better facebook (which seems to have disappeared)
    == URL of affected sites ==
    http://www.facebook.com/reqs.php#!/?ref=home

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    Hi Tom
    On my machine it seems that the fi ligature doesn't exist with Times New Roman (installed version is 5.01.3x)
    It's available in Warnock Pro but the st one which is designed in Warnock doesn't apply.
    This last screenshot was made from Linotype Explore, the old free version.
    Typography isn't really easy, even with modern tools
    Yvan KOENIG (VALLAURIS, France) lundi 6 juin 2011 14:53:01
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    When clips won't play without rendering in the Timeline, it usually means that the clip's specs don't match the Sequence settings.
    A .mov file could be made from any number of codecs; the QuickTime Movie designation is merely a container for video files of all kinds.  Since FCE only works with the QuickTime DV codec and the Apple Intermediate Codec (AIC) natively, if your mov files aren't one of those two, you need to convert them PRIOR to importing into your FCE project.
    -DH

  • I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyon

    I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyone advise?

    Hi Siobhan ,
    Please refer to the following link and see if that helps.
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I would also like to know ,does that error message has any specific number ?
    Regards
    Sukrit Dhingra

  • I am having problems using my Apple TV. I get a message saying incorrect user id or password, but I am able to sign in everywhere else. Any suggestions? Thanks.

    I am having problems using my Apple tv with home sharing. I continuously get a message that my user name or password is incorrect, but it works on other devices. Any help would be greatly appreciated.

    Unpower it.  If it still  happens on a restart give it time - Apple's servers sometimes have glitches.

Maybe you are looking for

  • HT1222 I have a Bose Sound link which no longer connects to iTunes for 64 bit, what to do?

    I have just installed Windows 8.1 64 bit and then up graded iTunes to 64 bit but my Bose Sound Link (wifi)  will now not connect to my computer. 

  • Cisco WAAS MIB for CPU AND MEMORY

    Hi, I am looking to query Cisco WAAS WAVE and SRE device for basic stuff cpu, memory, interface. I managed to get the CPU stats via SNMP using HOST-RESOURCES-MIB, however i cannot use the memory usage utilisation. Can you please help. Furthermore, I

  • Mixed application server environment with z/OS

    Hello, I'm looking for more information from SAP when running a system in a mixed application server platform environment.   In other words, the system would look like the following: 1.  Central instance (only MS and EN processes -  i.e. standalone e

  • Animation preset is showing but the drop menu for it isn't?

    When I choose fractal noise the animation preset is showing, but when I click on the drop menu for it to select curtain, no options show at all. The only options that show are "None" and "Save Selected Effects As Animation Preset." Can someone help m

  • Windows 8.1 Easy Transport

    I want to transfer files from my Windows 7 PC to my Windows 8.1 laptop. Both are connected to the same ISP's router. The ISP only allows IPv4 addresses. Using Windows 7, I start Windows Easy Transfer and ask for a network transfer and select 'This is