Any BAPI or FM to Unlock a Leave Request??

I checked BAPI_ABSENCE_APPROVE, but the documentation says that it cannot be used. I need some equivalent of that. I am in ECC 6.0

Hi,
pls refer to the link
Link:[https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/validations%252bfor%252bess%252bleave%252brequest]
or read the doculentation for FM 'HR_GET_QUOTA_DATA'
THANKS
Ravi

Similar Messages

  • WS12300111: Leave Request Approval - Multiple Approvals

    Hello.
    I am part of a project, trying to implement ESS/MSS at a large international NPO Customer, and have encountered a problem.
    I plan to use the WS12300111 Workflow for the approval process of Leave Requests, but since the customer in some situations require more than one approval, I have to enhance the workflow. At first glance it seems simple just to repeat the approval process, but since the request will be marked as approved at the first approval step, that will not work.
    We are required to keep the implementation as close to SAP Standard as possible, so the portal guys tell me, that it is not really an option to make changes to the approval functions.
    I have considered making the first approval a simple workflow task, that doesn't update the request itself, but since a rejection should update the request and trigger the Process Leave Request by Employee task, I really don't see that working either.
    Any thoughts on the subject, or maybe even a solution, will be greatly appreciated.
    Best regards
    Poul Steen Hansen
    Denmark

    Hi dude,
    Well, I might not be able to give you the coding, but I can explain it how to do this. Check the procedure.
    Create a new BOR and create a new method - CHANGESTATUS.
    Add one and only IMPORT parameter REQUEST of type PTREQ_HEADER-REQUEST_ID.
    In the coding part, firstly lock your request using the FM - ENQUEUE_EPTREQ.
    Then create an instance using the static method ca_pt_req_header=>agent->get_request which takes the REQUEST number as input and gives us the instance as OUTPUT.
    Having the instance in hand, we can use the method initiate_state_transition to change the status of this method. Pass the SEND status as INPUT and get the new updated status as OUTPUT.
    Unlock the leave request using the FM - DEQUEUE_EPTREQ.
    Implement and release this method in your BOR.
    And please make sure that your method is INSTANCE INDEPENDENT METHOD.
    In your template create a Standard background task after your first approval step which calls this method.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Leave Request create RFC or BAPI

    HI,
         RFC or BAPI for leave request create and that will trigger a work flow.
      Input Parameters Pernr, Absence subtype, and date.
    Thanks in advance
    Regards,
    Kiruba.R

    HI Batwara,
        When I execute the RFC am getting the following return messages.
    I   HRTIM00WS            009 Generate period work schedule FLEX for 2/06/01 in 04/2009   
    E    PG                   184 Employee/applicant is not locked yet                        
    any idea pls.
    Regards,
    Kiruba.R

  • BAPI: IT2006,  IT0014  in Webdynpro leave request scenario

    Hope someone can help me with our new WEBDYNPRO leave request scenario where we want to create via workflow in our back-end R/3 system:
    Infotype 2006 absence quotas.
    Infotype 0014 recurring payments/deductions.
    Does anyone know if there are any standard BAPI's / object type methods available to create the above infotypes?
    If not available hope someone can tell me if it is a real challenge to create such a BAPI from scratch on for a medior ABAP programmer? Myself i am a functional HR consultant with little ABAP skills who likes to know how much ABAP days i need for my client in this last "from scratch on" case.
    Thanks for reading and maybe replying,
    Robbert Bastiaans

    >> if it is a real challenge to create such a BAPI from scratch on for a medior ABAP programmer?
    Not really.. you can use HR_INFOTYPE_OPERATION to create the infotypes.. but this function module is not RFC enabled.. what you will have to do is create a custom RFC & wrap it around the above function module..
    ~Suresh

  • Is there any BAPI or function module  to delete entries from a table (VBAK)

    Hi Everybody,
    this is my first thread in SDN...
    my problem follows...
    A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
    tables:
    VBAK     sales document: header data
    selection fields:
    VBAK-LIFSK      &#8800;     <BLANK>
    VBAK-ERNAM     =     userID used by e-Sales / IVE
              (EP-BATCH / EAI-BATCH)
    VBAK-ERDAT      <=     Current system Date
    VBAK-ERZET     <=     Current system Time - 20 minutes
    These orders should be deleted from SAP system.
    This report should be scheduled to run regularly every 10 minutes.
    my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
    best replies will be rewarded....
    regards
    Reddy

    Hi Vasanth ,
    thanks for your reply.
    i tried in the same manner what u mentioned.
    but how to pass only one parameter to the functionmodule..
    here in this case we have to pass only update flag as 'D'..
    i did the same it giving dump..
    An exception occurred that is explained in detail below.                          
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was      
      not caught and                                                                   
    therefore caused a runtime error.                                                 
    The reason for the exception is:                                                  
    The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:                                                                               
    In the function module interface, you can specify only                            
    fields of a specific type and length under "ORDER_HEADER_INX".                    
    Although the currently specified field                                            
    "INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.              
    my pgm :
    *& Report  YNEW_ORDER_DELETION
    REPORT  ynew_order_deletion.
    TABLES:vbak.
    PARAMETERS:
         p_lifsk LIKE vbak-lifsk DEFAULT '02'.
    SELECT-OPTIONS:
       s_lifsk FOR vbak-lifsk DEFAULT '10',
        s_ernam FOR vbak-ernam,
        s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
        s_erzet FOR sy-uzeit.
    *PARAMETERS:
    p_erzet LIKE sy-uzeit.
       s_erdat like vbak-erdat,
       s_erzet like vbak-erzet.
    DATA:
       BEGIN OF int_final OCCURS 0,
            w_vbeln TYPE vbak-vbeln,
       END OF int_final.
    DATA:
      int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA:
      wf_time TYPE sy-uzeit.
    INITIALIZATION.
      s_ernam-low = 'KULKARMA'.
      s_ernam-sign = 'I'.
      s_ernam-option = 'EQ'.
      APPEND s_ernam.
    s_ernam-low = 'EAI-BATCH'.
    s_ernam-sign = 'I'.
    s_ernam-option = 'EQ'.
    APPEND s_ernam.
    wf_time = sy-uzeit - 1200.
    p_erzet = sy-uzeit - 1200.
    p_erzet-low = wf_time.
    APPEND s_erzet.
      int_order_header_inx-updateflag = 'D'.
      APPEND int_order_header_inx.
    START-OF-SELECTION.
      SELECT vbeln FROM vbak
                       INTO TABLE int_final
                       WHERE lifsk EQ p_lifsk
                         AND ernam IN s_ernam
                         AND erdat IN s_erdat
                         AND erzet IN s_erzet.
      IF sy-subrc = 0.
        LOOP AT int_final.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument         = int_final-w_vbeln
      ORDER_HEADER_IN             =
        order_header_inx            = int_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
            TABLES
              return                      = int_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
        ENDLOOP.
        LOOP AT int_return.
          WRITE:/ int_return-type,
                  int_return-id,
                  int_return-number,
                  int_return-message.
        ENDLOOP.
      ENDIF.
    please help me ..its a very urgent issue to be solved...
    am waiting for ur reply...
    regards
    gangareddy

  • HR-ABAP Any BAPI or Function module to update infotypes 167 & 170

    Hi,
        Can anyone let me know is there any BAPI or Function module to update infotypes 167(Health Plans) & 170(Flexible Spending Accounts).
    Thanks,
    Sandeep

    Hi,
       U can use HR_BEN_CREATE_PLANS internally it calls HR infotype operation as specified by suresh.
    Suresh  : If there are approximately 3000 records to be updated on regular basis do u think is it better to use BAPI's or BDC
    regards
    Vick

  • Is there any BAPI allowing to retreive dump information in details?

    Dear all,
    I would like to ask a question about dumps that are sometimes generated on SAP sytems.
    Each morning, by using the transaction ST22 I can see the dumps that were generated during
    the precedent day. I click on each dump label then in the menu System > list > save
    I can save the dump file which includes technical information about the error (our
    developers look inside in order to find out what went wrong that gernerated the error)
    Now, sometimes there are actually too many dumps and saving each file by ST22 one by one
    takes too much time.
    I know ABAP programming language, I would like to ask is there any BAPI in SAP which could be called
    and that provides the same details that you can have by ST22 about the generated dumps? I was thinking
    to call inside a loop (as many times as there are dumps) this BAPI and write the datails about each
    dump in DATASET and creates the files.
    So, do you know any BAPI providing information about dumps?
    Thank you very much for your attention,
    Kind Regards,
    Dariyoosh

    Hello there,
    Thanks for this information, I'm going to look into the function group in order to
    see how I may use its function modules properly for my purpose.
    Thank you very much,
    Kind Regards,
    Dariyoosh

  • Bapi : Is there any BAPI to CANCEL / BLOCK a Purchase Order

    hello everybody,
    can anyone tell me if there is any BAPI to cancel or block a Purchase order.
    Note : blocking of purchase order is done on item level of the PO.
    Regards
    Swanand

    Hello,
    in BAPI_PO_CHANGE:
    Field DELETE_IND in structures POITEM and POITEMX.
    It's reference is to data-element ELOEK: Documentation to this:
    <i>Text
    Deletion indicator in purchasing document
    Definition
    Determines whether the item in the purchasing document is deleted or blocked.
    Use
    You can set the deletion indicator by choosing Edit -> Delete if:
    You want to cancel an item
    An item is closed and can be archived
    You can set the blocking indicator by selecting the item and then choosing Edit -> Block if you do not want to allow subsequent functions for the item. Note that you must manually remove the indicator as soon as subsequent functions are allowed again.
    Examples
    You have entered a purchase order item by mistake. You cancel it by setting the deletion indicator.
    A purchase order item has been delivered, invoiced, and paid for, and can now be archived. You can set the deletion indicator.</i>
    Regards Wolfgang

  • New to ABAP -- Need help with any BAPI to update the vendor master record

    I have a requirement to update the vendor master record ( ie purchasing block data inlfa1 and lfm1 table )directly. i have created the report but my problem is i am updating tables directly by using modify which is not correct according to SAP hence i want to use bapi whereby i can change the fields of the table. does anyone know any bapi which can modify the lfa1-sprem field and lfm1-sperm field. Plz hep me. They have specifically asked me to do it using BAPI's.

    MAP2e_lfa1_to_bapivendor_04
    MAP2e_lfa1_to_bapivendor_05
    will be helpful

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • Can any one help me with unlocking my iphone4 or do i have to take it aND HAVE DONE , I THOUGHT THAT WHAT THIS SITE WAS TO HELP PPL LIKE ME , LOL

    DOES ANY ONE KNOW HOW TO UNLOCK AN APPLE IPHONE 4 ???

    Sure, you need to contact your cellular provider to determine if they provide unlocking and if you qualify.

  • ANY BAPI FOR FBRA TRANSACTION CODE - MOST URGENT

    HI,
    DONE RECORDING FOR FBRA AFTER EXECUTING , AFTER ENTERING VALUES IT IS SAYING MESSAGE THAT DOCUMENT INCLUDES ALREADY CLEARED ITEMS.CAN ANYBODY HELPS IN THIS?WHY IT IS SHOWING WHEN THE RECORDING IS SUCCESSFULL.
    IS THERE ANY BAPI AVAILABLE FOR THIS? (ALTERNATIVE)
    REGARDS

    Hello,
    Check this FM <b>RESET_CLEARED_ITEMS_BDC_WRITE</b>
    Regards,
    Vasanth

  • Any BAPI for Auto clearing of Vendor accounts

    Hai,
    Any body know, any BAPI for Auto clearing of the Vendor account(transaction F.13).
    This urgent issue.
    Reward will promote you.
    Bye ,
    Elamaran

    no, there's no bapi
    -> another report is rfbibl00 with transaction fb05
    -> you've to fill structures bselk and bselp
    regards Andreas

  • Is there any BAPI or FM which updates or modifies FD32 transaction

    Is there any BAPI or Function module  which updates or modifies the fields of FD32 transaction screens

    Hi, Srikanth
    Please Have a look at this Link [BAPI for FD32 |bapi for FD32]
    Please Search Before Posting
    Hope will Solve out your Problem,
    Best Regards,
    Faisal

  • Do we have any BAPI to get the Sales quote or Sales order details

    Hi Experts,
    Do we have any BAPI to get the sales quote or sales order details from my other SAP system.
    My requirement is to get the sales quote or sales order details from the other SAP system.
    Please help.
    Regards,
    Chitrasen

    Hi Experts,
    Thanks for ur help. The BAPI is BAPI_SALESORDER_GETSTATUS which helps in fetching the sales quote information.
    Thanks,
    Chitrasen

Maybe you are looking for

  • Unable to restore backed up files after recovery

    I had to do a system recovery, and in the process backed up my files.  After recovery, I updated Microsoft and HP files, installed Norton 360, Office 2007, Outlook, and Nikon photo software.  I then tried to restore my backed up files.  Every time a

  • Periodic error about contract when try to restart my NRPE daemon

    Hi everyone, i have an embarrassing problem with my NRPE daemon on my solaris x86. i am doing a lot of change in my NRPE configuration file and i always need to restart it. sometimes, the restart didn't work and the services become "maintenance". Her

  • Problem with Crosstab Cumulative percentage

    Morning all, I have setup my report based on Sales Area (Group) and used Cross tab to show each area's Number of days, Jobs and percentages. I wanted the percentage to be cumulative so I used a formula on Display String of the Percentage section. How

  • HP DX7300 DVD drive

    How do you change the DVD drive in a HP DX7300 desktop computer?

  • Unable to switch themes

    I downloaded the HTML DB Survey App and have been making modifications with it, kind of a more hands on approach to a better understanding of APEX. I am not able to switch the theme - in fact I can't switch it to ANY theme! I thought perhaps it was u