Workflow does not start

Rick Bakker rbakker at gmail.com
Fri Jul 1 16:50:25 EDT 2011


Thanks Mike, mystery explained at last!

On Fri, Jul 1, 2011 at 2:20 AM, Mike Pokraka
<wug at workflowconnections.com> wrote:
> SWE_EVENT_CREATE comes from the online help:
> http://help.sap.com/saphelp_nw70ehp2/helpdata/en/c5/e4af4a453d11d189430000e829fbbd/frameset.htm
>
> ...which doesn't seem to have been updated since the pre-WAPI days:
> http://help.sap.com/saphelp_40b/helpdata/en/9b/4460ff454711d189430000e829fbbd/frameset.htm
>
> It would be more consistent if SAP updated their doco.
>
>
> On Fri, July 1, 2011 5:18 am, Rick Bakker wrote:
>> People keep coming up with this SWE_EVENT_CREATE again and again.
>> Especially on SDN.
>> Where are they getting it from? A typo in The Book? Surely not the SAP
>> Workflow course.
>>
>> On Thu, Jun 30, 2011 at 1:53 PM, Dart, Jocelyn <jocelyn.dart at sap.com>
>> wrote:
>>> 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] On Behalf
>>> Of
>>> david.s.dittmer at accenture.com
>>> Sent: Thursday, June 30, 2011 1:01 PM
>>> To: 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
>>>
>>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>>
>>> _______________________________________________
>>> SAP-WUG mailing list
>>> SAP-WUG at mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>>
>>>
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>




More information about the SAP-WUG mailing list