Integrating Visual Composer Model with UWL

SAP EP 7.31 SP9, ERP 6 EHP4.

The background:

You have a workflow, for instance a basis workflow defined in SAP ERP 6 backend.

This workflow triggers work item creation.

SAP EP is set up and Universal Work List (UWL) is connected to the backend system.

Workflow work items appear in UWL as tasks.

Target:

You want to trigger a Visual Composer model to handle the UWL task instead of launching a HTML SAP Gui windows.

This blog will be split in several parts:

Visual Composer Model

This model will receive the work item id and then retrieve backend data.

Then, depending on the business object you want to handle, appropriate RFC or BAPI will need to be used.

The model

Story board

VC 1 model story board.png

Layout

VC 2 model layout 1.png

Starting point need to have a text data named WI_ID.

WI_ID will be filled from the UWL task.

VC 3 model starting point.png

Others data are mainly used to unit test the VC model.

RFC SAP_WAPI_READ_CONTAINER is used to read the work item container.

Start is mapped to the data source, WI_ID is linked to INPUT input port.

VC 4 model data mapping.png

Depending on your business object you will have to use the work item container accordingly to retrieve the business object key.

In my case I used QM notification tasks, Business Object BUS2078.

A filter operator is used

VC 5 model filter.png

The Form view is defined as follow:

NUM_DEMANDE and NUM_TASK are my business object keys.

VC 6 model define data.png

In order to test the model you can map to the start work item default value.

VC 7 model map data.png

Result (work item is ‘hard coded’) :

VC 8 model test.png

VC 9 model test.png

Final model with Business objet call (BAPI_QUALNOT_GETDETAIL)

VC 10 final model.png

Remark: In my example, I used SAP_WAPI_READ_CONTAINER to read data. If you already have everything in the container and have these attributes available in the UWL, you can directly call the RFC or BAPI by passing for example the object key.

 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply