on 11-30-2007 5:19 PM
Hi all,
In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
Thanks&Regards,
Hari
Hi Hari,
You should use event linkage for triggering the workflow (just like R/3).
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi martin,
yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
Thanks&Regards,
Hari
Hi Hari,
I always prefer to use an event whenever I can. These are usually the most transparent. In SRM when a Shopping Cart is created an event is triggered. So for SC's you can use events. As I understood SAP uses the FM swe_event_create somewhere to raise the event, but Where exactly I don't know, and up to now I didn't really care where they did it.
Regards,
Martin
hi,
FM used to start Workflow are
BBP_PDH_WFL_RESTART ---> for restart of workflow
BBP_PDH_WFL_START ---> to start workflow --> this in turn will call below FM
BBP_PDH_WFL_START_NOW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hari,
Workflow is triggered via business object event. I think it is the METHOD cl_swf_evt_event=>get_instance, METHOD l_event->raise .
Please set a break point and check the call stack.
CALL METHOD l_event->raise .
CALL METHOD cl_swf_evt_event=>get_instance
CALL FUNCTION 'SWE_EVENT_CREATE'
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.