Skip to Content
0
Former Member
Jul 04, 2014 at 06:57 AM

Travel Report Substitution Details

36 Views

Hi All,

I have an unusual requirement for which i need your advices. I will try to explain it as clearly as possible.

Business Scenario

1. An employee raises a travel request in ESS portal.

2. The workflow generates a PDF document of the request details and sends it to the employees' reporting officer for approval (Dialog Step).

3. When the reporting officer approves the travel request, it will then be forwarded to the HOD (Head Of Department)

Now, Incase the reporting officer or the HOD is unavailable in office for approval process, then travel administrator forwards the request to the substitute approver.

To achieve this, I have built a Module Pool Program so that the administrator can select the approval step in the screen and forward it to any user available using function module, SAP_WAPI_FORWARD_WORKITEM.

Requirement

Now when the reporting officer or the HOD is unavailable, the administrator forwards the approval step. The employee code to whom the request is being forwarded should display in the PDF document during the forwarding process.

Difficulty Seen

The PDF document is generated as background processing type in the first step of workflow. The same PDF document is forwarded to others. Now since the document is already generated and we are only forwarding the workitem, the PDF will not generate the details of the substitute officers.

How can we achieve this in workflow manipulation.?

Thanks
Chinmay