Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member554223
Participant
Introduction:

This blog is define to trigger the workflow by custom application through Odata services it is a simple workflow with user decision, when a user approve the workflow the record will be created in database table.

To Create an Odata services check my first blog

https://blogs.sap.com/2019/01/28/building-your-first-fiori-app-with-backend-connection-and-odata-ser...

 

  1. Goto Tcode SWO1 to create a custom business object






  • Create two events SAVE and EDIT






 

Add the key fields of the object



 

Generate the business object

 

 

Goto Tcode SWDD and create a workflow.

Define its starting events



 

Create a container element



 

Assign the agent



Assign General Task to agent (The one who is triggering will get notification in its own inbox)

 

Create a user decision



 

 

 

 

Now Goto Create_entity method and add this FM



 

Also write this FM in update_entity



 

Now Create a Method and Add in the Activity





Activate the workflow



 

Conclusion:

By following this blog you can trigger the workflow whenever you create or edit the data from your fiori application.
1 Comment
Labels in this area