Standard leave request function module

standar leave request function module (example import parameters strat date end date and leave type ) if i execute this bapi i want my subordinate name and leave applied is successful)

I got this from my collegue who is an ABAP consultant. Hope it helps.
ABSE                                             Object Type "Absence"
BAPI_ABSENCE_APPROVE           Unlock absence
BAPI_ABSENCE_CHANGE            Change absence
BAPI_ABSENCE_CREATE            Create absence
BAPI_ABSENCE_DELETE            Delete absence
BAPI_ABSENCE_GETDETAIL         Read absence
BAPI_ABSENCE_GETDETAILEDLIST   Read instances with data
BAPI_ABSENCE_GETLIST           Read instances
BAPI_ABSENCE_REQUEST           Create locked absence
BAPI_ABSENCE_SIMULATECREATION  Simulation: Create absence

Similar Messages

  • Standard Remote-Enabled Function Module to display data.

    Good afternoon,
    Is there any Standard Remote-Enabled Function Module which can be used to display a list of material, supplier or stocks data?
    First time, I was trying to use FM link to BW Extractor as MDEX_MATERIAL_MD for Material Attributes, but these kind of FM are not Remote-Enabled and not released.
    My second solution is to find a Standard Remote-Enabled Function Module which can be used to display a list of material, supplier or stocks data, but I haven't it yet.
    May someone help me in this?
    Thanks in advance for your answers.
    Best regards,
    Paul d'ORIGNY

    Hi,
    Suppose you want to read data from the vbrk table in ECC through a function module, then you can define the function module as "remote-enabled"(attribute tab in se37-processing type). You can try the following code out:
    FUNCTION Z_EM_INVOICE.
    *""Local Interface:*
    *"  IMPORTING
    *"     VALUE(I_FKDAT) TYPE  FKDAT OPTIONAL
    *"  TABLES
    *"      E_VBRK STRUCTURE  VBRK
    *select * from vbrk into table*
    e_vbrk where fkdat = i_fkdat.
    ENDFUNCTION.
    From BI you can call the function odule as follows:Supposing that you are calling the function module in the start routine of a dso:
    data : v_dest_system TYPE char255.
    data: l_vbrk type table of vbrk.
    v_dest_system = 'DRDCLNT010'
    CALL FUNCTION 'Z_EM_INVOICE''
    destination v_dest_system
    EXPORTING
    i_fkdat = <passing variable>
    e_vbrk = l_vbrk.
    Regards,
    Anjana.

  • Transports/requests function module

    Hi experts,
    I have searched for some standard function module which returns transports details (E070,E071) with no result.
    Also FM should be remote-enabled and what is important - there must be some filtering criteria like E070-AS4USER (Owner of a request or task) ...
    Any idea ?
    Best regards, Daniel.

    Daniel,
    My requirement is to read transport list (filtered by uname like in SE01) to JCo Java application (remote-functions) and make this application universal, system specific independent... (only standard FM) - sorry I should told this earlier.
    Well, like others have mentioned, you just need to create a Z function module(FM) and mark it as Remote Enabled, you could have the interface of this Z FM to be the same as that of TRINT_SELECT_REQUESTS or you can changeit for example you can take off IMPORT parameter "VIA Selection" etc and set Default values.
    Once you make this an RFC it becomes available to all external systems which can invoke an RFC, also you can take it a step ahead and expose this custom RFC as a Web Service too.
    Note sure if i understand what you meant by
    system specific independent... (only standard FM)
    The Z RFC will be independent, and will be specific to the target system on which you run this RFC.
    Ok, but when I start this application on other SAP server it won't work.
    Do you mean when you invoke the TRINT_SELECT_REQUESTS from JCo, you need to keep in mind that you cannot invoke TRINT_SELECT_REQUESTS directly from Jco, you need to wrap it within an RFC.
    Now, If you meant you are not able to invoke the Z RFC from JCo, update the post on what is the message you get?
    Regards,
    Chen

  • Standard BAPI or Function Module for FB01posting

    Hi Experts,
    My requirement is as follows.
    Invoice details would be sent across from Middleware to SAP and for which I have developed a Custom Remote Enabled Function Module. The Function Module needs to post the data using FB01 Transaction.
    I had planned for recording a BDC for FB01 and post the data, however, we are on the verge of getting upgraded from 4.7 to ECC 6.0. To avoid problems that we might face for change of screens in ECC 6.0, I would prefer using a BAPI or Function Module for FB01 posting, if available, instead of BDC.
    Data coming from Middleware are as follows.
    HEADER:
    BKPF-BLDAT :  Document Date
    BKPF-BUDAT : Posting Date
    BKPF-XBLNR: Reference (Invoice#)
    BKPF-BLART : Document Type
    BKPF-BUKRS : Company Code
    BKPF-BKTXT : DocHeader Text
    BKPF-WAERS : Currency
    LINE ITEM:
    BSEG-LIFNR : Vendor no
    BSEG-WRBTR - Total amt -Debit/Credit -Vendor
    BSEG-ZUONR : Assignment field
    BSEG-EMPFB : Alternative Payee
    BSEG-UZAWE : Payment Method Supplement
    BSEG-ZTERM : Pmt terms
    BSEG-KOSTL : Costcenter
    BSEG-HKONT : GL AccountNumber
    BSEG-WRBTR : Amount for GL
    BSEG-SGTXT : Line item text
    The Vendor Line Item would be one where as GL line items could me more than one.
    Can any of you suggest me a standard BAPI or Func Mod?
    Points will be awarded for valuable inputs.
    Thanks to all!!!!

    You can use RFBIBL00 program for FB01 postings. Go through the program help on how to use this program.
    This program requires a file to be on application server in a certain format.
    You may also refer the program RFBIBLT0 on how the file format should be.
    Hope this helps.
    Thanks,
    SKJ

  • Standard Macro and Functional Module in HR -Programming.

    Hi friends,
    Could i know the difference between a standard macro and a function module in hr programming.
    how do we have to use that and what are the different std macro's and functional modules used in HR-Programming...
    Thanks in Advance..
    Regards
    Shiva

    You will find the macros in table TRMAC .
    Macros are set of pre defined instructions .
    You can define your own macros in the program using 'definition' command  or use standard macros.
    you will find most of the HR function module starting  with HR*  or RH * .
    You can get Macro  definition  /  its fundamental difference with function module on web .
    Hopw this is helpful

  • Reg Standard programs and function modules

    Hi Could you please tell how to find the list of
    1.standard programs used
    2.standard tcode used
    3.function module used
    is there any table or function module to find the above
    Thanks in advance
    points will be rewarded

    hi,
    TADIR -  Tables
    TSTC  -  transactions
    TFDIR - Function modules.
    If you want to search for any table  ,
    Suppose if you want to search for a table which stores
    Country names then just
    GOTO SE11 and place the cursor on 'Database table'
    press F4,
    Click on 'Information system'
    then one window is displayed there give short description
    and search .
    You will get the tables list there you can fine the table which you want.
    For any other if you want to find out table which stores all the domain names then click F4 on 'DOMAIN' then search.
    to search function modules GOTO  SE37 there press F4 then give short description and search. Ok.
    Regards,
    Rajitha.

  • Standard bdc or function module

    Can any one suggest the BDC or Function module to upload 21 (Family and dependent infotype).
    regards,
    Lakshmi

    Hi
    better to  use BDC
    Regards
    Sri

  • Request: Function Module - Get PERNR from UserID

    Hi,
    Is a simple Function Module available for getting the PERNR from a UserID?
    For example, I'll send the FM the UserID and will get back the relevant PERNR.
    Please Help.
    Thanks,
    John

    Hi John,
    FM is one way but
    Simple code to Find personnel number for UNAME
      SELECT SINGLE pernr INTO t_pernr
        FROM pa0105
        WHERE subty = '0001' AND
              endda >= sy-datum AND
              begda <= sy-datum AND
              usrid = p_uname.
    Best Regards,
    Aslam

  • Asking for the standard report or function module or class  for determining no of employees under a client

    Hi,
    Advance thanks for ur reply......
    Is there any module function or class or standard report which gives the no of employees under a specific client based on country group and also gives percentage of employees belong to the client?
    Regards,
    selwin.

    Hi,
    According to your requirement, you can prepare report through S_PH0_48000513 - Ad Hoc Query , you can get percentage from IT0007 in Ad Hoc query. first decide how many fields you want and then choose in selection criteria and generate the report.
    Thanks,
    Nirali P.

  • Transport Request Function modules

    Hi All,
      we have have a requirment wherein we need to to insert data in a Z table.when the user tries to enter the data the system should check whether any Transport request is already present for the table entry.If it is present it should assign the entry to this Transport req.We are using the FMs TR_OBJECTS_CHECK and TR_OBJECTS_INSERT.we are not able to execute these FMs proerly.what should be the object type that should be given in these FMs?
    Thanks,
    Rakesh..

    1. Say  there is 1 key field in your ztable  and ur client is 100
    2. Say the value for one entry will be   100ABC , here 100 is client and ABC is the value of ur key field
    3. Select * from E071K into wa_e071k where PGMID eq 'R3TR'   and OBJECT eq 'TABU'  and OBJNAME eq 'ZTABLE' and  MASTERTYPE eq 'TABU' and MASTERNAME eq 'ZTABLE' and TABKEY eq '100ABC'.
    if  wa_e071k-TRKORR is initial.
    *NO TRANSPORT IS ASSIGNED
    else.
    v_TRKORR =  wa_e071k-TRKORR-TRKORR.
    endif.

  • Documentation of standard function modules

    Hi,
               Where can i find the docmentation of  all the SAP standard program and Function modules.
    any links..?
    thanks,
    neha

    Hi,
    Check these links..
    http://www.sapgenie.com/abap/functions.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.onestopsap.com/function-module/
    Best Regards,
    Sumana
    Please mark all the helpful answers

  • Adobe form for leave request

    Dear experts,
    There is no standard leave request form provided by SAP. We are developing an adobe form which lists the employee's quota and leaves taken earlier along with the current leave details. This form should be displayed to the approvers from the leave workflow.
    When the approver clicks on the work item, the leave request form should popup. There are two technical challenges in this requirement -
    1. This requirement is similar to the standard ones for travel request and expense request - In travel request and expense request, SAP has provided standard forms and the workflow container is a standard importing parameter in these adobe forms. This container is helpful in deriving most of the content on the adobe form. However, there is no such link in case of leave request. How does the workflow information be passed to the adobe form? ( i will have to display employee details, quota, current leave, approvers list, approvers comments, etc).
    2. For leave request, the approval task is TS12300097 that has "Java Webdynpro" as visualization type. Whereas for travel and expense workflow approval tasks, the visualization type is "ABAP Webdynpro". I am assuming the "JAVA WD" will make it really tough to call the adobe form from the work item.
    Any thoughts, suggestions on this requirement will be of great help.
    Thanks

    Hi Abdul
    which version u r currently working on?? check in swfvisu t-code where you can find the below task
    I'm not that good at technical level, but still I try to help you with my limited knowledge.Instead of trying from binding rule, try with Function Module via  BOR Object Method.  you can get that function module at the time Adobe form creation. Can't you consider that Adobe form as a attachment in the work item???
    Check this links
    Adobe forms using Workflow with normal SAP | SCN
    Calling the Adobe form in a workflow step for A... | SCN
    Hope this Info will be Helpful
    Cheers
    Pradyp

  • Leave request mail in different languages

    Hello,
    we are using the leave request functionality for different countries. The report RPTARQEMAIL is scheduled as a daily job, but sends the emails in english only (the schedule user is defined with language 'EN').
    We changed the english text of the email (SE61) and included all languages which we need. But the email subject is still just in english. Furthermore the email is getting quite long and not really user-friendly.
    We would like to send the emails always in the user's language (text and subject). Is there a way how to do this in the standard report?
    Thanks for your support!
    Nicole

    You need to copy and modify the program to pick the user language text from SE61. This is required since the standard text is mentioned in Selection-Screen of this report will be picked always. you should also be able to change the subject line since this program sends composed mail.

  • Retreive leave request details in PT_TIMREQ

    Hi,
    I am working on the standard leave request workflow (PT_TIMREQ) and I would like to add a complmentary functionality that sends email notifications to the manager's assistant. I need to retreive the leave request details from the workflow container:
    - date of the request
    - length of the leave
    - type of leave
    I am trying to find these information in the workflow container but can't manage to do it.
    Can someone give me a hand on that issue ?
    Thanks in advance for your help.
    Thibault

    Hi,
    You can find the details of the leave request from the following tables:
    ptreq_header ->
    ptreq_items  ->
    ptreq_attabsdata
    Not all the data that you mentiond is available in the container, so you need to build some additional functionality to the workflow to get the data.
    Regards,
    Karri

  • EHP5 and leave request

    Hi
    I have seen the new functionality around mass approval of leave requests in EHP5.  Unfortunately only on paper. My question is:
    The list that is presented to the manager: Does it represent records from the leave request database, or does it represent individual workflow task - or a combinaton of the 2?
    Thanks in advance
    Kirsten

    yes it does involve WF also and also read the sent status of the requests from leave request database and displays it to intended approver.
    ie
    http://help.sap.com/erp2005_ehp_05/helpdata/en/e6/c4fb025b4542fcaa6241e9
    e5060323/frameset.htm.
    For leave request application to be called , we specify the parameters
    in transaction SWFVISU through which the application is called when
    processed from universal worklist.
    I request you to use standard leave request task TS21500003 and please
    replace the existing visualization parameter DYNPARAM from
    WI_ID=${item.externalId} to
    LRF_REQUEST_ID=${item.REQUESTID}. This can be done from transaction
    SWFVISU.

Maybe you are looking for

  • Reference field in selection parameter in incoming payments.

    hi kings i want to add the tab for reference field in slection parameter in incoming payment after open items selection. Present selection prameters are document no, business are, due days, document date,INR gross amount, cash discount,cash. So i wan

  • Use another security realm

    I don't remember how have I done it. Somehow I made me a 'file' based realm (name file) and then set in weblogic-application.xml   <security>   <realm-name>file</realm-name>   </security>and I remember that that was it... but now... it gives me weblo

  • Can't login ADFS

    I created ADFS v2 on one of windows 2008 R2 serves. The AD Sync works fine. However, I can't login the ADSF server using adfssvr.mydomain.com/.../idpinitiatedsignon.aspx even we have correct internal DNS settings. If I try, this is the error: There w

  • Start Mountain Lion server on boot

    Is it possible to start OSX Mountain Lion Server when I boot up my Mac Mini? I have to login now each time I boot to start the server service. Any help would be appreciated. Mike

  • Flash Studdder....  Nice little pause in animation & Button Question

    New guy again...So I have my handy little intro on my main page after the flash screen and I have my first page of content come up right before it is finished. Now if I view the file on my hard drive there is a little pause when it comes in (very ann