cancel
Showing results for 
Search instead for 
Did you mean: 

Events in workflow

11-24-2010 9:31 PM
Micael_Reis Explorer
757 views 7 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Good evening SAP Gurus,

Can you please tell me how can I generate an event in ABAP?

How can I found were the events in one object are triggered?

Thanks in advance.

Best Reggards.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hello,

"how can I generate an event in ABAP"

Call fm SAP_WAPI_CREATE_EVENT.

"How can I found were the events in one object are triggered?"

In transaction SWEL, the event trace, you can see which events were created for which objects.

You can turn the trace on with SWELS.

regards

Rick Bakker

hanabi technology

Micael_Reis
Explorer
0 Likes

Hello,

Thanks for your reply.

What I need to know is how SAP triggers the events. I have a problem with some WF and I need to know what triggers the events. Is there any way to find out that?

Thanks in advance.

Best regards.

Former Member
0 Likes

Hello,

That's not so easy, you may have to do a usage check on a number of FMs that create events.

Is this a standard event or a custom event? Which ones?

regards

Rick Bakker

hanabi technology

saumya_govil
Active Contributor
0 Likes

Dear Micael,

Unfortunately there is no straight forward method to know this. You could find out the business obejct linked to the workflow (also from the event linkage between the BO event and the workflow using transaction SWE2) and then check the standard transactions which could trigger this BO event. There could also be custom developments that could trigger a BO event.

It is quite difficult to find out the exact source of trigger of a standard event, but I guess it should not be very difficult to trace a Z-event. You could possible find the source by doing a where-used list for the FMs SAP_WAPI_CREATE_EVENT or SWE_EVENT_CREATE.

Hoope this helps!

Regards,

Saumya

Former Member
0 Likes

Hi,

It depends on the module.

For example, MM module uses change document objects to trigger workflow whereas HR module don't use them.

Some workflows are triggered based on document status change.

Also some workflows must be forcefully triggered in your system using BADi's or User-exits.

So let us know your workflow module or scenario so that we can guide you further.

Regards,

Raj

Former Member
0 Likes

Hi,

For HR event, the configuration for many event triggers can be accessed via transaction SWEHR1, SWEHR2 and SWEHR3 for example.

To find out on a wider base follow the SAP menu path:

Tools --> Business Workflow --> Definition Tools --> Events --> Event Creation

and check the settings there.

Regards,

Philipp

Answers (1)

Answers (1)

anjan_paul
Active Contributor
0 Likes

Call function module SAP_WAPI_CREATE_EVENT.

In transaction SWEL,the event is trace

Check with SWELS.