Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Trigger Object type Event programmatically in ABAP ?

Former Member
0 Likes
855

Experts,

How to Generate an Object Type Event programmatically in ABAP ??? We know that SAP std. applications do this by default ,for eg: Sales Order creation event generation, similarly , i want to generate an Event ( SAP or a Z object event ) in my Z program ,, How can i do it ??? Do we have any function module for this one ? I can do an BDC CALL TRANSACTION SWUE but i don't want to do that, i want to use some other method other than BDC.

Would appreciate your reply . Thanks

Ashutosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
530

Hello Ashutosh,

You can try to use the FM : SWE_EVENT_CREATE for the object type that

you are using.

Regards

Greg Kern

2 REPLIES 2
Read only

Former Member
0 Likes
531

Hello Ashutosh,

You can try to use the FM : SWE_EVENT_CREATE for the object type that

you are using.

Regards

Greg Kern

Read only

Former Member
0 Likes
530

Hi Ashutosh, if you are trying to raise a custom event you first must define the event within your business object, using TC SWO1. If you like you can extend an existing business object or create a new one. Once your business object is activated and your event is released you should be able to trigger it with the FM 'SWE_EVENT_CREATE'.

P.S If you are extending an existing business object, for example BUS2105 and your extended name is ZMBUS2105, refer to the original name, i.e. BUS2105 for the objtype field in the call to 'SWE_EVENT_CREATE'.

Hope that helps,

Kevin