Here we are going to build a simple end to end workflow.
We will trigger our workflow whenever a record will be created in the custom table.
A mail will be send when the workflow will be triggered.
Create a table:
Write code in the create event:
Call the FM SAP_WAPI_CREATE_EVENT to trigger the event.
Need to pass three parameters:
Object Type (Business object name)
Event (Event in the business object)
Create Business Object:
Edit -> Change Release Status -> Object Type -> To implemented
Edit -> Change Release Status -> Object Type -> To released
Binding and activate the Start Event:
Create a mail step:
Create a record in the table:
Check inbox (SBWP) :