on 09-14-2022 8:51 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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://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
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.