As part of the continuous improvement SAP has come up with various workflow approval options for SAP business workflows which gives the user various options to execute applications using workflows.

SAP has tried to separate the applications from business workflows specifically in few areas of HCM like travel management and leave however this approach has confused a lot of customer in case of usage.

SAP today provides following workflow execution options.

1. POWL

2. Unified Inbox

3. Fiori Inbox

4. SAP ERP inbox

5. Universal Inbox in case of JAVA stack

Unknowingly SAP has created complexity for self however the reality differs.

With the release of SAP Fiori Inbox SAP provides the most unified way of executing workflows from one application across all platforms and devices.

A user as in any role can logon to Fiori inbox using his/her tablet, mobile or desktop. The application adopts according to the device used.

/wp-content/uploads/2015/04/1_681555.gif

A Fiori inbox typically looks as shown above on a desktop. The inbox is capable to execute SAP and NONSAP workflows and we will talk about how can it be achieved.

In today’s world we have HCM, SRM, CRM having different technology used. We use java, BSP, SAP GUI, SAPUI5 and other various applications and objective of any implementation must be to integrate all these under one roof.

Lets get to business instead of talking at high level.

We have above scenario where a leave application is being sent to manager by employee, one as manager can take the action using the green and red buttons from your mobile or desktop. However you want the manager to see more details of applied leave apart from over view then you can click on open task and you can launch any application in the open task.

For example we cab launch a webdynpro application on click of open task as shown below from desktop.

/wp-content/uploads/2015/04/1_681555.gif

The quick question that occurs in everyone’s mind is that how can this be done hence lets talk about that.

There is a class CL_SWN_URL_GENERATOR  which picks up values of task parameter that we store in SWFVISU transaction.

Which means that in above case the Sapnamespace, application, webdynpro component and dynpro parameter is picked by class CL_SWN_URL_GENERATOR.


Let’s look at the methods of this class.


/wp-content/uploads/2015/04/1_681555.gif


The class carries each method that creates application url for different applications like webgui, ITS, java and abap webdynpro and BSP.


Let’s look at a bit of configuration required here. The configuration would depend on the gateway strategy. This configuration can be part of gateway system.


/wp-content/uploads/2015/04/1_681555.gif  

When you maintain the task name and decision options you can follow below example. Please note that the parameters totally depend on the applications. The parameters are very much maintained in SWFVISU and in case of above step below is what you will configure.

/wp-content/uploads/2015/04/1_681555.gif

/wp-content/uploads/2015/04/1_681555.gif

The decision text configured above will be visible as button text. You can enable or disable a comment field. Please note this comment field value is not stored in the workflow hence if you have a specific comment field in application or workflow then please do not expect this comment to match with the same.

I recommend you to keep above comment field unchecked as in most cases either workflow step or application has comments option.

Please note that to get the Step ID you will have to check your workflow.

Another example of how request can be configured for another process is shown below.

/wp-content/uploads/2015/04/1_681555.gif

/wp-content/uploads/2015/04/1_681555.gif

After above configuration if you check the training request then below is how it would look in the Fiori Inbox.

/wp-content/uploads/2015/04/1_681555.gif

If you choose to open the task and view the details then below is the reference screenshot which your desktop browser will open.

/wp-content/uploads/2015/04/1_681555.gif

you can check course details by clicking links under Objects and attachments.

/wp-content/uploads/2015/04/1_681555.gif

Please make sure you also complete scenario definition configuration.

/wp-content/uploads/2015/04/1_681555.gif

Define scenario

/wp-content/uploads/2015/04/1_681555.gif

Consumer definition

/wp-content/uploads/2015/04/1_681555.gif

You can define a role which can be assigned to consumer as shown below.

/wp-content/uploads/2015/04/1_681555.gif

You need to define a system that the task gateway has to use. As generally if you have external gateway then this application would read the workflow from ERP system.

/wp-content/uploads/2015/04/1_681555.gif

ERP_TASK would be defined in SM59 which will point to the ERP system.

This completes your scenario based task definition and this definition will refer to the parameters that are defined with the SAP Business Worklfow in SWFVISU and pull the respective parameter to form different URL.

With the effective usage of Fiori inbox you have single point of source in the system that can help you execute your process from Desktop Tablet and Mobile phones.

We have implemented the Fiori Inbox for a customer and the results are effective.

To report this post you need to login first.

13 Comments

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

    1. Barin DESAI Post author

      hi tejas

      have written another blog on how CATS can be configured for myinbox and request you to add the same as well.

      regards
      barin

      (0) 
  1. Sahir Nidagundi

    Dear Barin DESAI,

    Thanks for sharing this valuable info with the community.

    Do you have any idea if we can invoke/launch a custom application (be it WD ABAP, UI5 application) when user click on the workitem from the Fiori My Inbox?

    From all my searching , I have seen only the approve scenario being show cased . I found that with My Inbox we can only do simple stuff like vie the leave details (as in case of notification of absence demo scenario ) or any other object in the classical GUI. Could you please confirm if my understanding is correct?

    What if we want to have a the target application that opens up from the Fiori My Inbox to be a full fledged application where user could edit fields, add attachments,etc and also be able to carry out custom actions other than Apporval, Rejection , etc.

    With regards,

    Sahir.

    (0) 
    1. Barin DESAI Post author

      Hi Sahir

      the inbox will eventually look for SWFVISU and that is where the parameters of url are generated.

      URL generation class will pick parameters from swfvisu.

      If you have specific requirements then provide the details and I can look at helping you.

      regards

      barin

      (0) 
      1. Sahir Nidagundi

        Thanks Barin.

        I am basically try to get a custom UI5 app opened from Fiori Inbox.

        After following the configurations that you have mentioned the service IWPGW/TASKPROCESSING/ is not returning any results while scenario collection does indeed have the definition.

        Scenario Collection.png

        I always end up getting the message No items are currently available in the Fioir Inbox.

        After initiating the absence I am able to see the work item in my ECC Inbox.

        Is it essential to have task TS30000016 configured in SWFVISU even to get the work item listed in TaskCollection of gateway service? If yes please provide me the values for SWFVISU for this task.

        Not sure where I am going wrong.

        Thank you.

        With regards,

        Sahir.

        (0) 
        1. Barin DESAI Post author

          Hi sahil

          I assume you see the workitem in the inbox as you have put the task right.

          Please confirm.

          you must put a break point on class CL_SWN_URL_GENERATOR and then check what parameters are required.

          You are looking at task which you have mentioned I assume you are trying to run leave approval process in which case you will have to use the SAPUI5 application and task that is part of workflow WS33700137. The parameter identification can’t be done by me as I don’t have sufficient details however take help from the workflow resource if you have any.

          Ideally standard parameters should work.

          All the best.

          regards

          barin

          (0) 
          1. Sahir Nidagundi

            Thanks Barin. Much appreciated.

            After almost 2 weeks of debugging we finally figured out the issue was because of incorrect user maintained in the RFC destination.

            As you rightly mentioned the target application is being picked from SWFVISU config.

            Working on getting the UI5 application being launched as the target application.

            With regards,

            Sahir.

            (0) 
  2. Marco Jansen

    Hi Barin,

    thanks for your great blog.

    I habe two questions:

    – Your 1st screenshot shows details of the request. How can I create this?

    – How can I launch the Fiori approval app when choosing open task?

    Thanks for your help!

    regards

    Marco

    (0) 
    1. Barin DESAI Post author

      again sorry for delay in replying.

      1.  in your workitem you need to bring this data and then from task description you can display the values. There is a badi related to task that too can be useful.
      2.  SWFVISU parameter configuration creates the url and the class is explained in the blog.

      thanks

      (0) 

Leave a Reply