FM to determine employee's Manager using Employee partner number 4m OrgUNIT

Hello All,
my requirement is, i have Employee responsible information with me like parnternumber and user name, now i want to determine who is his manager at  Organisation Unit level.i need manager's partner number from Org unit.
I did following to achieve the same, but i could reach upto knowing the manager position but not the BP assigned to that position.
report 1.
*1. get Employee's position
data: objektid type objektid.
call function 'BBPU_GET_ORGSTRUCTURE_OF_USER'
exporting
   username                = sy-uname
importing
   position_id             = objektid
exceptions
   no_org_data_found       = 1
   others                  = 2
*2.find leading position            (pass Employee position)
*RH_GET_LEADING_POSITION            (get leading position)
data: hrobject type table of hrobject,
      wa_hrobject type hrobject,
      sobid type hrsobid-sobid.
move objektid to sobid.
call function 'RH_GET_LEADING_POSITION'
  exporting
    plvar                   = '01'
    otype                   = 'S'
    sobid                   = sobid
  tables
    leading_pos             = hrobject
exceptions
   no_lead_pos_found       = 1
   others                  = 2
*3. get the manager number           (pass leading position)
*RH_READ_INFTY_1001                 (get manager number)
*data:   lt_itab1001   type table of p1001.
*call function 'RH_READ_INFTY_1001'
exporting
   authority        = ' '
   with_stru_auth   = ' '
   subty            = 'A008'
   begda            = sy-datum
   endda            = sy-datum
tables
   i1001            = lt_itab1001
   objects          = hrobject
exceptions
   nothing_found    = 1
   wrong_condition  = 2
   wrong_parameters = 3
   others           = 4.
*if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*endif.
read table hrobject into wa_hrobject index 1.
DATA lt_result_tab TYPE TABLE OF swhactor.
CALL FUNCTION 'RH_STRUC_GET'
           EXPORTING
                act_otype      = wa_hrobject-otype
                act_objid      = wa_hrobject-objid
                act_wegid      = 'SAP_TAGT'
           TABLES
                result_tab     = lt_result_tab[]
           EXCEPTIONS
                no_plvar_found = 01
                no_entry_found = 02
                OTHERS         = 99.
write 'hi'.
======================
I tried using FMs 'RH_READ_INFTY_1001 and 'RH_STRUC_GET'
both are retrieving some unrelated data which i dont understand like
1     CP     00305880
I dont understand what is 00305880,manager's partner number is 50145725
please help me how do i get manager partner number using his position, is there any FM or table to get this?
Thanks
seema

Hi All,
I got the solution
report 1.
data: objektid type objektid.
call function 'BBPU_GET_ORGSTRUCTURE_OF_USER'
exporting
   username                = sy-uname
importing
   position_id             = objektid
exceptions
   no_org_data_found       = 1
   others                  = 2
if sy-subrc <> 0.
endif.
data: hrobject type table of hrobject,
      wa_hrobject type hrobject,
      sobid type hrsobid-sobid.
move objektid to sobid.
call function 'RH_GET_LEADING_POSITION'
  exporting
    plvar                   = '01'
    otype                   = 'S'
    sobid                   = sobid
  tables
    leading_pos             = hrobject
exceptions
   no_lead_pos_found       = 1
   others                  = 2
if sy-subrc <> 0.
endif.
data:   lt_itab1001   type table of p1001,
        wa_p1001 type p1001.
CALL FUNCTION 'RH_READ_INFTY_1001'
  EXPORTING
    authority              = 'DISP'
    with_stru_auth         = 'X'
    plvar                  = '01'
    OTYPE                  = wa_hrobject-otype
    OBJID                  = wa_hrobject-objid
    istat                  = ' '
    extend                 = 'X'
    subty                  = 'A008'
    begda                  = sy-datum
    endda                  = sy-datum
    condition              = '00000'
    sort                   = 'X'
    with_ev                = ' '
    adata                  = 'X'
    auth_sobid             = ' '
  TABLES
    i1001                  = lt_itab1001
  EXCEPTIONS
    nothing_found          = 1
    wrong_condition        = 2
    wrong_parameters       = 3
    OTHERS                 = 4.
read table lt_itab1001 into wa_p1001 index 1.
clear: wa_p1001-otype, wa_p1001-objid.
move wa_p1001-SCLAS to wa_p1001-otype.
condense wa_p1001-SOBID.
move wa_p1001-SOBID to wa_p1001-objid.
clear lt_itab1001[].
CALL FUNCTION 'RH_READ_INFTY_1001'
  EXPORTING
    authority              = 'DISP'
    with_stru_auth         = 'X'
    plvar                  = '01'
    OTYPE                  = wa_p1001-otype
    OBJID                  = wa_p1001-objid
    istat                  = ' '
    extend                 = 'X'
    subty                  = 'B207'
    begda                  = sy-datum
    endda                  = sy-datum
    condition              = '00000'
    sort                   = 'X'
    with_ev                = ' '
    adata                  = 'X'
    auth_sobid             = ' '
  TABLES
    i1001                  = lt_itab1001
   objects                = hrobject
  EXCEPTIONS
    nothing_found          = 1
    wrong_condition        = 2
    wrong_parameters       = 3
    OTHERS                 = 4.
write 'hi'.

Similar Messages

  • Picture uopload in the solution manager using BSP

    Hi Everybody I am trying to upload a employee pictures for the each user in the Solution manager using BSP. I have got some coding form the help but its not working. Kindly direct me the way I can go for the upload.
    Please help me out.
    With best regards,
    Suneetha

    Hi Thank you very much for your answer.
    I am using for the file upload code  is
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
    <html>
      <body>
    <h2> Form with File Upload and Download </h2>
    Choose a file for upload. The file will be echoed to your browser if you
         select the checkbox below.
    <form method="POST" enctype="multipart/form-data">
      <table border=1 width="100%">
        <tr>
          <td> <input type=checkbox name="doEcho"&gt; </td>
          <td> <input type=checkbox name="doEcho" value="X"> (select for echo)
    </tr>
        <tr>
          <td> <input type=file name="echoFile"> </td>
        </tr>
        <tr>
             height = "45".
              width = "45".
          <td> <input type=submit name="onInputProcessing(upload)" value="Submit"> </td>
        </tr>
      </table>
    </form>
      </body>
    </html>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Can I use this along with oninput processing that u have given.
    With Best regards,
    Suneetha

  • Does the SCCM updates manager use OpenSSL, and is it vulnerable to the Heartbleed bug?

    I'm 99.99% positive I know the answer, but my boss wants to know for SURE. Does the SCCM updates manager use OpenSSL, and is it vulnerable to the Heartbleed bug?
    Thank you for appeasing him.

    I must be misunderstanding something here. Would you please help me understand why this isn't answerable here? How does this have anything to do w/ our TAM? SCCM is SCCM regardless of where we got it, right? I'm quite perplexed, so thank you for
    clearing this up.
    My guess is liability. What if we're wrong? Very few people who frequent these forums are actual Microsoft employees.
    If you want a 'for sure' answer, you're best off contacting Microsoft directly IMHO.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • Business partner number of an employee

    Hi,
    How to get business partner of an employee.
    Any standard data source is there for the same.
    Regards,
    Kiran

    Hi,
    You can get the BP assigned to an Employee from the table HRP1001.
    Give OTYPE = 'CP', OBJID = Personnel number of the employee.
    The field SOBID will give you the BP number.
    Using the BP number, you can get all the business partner central details from BUT000.
    Regards,
    Rishu.

  • Output determination for inventory management

    hi everybody,
                     i have gone through total configuration of output determination of invetory management and suceeded in getting printout of GR but the problem is when we post gr in migo with movement type 101 it is no capturing output type we01 or we02 or we03. so when we go to mb90 there is no output type determined. then we have to go to mb02 and manually assign the ouput typ we02 and save it and then again get the printout through mb90. so can anybody tell me regarding the default settings of output type to come in mb 90

    Hi
    Check following if usefull to u
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    2. Ensure that in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for GI/Transfer Posting Documents
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the foll:
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Tr medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Pr Det by Pl/StoLoc, maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    9. Now depending on the setting in 5a, the Matl doc is printed. If it is 3, you have to print it using MB90. If it is 4, it is printed immediately.
    Vishal...

  • Search employee details from Business partner number input

    Dear friends
    I am searching employee details by having input as a business partner number from infotype 0000. as pernr has only 8 character in size and bp in 10 char in size. would you please tell me how we can access employee detais from business partner number.
    p.s : I am doing this in CRM system
    Business partner  ?->infotype(0000)-->?
    Any help will be appreicated.
    Regards
    Naeem

    Dear Naeem,
    as a CRM environment is not able to run at the same sytsem / client with HR, the employee data (e.g. infotype actions (IT 0000)) only is available in a scenario with ALE-distribution from a HR-system.
    In this case the employee data from HR-system will be distributed via idocs (message type HRMD_ABA) to the CRM-system and saved to databases HRP558x [x=0 - 5; 0= IT0000; 1 = IT0001; 2 = IT0002; 3 = IT0006, subtype 1; 4 = IT0009; 5 = IT0105, subtype 0005, 0010, 0020] for the central person (object type CP).
    The activated business partner integration (table T77S0, group HRALX, switch HRAC) will create / update related business partners (relation is saved within table HRP1001, subtype B207) according to the mapping of data during idoc inbound processing (active CRM implementation of a BAdI HRALE00INBOUND_IDOC processed within the function module (FM) IDOC_INPUT_HRMD (stored in table TBD52 for evcode = HRMD).
    Reading specific infotype data of a central person (databases HRP558x) will be done using the FM RH_READ_INFTY.
    Regards,
    Michael

  • How can i determine which devices are used at the moment?

    Hi all,
    I am designing an interface with LabVIEW for uing agilent devices. My work colleagues will use this interface.  I want to determine which devices are used at the moment and if I determine used device, i will add automatically device names to interface's main vi. So all my work colleagues can see on the program which devices are used by another colleague. This devices are connected with GPIB. İ want to learn is there any function on Instrument I/O palette.
    Thanks,
    Omer
    Solved!
    Go to Solution.

    Hi Omer,
    so those devices are connected to the PC with a GPIB connection. Will your collegues run several DAQ programs at the same time?
    GPIB-devices being controlled by PC don't have a "in use"-signal. They wait for commands, execute them and send an answer. When you start to control them using two programs they may respond to both programs, mixing up settings/measurement values and so on.
    That being said: In MAX you can see all devices connected to your GPIB port. You could scan the GPIB port using VISA commands in your program. You might even try to access a certain device by it's VISA alias. I really don't know if you will get a "device nopt available" error message when that VISA alias is in use by a different program - but you might do a quick test on your own…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to determine the purchasing group using BADI BBP_PGRP_FIND

    Hello Friends
    We use SRM Server 5.5 (Classic scenario).
    As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group. 
    In our case, we should determine the purchasing group using other criteria.
    MM side is OK to determine the purchasing group using specific criteria.
    Because Material Master has the purch. Group information. 
    In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
    But I’m not sure how to use this badi.
    We want to determine the purchasing group based on the following logic.
    If described shopping cart without product ID
    Do Standard purchasing group determination logic.
    Else
    Assign the purch group from MARC- EKGRP (Purchasing Group)
    Is it possible to determine above the logic?
    If yes, Could you give me some information?
    Thank you,
    Best regards,
    SH
    Message was edited by:
            So Hee Lee

    Thank you for your answer.
    I found the way to develop the our logic using BADI: bbp_pgrp_find.
    But I’m not sure the following logic is correct.
    To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.
    IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.
    To find the purch. Group, we can use FM:  BBP_OM_DETERMINE_RESP_PGRP.
    Import parameter: IS_RESP_ITEM_DATA – Category _ID
    Export parameter: ES_PURCH_DATA
    ELSE
    CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
    Search the HRT5500-TABNR using purchasing group from R/3.
    Search the HRP5500 – OBJID using HRT5500-TABNR
    Call the FM:  BBP_OM_DETERMINE_RESP_PGRP
    Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID
    Export parameter: ES_PURCH_DATA
    Thank you
    Best Regards
    SH

  • How to determine the process alias using condition technique in Transportation & Shipment Scheudling?

    Dear All,
    I am trying to use the functionality Transportation and Shipment Scheduling in GATP.
    I would like to know that how the sytem determines the process alias using condition technique in Transportation & Shipment Scheudling?
    As the Transportation & Shipment Scheduling functionality can be extended further by using the configurable process to overcome the complex scenario. But it needs that process alias should not be determined by using the condition technique.
    Moreover, is it possible to use both functionality simultaneously in the system. i.e. Transportation and Shipment Scheduling using condition technique and Transportation and Shipment Scheduling using configurable process?
    Thanks & Regards
    Piyush Ranpura

    Hi Piyush,
    I have added a small overview in the SCN WIKI which shows you the two ways for the process alias determination and also here as attachment:
    http://wiki.sdn.sap.com/wiki/display/SCM/Time+and+Scheduling+Functions
    Yes, depending on your customizing you can use both scheduling methods in parallel. e.g. you activate CPS just for a specific ITEM category or product and/or customer and/or....what ever you want.
    best regards,
    Michael

  • How do I determine what URL to use when launching to display a RH10 .htm page?

    Hello,
    We are implementing RoboHelp 10 for our online documentation and are sourcing it from Framemaker 11. I am trying to determine exactly what URL information the developers need to build for the launch to the specific IBM System i screen. Is anyone launching RoboHelp from a backend ERP system? If so, how did you determine what level to use when building the URL for that page?  Thanks for any assistance you can provide.

    It depends on whether you just want to open the help at the default topic or open context sensitive topics.
    Both methods are described in Calling Help on my site and there is more good information at http://www.wvanweelden.eu
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I determine what app is using my megabytes so fast?, How can I determine what app is using my megabytes so fast?

    How can I determine which apps are using my megabytes so fast

    Thank you . That answers my question,but I guess I need to know how to identify the usage for email and Internet. I'm thinking we may have an issue with our wifi at home going  in and out.  I guess my son should turn off his cellular when he is home for this reason?

  • Determine a GL account using the cost center only as reference

    hello, Is it possible to determine a GL account using the cost center only as reference?
    If so, could you please provide me with the details?

    Hello,
    I am really not clear on your question.
    If you want to make default cost center, then please go and maintain OKB9 settings.
    If you want to generate a report based on a cost element (GL account in FI), go and execute KSB1
    Regards,
    Ravi

  • Acct determination for Materials management small differences with keys

    Dear all,
    While posting a document in MIRO, it throws error as 'Acct determination for Materials management small differences with keys not defined in ch/acts'.
    Please advise a solution to rectify this error.
    Regards,
    Vijay

    Hi,
    It seems due to small differences between debit and credit side you are not able to post the document price differences). Check all the data to create an entry first and  Check the data format. Can you check  in OBYC is there a way  to  have a transaction DIF (Materials management small differences) post to different GL accounts based on valaution class (plant)?

  • Running report in concurrent manager using unix shell script to create PDF

    Hi,
    I need help urgently, we are in the process of migrating from 10.7 to 11i. My problem is we have a report created in 10.7 that is ran through concurrent manager using shell scripts(host) and the output is stored as .pdf, in 10.7, it works perfectly. Now I am also doing it in 11i but it gives some error. The shell script from 10.7 is: r25runm module=$XXX_TOP/srw/test.rdf \
    userid=$1 batch=yes \
    desformat=pdf destype=file \
    desname=$XXX_TOP/outbound/test.pdf
    I change the shell script in 11i as follows:
    ar60runb report=$XXX_TOP/reports/US/test.rdf \
    userid=$1 batch=yes \
    desformat=pdf destype=file \
    desname=$XXX_TOP/outbound/test.pdf
    I checked your metalink, and I am confused which is the right executable I should use, is it ar60runb or ar60run or rwrun60b or rwrun60c or rwrun60b, which is which? how many parameters do I have to include?, some documents are saying I have to use the 4 parameters-orauser/pwd, userid,username, request_id, others one.Which parameter/s go/es with what executable. We are using HP-UX server 64 bit. In 11i, when I run in concurrent manager it gives me an error:The executable file /chdev/fd11/u00/fd11appl/xxx/1.0/bin/test for this concurrent program cannot be executed.
    Contact your system administrator or support representative. Verify that the execution path to the executable file is co.
    I have checked Metalink and follow the directions, created a link fndcpesr, check and set the permissions, etc. Play around with the executables ar60runb or rwrun60 etc., the parameters. The ar60* or rwrun60* executable permissions are -rwxr-xr-x and $XXX_TOP/fnd/../fndcpesr is -rwxr-xr-x. Also, why is ar60* executables located in $FND_TOP/bin, whereas rwrun60* executables are in $ORACLE_HOME/bin? Please help, I need an answer urgently ,I have to complete this task before Tuesday 9/16/2003 for our migration deadline. Thank you very much.

    I have already fixed the problem, TY anyway

  • Order Quote Management using Worklist application

    Hi,
    I am trying to assess the best option to implement a Order Quote Management Use Case.
    Use Case:
    1. User creates a list of items and create an order
    2. User selects 3 (or more) Suppliers and submit the order for a quotation
    3. In parallel the Suppliers receive a notification (by email) and access to the Supplier portal.
    4. Each single Supplier can see the order and add the prices / mark items can not deliver.
    5. Each Supplier re-submits the order to the original user.
    6. User can check all the Suppliers' quotes and select the best one.
    I was thinking to use the Worklist applications and Human Task BPEL to perform it.
    This is what I was thinking:
    a. Extend the Worklist application with a customize a webpage where the user can create a items list for quotation.
    b. When the user submit the order for quotation the page will call a ASYNC BPEL (called OrderQuotation).
    c. The BPEL OrderQuotation process will use Human Task BPEL to start a Human Task in parallel with the Suppliers (Supplier will receive a notification by mail using the notification function as well)
    d. We will expose the Worklist application (using Oracle Portal) to the Supplier
    e. Supplier will login in the Worklist application and claim the task
    f. Supplier will modify the order for quotation with price information and will submit back to the supplier the order now quoted.
    g. User will login in Worklist application and he will see a customized page where all the orders are quoted and compared for each supplier.
    Please, let me know:
    1. if this approach can be achieved using the standard functionalities of Worklist application / Human Task interaction in BPEL.
    2. If yes, which Human Task interaction parametrization I should use
    3. If no, let me know what I have to extend in the worklist to achieve it
    4. Or alternative another possible way to achieve it.
    Regards,
    Danny

    Hi,
    I also face the issue to port Worklist in JSP or portal other than using adf.
    I am using SOA 11.1.1.2 and using BPEL and Human workflow. I did a complete flow from JSP ->BPEL->Human worlist. Whenever i
    submit a form values in JSP, it hits BPEL and i am
    getting proper message list in Human worklist and wherein i can able to assign, escalate and delegate tasks.
    Now i need to customize the worklist in Weblogic Portal 10g or to JSP. My requirement now is to port the Worlist default skins to jsp or Portal.
    I also gone through SOA 11g developers guide and in worklist sections but no idea how to implement.
    If any body knows please advise.
    Thanks..
    -Bharathi

Maybe you are looking for

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid. how can this  be done.. and also after every few seconds reading event should be re executed.. and that t

  • Help please. My mac book pro did a java update and now will not boot  oot.

    As it says above. Since doing a java update automatically and then shutting down on me.. my mac book will not boot properly. I can get it to boot in safe mode eventually, usually after 5 to 10 mins of waiting, but will not boot into mormal mode. How

  • Airport express 802.11 solid green but not working

    My airport express has been working for several months but will not now. I bought it to extend our internet to the upstairs as it was too far from out internet location. I have restarted it and moved to different outlets upstairs, but it will not wor

  • Not all folders appear as available for LR4 import

    I just installed LR4 and went to Import into a new catalogue.  Only a portion of my image folders on my main drive appear.  When I look at my on-site backup drive, they are all available.  The backup is, as you might expect, a dupe of the originals. 

  • Migration Assistant (Tiger -- Leopard)

    I just received my new MacBook yesterday...during installation, I was trying to use the Migration Assistant to take data from my older Mac (PowerBook G4 w/ Tiger) using the Firewire mode. After connecting the Macs using the Firewire cable, and then r