Workflow does not start

Dart, Jocelyn jocelyn.dart at sap.com
Thu Jun 30 19:53:58 EDT 2011


Ok well folks,
The OFFICIAL way is to use function module SAP_WAPI_CREATE_EVENT or SAP_WAPI_CREATE_EVENT_EXTENDED
Which give you a parameter to ask for the commit work.
And will work for ABAP OO containers as well.
Cheers,
Jocelyn

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Ramki Maley
Sent: Friday, 1 July 2011 3:41 AM
To: SAP Workflow Users' Group
Subject: Re: Workflow does not start

SAP_WAPI_CREATE_EVENT is what I use.

Cheers,
Ramki.

On 6/30/11 1:28 PM, Pinciak, David wrote:
I use a different FM.

call function 'SWE_EVENT_CREATE'

  exporting

    objtype = c_objtype

    objkey = w_objkey

    event = c_event

  importing

    event_id = w_event_id

    tables

    event_container = wf_container

  exceptions

    objtype_not_found = 1

    others = 2.



commit work.

A commit work statement following raising the event my help too.



________________________________
From: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu> [mailto:sap-wug-bounces at mit.edu] On Behalf Of david.s.dittmer at accenture.com<mailto:david.s.dittmer at accenture.com>
Sent: Thursday, June 30, 2011 1:01 PM
To: sap-wug at mit.edu<mailto:sap-wug at mit.edu>
Subject: Workflow does not start
Hello experts,
I am trying to trigger a workflow from a totally customized procedure which saves into a custom table. The workflow must trigger when the object is saved. I have set up a business object with events/attributes and methods and when manually triggering the event using transaction SWUE the event is triggered. However when the object is saved the event is not triggered automatically. When I debugged the code the transaction to create the event  SWW_WI_CREATE_VIA_EVENT_IBF  is not found. At the risk of stating the obvious should FM  SWW_WI_CREATE_VIA_EVENT_IBF  not be inserted in to the save procedure of the customized transaction or is there another way of triggering this event perhaps by expanding the attributes of the business object?

Any thoughts on this issue.

Thanks
David Dittmer

________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.


---------------------------------------------------------

This e-mail transmission may contain information that is

proprietary, privileged and/or confidential and is

intended exclusively for the person(s) to whom it is

addressed. Any use, copying, retention or disclosure by

any person other than the intended recipient or the

intended recipient's designees is strictly prohibited. If

you are not the intended recipient or their designee,

please notify the sender immediately by return e-mail and

delete all copies.

---------------------------------------------------------





_______________________________________________

SAP-WUG mailing list

SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>

http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110701/b6eb3d32/attachment.htm


More information about the SAP-WUG mailing list