on 09-15-2014 4:45 PM
Hello
I configured Leave Request on behalf of employee application in MSS Employee_Menu launchpad.
When Manager selects an employee in MSS Home Page and creates a leave request, it is only creating leave request for the login user, but not for the employee selected.
I have the following config in MSS Employee_Menu launchpad:
webDynpro application: HRESS_A_PTARQ_LEAVREQ_APPL
Application Alias: CREATE_LEAVE_REQUEST
Target parameters: LRF_SKIP_OVERVIEW_PAGE=X&PERNR_MEM_ID&SUBST_CLASSIFICATION=NO_CLASS
Config ID: HRESS_AC_PTARQ_LEAVREQ_1
The same configuration I tried for HR Admin role (HRPAO -> Actions). It's the same problem there also. It's only picking the login user rather than employee selected by HR Admin.
Please advice.
Thanks
Raghu
Hi,
Check the BADI implementation HRMSS_MOD_BUS_PARAMS_P_MEM_ID.
Employee number will be passed from this badi. Debug the badi.
Regards,
Jyothi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jyothy,
I debugged the BADI implementation HRMSS_MOD_BUS_PARAMS_P_MEM_ID.
It is getting triggered and it is returning a memory ID (some random string, which has reference to the Pernr selected).
Even then, the leave request is initiated only for the login user and not the employee selected.
where else, I need to check ?
Thanks
Raghu Kolukuluri
Hello
I solved the problem for MSS.
I debugged the Badi HRMSS_MOD_BUS_PARAMS_P_MEM_ID and also CL_HRESS_EMPLOYEE_SERVICES.
The Pernr is actually stored in memory.
However we have a custom implementation of Badi PT_ABS_REQ (to restrict employees from making retro leave requests). In this Badi, we had a code that takes login user's Sy-Uname as employee. I corrected this here and now we are taking the Pernr from memory.
It's working fine.
However I wanted to replicate the same functionality for HR role.
I have added the same webDynpro application (Leave Req on behalf of empoyee) in HRPAO->Actions.
In HR Renewal role, when I search employee, and create leave request for her, it is not triggering the BADI HRMSS_MOD_BUS_PARAMS_P_MEM_ID.
is there anything I can do to trigger this BADI and set the pernr in memory ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
Check SET_PERNR_TO_MEMORY method of the class CL_HRESS_EMPLOYEE_SERVICES. Employee ID is set from this method in memory. Debugging this might help you.
I am away from SAP system right now but once I log in to system I will check configuration again to see if I see a mismatch with your configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu ,
Please let me know , whether its a standard or custom one which you are using?
If its a standard one, i believe configuration side there might be a error.
In case if its a custom one, then you can check with your webdynpro consultant for debugging.
Regards
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.