cancel
Showing results for 
Search instead for 
Did you mean: 

approved leave but with rejected worfklow

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

ElsaM
Explorer
0 Kudos

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

ElsaM
Explorer
0 Kudos

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

Former Member
0 Kudos

  A gud workflow consultant will help u on this

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

Former Member
0 Kudos

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