Skip to Content
Technical Articles
Author's profile photo Jose Sequeira

Workflow – Decision task text from structure(multiline) + HTML example


In most cases, we need to customize the Workflow decision task text, and there are many ways to do it. In this Blog, i’m gonna show you how to fill a internal table (type W3HTML) and place it as the task decision text (using a HTML text as example).

So let’s create a new custom Workflow, and a User Decision step:

On the Control tab, the default decision task (TS00008267) is presented:

This is the standard default decision text:

We should (as a good practice) create a copy of the default task, so go to PFTC and do it:

Create a container element (type W3HTML), as a internal table/multiline(in properties tab):

Now go to the Text tab, Edit, delete the current default text, and Insert a Expression(menu below):

Selecting the MY_HTML:

This message is presented, you could select the second or third line(depending on your needs):


Returning to the Workflow:

Now you should create another step to populate this internal table (using BOR, Class, etc.), and then pass it to the new created Task on the decision step:

Now you’re all set, your custom text will be presented on the SBWP/MyInbox App as the decision text ???.

HTML example on MyInbox:

The code for the example (placed on a BOR Method, populating the MY_HTML structure)


* SAP Wikis HTML Code
wa_html-line = '<HTML><BODY><TABLE>'.
append wa_html to my_html.
wa_html-line = '<TR><TH>Text</TH><TH>User</TH><TR><TD>SAP Blog HTML Text</TD><TD>'.
append wa_html to my_html.
concatenate sy-uname '</TD></TR></TABLE></BODY></HTML>' into wa_html-line.
append wa_html to my_html.
swc_set_table container 'MY_HTML' my_html.

You should play around with some HTML table examples, like:


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Srinivas Bavisetti
      Srinivas Bavisetti

      Thankyou for the post

      Author's profile photo zongjie zhang
      zongjie zhang

      Dear Jose,

      Thanks for your sharing. I had follow your step try to pass html table to decison task to display custom text in inbox app, but it won't work. we do this configuration in our client 100, then our test is in client 300. Once I try to make the same step in client 300, it work fine, so do you know what's the sistuation we come across and help,thanks!