I have an unusual requirement for which i need your advices. I will try to explain it as clearly as possible.
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.
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.
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.?