STATUS OF LEAVE

Hi guys,
Can you please help me out  to find employee leave status in HR abap.
is there any function module available  or can we get from any infotype screen
thanks in advance.
Ranjit

Hi Ranjit,
I think you can try for infotype 0005(leave entitlement) or check in the table PA0005,  if you go to PA30 and select 0005 infotype and the required subtype u can get the leave status.
Not very sure as i don't have the customization in my system, i will try from other sources and will let you know.
Regards
Syed

Similar Messages

  • Regarding the change status of leave workflow.

    hi friends,
    i have copied the standard leave worklfow "WS12300111" and customized it just to meet our requirement means for multiple approvers.
    everything is working fine in production  means if user ID "AIHR01' raise a leave request the workitem will go to "AIHR02" after his approving the workitem will go to the final approver means "AIHR03" after his approval the leave request will be completed and the status in the TC - PTARQ is coming as "APPROVED" means only after the approving of "AIHR03" the status is coming "APPROVED" but in some cases when user id "AIHR02" is approved instead of coming status "SENT" it is coming "APPROVED"  in TC-PTARQ and because of this status the workitem is coming blank in UWL of "AIHR03".
    I have already incorporated the given below method in the "WORKFLOW" just to change the status from "APPROVED"  to "SENT" after the approval of user ID "AIHR02" but in some cases it is not working fine it is giving BUG.
    begin_method changestatus changing container.
    DATA:request TYPE ptreq_header-request_id,
              wi_id TYPE swwwihead-wi_id.
    DATA: request_instance TYPE REF TO if_pt_req_request,
               event   TYPE tim_req_xfer_event VALUE
               cl_pt_req_const=>c_reqtrans_send,
               ex_status TYPE tim_req_status,
               container_wi TYPE swcont OCCURS 0,
               agents TYPE STANDARD TABLE OF swhactor WITH HEADER LINE.
              swc_get_element container 'REQUEST' request.
              swc_get_element container 'Wi_id' wi_id.
    DO.
      CALL FUNCTION 'ENQUEUE_EPTREQ'
       EXPORTING
        MODE_PTREQ_HEADER       = 'S'
        MANDT                   = SY-MANDT
         request_id              = request
        X_REQUEST_ID            = ' '
        _SCOPE                  = '2'
        _WAIT                   = ' '
        _COLLECT                = ' '
       EXCEPTIONS
         foreign_lock            = 1
          system_failure          = 2
          OTHERS                  = 3
        IF sy-subrc = 0.
          EXIT.
        ENDIF.
        WAIT UP TO 60 SECONDS.
      ENDDO.
      IF sy-subrc = 0.
        CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id     = request
          IMPORTING
            ex_request        = request_instance
          EXCEPTIONS
            request_not_found = 1
            OTHERS            = 2.
        IF sy-subrc = 0.
          CALL METHOD request_instance->initiate_state_trans
            EXPORTING
              im_transfer_event = event
               im_external_call  = 'X'
       im_ret_value      = 0
                     ex_new_status     = ex_status
       ex_ret_code       =
          swc_set_element container 'Ex_Status' ex_status.
        ENDIF.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
         EXPORTING
      MODE_PTREQ_HEADER       = 'S'
      MANDT                   = SY-MANDT
           request_id              = request
      X_REQUEST_ID            = ' '
      _SCOPE                  = '3'
      _SYNCHRON               = ' '
      _COLLECT                = ' '
      ENDIF.
      swc_create_container container_wi.
      swc_set_element container_wi 'WI_ID' wi_id.
      agents-otype = 'US'.
      agents-objid = sy-uname.
      APPEND agents.
      CALL FUNCTION 'SWW_WI_START_SIMPLE'
        EXPORTING
          task                         = 'TS90000089'
          called_in_background         = 'X'
        TABLES
          agents                       = agents
          wi_container                 = container_wi
        EXCEPTIONS
          id_not_created               = 1
          read_failed                  = 2
          immediate_start_not_possible = 3
          execution_failed             = 4
          invalid_status               = 5
          OTHERS                       = 6.
      end_method.
    Request you to plesase help me to solve this issue .why in some cases instead of coming status "SENT" it is coming "APPROVED"  after the approval of user id "AIHR02".
    BECAUSE of the  "APPROVED" staus the same workitem is coming blank in the UWL OF "AIHR03".

    solved by own

  • Unable to Bind back request.status for leave request. Please help me anyone

    Dear all workflow expert,
    I am in trying to customize the the standard leave request WF 12300111 to a 2 level approval and therefore i copy this wf out to customize it. I created one of the step to change the Req.status container back to the status "SENT" so that the second approval can approve it.
    What i do was i bind the Req.status to a container i created in a task (cus_req_sta) and the task is tie to my customize BOR object. Then i bind this cus_req_sta to my method parameter in the BOR object and i have the follwing code in my bor method.
    BEGIN_METHOD ZLEVREQ CHANGING CONTAINER.
    DATA:
        LEAVESTA TYPE PTREQ_HEADER-STATUS.
          V_LEAVESTA TYPE PTREQ_HEADER-STATUS.
      SWC_GET_ELEMENT CONTAINER 'cus_req_sta' V_LEAVESTA
      V_LEAVESTA = 'SENT'.
      SWC_SET_ELEMENT CONTAINER 'cus_req_sta' V_LEAVESTA
    END_METHOD.
    After i change the value in the method, i bind it back from the method to my task and then from task to the workflow. Everything is fine untill the step to pass the value (sent) from task to workflow. It seems that it does not allow me to pass back the value to Req.status container in the workflow. The Req.status does not updated at all.
    The req.status parameter setting is set to import and export when i browse it in the main screen (before entering to the workflow builder). However when i am doing the binding for task back to the workflow (after i drag and drop the req.status and double click on it), it shows the check box for import and export parameter settings is not check.
    Anyone have idea? Please help me.....Points will be rewards.....Thanks
    Regards,
    Bryan

    I think you cannot change REQ.STATUS. It seems that it is an attribute and cannot be changed. An attribute is the property of the business Object instance which depends on the key field and the coding made for the attribute.
    Thanks
    Arghadip

  • Leave approved in Portal is not getting updated in Infotype 2001

    Hello,
    I am using the standard WF - WS12300111 for Leave Request in the Portal.
    The workflow is working fine in the portal; Manager could approve / reject the leave request in MSS and it is updating the portal Team calendar and ESS Employee Leave details.
    However the approved leave is not getting updated in the Absence infotype 2001 in the back-end system.
    Could you help ? 
    Kind Regards
    Desy

    Program (SE38) - RPTARQPOST has to be scheduled in order to update the status of leave requests and post to PA2001 after they have been approved.
    Is there any other way ?

  • Report for Pending Leave requests

    Hi,
    We are trying to use existing transaction codes which would give details of all ess leave requests submitted by employees in the portal during a certain timeframe and which are still pending action by managers (whether to reject or accept).
    The R3 report needs to include the following information:
    Leave Requestor - Name / ID
    Type of Leave Request
    Date Submitted in ESS
    From date of Leave
    To Date of Leave
    No. Hours of Leave
    Current Status of Leave Request
    Leave Approver - Name /ID
    Can anyone suggest if there is any Tcode ( apart from SWIA, SWI5, SWI6 etc..) which could be helpful to get information on whose side the action is pending.
    Regards
    Murali.

    Hi,
    you can use Tcode se38for running this report .
    Or else give a Tcode - PTARQ
    It gives you the total functionalities of Leave Requests.
    Its the sap standard interface provided to test the functionalities in R/3 side .
    Hope this helps .
    Reward if found useful .
    regards
    SureshP.

  • Automatic leave approval

    Hi Gurus,
    I am getting some problem in leave approval through workflow.
    While I am applying any leave through transaction PTARQ its s approved automatically as it should. But when I am doing the same in production it is not working. the status of leave is shown as sent (not approved). In workflow log is it showing that leave is processed without workflow . Whether the leave should be approved automatically. the workflow we are using is standard. pls let me know which setting I am missing because of that leave didn't go through workflow.

    Hi All
    Issue resolved. Actually IT0007 is not maintained for the suervisot. So leave is not approved automatically.
    Thanks All.
    Edited by: pramod s on Jun 1, 2010 11:50 AM

  • 'Next Status' in status overview of Objective settings & Appraisals

    Hello,
    While configuring the status flow for a template in objective settings, we have the field called 'NEXT STATUS".
    There are only three options
    a. Save and change to display mode
    b. Save and leave Appraisal Document
    c. Nothing
    Infact, we wanted the the document to be saved and moved to the next status with "Change mode" (or at least the push buttons in the next status should be working).
    Is there any way to add this choice?
    Thank You
    Raghu Kolukuluri

    Raghu,
    The "NEXT STATUS" field specifies the status(save &leave or save &display), but you're talking about the status flow change, which is very much possible with in the same tab "Status Flow".
    There is a filed called Pushbutton, this is where you select the pushbutton for the form to change the status flow. This staus flow change you can define in the field "TARGET STATUS", if you have any substatus in that status you can define that in " TARGET SUBSTATUS".
    I hope this helps.Award points if this resolves your issue.
    Regards
    Ramakrishna Ramadurgam

  • Adding more Push buttons in Status Flow of Objective Settings & Appraisals

    Hi,
    In my Template Design, under status flow tab, we are able to create new push buttons.
    SAP is allowing, to create only upto 3 push buttons per outbound status/sub-status combination.
    In our application, we need 5 push buttons in one of the outbound status/sub-status.
    Can any expert suggest me what should I do?
    Advanced thanks
    Regards
    Raghu K

    Raghu,
    The "NEXT STATUS" field specifies the status(save &leave or save &display), but you're talking about the status flow change, which is very much possible with in the same tab "Status Flow".
    There is a filed called Pushbutton, this is where you select the pushbutton for the form to change the status flow. This staus flow change you can define in the field "TARGET STATUS", if you have any substatus in that status you can define that in " TARGET SUBSTATUS".
    I hope this helps.Award points if this resolves your issue.
    Regards
    Ramakrishna Ramadurgam

  • Is interrupted status safe? please help.

    I have read the section about interrupts in the Java Tutorial and the API documentation about the interrupt() method but I was unable to find the answer to this question.
    I have two threads: thread1 and thread2
    The run() method for thread1 is:
    public void run() {
         while(true) {
              System.out.println("Hello");
              if (Thread.currentThread().isInterrupted()) {
                   break;
         System.out.println("Thread 1 ending");
    }In each iteration, thread1 checks its interrupted status.
    To stop the thread1, the thread2 executes the following:
    thread1.interrupt();The methods interrupt() and isInterrupted() both access the interrupted status of thread1. Therefore the interrupted status of thread1 is a shared variable used by two threads. Is there any risk of inconsistency on the interrupted status caused by the concurrent access?
    In other words:
    I'm worried about the concurrent acces on the interrupted status variable.
    Do the interrupt() and isInterrupted() methods take care of the synchronization on the interrupted status variable or should I use some synchronization mechanism?
    Thank you very much for the help.

    the only thing i'd point out, is that you need to be careful which method you use to test the interrupt status. the isInterrupted() method checks the status and leaves the status alone, whereas the interrupted() method checks the status and then clears it. make sure you are using the version which has the behavior you desire.
    other than that, i can't think of any other "idioms". i guess i will mention that generally you want to use wait/notify to coordinate threads ("normal" communication). interrupt should generally only be used be used when you want to stop the progress of a thread (abnormal communication, e.g. due to a problem).

  • ESS LEA: Leave request, RPTARQPOST

    Hi,
    I read on some forum posts that the program (SE38) - RPTARQPOST has to be scheduled in order to update the status of leave requests and post to PA2001 after they have been approved.
    I have not scheduled it, but in our system, when manager approves a leave request, it gets updated in PA2001 (PA30). I understand from our workflow consultant that table prarq_header is being updated with the status (sent, approved, rejected) through a step in the workflow.
    Wondering if it is still necessary to schedule RPTARQPOST
    Appreciate any advice.
    Thank you,
    Brgds,
    Zubair
    info:
    Using ESS BP ERP1.0 on Enterprise Portal 7.0, backend ECC6
    workflow template WS12300111

    Honestly speaking, I at my place have scheduled PTARQ for all the activities to be done. But you have done it through workflow. May be its a different way of doing. Really not able to say whether right or wrong.May be the Workflow consultant at your place is the right person to judge

  • Leave approveing error

    My employee applied leaves on 06.01.2012 for the dates 24.12.2011 as a CL & 25.12.2011 as Optional holiday. But the problem is after approveing his HOD it shows in portal for the date 25.12.2011 its Status-APPROVED but come to 24.12.2011 it shows ERROR in portal why? Please guide me
    Both leaves are Processed under one Work flow number only!

    Hi,
    Did you check the log for error leave request in the backend?
    Go to SE38.
    Give program name as RPTARQDBVIEW and execute it.
    In the selection screen give your employee number and also the date when he has applied.
    Then output of the report will show the status of leave request he applied.
    Select the one which is in ERROR state, then click on workflow log button.
    Then check in the log for the exact error.
    I need to know what is the error you are getting in the backend to provide the solution.
    Cheers,
    Raja.D

  • Open letter to the top management.

    Open letter to the top management Dear Sirs, I bought my BB 9790 four months ago. I really like its design, its QWERTY keyboard, its interface., its features ... but in the opposite direction, I have had problems with the battery, synchronization with Outlook, I can't to implement Skype,... I thought: a Z10?. I'm sorry but I don't like the design absolutely nothing. Where is the QWERTY keyboard?. Now it's tactile. The design is rectangular like the vast majority of SmallPhones. BlackBerry was different, unique, special but the Z10 has lost its essence. . Why high technology is at odds with elegance? Why high technology is at odds with beauty? Sirs, I'm sorry, but your Z10 is not an Blackberry. BlackBerry company has sold its soul with this design. For the near future, I suggest you a new trademark and a new logo ... I'm sorry for being so sincere and express my own opinion about this important matter.. Thank you very much for your time and attention. Yours sincerely,

    I have a good idea...Why don't you post this on your Facebook status and leave this forum for the people who have real needs to get problems resolved?
    Signed,
    Top Management

  • Multiple condition : Error when starting a SWITCH branch

    Hi,
    In our Z Leave Workflow,I am facing the errors listed below.
    Error when starting a SWITCH branch
    Error during CASE evaluation in SWITCH mode for node 0000000158
    Operator 'EQ': The value of the left operand cannot be determined
    Error in the evaluation of expression '<???>&REQ.STATUS&' for item '1'
    Unable to determine the value of component ''
    It gives error in Multiple condition Request Approved? which is similar to standard WF12300111 node number 158 (u can say copy of WF12300111
    This multiple condition works in some scenario But it gives dump at other scenario .
    I have checked the value of REQ.STATUS in runtime. It populates the value as 'POSTED' in runtime,
    Please suggest if any solution on this.
    Regards,
    Kalpesh

    Hi There was some problem with task which was comprising class CL_PT_REQ_WF_ATTRIBS and APPROVE method. This method is to change the status of particular leave workitem.After running this particular task ,the status was not changin instantly.This method locks particular workitem and was releasing the workitem once the WF gets completed.Hence I was getting REQ.STATUS as sent.
    I have changed that task with following code in new task...
    DATA:
          REQUEST_ID TYPE PTARQ_DEDUCTION-REQUEST_ID,
    request      TYPE REF TO if_pt_req_request,
        new_status   TYPE tim_req_status.
      SWC_GET_ELEMENT CONTAINER 'REQUEST_ID' REQUEST_ID.
    CALL FUNCTION 'ENQUEUE_EPTREQ'
        EXPORTING
          mode_ptreq_header = 'E'
          request_id        = request_id
        EXCEPTIONS
          foreign_lock      = 1
          system_failure    = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
        MESSAGE w058(hrtim_abs_req) WITH request_id.
      ELSE.
    CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id = request_id
          IMPORTING
            ex_request    = request.
    execute state transition
        CALL METHOD request->initiate_state_transition
          EXPORTING
            im_transfer_event = 'APPROVE'
          IMPORTING
            ex_new_status     = new_status.
    COMMIT WORK.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
          EXPORTING
            request_id = request_id.
    ENDIF.
    This will create new status for leave item during WF processing.
    Apart from that also added Wait for  2 minutes after that task....
    Thanks for your help.
    Regards,
    Kalpesh

  • Enhance legend in Record Working Time IView

    Hi,
    I am working on SAP NetWeaver Portal 7.0(Service Pack 4). New NetWeaver functionality in Record Working Time section(of ESS>Working time ) allows employees to enter their working times for different attendance/absence types showing different colours in calendar for Rejected and Not Released statuses. Now the requirement is to include one more colour to show the approved times in the calendar. Ie, Currently legend has two colors with text,  like  (  <Red box> Rejected           <Light Red box>  Not Released), now i have to add   ' <Green box>  Approve '  beside   'Not Released' text,    and if manager approves the time sheet then those dates will be displayed in green color.
    If any body worked on the similar type of requirement or having knowledge....please let me know how to achieve this req.
    Thanks in advance.

    HI,
    You need to implement BADI for this ..
    BADI name : "PT_ABS_REQ"
    In the BADI "PT_ABS_REQ" interface "IF_EX_PT_ABS_REQ" you can find the method
    "SET_CALENDAR_COLOR" in that you can set the colure for the Absent type ......
    Adjust Colors of Calendar and Team Calendar
    Functionality
    You can use this method to change the colors in the team calendar.
    In the standard system, the different statuses for requests have different colors. You can use this method to differentiate the colors of requests depending on the following aspects:
    Status of requests (status)
    Action that an employee has executed: new request, delete, change (UIA operation)
    Subtype of absence (SUBTY)
    Full-day or partial-day absence (BEGMT, where BEGMT = 0 signifies a full-day absence)
    Application mode ( mode). You specify the application mode in the Select Employees for the Team Calendar IMG activity.
    Color Display of Status of Leave Requests(COLORS_ACTIVE). You specify this status in the Specify How Leave Is Displayed and Default Values IMG activity.
    Available Colors
    You have a choice of 16 colors. The 16 colors are hard coded, that is, you cannot change them or add other ones.
    The available colors are stored with their RGB value as constants of the CL_PT_REQ_CONST class. Use these constants if you want to change the colors.
    Notes
    If you change the colors in the team calendar, you should also adapt the legend accordingly. You can use the Adjust Legend for Calendar and Team Calendar method to do so.
    Hope this work!!!

  • How to change colors for record working time calendar

    Hi,
    I would like to change the colors in the calendar displayed in record working time based on some conditions.
    How do i do that is there any BADI associated with that
    Thanks
    Bala Duvvuri

    Hi Bala ,
    Yes its possible to change that .
    You need to implement BADI for this ..
    BADI name : "PT_ABS_REQ"
    In the BADI "PT_ABS_REQ"   interface "IF_EX_PT_ABS_REQ" you can find the method
    "SET_CALENDAR_COLOR" in that you can set the colure for the Absent type ......
    Adjust Colors of Calendar and Team Calendar
    Functionality
    You can use this method to change the colors in the team calendar.
    In the standard system, the different statuses for requests have different colors. You can use this method to differentiate the colors of requests depending on the following aspects:
    Status of requests (status)
    Action that an employee has executed: new request, delete, change (UIA operation)
    Subtype of absence (SUBTY)
    Full-day or partial-day absence (BEGMT, where BEGMT = 0 signifies a full-day absence)
    Application mode ( mode). You specify the application mode in the Select Employees for the Team Calendar IMG activity.
    Color Display of Status of Leave Requests(COLORS_ACTIVE). You specify this status in the Specify How Leave Is Displayed and Default Values IMG activity.
    Available Colors
    You have a choice of 16 colors. The 16 colors are hard coded, that is, you cannot change them or add other ones.
    The available colors are stored with their RGB value as constants of the CL_PT_REQ_CONST class. Use these constants if you want to change the colors.
    Notes
    If you change the colors in the team calendar, you should also adapt the legend accordingly. You can use the Adjust Legend for Calendar and Team Calendar method to do so.
    Hope this work!!!

Maybe you are looking for

  • Toslink to digital optical stopped working

    Hello, I am having an issue with getting sound from my MacBook Pro to my 5.1 AV Receiver. I recently bought a toslink to digital optical cable and everything was working fine until the other day I accidentally unplugged the toslink end from my comput

  • How to Write a file from hex format to another format

    hi I am trying to create a file (IBM AFP-printer format) from the hex file which i have created after reading that IBM afp file. Now i have to do some changes in that hex file data and store it back to the same format. I have tryed storing it using:

  • Inserting multiple rows on one "Add Button"!

    I have an appliation that tracks family members (address book type app). form page that tracks "family relationships" (http://apex.oracle.com/pls/otn/f?p=55283:2) Page 2/3 are Master Details, where the detail reports are "relationships" From page thr

  • Team Calendar does not display Team Appointments

    Hi, I am having trouble with the Team Calendar in our Collaboration Rooms. The calendar is connecting to exchange, however it does not display the Team Appointments. It only shows the appointments for the individual users. I had hoped that the Appoin

  • After holding c key while rebooting system I do not have an acces to choice of installing mac os from dvd

    Hello, I just wanted to upgrade my Mac OS from Tiger 10.4.11 to a Leopard 10.5 (I run PowerMac G5 Dual 2.0GHz) and I experienced a little problem. To boot computer from the genuine retail Leopard 10.5 DVD I am suppose to hold down the 'option' or 'c'