Get Manager - SWX_GET_MANAGER

Hello
I'm using SWX_GET_MANAGER FM to determine the Manager in the workflow but I'm using this in another report too. I'm sending to FM the employee user but I need to send PERNR. Is this possible with this FM?
Thanks!

Hi,
You can send
AC_CONTAINER-ELEMENT = 'OBJID'.
AC_CONTAINER-ELEMLENGTH = '012'.
AC_CONTAINER-TYPE = 'C'.
AC_CONTAINER-VALUE = PERNR-PERNR.
APPEND AC_CONTAINER.
CLEAR AC_CONTAINER.
  AC_CONTAINER-ELEMENT = 'OTYPE'.
  AC_CONTAINER-ELEMLENGTH = '002'.
  AC_CONTAINER-TYPE = 'C'.
  AC_CONTAINER-VALUE = 'P'.
  APPEND AC_CONTAINER.
  CLEAR AC_CONTAINER.
    CALL FUNCTION 'SWX_GET_MANAGER'
      TABLES
        ACTOR_TAB    = ACTOR_TAB
        AC_CONTAINER = AC_CONTAINER
      EXCEPTIONS
        NOBODY_FOUND = 1
        OTHERS       = 2.
you can also use Macro SWC_SET_ELEMENT to populate AC_CONTAINER.
Regards,
Ramu N.

Similar Messages

  • How to get Manager id automatically when Employee Id is given.

    How to get Manager id automatically when Employee Id is given.
    1) I created a simple BO with two elements namely
        1.Employee Id
        2.Manager id
    How to get employee's first name and last name?
    And how will i get manager id  automatic when i click employee id in element field.
    Anbu.

    Have you tried to use "APPS.FND_CONCURRENT" API?
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • How to get manager's Email id in HR

    Hi Guys,
                  I am looking to find out manager's email id of an employee.
    I think if I get Manager PERNR I can get email from 0105.
    Thanks

    go to employee IT 0001 and take the position.
    go to HRP1001 table and look for B012 for that position.take that position value against B012 relationsship  and check A008 value which is the pernr for the manager.
    Thanks
    Bala Duvvuri

  • How to get managed server name  in Weblogic10.2 ?

    Hi
    I want to get managed server name from a cluster in a servlet or util project class whom that one is called by ?
    Do I have to implement any interface or I have to extends a class ? Please help me to resolved.
    Thanks

    Here is a snippet of code that I use in WL10 MP1 that works fine:
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    String managedServerName = null;
    InitialContext ctx = null;
    try {
    //fetch managed server name by accessing the
    //RuntimeServerMBean using the
    //MBeanServer interface
    ctx = new InitialContext();
    MBeanServer server = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
    ObjectName service = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
    managedServerName = (String) server.getAttribute(service, "ServerName");
    } catch (Exception ex) {
    //error occurred
    } finally {
    if (ctx != null) {
    try {
    ctx.close();
    } catch (Exception dontCare) {

  • Get Managed bean name while running tests.

    hi,
    while running web application,i can able get managed name.
    but how to get managed bean name while running unit tests.
    thanks
    siva

    public String getManagedBeanName() {
        String managedBeanName = null;
        HttpServletRequest request =
            (HttpServletRequest) FacesContext
                .getCurrentInstance()
                    .getExternalContext()
                        .getRequest();
        // lookup bean in request scope
        Enumeration requestAttributeNames = request.getAttributeNames();
        while (requestAttributeNames.hasMoreElements()) {
            String requestAttribute = (String) requestAttributeNames.nextElement();
            Object object = request.getAttribute(requestAttribute);
            if (object instanceof MyBean) {
                managedBeanName = requestAttribute;
                break;
        if (managedBeanName == null) {
            // lookup bean in session scope
            Enumeration sessionAttributeNames = request.getSession().getAttributeNames();
            while (sessionAttributeNames.hasMoreElements()) {
                String sessionAttribute = (String) sessionAttributeNames.nextElement();
                Object object = request.getSession().getAttribute(sessionAttribute);
                if (object instanceof MyBean) {
                    managedBeanName = sessionAttribute;
                    break;
        return managedBeanName;
    }Sorry, don't know other ways.

  • Get Managed Metadata (Taxonomy) ALL Lists with Columns and ALL Choice Lists with Columns VALUES programmatically

    Hi there,
    How to get Managed Metadata Lists  ALL Columns and ALL Choice Lists Columns that are used in the Site Collection programmatically please.
    Regards

    Hi sharepointaju,
    Managed Metadata list is a hidden list, that you can access it through
    http://siteurl/Lists/TaxonomyHiddenList/AllItems.aspx, then it is similar to other lists, you can use server or client code to interate each field in the list, show the the value for each item.
    For all choice list columns, I'm not clear what you mean in this situation, do you mean to get all choice columns in the site collection, if so, iterate site columns, and lists to get list fields, check whether it is a choice type field.
    This may be not your requirement, please provide more information how you want to get which value.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Lookup query to get Manager ID value on object form

    Hi ,
    I have created a Manager ID field on object form which is of type lookup field.
    Can any one please tell me that how can i write Lookup query to get Manager ID value on object form.
    Thanks in Advance

    I was looking for something like this today too.
    Here's what I came up with:
    SELECT fu.user_id, fu.employee_id, fu.user_guid, pe1.full_name, pe2.full_name SUPERVISOR, pe2.employee_id
    FROM fnd_user fu
    JOIN per_employees_x pe1 on pe1.employee_id = fu.employee_id
    JOIN per_employees_x pe2 on pe2.employee_id = pe1.supervisor_id
    WHERE fu.user_id = $(user_id)
    Edited by: user12232265 on Feb 24, 2010 3:20 PM

  • Get Manager attribute from AD 2003

    Guys, Is there anyway to retrieve the value of "manager" attribute for a specific user defined on Active directory (windows 2003), any example will be higly appreciated as i am trapped. Thank u

    If you know the user name you could simply just retrieve the "manager" attribute. For example:.....
    String userName = "CN=Albert Einstein,OU=Research,DC=antipodes,DC=com";
    // Create the initial directory context
    LdapContext ctx = new InitialLdapContext(env,null);
    // Retrieve all attributes of the requested object
    Attributes attrs = ctx.getAttributes(userName);
    // Print out some of the attributes
    System.out.println("DN: " + attrs.get("distinguishedName").get());
    System.out.println("Manager: " + attrs.get("manager").get());
    .....Alternatively if you are performing a search, again just specify the manager attribute in the list of attributes to be returned. ....
    //Specify the attributes to return
    String returnedAtts[]={"sn","givenName","mail","manager"};
    searchCtls.setReturningAttributes(returnedAtts);
    //Specify the search scope
    searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
    //specify the LDAP search filter
    String searchFilter = "(&(objectClass=user)(mail=*))";
    //Specify the Base for the search
    String searchBase = "DC=Antipodes,DC=Com";
    ....Note the corresponding backlink to the manager attribute is the directReports attribute.

  • Function Module to get Manager

    Hi Friends,
      Is there any function module available that gets the manager using PERNR? Can i use SWX_GET_MANAGER?
    Thanks in advance.
    Nathan.

    Hi,
       Thanks. I tried to use this FM. Couldnt get the manager using PERNR. If i use  US<userid> of an employee it works fine. I dont know the combination of values that i have to pass to the ac_container if i want to use PERNR.
    Eg, For US<userid>
    Element = ORG_OBJECT
    ELEMLENGTH = 025
    TYPE = C
    VALUE = US<userid>
    Similarly is there a way to get the manager passing PERNR to the value? Is there any other function module available that returns the manager given the PERNR?
    Thanks
    Nathan.

  • I don't get "Manage my Account" when I select the Sync tab, but if I try to create a new account it says my userid is already in use. How can I get my password & sync key?

    My OS is Windows 7 Home Premium.
    My Firefox version is 4.0.1.
    When I try to setup Firefox Sync, I get a choice of "Create a new account" or "Connect".
    The first tells me my email address is already in use, but selecting the Sync tab does not give me "Manage my Account."
    How can I find out my password and sync key?

    Hi Russ!
    Apparently you already configured your account but you don't have nor the key or the password. You can get the password in the [https://account.services.mozilla.com/forgot following link] but you would need the Sync Key to sync your device to the rest of your devices.
    If you don't have the Sync Key the best thing you can do is to reset it, by deleting the previous account and creating a new one with the same user. You can perform this tasks from your [https://account.services.mozilla.com/ account dashboard].

  • How to get Manager name of a particular BP/User from territory management

    Hi Guys,
    I want to retrieve the Manager name of a particular BP/User from territory management. The manager might be in any territory hierarchy level above the user.
    Please guide.
    Regards,
    Shaili

    Hi Shailip,
    Basically Territory hierarchy is customized based on client's business, from your reply if i understood properly i think your territory has 3 levels and 
    First level : District
    Second level: Area
    Third level: Branch
    when an employee at third level is passed, you need employees assigned to area and district levelwhich are above Branch(in your case managers)
    Solution:  Example
    First level : District - territory length(2 char)
    Second level: Area - - territory length(4 char)
    Third level: Branch- territory length(4 char)
    1. Read the territory hierarchy(which is customized to meet clients requirement) using function module
        CRM_TERRMAN_TERRLEVEL_READ ehich gives territory levels with territory length and territory offset
    2. pass employee(business partner number) to FM  CRM_TERRMAN_TERR_EMP_DETERMINE  and get the branch path id.
    3. Based on territory length for above levels drill down to Area's path id and District's path id and pass those path id's to
    FM CRM_TERRMAN_EMPLOYEE_DETERMINE  to get managers.
    Hope this helps.
    Thanks,
    Priyanka

  • Function module to get manager of a user

    hi,
    I am desparatly looking for a BAPI / RFC giving be a list of all directly managed subordinates of an user.
    using HCM_GET_ORGSTRUCTURE_AS_XML is great but since I do not have information about relationships, I can' tell for sure who is manager of whom. It gives me this (originally hex-encoded!) output:
    <Child>
         <Type>O</Type>
         <ID>50000172</ID>
         <Relation>B002</Relation>
         <RelationBeginDate>2005-07-21</RelationBeginDate>
         <RelationEndDate>9999-12-31</RelationEndDate>
         <Child>
          <Type>S</Type>
          <ID>50000173</ID>
          <Relation>B003</Relation>
          <RelationBeginDate>2005-07-21</RelationBeginDate>
          <RelationEndDate>9999-12-31</RelationEndDate>
          <Child>
           <Type>P</Type>
           <ID>00000026</ID>
           <Relation>A008</Relation>
           <RelationBeginDate>2005-07-22</RelationBeginDate>
           <RelationEndDate>9999-12-31</RelationEndDate>
          </Child>
         </Child>
         <Child>
          <Type>S</Type>
          <ID>50000300</ID>
          <Relation>B003</Relation>
          <RelationBeginDate>2005-08-08</RelationBeginDate>
          <RelationEndDate>9999-12-31</RelationEndDate>
          <Child>
           <Type>P</Type>
           <ID>00000043</ID>
           <Relation>A008</Relation>
           <RelationBeginDate>2005-08-01</RelationBeginDate>
           <RelationEndDate>9999-12-31</RelationEndDate>
           <Name>Fred Bloggs</Name>
           <BeginDate>2005-08-01</BeginDate>
           <EndDate>9999-12-31</EndDate>
           <AdditionalData>
            <Key>ORG_BEGDA</Key>
            <Value>2005-08-01</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_ENDDA</Key>
            <Value>9999-12-31</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_RTEXT</Key>
            <Value>Holder</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_SHORT</Key>
            <Value>Bloggs</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_STEXT</Key>
            <Value>Fred Bloggs</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_VBEGDA</Key>
            <Value>2005-08-01</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_VENDDA</Key>
            <Value>9999-12-31</Value>
           </AdditionalData>
           <AdditionalData>
            <Key>ORG_VPROZT</Key>
            <Value>100,00</Value>
           </AdditionalData>
          </Child>
         </Child>
    do you know of a RFC I can use for retrieving the direct
    subordinates of a user or -even better- to get a full, hierarchical representation of all subordinates? With the RFC above I can tell, who is a member of a certain organisational unit but not who the members linemanager is.
    Thanks alot.
    tobi

    Thanks Srinivas, indeed, that took me further, but what I am trying to achive is to put the cart before the horse:
    I need to get a list of all subordinates of a manager, the RH_STRUC_GET with  act_wegid = 'BOSSONLY' returns the manager of a organisational unit.
    I could assemble the information myself using RH_STRUC_GET and HCM_GET_ORGSTRUCTURE_AS_XML if the following assumtion is true:
    Is it true, that a manager of an Orgaisational unit is the linemanager of each other Person in this Org unit?
    Thanks alot
    tobi

  • How to get "manage formats" in yosemeti mail?

    Under "Format" in mail menu bar there is no such thing as manage custom formats, even though "help" says there is. What is missing from my mail program?
    I really don't like the way mail looks as it is now with Yosemite. I think there must be a way to change the way the "in" cells look, like I could do with Maverick.
    Any help would be appreciated. Thanks a bunch.

    In the mailbox list, below the word "MAILBOXES" and the standard mailboxes (Inbox, Drafts, Sent, Trash, & Junk), you should have some lines like "SMART MAILBOXES", "REMINDERS", "RSS", "ON MY MAC", and a line with the name of each of your mail accounts. Each of those lines may have subordinate lines indented below it, or they may be hidden. Before Lion, the top-level lines would have standard disclosure triangles to their left like folders, but Lion Mail removed that visual clue in favor of a word "Show" or "Hide" to the right that appears only when you mouse over it.
    The Gmail Spam folder you seek is two folders deep inside your Gmail account.
    Here's my Gmail account listing:
    It has 41 unread messages. If I hover my cursor over the oval with "41" in it, the oval shifts left and "Show" appears. If I click on "Show", I get this:
    If I click on the disclosure triangle left of the "[Gmail]" folder, voila!
    By the way, this intermediate "[Gmail]" folder is specific to Gmail, Google Apps mail sites, and other mail sites using Google's Gmail code, as is the All Mail folder. Other servers will have their own folder structure.

  • Weblogic Installation gets managed server of old installation

    Hi. In my CentOS I had a weblogic 10.3.3.0 with three managed servers, then I unistalled it, delete the folder of installation manually for the files that the uninstaller didn't erase and then I installed again weblogic (jdevstudio11113install.bin) with new managed servers and when I want to start them up it tells me that it doesn't exist that the only ones that exist are the old ones I had in the previous installation. So I assume they are in a hidden file that I had to remove or update with new managed servers, which sounds strange because that should be deleted during uninstall process. Anyway any hint would be highly appreciated. Greetings.

    From what I understand about your problem you have a domain - Admin server running on one physical machine and Managed server running on another physical machine, when stopping the Managed server its getting hung at suspending state, which in turn is causing Admin server slow down in response or hang.
              Please confirm on this how are you stopping and starting your managed server
              make sure that you do not use localhost when creating domains which spread across more than one physical machine.
              Make sure that your Adminserver & Managed server have address as hostname's of physical server instead of Localhost
              You should be starting / stopping Managed server something like this
              startManagedWeblogic.sh -url t3://AdminserverHostName:PortNo <servername>
              stopManagedWeblogic.sh -url t3://AdminserverHostName:PortNo <servername>
              Let me know if you still have the problem.
              Weblogic Consultant

  • How to get manager position via hrp1001?

    Hello
    lets say that i have worker number and i need is manager number.
    i think that via 4 selections i can get his boss.
    1st find position of work
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'P'
      and objid = '50000666' "
    and relat = 008
      and rsign = 'A'
      and sclas = 'S'.
    2nd find unit of position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid =  lv_sobid
    and relat = 003
      and rsign = 'A'
      and sclas = 'O'.
    3rd want to find manager of unit
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'O'
      and objid = 'lv_sobid'
      where otype = 'S'
      and objid =  lv_sobid
    and relat = ? // i thought 012 but it is giving me 2 actual positions
      and rsign = 'A'
      and sclas = 'S'.
    4th I want to find the worker of the manager position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid = lv_sobid
    and relat = ?
    and rsign = 'A'
      and sclas = 'P'.
    Thanks in advance
    Avner
    Moderator message: only one open thread per issue, please.
    Edited by: Thomas Zloch on Aug 22, 2011 10:05 AM

    Hi
    Use the Function Module : RH_GET_LEADER to get the Manager's Position.
    Go through the FM : RH_GET_LEADER documentation for more information.
    OR
    DATA: it_result LIKE swhactor OCCURS 0.
    DATA: wa_result LIKE swhactor.
    DATA: l_employee_position TYPE objid VALUE '20000022'.
    DATA: l_manager_position TYPE objid.
    CALL FUNCTION 'RH_STRUC_GET'
      EXPORTING
        act_otype              = 'S'
        act_objid              = l_employee_position "This is employee's position
        act_wegid              = 'A002'
      ACT_BEGDA              = SY-DATUM
      ACT_ENDDA              = SY-DATUM
       act_tdepth             = 2
    TABLES
       result_tab             = it_result. "This table will hold manager's position
    IF sy-subrc = 0.
      READ TABLE it_result INDEX 1 INTO wa_result.
      WRITE: wa_result-objid.
    ENDIF.
    Regards,
    Sree
    Edited by: Sreeram Kumar Madisetty on Aug 22, 2011 8:26 AM

Maybe you are looking for

  • Need Urgent Solution for error in presence webservice

    Hi Folks, I am new to ocsg , i got stuck with a serious problem I am working with presence web service As from documentation , i understood that watcher should subscribe with attrbiutes which he wants to look up for presence user's information , so i

  • [CS3] How to add multiple panels in a single FR

    Fellow Developers, I have tried every other way to try adding a 2nd panel definition to a single fr - no luck. Here is what I did. //================================================================================ // PanelList definition. //=========

  • HCI DS - DataFlow trigger on an event

    Hi, Is there any way to trigger scheduled DF in HCI based on some event or some flag? E.G. Data is extracted from BI, but we want schedules to run only when BI process chain is completed. BI team can generate any type of file or some status message b

  • Email feedback link in webhelp top nav bar, can it be done?

    RH8 HTML Hi all, I've been trying to add a button to the top nav in webhelp, I want the button to send an email back to me, with a specified subject line, and hopefully the url, or title of the topic the user is looking at. I want users to be ableto

  • How to upgrade Update rules to Transformations

    Hi   My is to Update/Upgrade UPDATE RULES to TRANSFORMATIONS   How can i do it in BI 7.0.   Is there any programe that will upgrade the update rules to transformations Thanks