cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger Workflow from custom report

Former Member
0 Likes
587

Hi everyone,

  1. I have created a custom Object type, ZBUS_PAY01 and an event Approve for the same in transaction SWO1.
  2. After that, I created a report in which i have used the FM SWE_EVENT_CREATE and passed the Object Type, Event Name, Key field values and the creator. Using  tcode SWELS and SWEL, I checked if that event is being triggered or not. Yes it did trigger.
  3. Now I want to create a WorkFlow for which the triggering event is the event I have created in the Object Type.

When I clicked on CTRL+F8, in Start Event, I selected Object category as BO, Object Type as ZBUS_PAY01, but when I go for F4 values for Event for the object it shows me no values. When I put Approve as event and press enter, following error pop-ups.

Diagnosis :

The following object types cannot be executed. They cannot be instantiated and are therefore not executable.

  • interface types
  • object types which have not been released
  • areas you can define yourself

Please suggest possible corrections to avoid this mistake.

View Entire Topic
Former Member
0 Likes

Hi Nikhil,

Please check if your BO is properly generated in SWO1 and the status is 'implemented'. Check if the event Approve is set to status 'Implemented' (and NOT modeled) then only you can use it in workflow start event.

P.S: For triggering workflow dont use FM SWE_EVENT_CREATE. USe FM SAP_WAPI_CREATE_EVENT.

Regards,

Ibrahim Ansari

Former Member
0 Likes

Hey Ibrahim Ansari,

Thanks a lot man for your quick reply.

Trick worked .


Regards,

NG

Former Member
0 Likes

Good! Which trick?