cancel
Showing results for 
Search instead for 
Did you mean: 

How to add input fields in My Inbox Fiori app's work item description

mayurespatil11
Explorer
0 Kudos

Hi,

I have developed custom flexible workflow using transaction SWDD_SCENARIO. In my requirement when workflow users get work item in My Inbox app, in description area along with display fields, he should be able to input date and that I need to read in backend, which will later used for another functionality.

I am able to display field information but not getting option to make some fields as input field. Any hints how this requirement can be achieved?

Thanks & Regards,

Mayuresh

sowmya_m3
Explorer
0 Kudos

Hi Mayuresh,

Could you please help me by explaining how you were able to get the display fields in description area.

we are having a same requirement to display few fields in description area, it will be very helpful if you help us here.

Regards

Sowmya

Accepted Solutions (1)

Accepted Solutions (1)

SBach
Advisor
Advisor
0 Kudos

Hi Mayuresh, your task in My Inbox is for User Decisions on Business Object (BO) Instance. So normally you have several outcomes for a user decision (Approved/Rejected). To build a Task for editing you would not modell a UserDecision Task but a task for editing the BO Instance. Therefore you could use a Link in MyInbox to open a application to edit the BO Instance. That you can do over the Open Task link in my Inbox. There you connect a transaction to edit the Business Object (Connection is done via SWFVISU/SWFVMD01). And if the change happend in that application, you throw an event "Changed" for that Business Object instance, which you modell as end event in the Task of the scenario. Then the task will be completed when the business object instance was edited and the event was fired. All checks how to edit and if the task is really fullfilled needs to be done on that editing application before throwing the event. In case you only want to give a comment for further processing you have the comment function in my Inbox. I hope that helps.

mayurespatil11
Explorer
0 Kudos

Hi Sebastian,

Thanks for quick response, I gone through your answer. Is there any helpful blog or document which I can use as reference to handle this requirement in the way suggested by you?

SBach
Advisor
Advisor
0 Kudos

Hi I can´t find a blog. Close to your question was this one.

The task needs to be asynchronous with terminating event. You create the event over a SAP_WAPI_CREATE_EVENT FM in the EDIT-UI of the BO Instance. For opening your EDIT UI over OPEN TASK button, there is a blog about SWFVISU https://blogs.sap.com/2016/05/31/my-inbox-open-task-swfvisu-configuration/ You need to hand over the BO instance key. If there is secure information in it use a cryptic-GUID as parameter.

Here are some additional hints:

https://blogs.sap.com/2019/11/01/workflow-relate-wf-instances-of-a-specific-bor-purchase-requisition...

https://answers.sap.com/questions/3511244/task-with-terminating-event.html

https://answers.sap.com/questions/3657688/terminating-event-and-wait-for-change-event.html

https://answers.sap.com/questions/10905473/workitem-confusion.html

https://answers.sap.com/questions/8281479/asynchronous-task-workitem.html

mayurespatil11
Explorer
0 Kudos

Thank you so much Sebastian, truly appreciate your help in Flexible workflows.

Answers (0)