SAP_WAPI_START_WORKFLOW

de Valensart Schoenmaeckers, Patrick Patrick.DeValensartSchoenmaeckers at pmintl.com
Tue Jul 20 03:40:47 EDT 2004


Thanks Mark.
 
That event queue thing is new to me. I red the documentation and it looks
like it could solve my problem.
I originally didn't want to use events because in this case the workflow
must be started from an overnight background job, which will generate a lot
of workflow instances in a short timeframe. This most probably would have
meant performance problems.
 
Cheers,
 
Patrick
 
-----Original Message-----
From: Mark Huffman [mailto:mhuffman at universalwebflow.com]
Sent: Monday, July 19, 2004 9:21 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: SAP_WAPI_START_WORKFLOW
 
Patrick,
 
Ah the advantages of using Event Creation!
 
I worked on a project where we continually called workflows with large data
structures using the FM you cited from custom transactions.
...START_SIMPLE... works too. We didn't pass objects and would instantiate
the objects needed within the workflow.
 
Not sure if the WAPI actually allows passing objects, but our approach fit
the project requirements better anyway since we wanted to ensure that the
transaction completed and the workflow actually started in all cases. Any
retry or error handling was in the workflow.
 
Sometimes using Event Creation is very worthwhile even if you have to go the
long way around and create a custom object with its' own custom events, then
instantiate the 'real' objects in the code and pass them as event
parameters.
 
In my view, depends on what the system volume/overhead might be like (event
queue) and where you want to put in your error handling (of course a lot of
ABAP programmers turned workflow expert don't ever worry about minor issues
like that ...)
 
Mark
 
----- Original Message -----
From: "de Valensart Schoenmaeckers, Patrick"
<Patrick.DeValensartSchoenmaeckers at pmintl.com>
To: <SAP-WUG at MITVMA.MIT.EDU>
Sent: Monday, July 19, 2004 1:04 PM
Subject: SAP_WAPI_START_WORKFLOW
 
 
> Hi fellow workflowers.
>
> I am trying to start a workflow directly from a report using
> SAP_WAPI_START_WORKFLOW. Now my problem is: how can I pass an object
> instance trough the table INPUT_CONTAINER of that function module
interface?
> - Pass the object key (e.g. pass a project number for a workflow container
> element defined by BUS2001001)?
> - Instantiate the object with macro swc_create_object, get its key using
> swc_get_object_key, and pass that key?
>
> None of these two worked. Any other suggestion?
>
> Thanks in advance for your help.
>
> Kind regards,
> Patrick de Valensart
>
>
 


More information about the SAP-WUG mailing list