Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member181875
Contributor
Update 4th September to mention specific SAP custom attributes.
Update May 2019 - prerequisite 2 has been added.

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 1: 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.

Prerequisite 2: The approval Display is the generic display, and not a Fiori application rendering. At the time the blog was published, this was rare, but as of 2019 most approvals are rendered by the applications using the attractive Fiori framework, making it unnecessary to add detail to the display. However, the left hand frame can still be enhanced, and in some cases the header can also be enhanced.

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:

  1. Task: Either the task or the workflow ID.

  2. 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.

  3. Active: Active or not. This is useful for testing. As you can see, I deactivated the “hours” attribute.

  4. Scenario: You are setting this up for My Inbox so select WF_INBOX_DC using value help (F4)

  5. 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).

  6. Description: The name of the attribute as it should appear in My Inbox. Translation is not possible.

  7. 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:

  • CustomTaskTitle

  • CustomNumberValue

  • CustomNumberUnitValue

  • CustomObjectAttributeValue


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).

Previous Next
15 Comments