cancel
Showing results for 
Search instead for 
Did you mean: 

In ESS Employee gets error when 'Create Leave Request' is clicked

Former Member
0 Kudos

Dear Pals,

I have the issue where employee an employee (Pernr - 404756) is reporting to manager (Pernr - 853429) as per the organisational structure.

Employee belongs to company code - HS01 and

Manager belongs to company code - HS02

Note: Both employee and manager are in different company codes.

Issue: In ESS when the Employee clicks on ' Create Leave Request' the particular error is displayed rather than landing the Leave request page.

Error is attached.

After analysis we found for other set of employees where employee and manager belongs to HS01 company code there is no issues.

So we have understood there is something to do with some Authorisation where it is not able to connect with manager who is in different company code.

Now the customer want to maintain data as it is right now and also we should overcome the error.

Could you please tell whether anyone faced such issue or know how to tackle

Thanks and Regards,

Ram

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Yugandhar,

Please find the short dump extract in the attachment.

Thanks

Ram

former_member182426
Active Contributor
0 Kudos

it's looks like your using custom class to identify the approver for this employee.

In this class it's not able to identify the reporting manager as per that logic.

Try to maintain 002 relation ship for this employee position id to that manager position id and check it.

Debug this custom class ZCL_HCM_SWF_COMMON in method GET_LINE_MANAGER and check wat parameters are passing to fetch the line manager.

former_member182426
Active Contributor
0 Kudos

This error will come if there is no rule group identified for that employee.

check in PTARQ t-code, click on Determine Rule group button and check is it showing the rule group or not for that employee.

If it's not showing any thing then Check the WEBMO feature is any rule group assigned or not assigned for this company code HS01?

Former Member
0 Kudos

Dear Shankar,

I checked 'Determine Rule Group' in PTARQ and Rule group exist. Also in the feature WEBMO values are there.


Btw my issue is half resolved, thanks for the team members who replied.

What I did was:

Created a profile in OOSP with the Org.unit details of the manager and assigned profile to the Employee user id. Now Leave request screen is accessible.

But this will give more authorisation to the employee of different Org.unit which he should not be. Now looking into some evaluation path or other feasibilty

Thanks all

Ram

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

check in ST22 dump for this user, what error you see? compare the roles assigned to the user and check the customisation as per working one in PTARQ etc

Former Member
0 Kudos

From ST22 dump and debugging around Field symbol assignment, you will understand the issue..

Post the code where its dumping, it will help us understand whats going on.