How  to get overall Head of Organisation mode

Hi,
I need to find overall head of Organisation mode .
I have following scenario in SRM 5.0 .
User M1 & M2 directly assign to Purchase Organisation
Rest of users assign to urchasing Groups below purchasing Organisation
One Purchaseing Organisation ABC
|    |- Usr M1(Manager)
|    |- Usr M2
|
|-->Purchasing Group A1
    |- Usr A(Manager)
    |- Usr B
|-->Purchasing Group A2
    |- Usr C(Manager)
    |- Usr D
I need to get overall manager of <b>user D</b> which is <b>user M1</b>
I am using FM RH_GET_LEADING_POSITION by that I am getting manager : <b>User C</b>
Can anybody let me know how can I retrieve this ?
Thanks& Regards,
Sachin

Hi
<b>Please go through these links -></b>
FM for Head of Org Unit
Replace Function Module 'BBP_ORGUNIT_GET_EMPLOYEES'
<u>Other related Function modules -></u>
  CALL FUNCTION 'RH_STRUC_GET'
  CALL FUNCTION 'BBP_ORGUNIT_GET_EMPLOYEES'
Hope this will help.
Regards
- Atul

Similar Messages

  • How to get the header to downloading fine

    Hi,
    i am downloading xl file for which i need to get the header.i doesnt no the fieldnames.how to get the header for entire file.

    Hi,
    For this please create an internal table for field names and pass it to FM' WS_DOWNLOAD'.
    Sample code:
    * internal table for headers
    DATA : BEGIN OF it_fieldnames OCCURS 0,
           name(100),
           END OF it_fieldnames.
    g_fname = 'C:\Documents and Settings\kut3kor\Desktop\kar4.xls'.
    *populate the internal table
    it_fieldnames-name = 'Material Number'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material type'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material group'.
    APPEND it_fieldnames.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    *   BIN_FILESIZE                  = ' '
    *   CODEPAGE                      = ' '
       FILENAME                      = g_fname
       FILETYPE                      = 'DAT'
    *   MODE                          = ' '
    *   WK1_N_FORMAT                  = ' '
    *   WK1_N_SIZE                    = ' '
    *   WK1_T_FORMAT                  = ' '
    *   WK1_T_SIZE                    = ' '
    *   COL_SELECT                    = ' '
    *   COL_SELECTMASK                = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        data_tab                      = gt_mara[]
       FIELDNAMES                    = it_fieldnames[]
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_WRITE_ERROR              = 2
    *   INVALID_FILESIZE              = 3
    *   INVALID_TYPE                  = 4
    *   NO_BATCH                      = 5
    *   UNKNOWN_ERROR                 = 6
    *   INVALID_TABLE_WIDTH           = 7
    *   GUI_REFUSE_FILETRANSFER       = 8
    *   CUSTOMER_ERROR                = 9
    *   OTHERS                        = 10
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Karuna.

  • How to get out of full screen mode in Firefox 4?

    How to get out of "Full Screen Mode" in firefox 4 ?

    Pressing the F11 should do it.

  • How to get transacted session in direct mode with jmsra adapter

    Hi,
    I use MQ 4.4u1 release with GF in EMBEDDED mode. I configured several connection factories with NoTransaction/LocalTransaction/XATransaction support. In my app I get a connection factory from JNDI tree, create connection/session/producer and send several messages to queue. Everything works fine when I don't use transactions. But, when I want to send messages in one transaction, the connection always provided to me non-transacted session. The session created via
    Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
    request. I check the session transacted state and acknowledge mode right after i get it:
    log.fine("Session: " + session + "; transacted: " + session.getTransacted() + "; ackMode: " + session.getAcknowledgeMode());
    The log shows me that the session is not transacted and ackMode is 0 (DUPS_OK_ACKNOWLEDGE). If I try to commit the session after messages were sent I get the correct exception:
    javax.jms.IllegalStateException: MQJMSRA_DS4001: commit():Illegal for a non-transacted Session:sessionId=3361979872663370240
    Does anyone know how to get transactional session in direct mode?
    Thanks, Denis.

    I mentioned LOCAL because I misread your post and thought you were suggesting that LOCAL mode behaved differently.
    If you want to send messages in a transaction from within a Servlet then I think you're expected to use a UserTransaction: Here's an example that worked for me:
            Connection connection = outboundConnectionFactory.createConnection();
            Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
            userTransaction.begin();
            MessageProducer producer = session.createProducer(outboundQueue);
            int numberOfMessages = 10;
            for (int i = 0; i<numberOfMessages; i++) {
                Message message = session.createTextMessage("Hello world");
                producer.send(message);
            userTransaction.commit();
            connection.close();I obtained the UserTransaction with this resource declaration:
        @Resource(name = "java:comp/UserTransaction")
        private UserTransaction userTransaction;The EJB spec explicitly states that local transactions aren't supported in EJBs; I haven't found such an explicit statement for Servlets but suspect that JMSRA is taking the same approach.
    As for imq.jmsra.direct.disableCM property - this appears to disable connection pooling and from your post changes other behaviour as well. How did you find out about it (other than by examining the code)? As far as I can see this is not a documented feature and is not necessarily tested or supported.

  • How to get column header text in IWDTable

    Hi
    Just want to know how to get column header name in IWDTable.
    I know that you can get it with
    IWDAbstractTableColumn[] groupedColumns = table.getGroupedColumns();
    for (int i = 0; i < groupedColumns.length; i++) {
         IWDAbstractTableColumn column = groupedColumns<i>;
         column.getHeader().getText();
    But what if text isnt set on header level but its rendered from cellEditor  model binding (im not sure if its like that).

    Finally after your suggestion i did it with this code
    String header = column.getHeader().getText();
                       if ((header == null || header.length() == 0) && column instanceof IWDTableColumn){
                            IWDTableCellEditor tableCellEditor = ((IWDTableColumn) column).getTableCellEditor();
                            if (tableCellEditor instanceof IWDTextView){
                                 String bindingPath = ((IWDTextView)tableCellEditor).bindingOfText();
                                  StringTokenizer tokenizer = new StringTokenizer(bindingPath,".");
                                  String token = "";
                                  IWDNodeInfo nodeInfo = context.getNodeInfo();
                                  while (tokenizer.hasMoreTokens()){
                                       token = tokenizer.nextToken();
                                       if (tokenizer.hasMoreTokens()){
                                            nodeInfo = nodeInfo.getChild(token);          
                                  IWDAttributeInfo attribute = nodeInfo.getAttribute(token);
                                  ISimpleType simpleType = attribute.getSimpleType();
                                  simpleType.getDescription();
                                 header = simpleType.getDescription();

  • How to get PO header text in PO list

    Hi All,
    Please let me know how to get PO header text in PO list.
    Thanks,
    Ama

    Check this link for answer
    PO Header Text

  • How to get a Header UDF value in a FMS ?

    Hi !
    How is it possible to get a Header UDF value from a Formatted Search in a header ?  If we don't want to create as many FMS as there are marketing documents in the system, how is it possible ?  Can we have a syntax like the following ?
    SELECT T0.OnHand
    FROM OITW T0
    WHERE T0.ItemCode=$[$38.1.0]
    AND T0.WhsCode=$[$U_Nwr_WH.0.1]
    Thanks,
    Luce

    Hi Gordon,
    oh, I'm sorry, I did a mistake...
    In fact, my question is "How can we get a header UDF value in any FMS without specifying the table name?" !!!!!
    Can we access it through specific syntax like $ and [ ?
    thanks,
    Luce

  • How to get ipod out of recovery mode without losing media.

    i tryed to update my ipod on another computer and it put it in recovery mode.how do i get it out of recovery mode without losing media.

    If this program does not work then you will have to restore.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • How to get Iphone off of recovery mode

    Hi everyone!
    I'm in need of some help. My iphone 5s battery recetlenty died and I only charged it the next day. When I plugged it in, it showed the usual battery that is empty and red. I did'nt realize a problem until the screen turned white with que black apple on it. After that showed up, the screen just became black and I was unable to use my phone. I let it on the charger for a few hours and nothing changed. I then decided to plug it into my laptop. Once it appeared in itunes, something popped up saying that my iphone was on recovery mode. I'm not sure how to take it out of this mode, or even if it is possible. It told me to restore my iphone. Its has been doing an update for the past 2hrs. Can anyone please tell me what is happening and if it doesn't work is this problem covered on Apple Care? I've had this phone for a month and I'm not ready to pay another $700 to get a new one.
    Thank you anyone who is willing to give me a hand.

    Also, on itunes, it just told me I needed to do a software update which I just did 3hrs ago.

  • How to get ipad out of negitive mode

    Need help, how do i get ipad out of negitive mode?

    Try pressing the home button three times quickly.

  • How to get Z30 Out of Standby Mode

    Hello,
    Pleaced my Z30 on charge overnite and next morning could hear e-mails and could receive calls but had no access to screen as appears to be in sleep mode.
    How does one get device out of stanby mode.
    thanks

    if after doing that then possible your screen is faulty or the driver to it is
    You should contact place of purchase and start on warranty claim if less than 1 year old
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • How to get out of full screen mode in Firefox

    Have tried to get out of full screen mode by pressing F11 and f11 and esc but nothing works.  any suggestions?

    Shift-CMD-F toggles full screen off and on in Fx. Also, if you've put the Full Screen icon in the Firefox Toolbar, bring the mouse cursor up to the top of the screen. This will reveal the toolbar and you can click on the icon to return to normal.
    Get the icon from View>Toolbars>Customize. Drag it into the Toolbar somewhere.
    Message was edited by: WZZZ

  • ITunes: how to get out of "full screen" mode in Lion?

    running Lion for the first time - I hit some kind of a a wrong button on iTunes, and it went into some kind of goofy full screen mode.  How do I get it back to the original mode?

    You  must have tripped over the double-headed arrow symbol at the right end of the menu bar.  To get back, slide your cursor to the top of the screen to display the menu bar and slide right to the double-headed arrow (now enclosed in blue) at the right end of the menu bar.

  • How to get phone out of restore mode or atleast switch on if i do not want to update ?

    I was on a call when my cell went into restore mode. When i connected it with itunes, it offered restore with an update. i got a sucky connection so it's not able to get the download in one go. so the real problem here is, how do i start my phone or restore it without going for jailbreak ??
    And i was able to download the update from a site offering jailbreak. Now that update file is of the same size as that of the update being offered on the itunes so i assume its the same but when i press "shift+restore" and chose that file, itunes tries to verify this update file with apple and then shows "error 40", and then silently denies me the chance of using my phone. can i use that update file in anyway without hurting apple's feelings ?

    yasir856 wrote:
    That was of no help
    Exactly. Copied from my initial post:
    "Sorry, the terms of use here prohibit helping you..."

  • How to get multiple header lines dynamically and also data hierarchically using ALV

    Hi experts,
    My requirement is shown below.. I neet to compare prices of service RFQs. So i design as below..
    I want to get RFQ number ,Vendor code and vendor name in ALV header and also other headings which static. I think dynamic table is the best way to load RFQ numbers to header.. But problem is i'm unable to load two lines dynamically using ALV.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
         EXPORTING
           i_style_table             = 'X'
           it_fieldcatalog           = gt_dyn_fcat
         IMPORTING
           ep_table                  = gt_dyn_table
         EXCEPTIONS
           generate_subpool_dir_full = 1
           OTHERS                    = 2.
    I use this function and pass RFQ no and vendor code in two rows but it output gt_dyn_table in same row.. How to print them as given image???
    Then in data I want to get service items and according to the external service number divide them to groups and get sub totals and also finally total of all sub categories to compare each RFQs price to  compare.. There i think ALV hierarch can use. but not sure I can use with dynamic table(in header use it).
    What is thee best way to get the output in my image..??
    Thanks..
    Pavi

    Hi experts,
    My requirement is shown below.. I neet to compare prices of service RFQs. So i design as below..
    I want to get RFQ number ,Vendor code and vendor name in ALV header and also other headings which static. I think dynamic table is the best way to load RFQ numbers to header.. But problem is i'm unable to load two lines dynamically using ALV.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
         EXPORTING
           i_style_table             = 'X'
           it_fieldcatalog           = gt_dyn_fcat
         IMPORTING
           ep_table                  = gt_dyn_table
         EXCEPTIONS
           generate_subpool_dir_full = 1
           OTHERS                    = 2.
    I use this function and pass RFQ no and vendor code in two rows but it output gt_dyn_table in same row.. How to print them as given image???
    Then in data I want to get service items and according to the external service number divide them to groups and get sub totals and also finally total of all sub categories to compare each RFQs price to  compare.. There i think ALV hierarch can use. but not sure I can use with dynamic table(in header use it).
    What is thee best way to get the output in my image..??
    Thanks..
    Pavi

Maybe you are looking for

  • Regarding Secondary Index in a Table

    hi if i create a secondary index in a table is it obligatory or optional to have first field as MANDT (Client field) if the table is client dependent & how many secondary indexes(MAXIMUM) can be created for a table. Regards

  • DDLIMP utility is failing while running the DDL_OLTP.ctl script for Siebel

    DDLIMP utility is failing while running the DDL_OLTP.ctl script for Siebel source on DB2. Below is the the log details: 2021 2012-11-08 03:23:46 2012-11-08 03:25:56 -0700 0000002a 001 003f 0001 09 ddlimp 604 736 C:\OBIA\Upgrade\CTLFiles\DDL_.log Cont

  • Purchase Requisition Start Date

    Hi,      I have a Purchase requisition in R/3 and APO for a product and location. I see in Md04 that the planned date, delivery date and release date are all 28.07.2008 but when it gets to APO, in pproduct view, I see the PR start date as 29.07.2008

  • I can't locate iPhoto file storage

    I have iPhoto from that iLive '11 series. It fails to open. I can't find the folders for originals and modified files on my hard drive. I am so scared that I've lost them! TimeMachine isn't helping restore the application. I have the Lion OS.

  • Unable to Login

    Dear All, I am not a DBAm but handling DBA activities in my Development Database. Since the system was very slow, I increase my SGA Target and SGA MAX SIZE with as follows: ALSTER SYSTEM set SGA_MAX_SIZE = 2048M SCOP=SPFILE; ALSTER SYSTEM set SGA_TAR