Skip to Content
author's profile photo Former Member
Former Member

Leave request not approved but posted

Hi,

There is a pending work item in user's task list but when user click the request for processing, it returns blank screen.

When checked container of work item REQ-Status is POSTED, while _Workitem-WorkitemStatus is STARTED. I also checked table PTREQ_HEADER for Document ID and it has 3 entries and Version 3 has Status POSTED.

User (Approver) said that he has not processed the request so how the leave has been posted? I am trying to find the reason but do not understand how is it happening. There are few such issue have reported earlier but frequency is very less and random for this issue. Not able to simulate the error in Quality environment.

Regards,

Amitesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Sep 15, 2016 at 02:11 PM

    It does sound like the request has been approved and that the UWL wasn't refreshed, and then when the user tries to open it there is no request present. Just in case you are still looking into this.

    I would check the following:

    - SWI1/SWIA -> Did the user or another user approve the request? What status is it in?

    - SE16 table SWWUSERWI will you see what requests are in the user's UWL list. It shows active requests.

    - in SA38 or SE38 there are many *PTARQ* programs related to leave request. If you look at the posting program. It can only post approved requests or ones that aren't attached to a workflow.

    - SE16 check table V_T554S_WEB. This table will show you what workflows are being called for each type of leave for each grouping. This may help if the workflow is not being called, if you want to try using the standard workflow, etc..

    Hope this helps,
    Doug

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2016 at 11:30 AM

    Is it happening for any particular user i.e. either requestor or approver ? There are cahnces of having authorization issue. Please tell user to check t-code SU53 just after the incident.

    Thanks,

    Prakash

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member shamsudheen k

      Thank you Former Member

      I check workflow template and we have a custom task to reset the status from APPROVED to SENT.

      The problem with the instance having error is that TS12300097 is setting value of status (_Wi_Object_ID - STATUS) to POSTED instead of APPROVED. Since in custom code check is in place to reset the value from Approved to Sent but as status is not Approved but Posted so check fails and status does not change to Sent.

      Can you please help me to understand how status is changing to POSTED instead of approved by task TS12300097? My initial thought was that may be PTARQPOST was run so that status was changed to Posted before it was reset to Sent. But same user is having few task assigned with same error at different time, so I am not sure if there is no issue with the standard task.

      Thank you

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2016 at 05:51 PM

    Hi Amitesh,

    Are you using Standard workflow template for leave approval ? Please share more information.

    Leave can be posted even though executing Program RPTARQPOST.

    Regards,

    Shailesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      We are using custom workflow template as there are multiple approval level for some of the Absence type.

      Leaves are being posted using RPTARQPOST but it will post only when Request status in table PTREQ_ATTABSDATA is Approved. The issue in the reported case is that 2nd level approver which is final approver has not approved the rquest (_Workitem-WorkitemStatus = STARTED) but REQ-STATUS is changed to POSTED.

      Regards,

      Amitesh

  • Posted on Sep 12, 2016 at 08:32 AM

    Check the workflow log, it will have details about the approval time. you can also check if there is any background job for auto approval or something?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.