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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
Call function module SAP_WAPI_CREATE_EVENT.
In transaction SWEL,the event is trace
Check with SWELS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.