cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in WF triggering using class method cl_swf_evt_event=>raise to raise

raviprakash
Advisor
Advisor
0 Kudos

Hi Everyone,

I am facing a strange issue. I am using a R/3 application where WF is triggered using the FM "SWE_EVENT_CREATE", the WF gets triggered instantly. Then I created a WD application and used the method CALL METHOD cl_swf_evt_event=>raise to raise an event to trigger WF.

Even now the WF gets triggered but the delay is highly unacceptable. It takes 8-12 hours to get the Wok Item into my inbox. I refreshed the buffer using transaction SWU_OBUF but still it didn't help.

When I test my WF template in SWDD, by manually triggering WF using F8 functionality, it works instantly. Also, once I confirm WF item from inbox, it takes a lot of time for my application to know that WF is completed.

Please help me to resolve these 2 issues.

Many Regards,

RAVI.

Accepted Solutions (0)

Answers (1)

Answers (1)

MarcinPciak
Active Contributor
0 Kudos

Didn't you forget about COMMIT WORK after cl_swf_evt_event=>raise ?

This might be the reason of delaying the WF execution.

Regards

Marcin

raviprakash
Advisor
Advisor
0 Kudos

Hi Marcin,

I am doing a commit work but still it is not working.

regards,

Ravi.