This content from the SAP Concur Community was machine translated for your convenience. SAP does not provide any guarantee regarding the correctness or completeness of this machine translated text. View original text custom.banner_survey_translated_text
Hello Community,
In case you need below you can find a quick guide to implement the approval workflow in a printed report.
In a guide provided in Workzone https://workzone.one.int.sap/site#workzone-search?sap-app-origin-hint=&/groups/tWjsZAMTsAvcnRcP9F5M5... simply says to copy and paste the code which turned out to be an oversimplification. The process wasn’t that straightforward or or at least all the steps are not in the same guide.
So, here’s a breakdown of the steps I followed:
1. Copy and paste the code into the Print Template.
Since the workflow was related to a request, the content ID was different. I had to search through separate guides to find the correct variable. For request workflows, the content ID starts with rq, so instead of using $approval_WorkflowSection, I had to use $rqapproval_WorkflowSection.
The code below creates a line in the required format, which then needs to be configured accordingly afterwards.
Original code for expense (not request)
<tr>
<td>
<table class="cStdForm"
cellspacing="0"
style="width: 100%"
cellpadding="0"
border="0"
summary="$!ui.localize('table.summary.printreportreceipt')">
<tr><td> $approval_WorkflowSection </td></tr>
</table>
</td>
</tr
2. Adjusting the Code Placement and Adding Custom Text
After testing, I moved the piece of code within the template to position it exactly where I wanted it in the report. Additionally, I added a new piece of code (not mentioned in the official guide) to display a custom text above the workflow section.
The code below creates a line in the required format, which still needs to be configured afterward to match the desired layout.
<tr><td>$text_WorkflowNote</td></tr>
3. Accessing and Modifying the Print Format
Go to Print Formats, click once on the desired format, and then select Modify Content. This will open the window shown below.
4. Activating and Formatting the Request Approval Flow Data
Initially, I simply double-clicked on the Request Approval Flow Data (which is equivalent to clicking once and then selecting Modify Content) and saved without making any changes. After testing, I confirmed that the workflow was already visible in the printed report from the end-user’s perspective.
Later, I accessed the section again to adjust the formatting, as shown below.
5. Customizing the Title Text
Finally, I modified the title text by following the same steps described in point 4. This time, however, I manually typed the desired title directly into the field, and that’s it!. Below you can see the final result.
IMPORTANT!
If this information has been useful to you, or you simply want to support my initiative, just leave your thumbs up 😉