Hi i want to create BAPI to get approver of the employee

hi i want to create BAPI to get approver of the employee
in this  BAPI if there are two approver for that employee than i need both approver personal no.
please help me
thanks in advanced.

Hi
I doubt whether there is a direct Standard BAPI for that.
The below report will get you the employees approver org position. Even if there are two approvers are there, it will display both the approvers position.
*& Report  ZGD_TEST_HR_ORG_STR
REPORT  ZGD_TEST_HR_ORG_STR.
   DATA: plvar            LIKE hrsobid-plvar.
  DATA: otype            LIKE hrsobid-otype.
  DATA: sobid            LIKE hrsobid-sobid.
  DATA: date             LIKE sy-datum.
  DATA: leading_position LIKE hrobject OCCURS 1 WITH HEADER LINE.
  DATA: org_agent        LIKE swhactor.
  DATA: lv_sw_vapos      TYPE xflag,
        lv_subrc         TYPE sy-subrc.
  DATA spfli_wa TYPE spfli.
  DATA carrid_buffer TYPE spfli-carrid.
  IF plvar IS INITIAL.
    CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR'
      IMPORTING
        act_plvar       = plvar
      EXCEPTIONS
        no_active_plvar = 1.
    IF sy-subrc > 0.
      MESSAGE e300(5w) RAISING no_active_plvar.
    ENDIF.
  ENDIF.
IF otype IS INITIAL OR sobid IS INITIAL.
      otype = 'US'.
      sobid = sy-uname.
  ENDIF.
  CALL FUNCTION 'RH_GET_LEADING_POSITION'
    EXPORTING
      plvar              = plvar
      otype              = otype
      sobid              = sobid
      date               = sy-datum
      auth               = ' '
      consider_vac_pos   = space
    TABLES
      leading_pos        = leading_position
    EXCEPTIONS
      no_lead_pos_found  = 1
      OTHERS             = 2.
   IF sy-subrc > 0.
    MESSAGE e802(5w) WITH otype sobid
                     RAISING no_lead_pos_found.
  ELSE.
    LOOP AT leading_position.
      write :  / leading_position-otype,
                 leading_position-objid.
    ENDLOOP.
  endif.
Hope it helps you

Similar Messages

  • I want to create a Apple ID without filling the billing information

    i want to create an apple id without filling the billing adrees but what i use to buy apps would be itunes gift card

    If you follow these instructions, you can create a new Apple ID without a bank card.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card -
    http://support.apple.com/kb/HT2534

  • I mostly work on Mac desktop, but use a Macbook Pro on trips. Due to limited HD space on the latter, I want to create a library of part of the images on the Mac, to be used on the Macbook. I do not however want to remove these images from the Mac library.

    I mostly work on Mac desktop, but use a Macbook Pro on trips. Due to limited HD space on the latter, I want to create a library of part of the images on the Mac, to be used on the Macbook. I do not however want to remove these images from the Mac library.

    Choose one or more Projects, and then use Export as New Library (from File).  The resulting export will be a fully functioning Aperture Library to either transfer and open on the Macbook Pro, or to Import into a library you already have on the MBP.
    Ernie

  • I want a report which gives leave approver for an employee

    HI All,
    Please help in this issue
    I want a report which gives leave approver for an employee.
    Thanks,
    Guddia

    Hi
    The report to get the leave approver is 'RPTARQ'.
    Enter the personnel no and the application ID which can be 'ESS_LR' and execute.
    Also, you may determine the same without using the report as a whole.
    Check the MSTBR field of the table PA0001 of the corresponding PERNR and you will get the supervisor of the employee who generally is the leave approver.
    Hope this helps.
    Harsh

  • I want to create RFC FM to enter data for employee in table pa0001

    hi everyone,
    i want to create either a RFC FM or a BAPI to enter employee data in table pa0001.
    is there any other way to enter the employee data?
    so plz help me by sending regarding RFC/BAPI creation.
    thanx in advance.
    from
    jigar bhatt

    Hi jigar,
    1. HR_INFOTYPE_OPERATION
    2. This is the FM to put data
      in infotype 0001 (pa0001 table)
      as well as other infotypes also.
    3. But this is a simple FM
       (not rfc enabled)
    4. For your requirement,
       u can create a Z FM,
      which is rfc enabled,
      and inside this Z fm,
      call the HR_INFOTYPE_OPEARATION
    5. Also consider the parameters of this FM,
       while defining your z FM.
    regards,
    amit m.

  • Iweb and frames,want to create a link to open outside the frame set

    Iweb is using Frames and I need to create a link that opens outside the frame set. Can this be done?
    IMAC   Mac OS X (10.3.9)  

    iWeb does not use frames. Can you explain a little further?

  • To get  HOD for the employees(HR-ABAP)

    Hi Experets,
    i am new in  abap hr please suggest me  how to get hod of an employee and trying to do with bellow codes, kindly suggest me.
    select single ORGEH from pa0001 into lv_orgeh where pernr = employeenumber
                                                           and ENDDA = '99991231'.
                   if sy-subrc = 0.
    select single sobid from HRP1001 into lv_sobid where OBJID = lv_orgeh
                                                           and rsign = 'A'
                                                           and relat = '803'
                                                           and endda = '99991231'.
       if sy-subrc = 0.
         SELECT SINGLE objid FROM HRP1001 INTO lv_objid
                       WHERE OTYPE = 'O'
                       AND   OBJID = lv_sobid
                       AND   RELAT = '12'
                       AND   RSIGN =  'B'
                       AND   ENDDA = '99991231'  .
       IF SY-SUBRC EQ 0.
         SELECT SINGLE sobid INTO lv_sobid
                   FROM hrp1001
                  WHERE otype EQ 'S'
                    AND objid EQ lv_objid
                    AND plvar EQ '01'
                    AND rsign EQ 'A'
                    AND relat EQ '008'
                    AND istat EQ '1'
                    AND endda EQ '99991231'.
                 IF sy-subrc EQ 0.
                   lv_pernr = lv_sobid.
        ENDIF.
       ENDIF.
       ENDIF.
       ENDIF.
       ENDIF.

    FYI
    see the include = RPCMFPV0 for
    call function 'HR_GET_ABSENCE_QUOTA_DATA'
    HRBR_REM_ABSENCE_NEW_QUOTA    
    HRBR_REM_ABSENCE_NO_NEW_QUOTA 
    HR_ABSENCE_VALUATION_VIA_QUOTA
    HR_QUOTAS_DEDUCTED_BY_ABSENCE 
    HR_QUOTA_SPLITS_FOR_ABSENCE   
    HR_SPLIT_ABSENCE_BY_QUOTA     
    HR_ABSENCE_QUOTA_REMOTE       
    HR_INFOCOLUMN_ABSENCE_QUOTA_10
    Thanks
    Saquib

  • I want to create a cutaway using photos for the a-reel

    I'm making a photo slideshow and want to use the audio portion of a video clip under some of the photos. I can get the cutaway feature to work when I drag a video onto a video, but when I try to drag it onto a group of photos, it splits then instead of covering them. It doesn't seem to matter in what order I try to add them (meaning, which I try to drop on the other)--they're just not mixing. Please help!

    the only reported way is to redo the dates in the album and then start the book since books use date order
    LN

  • My computer is infected with something...the cursor is going crazy.  i bought apple to avoid infections and now you want to charge me to get rid of the malware? i paid for protection when i bought the computer. shame on Apple.

    my computer is infected with ?malware and it makes the cursor goes crazy. apple support wants to charge me to fix this.
    paid more for the apple laptop because it had built in protection. not fair.  shame on Apple.  can anyone help?

    Please read this whole message before doing anything. This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it. Step 1 The purpose of this step is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.” While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin. Test while logged in as Guest. Same problem(s)? After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it. *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing. Step 2 The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
     Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. *Note: If FileVault is enabled, or if a firmware password is set, you can’t boot in safe mode. Test while in safe mode. Same problem(s)? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Function module to get name of the employee

    hi friends
      I am working in HCM workflows. Is there any function module which gives the name of the employee when i pass pernr and userid.
    Regards
    vijay

    hi,
    use HR_READ_INFOTYPE on infotype 0002
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = p_pa0002-pernr  -----------> your pernr
          infty           = '0002'
        TABLES
          infty_tab       = t_pa0002
        EXCEPTIONS
          infty_not_found = 1.
    the fields
    INITS NACHN NAME2 NACH2 VORNA CNAME
    TITEL TITL2 NAMZU VORSW VORS2 RUFNM MIDNM
    KNZNM
    stores different parts of employee's name.
    you check your required one.
    Regards,
    Anirban

  • How to get Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information I want to create a Paid Books Account use apple ID

    I was given this address from the Apple customer support team.
    I have an active existing iTunes store account and use the same Apple ID for signing into my iTunes Connect Account that distributes Apps.
    I have created some books using the iBook author and in order to distribute content on the iBookstore I have been told electronically that I need a new Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information valid until 2013?
    I want to create a Paid Books Account using the same email address, tax information and bank information. This has been most frustrating, as I cannot get passed the sign in section and there is no contact person I can speak to. I was of the understanding the iTunes connect account and the Developer programs which I paid good money for is all what I needed to be paid for selling iBooks on the iBookstore???
    I only have one email address and wish to also use it for the Paid Books Account. I have books ready to be exported and published.
    I am also having trouble locating and downloading iTunes Producer. I understand I need to have the Paid Books Account active to access the iTunes Producer program. Please help.
    See additional information below:
    What device did you use to connect to the store?  Mac computer
    Which operating system is installed?  Mac OS X v10.7.x
    What version of iTunes is installed on your computer?  iTunes 10.6
    Choose the iTunes Store or App Store for your country:  Other
    Please select your country:  Australia

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • How to pass table values in Create Bapi Wrapper

    Hi All,
           Am using create BAPI  Wrapper in that how to map the fields inside BAPI  Import Structure .
    Thanks&Regrads,
    Arun

    Hi,
    Am using standard RFC " QIBP_INSPCHAR_SETRESULT "  for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
    In QIBP_INSPCHAR_SETRESULT am passing inupt
    INSPLOT      LIKE         QALS-PRUEFLOS
    INSPOPER     LIKE     QAPO-VORNR
    INSPCHAR     LIKE     QAMV-MERKNR
    INSPSAMPLE     LIKE     QASV-PROBENR
    CHAR_RESULT     LIKE     BAPI2045D2           
    so i want to know how i can pass    1 . CHAR_RESULT structrue values
                                                               2.  INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
                                                                    in SDOE_WB
    Pls explain how to create BAPI Wrapper for this and how to map details.

  • I want to create a Paid Books Account however, I already have a iTunes store account for creating Apps with complete contracts, tax,

    I have created some books using the iBook author and in order to distribute content on the iBookstore I have been told electronically that I need a new Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information valid until 2013?
    I want to create a Paid Books Account using the same email address, tax information and bank information. This has been most frustrating, as I cannot get passed the sign in section and there is no contact person I can speak to. I was of the understanding the iTunes connect account and the Developer programs which I paid good money for is all what I needed to be paid for selling iBooks on the iBookstore???
    I only have one email address and wish to also use it for the Paid Books Account. I have books ready to be exported and published.
    I am also having trouble locating and downloading iTunes Producer. I understand I need to have the Paid Books Account active to access the iTunes Producer program. Please help.

    Did you use an existing Apple ID or create a new one just for paid books sales/distribution?

  • I have a iPhone, and iPad. I just got a iPod. I want to create a new account for the iPod and use the same credit card information. Is this possible?

    I have an iPhone, and IPad. I just got a iPod. I want to create a new apple ID for the iPod so I can access face time and messages separately. However can I use the same credit card account?

    Just do it. You can use the same credit card for multiple accounts.

  • I have a table tab1 with record(1,2,3,4,5,6,7,8,9). i want to create a proc

    i have a table tab1 with record(1,2,3,4,5,6,7,8,9). i want to create a procedure, when we pass the parameter in procedure then that record come on top rest record below of that.
    thanks,

    Is the block based on a table ?
    Francois

Maybe you are looking for

  • Open directory install error

    Hello, I have a MAC Mini with OSX 10.8.4 and Server 2.2.1 , I am trying to configure Profile Manager on the Server.app but i encountered after a long time an  error : when i create Open Directory master . LDAP log: Jul 12 16:17:58 mdm.dom-ad-etandex.

  • NEXT_RECORD problem

    Hi All, I am using Forms6.0 I have two database blocks A & B. For each record in A, i may insert a record in B depending on the user entering values. Problem is that even if user enters values for two records, only one is inserted in table of block B

  • My three most recent Lion Kernel Panics

    In case anybody is having the same problem - or, even better, has solved the same problem, here are my most recent Lion Kernel panics ( just the top of the panic in each case). They're all different - it's amazing how many panics lion throws - it rem

  • Maximum Resource Requests on a Server what is for?

    We are using Weblogic 9.2. At JTA Configuration (Advanced) we have option "Maximum Resource Requests on a Server", and it is set to 50. Documentation states that      it is "Maximum number of concurrent requests to resources allowed for each server."

  • Mail doesn't fully quit since Mavericks update

    Or it will appear to quit, but I'll have to use "force quit" to do the job.