cancel
Showing results for 
Search instead for 
Did you mean: 

Work Flow - Triggering Event through Webdynpro

Former Member
0 Kudos

Hi,

I am new to Workflow. I have generated the Workflow related to claim (Objects as ABAP Class). Now I have generated Webdynpro component and through this I need to execute the Workflow. I have used the FM SAP_WAPI_START_WORKFLOW & SAP_WAPI_CREATE_EVENT. To raise the event 'cl_swf_evt_event=>raise'. I have used. But this is not triggering event. So, Any one can help me on this issue.

In workflow using ABAP CLASS is essential or Business object.

In my case I have used only ABAP CLASS. In workflow I have generated the Triggering event as SAVE. In webdynpro I have generated the code in 'ONACTIONSAVE'. When ever the user clicks SAVE' button. Workflow shouild trigger and approver should receive the mail as notification and he/she will approve/reject the claim.

Thanks & Regards

Kannappan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185167
Active Contributor
0 Kudos

Hello,

"I have used the FM SAP_WAPI_START_WORKFLOW & SAP_WAPI_CREATE_EVENT"

You only need to use one or the other. SAP_WAPI_CREATE_EVENT is preferable. Does it create the event? Check SWEL.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

After SAP_WAPI_START_WORKFLOW do you have COMMIT WORK?

Does the SAP_WAPI_START_WORKFLOW return some error message?

Are you sure that the event is not triggered? Check this with event monitor SWEL (turn monitor on in SWELS).

Also, ready Jocelyn Dart's blogs about ABAP OO. She have clear instructions about how to trigger ABAP OO events.

Regards,

Karri