Skip to Content
Author's profile photo Masayuki Sekihara

Fiori My Inbox – Step 5. Adding action buttons

Please find series of documents in the SAP Fiori – My Inbox.


In the previous step4 with “Open Task” is OK in desktop but it does not fit in mobile devices.

In this step 5, we are going to add action buttons in the My Inbox app.

Define decision options in the backend:


You are going to define action buttons. You have captured the outcomes of the task in the step 1.

/wp-content/uploads/2015/03/pftc4_668928.png


Go to the IMG in the backend.

/wp-content/uploads/2015/03/decision_img_669133.png

Specify the workflow template ID and the Step No.

/wp-content/uploads/2015/03/decision2_669137.png

Define the action buttons. POSITIVE button icomes in green and NEGATIVE button comes in red.

If you set comment flag is on, approves can enter some comments.

/wp-content/uploads/2015/03/decision3_669138.png



Test the My Inbox.


You see the Approve and Reject buttons.

/wp-content/uploads/2015/03/actionbutton_669139.png

Assigned tags

      21 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gabriel Singer
      Gabriel Singer

      Hi Masayuki,

      I've activated Fiori inbox and added Approve/Reject for one of my apps. This updates the workflow correctly after I implemented the BADI. However, I don't want the "Submit Decision"/Comments dialog box appearing after clicking approve. I unticked the "comments" in the above customizing but the popup box still displays. Any other setting I need to deactivate to remove this popup box ?

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Blog Post Author

      You can extend the app based on business requirements.

      Author's profile photo Devisha Bhavik
      Devisha Bhavik

      Hi,

      I have added Approve and reject buttons. Now after clicking Approve, I got below error.

      RFC call was not successful because of system failure 'Exception condition "ORG_OBJECT_NOT_FOUND" triggered'.

      What else should be missing?

      I can approve workflow directly in SAP and in Portal UWL without any issue.

      -Bhavik

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Blog Post Author

      Please create a new discussion and share your custom workflow details. SCN members can give some comments. Discussion

      Author's profile photo Gabriel Singer
      Gabriel Singer

      Its not clear from the standard documentation, however the "Comments" checkbox in customizing only affects whether it's mandatory or not. To totally remove the popup, it appears necessary to enhance the S3 controller in WEB IDE.

      Author's profile photo Former Member
      Former Member

      Hi Masa,

      I wanted to ask how to configure this if for Time approval is being used stand-alone standard task without workflow ID?

      Author's profile photo Michael Appleby
      Michael Appleby

      Unless you are asking for clarification/correction of some part of the Document, please create a new Discussion marked as a Question.  The Comments section of a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable.  Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem.  If a blog or document is related, put in a link.  Read the Getting Started documents (link at the top right) including the Rules of Engagement. 

      NOTE: Getting the link is easy enough for both the author and Blog.  Simply MouseOver the item, Right Click, and select Copy Shortcut.  Paste it into your Discussion.  You can also click on the url after pasting.  Click on the A to expand the options and select T (on the right) to Auto-Title the url.

      Thanks, Mike (Moderator)

      SAP Technology RIG

      Author's profile photo Monit Malhotra
      Monit Malhotra

      Hi,
      I performed all the steps but action button not added in My Inbox App.

      Author's profile photo Eyüp Karaavci
      Eyüp Karaavci

      Hi Masa;

      What about "Icon MIME Repository Path" field? Is it working?

      I tried several variations but cannot see any icon in the application.

      Thanks.

      Author's profile photo T N Senthilkumar
      T N Senthilkumar

      Hi @Masayuki Sekihara  Thanks for the excellent blog.

      It Looks like this Approach will not work for WebDynpro or BSP Application Launch linked to the Task.

      I did the same configuration for a Task, which is supposed to open a BSP Application, never showed Approve and Reject Buttons.

      Interstingly even the Task filter is not working, as I defined set of Task and Activate the Task Filter, Inbox showing all the notifications, not restricting the Task defined under here

      Thanks

      Sam

       

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Blog Post Author

      It adds buttons in My Inbox app. It does NOT add buttons in called app.

      Author's profile photo T N Senthilkumar
      T N Senthilkumar

       

      Thanks

      Author's profile photo ibrahim fawzy
      ibrahim fawzy

      Hello @Masayuki Sekihara  Thanks for sharing this Info !

      Can i add more than one workflow item ID (WS3000015, WS3000017) and get all tasks to be approved related to the mentioned WF ids !?

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Blog Post Author

      What was your test result?

      Author's profile photo Ebrahim hamdy
      Ebrahim hamdy

      Return tasks related to the last workflow only .
      but this with WFSERVICE not TASKPROCESSING service

      Author's profile photo Jun Wu
      Jun Wu

      Hi Masayuki Sekihara  

      when you click approve/reject, did it work?

      in my case it didn’t work, I debug, the error msg says the workitem is not a “user decision”

      the task in my case is an activity step(like yours), not  user decision step.

      the system is nw7.4, BoH.

      thanks,

      Jun

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Blog Post Author

      For non user decision task, BADI implementation is required in the step 6. It means, you need to call the approve logic in the BADI.

      Author's profile photo Jun Wu
      Jun Wu

      thanks, it worked after the badi is implemented.

      Author's profile photo Shazar Anis
      Shazar Anis

      It didnot worked for me after implementing badi, SAP_WAPI_WORKITEM_COMPLETE executed successfully but at the end it gives error you have no access to item. because SAP_WAPI_CHECK_INBOX return 1 and error message you are not a receiver of workitem.

       

      Please help

      Author's profile photo Disha Korale
      Disha Korale

      I am trying to implement a custom workflow and I have followed the same steps however I am not getting the approve reject button

       

      Author's profile photo Disha Korale
      Disha Korale

      Hello @Masayuki Sekihara   ,

       

      I have tried to implement a custom workflow for the my inbox application. However I am unable to get the approve reject button on the app. Can you please suggest what can be done.