Update 4th September to mention specific SAP custom attributes.
Here’s a really useful way to spruce up your approvals that involves no coding. It applies not just to approvals but to any type of workflow task.
Prerequisite: Your users are already using the My Inbox Fiori app to access their approvals. They are not alone, because its usage is rocketing up, thanks to the spectacular simplification and beautification of the user interface coupled with the ease of implementation for your IT department.
This is what a typical approval looks like:
Figure 1. Vanilla My Inbox
The “open” button at the bottom of the screen will open the item to be approved in a separate browser tab, but let’s face it if a little more detail could be shown with the description then the approval could be done instantly in many cases. The rest of this blog shows you how to add this detail so that the approval appears like this:
Figure 2. My Inbox embellished with context details. Users will be forever in your debt!
You (and the decision-maker) see at a glance the context of the approval. E.g. the leave duration, start of leave and type of leave so they can approve right away. In addition they still have to option to open the underlying approval-item if they want to.
This is how to achieve this:
This brief tutorial uses standard delivered workflow WS30000015 (Formabsence) without modification so that you can repeat the steps yourself, even if you haven’t yet created a workflow.
Run the transaction SWF_USER_ATTR (or the report RSWD_MAINTAIN_USER_ATTR using the transaction SA38 or SE38) and press enter to skip the first screen to arrive at this:
Figure 3. Configuring the list of attributes to display with transaction SWF_USER_ATTR.
Now add the approval context that your users would like to view. In the screenshot above you can see how I have added entries for the attributes that I want displayed in a list. The entries are as follows:
- Task: Either the task or the workflow ID.
- Step: Technical step number if you added a workflow instead of a task. This is particularly useful when one workflow uses a task in several different ways, for example to several different roles. For example, someone performing a technical approval can see a different list from someone approving from the business perspective.
- Active: Active or not. This is useful for testing. As you can see, I deactivated the “hours” attribute.
- Scenario: You are setting this up for My Inbox so select WF_INBOX_DC using value help (F4)
- Name: A technical identifier for this attribute. I chose to add the project name, followed by a numerical number to control the order of list of attributes displayed to the user (undocumented feature – behaves this way in this release).
- Description: The name of the attribute as it should appear in My Inbox. Translation is not possible.
- Expression: The value to display. Use the context-senstive help (F4) to select the field. You can use container elements, attributes of container elements, system variables, or operations on one of these using the _WFSYST element.
[Tip] If you already configured columns for your Business Workplace you can import them instead of recreating them manually as described above. Select the Business Workplace icon (“Import SWL1 definitions”) to import the settings.
You can test an entry to see how they will appear based on an existing work item. And you can generate the values for existing work items, which is not just useful for testing but also for instantly improving a productive system where work items may be several days old.
Figure 4. Retrospectively publishing the list to My Inbox users.
Since no coding is involved you can improve your installation immediately. Go to it, and send me a screenshot of your results to earn virtual round of applause from the My Inbox and Business Workflow developers.
Update: Here’s a useful blog showing how specific attribute names can be used to show your own attributes in the work item header:
The attribute names are:
If you want to show them in the left-hand summary use the parameter showAdditionalAttributes=true in the My Inbox target mapping (or launchpad URL when testing).