HR Functions - To find Managers in a Organisation

Hello,
I'm trying to locate the best functions to use , to find managers in an Organisation.
Not sure if there is just one function or I need to use a few of them togather.
I could get the data using select statements - not sure if this is the best way of doing things.
Many Thanks

Hello
Here you go,
data : i_result type standard table of objec,
         wa_result type objec.
Call function 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = 'O'
ACT_OBJID = PA0001-ORGEH
ACT_WEGID = 'BOSSONLY'
ACT_PLVAR = '01'
ACT_BEGDA = '18000101'
ACT_ENDDA = '99991231'
IMPORTING
RESULT_OBJEC = I_RESULT.
Read table I_RESULT into WA_RESULT with key OTYPE = 'P'.
if sy-subrc = 0.
v_manager_name = WA_RESULT-STEXT.
endif.
The above logic will provide you with the name of the manager for the given organization coming for an employee from infotype 0001 i.e. the table PA0001 and fields ORGEH.
Hope this helps !
Kind Regards
Ranganath

Similar Messages

  • Function to find quantity of a material in Open sales Order in 4.5

    hi ,
    is there any function to find the total quantity of a material in open sales order for an input date in 4.5
    Regards

    I think you may find function <b>RV_BILLING_PRINT_VIEW</b> helpful. This is the function used by the standard SAP report <b>RVADIN01</b> to assemble all the information needed to print a Sales Order. The structure and table output by this function contain all the information in the header and line items of the Sales Order.
    To watch this function in action, set a break point on this function (line 1075 of RVADIN01 in my system) and print a Sales Order (SO).
    I use VF31 to print an arbitrary SO during testing.
    Your company may have altered the standard print configuration for sales orders in SAP. If so, you will need to note the output type of your test Sales Order in VF31 and use Transaction <b>V/83</b> to determine which program is being used to print that type of SO.

  • Write two functions to find the the number of elements in a linked list?

    I am trying to Write two functions to find the the number of elements in a linked list. One method using recursion and One method using a loop...
    //The linked List class is Represented here.
    public class lp {
    public int first;
    public lp rest;
    public lp(int first1, lp rest1)
    first = first1;
    rest = rest1;
    The program i wrote so far is
    import java.util.*;
    import linklist.lp;
    public class listCount{
    //loop function
    public static void show_list(lp list)
    int counter = 0;
    while(list != null)
    list = list.rest;
    counter++;
    System.out.println ("length computed with a loop:" + counter);
    //recursive function
    public static int recursive_count(lp list)
    if (list.first == null)
    return 0;
    else
    return recursive_count(list.rest) + 1;
    //main method
    public static void main (String args[])
    lp list1 = new lp(1, new lp(2, new lp(3, null)));
    show_list(list1);
    System.out.println("length computed with a recursion:" +
    recursive_count(list1));
    at the if (list.first == null) line i get the error " incomparable types:
    int and <nulltype>" I know this is a beginners error but please
    help...What should I do?

    byte, char, short, int, long, float, double, and boolean are primitives, not objects. They have no members, you cannot call methods on them, and they cannot be set to or compared with null.

  • I updated to 7.0.1 and my search function cannot find anything now

    I updated to 7.0.1 and my search function cannot find anything now

    Searching the email. When i type in the keywords, it looks like it's searching, but the results are always the same - nothing found. I've used this function many times daily, I have an enormous amount of emails saved. Thanks...

  • Function to find cost center for pernr

    hello,
    I looke for a function to find pernr's cost centeres from infotype 0027 (not from infotype 0001).
    Thanks in advance,
    Fariba

    Hi,
    why do you need FM for that
    you can select the data directly from PA0027.
    select * from PA0027 into X_0027 where pernr = pernr
                                      and begda ge date
                                      and endda le date.
    regards
    Vijay
    Message was edited by: Vijay Babu Dudla

  • Standard function to find alphabet in string?

    Is there a standard function to find alphabet in string?
    For example, a variable define as char (10),
    I need a function to find out if this variable contains alphabet.
    Any standard function there?

    hiii
    use following code
    data: wa_str(100) type c.
    data: wa_str1 type string.
    data: wa_str2 type string.
    data: wa_str3 type string.
    data: len type i.
    data: ofset type i.
    wa_str = 'ABCD435hjK'.
    len = strlen( wa_str ).
    TRANSLATE wa_str TO UPPER CASE.
    do.
      if ofset = len.
        exit.
      endif.
    if wa_str+ofset(1) co sy-abcde  .
          concatenate wa_str2 wa_str+ofset(1) into wa_str2.
    else.
        concatenate wa_str3 wa_str+ofset(1) into wa_str3.
      endif.
      ofset = ofset + 1.
    enddo.
    write:/ wa_str.
    write:/ 'alphabatic char', 20 wa_str2.
    here TRANSLATE wa_str TO UPPER CASE.
    statement have added .i hope this will solve your problem.
    regards
    twinkal

  • HT201303 It appeared that the seller didn't disconnect function to find my iPhone and now I can make nothing with phone.

    I bought iphone 5c phone on Ebay, the seller in the description specified that phone is completely cleared and ready to work. It appeared that the seller didn't disconnect function to find my iPhone and now I can make nothing with phone. I have an invoice about purchase, I can provide the page of the transaction and screenshots from phone.
    I appealed to the seller to remove this device from the iCloud at distance, but he at all doesn't wish me to understand and speaks only about phone return, and it categorically doesn't suit me now.

    hexonxonx wrote:
    I stand by statement that the iPhone is likely stolen
    Whoopsie!
    Another reason: You said he doesn't understand that find my iPhone is activated. If the phone was originally his, he would have known what it was since he had to turn on find my iPhone to begin with.
    Doens't mean they know what FindMyiPhone is or that they even activated it.
    Many (most?)  users simply click thru without reading anything and don't have a clue what they are clicking on.

  • I would like to print a four sided programme, but am having trouble finding out how to organise the sections onto a 17  by 11 paper with the sections in the right order. Any help?

    I would like to print a four sided programme, but am having trouble finding out how to organise the sections onto a 17  by 11 paper with the sections in the right order. Any help?

    If all you are going to do is print double sided and them make
    a single fold reducing the page to 8 1/2 x 11, one side of the
    original 17 x 11 page will be page 4 on the left as you hold
    the page facing you and page 1 on the right, reverse side
    should be printed so top is same as top on the the first side
    and will be page 2 to the left and page 3 to the right. Pick
    up the double sided document with pages 2 and 3 facing you, fold
    left edge to meet right edge; you should now have fold on the left
    with page 1 facing up toward you, turn the page as you normally
    would and pages 2 & 3 should be in order, and one more turn brings
    you to page 4 and the fold should know be on the right. I hope this
    explains clearly enough - if not, post back and some one should
    join in with a better explanation.

  • Function to find the greatest of two numbers

    Hi All
    In the rtf template, is there any function to find the greatest between two numbers?
    Please help
    Thanks in Advance

    Just like SQL, use the GREATEST function. List of comparable SQL functions is shown on or about page 9-30 of user guide (depends on which version you have). Search on GREATEST and you'll find it.

  • When I use the function of "finding keyword", the word would be shown in green. Can I set the colour by myself?

    When I use the function of "finding keyword"(ctrl+f), the keyword would be shown in green. I want to change the highlighted colour to be blue. Is there any function to change the colour?

    See '''''cor-el's''''' answer in this thread: https://support.mozilla.com/en-US/questions/900541
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Oracle sql function to find VARCHAR2 data is numeric

    Hi Everyone,
    Is there oracle sql function to find whether the VARCHAR2 data is numeric?
    Thanks

    hi,
    see the below example .
    with t as
    (select '12'  as col from dual union all
    select '1 2'  as col from dual union all
    select '2 1 3'  as col from dual union all
    select 'abcde'  as col from dual union all
    select '12345'  as col from dual union all
    select '1a4A5'  as col from dual union all
    select '12a45'  as col from dual union all
    select '12aBC'  as col from dual union all
    select '12abc'  as col from dual union all
    select '12ab5'  as col from dual union all
    select '12aa5'  as col from dual union all
    select '12AB5'  as col from dual union all
    select 'ABCDE'  as col from dual union all
    select '123-5'  as col from dual union all
    select '12.45'  as col from dual union all
    select '1a4b5'  as col from dual union all
    select '1 3 5'  as col from dual union all
    select '1  45'  as col from dual union all
    select '1   5'  as col from dual union all
    select 'a  b  c  d'  as col from dual union all
    select 'a b  c   d    e'  as col from dual union all
    select 'a              e'  as col from dual union all
    select 'Steven'  as col from dual union all
    select 'Stephen'  as col from dual union all
    select '111.222.3333'  as col from dual union all
    select '222.333.4444'  as col from dual union all
    select '333.444.5555'  as col from dual union all
    select 'abcdefabcdefabcxyz'  as col from dual union all
    select 'aaa'  as col from dual union all
    select 'ddd'  as col from dual union all
    select 'ccc'  as col from dual union all
    select 'aaaaa'  as col from dual union all
    select 'aaaaaaaa'  as col from dual
    select * from t where regexp_like(col,'[1-9]')
    Result
    COL
    12
    1 2
    2 1 3
    12345
    1a4A5
    12a45
    12aBC
    12abc
    12ab5
    12aa5
    12AB5
    123-5
    12.45
    1a4b5
    1 3 5
    1  45
    1   5
    111.222.3333
    222.333.4444
    333.444.5555Thanks,
    P Prakash

  • Function for finding first day of the month !!

    Hi,
    I know we have function to find the last day(DD) of the month. Do we have any functions for finding the first day of the month ??? if not is there any way i can find the first date(DD) of the month .
    Bcoz i m trying to incorporate the logic for finding the first day of the month partition.
    Thank you!!!

    Shahid Ali Tcs wrote:
    There are many solution given by member in relation with your question, and all are correct .
    I want to make u know something else.
    Have you ever think why oracle has given function for last_day but no function for first.....
    I u think this question u will get the answer of your "first day finding " question.
    Because first day is alwasy 01 of every, while last day can be 30,31,29,28.....
    Got my words ........
    One more solution from my side,,,,
    SQL> select '01' || to_char(sysdate,'-MON-YY') from dual;
    '01'||TO_
    01-SEP-09Which is a completely poor way of doing it.
    Using TRUNC or LAST_DAY(..) + 1 will return a DATE datatype result.
    Your method is converting the DATE into a VARCHAR2, which then prevents further processing/date based calculations unless it is explicitly converted back to a DATE again.
    The reason Oracle hasn't provided a FIRST_DAY is because the TRUNC function already caters for it as this works with DATE's as well as NUMBER's, not because the first day is always 1.

  • How do I find out the puchasing organisation

    Hi,
    How do i find out one of the employee in purchasing organisation assigned to which purchasing organisation in the company.

    Dear Yash,
    I hope you want to say that how you will know that which buyer ( A purchasing officer/Purchasing group in SAP) is assigned to which Purchasing organization.
    If i am right then  please note that  in SAP we are not assigning any Buyer   ( Purchasing Group) to purchasing organization.Its free floating component in SAP.
    So you cannot find this in system
    If useful reward points or revert back.
    Vivek Maitra

  • How to get the search function to find the correct files

    i have long wondered if it was me or the system, but i am very clear finally that the search function *****.
    1) i try to find a word in a document.
    2) the system shows me several possibilities. chapters 16, 18, 21, etc...
    3) i then bring up each one individually and search each one. some of them DON'T EVEN HAVE THE WORD OR PHRASE IN THEM THAT I AM SEARCHING FOR. what's THAT all about?
    4) so i look at my real life book or search on the web. voila! there it is. chapter 14.
    5) i try again. both finder search and spotlight. NEITHER SHOW ME THE CORRECT DOCUMENT. neither shows me chapter 14. they still show 16, 18, 21, etc.
    this has always been VERY mysterious.
    it has happened hundreds of times over the years.
    i am VERY clear now it is NOT me and it IS the system.
    what use is it to get a list of documents that do not have the correct criteria and NOT get the document that has the correct criteria?
    is leopard as sucky?

    thanks for your response.
    perhaps you don't use it as much as i do?
    i have been cursing this search feature for years.
    i often try to find exact words in a particular book
    that i have on my computer as .doc files.
    and it often does not find what i want and it often
    finds what i do not want. so i am very confused.
    i went to system preferences. opened spotlight.
    there is nothing listed under 'don't search here'...
    and i have only a few things listed under 'search here.
    i do not understand how that link could help my
    problem.
    when i search for the word inside a document or
    inside a pdf, the programs find the word. but
    finder/spotlight does not find it.
    i still need more help.
    and thanks for your response.

  • Function in finding the count of ocurrances of an XML tag in j developer

    Hi All,
    I need to find the count of an xml tag that appears mutliple times in an xml payload.
    I did not find any function in bpel doing this.I am using j developer version 11.1.1.5.0 and SOA Composite editor version  11.1.1.5.0.01.74
    Is there any function in Bpel that gives as the count of occurence of an element in a payload?
    Kindy suggest me on this.

    The below function is used inside XSLT to count the nodeset
    count(inputNodeSet as node-set)
    Returns the number of nodes in inputNodeSet.
    Thanks,
    Vijay

Maybe you are looking for

  • I cannot connect to the iTunes store.  I'm running on Windows XP.

    When I try to connect to the store, I do not receive an error message, but I cannot connect. I've run the diagnostics, and it reports that iTunes "cannot establish a secure link." When I click on the "Help" button, I get nowhere.  It says that I am n

  • Followup doc Service Contr of Doc Type ZZB from Service Contra of Doc ZZA

    Hi Expert I want to create Followup document  Service Contract of Document Type ZZB from Service Contract with Document   type ZZA I maintained all copy controls but i am not getting the Service COntract Type ZZB in the Follow up document from ZZA If

  • Nested Line Style affecting my GREP style

    Hello all. I'm formatting a large book at the moment and am trying out a "runt fixer" to prevent bad sentence breaks in columns. So far I have created a character style that only applies the "no-break" attribute, and have two GREP styles - one lookin

  • Installing windows 7 on macbook

    Hi, I have a Macbook 2.16 Ghz with 2 GB ram, snow leopard and am trying to install windows 7 64 bit on it. I downloaded the .iso file on a friend's PC from a microsoft website because my school gets the software for free. I then burned the .iso file

  • ITunes U and epub

    On different devices (ipad and iphone) I cannot download epub file from different iTunesU channels (and by iTunes App). I've installed ibooks app and if I send an epub file via mail I can open it. What can be the problem?