How to get assigned persons

Hi Friends,
How can i get assigned persons.
If i provide superior ( user id OR Name OR personnel number ) i need to get all persons under that superior.
Is there any BAPI or Function module or any standard report.
And let me know the parameters also.
Thanks,
Kumar.

Hello,
I was able to get the logic to get the assigned persons using the table HRP1001. The below is the assumed logic (small modifications may be necessary).
First the PERNR of A is to be found out(if only name of userid is available) from the table PA0105. Once the PERNR is available, get the position of A using the following code.
SELECT SINGLE SOBID INTO V_SOBID
                FROM HRP1001
                WHERE OTYPE EQ 'P'
                AND OBJID EQ OBJID
                AND PLVAR EQ '01'
                AND RSIGN EQ 'B'
                AND RELAT EQ '008'
               AND BEGDA LE DATUM
               AND ENDDA GE DATUM
               AND SCLAS EQ 'S'.
Now get the subordinate positions who are one level under him using the below code.
SELECT OBJID INTO TABLE I_OBJID
                        FROM HRP1001
                        WHERE OTYPE EQ 'S'
                        AND PLVAR EQ '01'
                        AND RSIGN EQ 'A'
                        AND RELAT EQ '002'
                        AND BEGDA LE DATUM
                        AND ENDDA GE DATUM
                       AND SCLAS EQ 'S'
                       AND SOBID EQ V_SOBID.
Now get the pernr of the subordinate positions
  SELECT SINGLE SOBID INTO SOBID
                                       FROM HRP1001
                                      WHERE OTYPE EQ 'S'
                                      AND OBJID EQ OBJID  è from I_OBJID
                                      AND PLVAR EQ '01'
                                      AND RSIGN EQ 'A'
                                     AND RELAT EQ '008'
                                     AND BEGDA LE DATUM
                                     AND ENDDA GE DATUM
                                     AND SCLAS EQ 'P'.
The userid's can be obtained from the table PA0105.
Hope this will help.
Regards,
Sam

Similar Messages

  • How to get Assignment id in SSHR page

    1.
    I am trying to create a Self-Service page. To do it I need to get assignment id of the person logged into the sshr appliccation.
    I searched for sshrparams and found your thread that says it worked in 11i (11.5.10.2) so I am trying to make your code work in 11.5.10.2 , having problems.
    The problem i am having is
    OAApplicationModule am = pageContext.getApplicationModule(OAWebBean);
    OADBTransaction oadbtransaction = am.getOADBTransaction();
    get OADBTransaction() is seems to be absoleted.Is there any alternative way of getting that info from somewhere.
    I have added a custom library abmapps.zip ($abm_top/jar folder), I am not sure where to get apps.zip I could not find it in $JAVA_TOP folder.
    What I am thinking is I may not be using right .zip or do you think missing some patches since I can not see apps.zip in java_top?
    Please help.
    karan

    Follow the reply on the original thread Re: SSHRParams in R12
    As it is a similar issue, lets track it there itself.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                   

  • How to get the Personal Number from Address Number

    Hi,
    I have one requirement which is as follows.
    I have one Customer. I am fetching Address Number(ADRNR) of this customer number from table KNA1.
    I want to find the Personal number linked to this Address number and Customer.
    Is there is any table or FM from where i will get the Personal number of the Customer using Customer number and Address number?
    Kindly Help

    Hi Sachin,
    Check this FM BUP_PARTNER_PERSNUMBER_GET
    " Check KNB1 and the Field name is PERNR, Most of the times this is not maintianed.
    " This refers to the Employees who are assigned as Customers
    " In XD03 go to the Company Code Data there you can find this Value
    " For more info contact your Functional Consultant
    " This is to the Best of my knowledge
    Also Check KNB1 but000 Tables
    Cheerz
    Ram

  • How to get the personal folder size

    Hi,
    I'm trying to develop a method for define the maximum size of personal documents folder. I'm changing the Upload Command, and I want to know if its possible to get the current size of the personal documents folder for the user that is trying to upload the document.
    For this moment, I've got the current UserID, and I have created an RID with the path "userhome/UserID/Personal Documents", but now I don't know how to get the size of this folder!!!!
    Thanks to all.
    Arnau Rovira

    Originally Posted by NanLau
    Hi,
    Does anyone know how to get the current size of Mailbox and Archive by using GW api?
    Can anyone answer this? Thanks.

  • HR - How to get External person first name

    Hi ,
    Can anyone tell me how to get the first name for external person (otype = H) ?
    I can get the full name from HRP1000-STEXT but I need to get the first name.
    Any FM/Piece of code is there for this ?
    Thanks in advance.
    Regards,
    Sandip.
    Ph:+44 121 683 2814.

    Hi,
    Please chech the tyhe table <b>PA0001</b> if it helps.
    It has the field SNAME that contains the description
    "Employee's Name (Sortable by LAST NAME FIRST NAME)"
    This may help you to find the First name.This also has the field <b>OTYPE</b> but not a primary key.
    Please reward points if you find this explanation useful.
    Regards,
    Siva

  • How to get the Personas Rotator add-on to work with new Firefox themes?

    Before Firefox changed from personas to themes, the Personas Rotator add-on automatically switched personas at a set interval (ie. every 1 minute). I presently have Firefox 12.0 installed as well as the latest versions of both Personas Plus and Personas Rotator but the rotator does not work.
    Before it was necessary to sign into My Favorites for the add-on to rotate my favorite personas, but now when I sign in, there is no rotation. Only one persona/theme that is enabled stays on the screen. There is no automatic rotation.
    Private browsing mode is not selected. How can I get Personas Rotator to work again? Thank you.

    Good news! The Personas Rotator is now working again and switching personas automatically at 1 minute intervals.
    It began working again after I went to the 'Appearance' tab under 'Add-ons' and removed all the personas listed there (these are ones I 'Added to Firefox' from My Favorites list which is accessed after signing in to the gallery).
    But now I see that the personas that are presently being rotated are appearing in the 'Appearance' tab as well. I wonder if it will be necessary to 'remove' all these later to have them rotate again. Will post an update later for anyone having this same problem.

  • How to get a person's photo into the column of messages in Mail?

    I succeeded many months ago in getting a photo of three people to be attached to their outgoing and incoming messages (in that list of messages that is to the right of the sidebar) but have forgotten how to do it (there is nothing in the help). Like this:
    I now want to try again. The photos involved are in my address book. How to do, please.

    no answer!

  • HT3867 I'm travelling to Japan and wondering how to get a personal hot spot?

    When travelling in Japan I would like to have a secure hot spot for my IPad 2 and Celluylar for my IPhone 5s  Any Suggestions?

    Personal Hotspot is a feature of the iPhone and cellular versions of the iPad.
    If you need to have cell access and a functionla mobile wifi hotspot for your iPad ask your carrier about plans for your iPhone that include Personal Hotspot. 

  • How to get node's JMX port?

    How to get assigned node's JMX agent port from admin node in weblogic 9.2.2 clustered env?

    1 Get an mbeanserverconnection
    * http://e-docs.bea.com/wls/docs92/jmx/accessWLS.html
    2 Use this connection to lookup the listen port:
    ObjectName service = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
    ObjectName serverConfiguration = (ObjectName) connection.getAttribute(service, "ServerConfiguration");
    int port = Integer.parseInt(connection.getAttribute(serverConfiguration,"ListenPort").toString());
    I hope this helps

  • For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    contact itunes support

  • How to get group key from a task assignment adapter

    Hi All,
    Senario:
    I have two groups, say G1 and G2.
    One Access policy, say P. (This access policy is associated with AD resource.)
    AD Resource Object R.
    I have defined an Approval process for Resource R.
    Access policy P is assigned to both Group G1 and G2.
    This Access Policy P is linked to Resource R
    According to above configuration,
    When I add User U1 to Group G1 ( or G2 ) through "Group Membership", Access Policy P is executed and the approval process which associate with the Resource R is executed.
    In my Approval process, I have a task assignment adapter.
    Within my adapter, I want to get the group key, which cause to fires this approval process. ( It may be G1's key or G2's key. )
    Could some one help me for this ?
    Regards,
    Thirlk
    Edited by: thirlk on Jun 28, 2009 10:55 PM

    See this thread
    Working on the same requirement.
    How to get the administrator group of a group from a approval process
    If you have any further question let me know.

  • How to get no.of persons who visited a particular website

    hi can u send me a program on how to get the no.of persons who visited a particular website..and is it possible to retrieve it..??? plz let me know

    You mean you want to be able to get the # of visitors to your web site? There's plenty of web server log parsers out there to get stats or simple page counters.
    If you mean you want to be able to get the # of visitors to any web site, then you can't... not without some serious hacking, which last I checked would be illegal in most places. Unless the site owner publishes the info for some reason.

  • I have a iPhone 4 and all of a sudden when I answer a phone call the person on the other end can't hear me ???? I can hear them , so I've had to put it on speaker for all my calls - ? Any tips on how to get it back to being able to speak normally

    I have a iPhone 4 and all of a sudden when I answer a phone call the person on the other end can't hear me ???? I can hear them , so I've had to put it on speaker for all my calls - ? Any tips on how to get it back to being able to speak normally

    Morning Lupoipia,
    Thanks for using Apple Support Communities.
    If you can't be heard by someone who is calling, take a look at this article:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Best of luck,
    Mario

  • How do I get my personal laptop to connect to my Personal Hotspot on my IPhone 4S after I downloaded IOS6? The laptop connected before I updated my phone. Now it does not.

    How do I get my personal laptop to connect to my Personal Hotspot on my IPhone 4S after I downloaded IOS6? The laptop connected before I updated my phone. Now it does not.

    http://support.apple.com/kb/TS2756
    http://support.apple.com/kb/index?page=search&src=support_site.home.search&local e=en_US&q=personal%20hotspot

  • How to get the value assigned in dropdowmlistbox as well as radio button

    Hi Everybody,
       Please help me to find the solution for the following:
       1. How to get the value assigned in dropdowmlistbox?
       2. How to get the value assigned in radio button?
      I am waiting for the answer and reply...
      Thanks & Regards,
      ShanthaKumar.KA.

    The radio button has a name attribute. That name attribute should be the same as the bean property. Then you just need a
    <jsp:setProperty name="mybean" property="*"/>
    and the bean's set method will be called for the value of that radio button.
    so...
    <input type="radio" name="doit"/>
    class MyBean
    public void setDoit( boolean yes )
    //do whatever here
    }

Maybe you are looking for