‎2007 Sep 12 8:29 PM
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
‎2007 Sep 12 8:33 PM
Hello Ashutosh,
You can try to use the FM : SWE_EVENT_CREATE for the object type that
you are using.
Regards
Greg Kern
‎2007 Sep 12 8:33 PM
Hello Ashutosh,
You can try to use the FM : SWE_EVENT_CREATE for the object type that
you are using.
Regards
Greg Kern
‎2007 Sep 12 9:15 PM
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