cancel
Showing results for 
Search instead for 
Did you mean: 

Information mail to HOD in ESS Leave Request

Former Member
0 Kudos

Hi,

I am very new to workflows, here we are implementing Leave Request workflow in ESS ( WS12300111 ). The process in one Leave approval only, but my client wants to send the approved leave request information of employee to his HOD ( after got approval from direct manager ).

I have tried to incorporate SEND Mail Step after approval task, but i am unable to get the HOD of employee in container, can u please tell me where i need to do the changes to incorporate the same.

Thanks & Regards,

Srinath

Accepted Solutions (0)

Answers (1)

Answers (1)

marcos_suarezhulet
Participant
0 Kudos

Hi Srinath,

I supposed you have already copied the standard WF because it hasn't the functionality you need.

In the new custom WF you have to look for the HOD in the Organizational Structure.

How can you do it? Well, create a ABAP Class with IF_WORKFLOW interface. After this, create a static method in the Class with the employee as Import Parameter and a swhactor structure as Export Parameter. Into this method call RH_STRUC_GET Function module if you know the HOD's evaluation path or navigate into the DDIC tables where you can get it.

After that create a synchronous Task to call that method. Then create a step in the WF asociated to the new task. This step will gives to the WF the object that identifies the HOD. You can use this object to pass it to the email step as the recipient.