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

approved leave but with rejected worfklow

Hi,

Does anyone ever encountered this of issue before:

Employee apply leave.
Manager approves the leave and the quota has been deducted (can be seen in the leave overview).

However, employee receives email notification mentioning that leave has been rejected. IT team checked the workflow in backend and it follows the rejection workflow.

Thanks

Yin Mun

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Nov 09, 2015 at 10:28 AM

    Hi Yin,

    we have the same problem. We contacted SAP but they were of no help. Also, since go-live (9 months) this has only happened twice and we find it impossible to replicate in our test environment. There must be some issue with the status of the request.

    Our workflows were copied from WS12300111 and we did not change anything in condition step "158 Request Approved?". After SAP did not provide any helpful feedback, we decided to adjust our workflows by adding a new branch to this condition step:

    • We explicitly declare outcome 'Rejected' instead of having it under 'Others'
    • In the 'Others' branch, we have now set up an email sent to an internal address that we monitor, and we print the &REQ.STATUS&. This way, when it happens again, we will also know what this mystery status is that sent the WF down the Others branch, yet proceeded to post the absence in IT2001

    We are just implementing the above, so we don't know how it will turn out!

    How have you addressed the issue?

    Thanks,

    Elsa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 05:39 AM

    Hi Yin,

    Its because of the wrong notification message triggered from the workflow . Please ask your workflow consultant to check the workflow log (T.code : SWIA) and correcting this will solve the issue.

    This has nothing to do with the configuration part in ESS we will just assign the workflow id to the leave types in configuration. Ask your workflow consultant to check the workflow template in SWDD transaction.

    Please find the sample screen shot of the workflow template and workflow log,

    SWDD:

    SWIA:

    Hope this solves the issue.

    Regards,

    Mithun K


    wflow.jpg (129.7 kB)
    wflow1.jpg (51.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 05:27 PM

    Well initially there should be a simulation of deduction of quota, have you run rptarqpost after the rejection of the request?

    When a user creates a leave request, deduction data for the absence quota to which this leave belongs to should be entered in table "PTARQ_DEDUCTION". This table uses the request id generated for that operation as a primary key. Quota overview will have this deducted. The CL_PT_ARQ_TIMEACCOUNTS class, method GET_TIME_ACCOUNTS does two things in sequence It calls the method #get_reduced_quota_for_pernr#, which takes unposted leave requests and simulates the deductions for the unposted leave requests against the quotas Then calls the method #consolidate_quotas# which combines the deductions calculated above with those deductions for posted leave requests to give the negative amount (it does not recalculate the deductions for the posted leave although does when it is posted to SAP) You have read the documentation of the Function Module HR_GET_QUOTA_DATA to select the proper mode. In your case it should be 'D', kindly check it. The parameter D makes it read from IT2006, There are other modes as well, If you dont want the Quota to be displayed from 2006.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 13, 2015 at 10:17 AM

    We just received our first internal email and the status is SENT.

    The log says that the current status is POSTED and the workflow has been completed.

    So, it seems that the manager hit the APPROVE button and for some reason there was a delay in the change of the status perhaps..?

    In any case, we will change the decision step 158 and add status 'SENT' to the 'APPROVED' branch

    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.