‎2009 May 14 7:03 AM
Hi all
How to use this FM what should i pass in Event ID ? i passed z Program in that but its not working...
can anyone help me out in this issue?
THanks in Advance
‎2009 May 14 7:07 AM
Trigger an event in the background processing system. This function module is for use in programs written in ABAP/4. Triggering an event tells the background processing system to start any background jobs that were scheduled to wait for the event.
You can trigger an event with or without an event argument, a string that more precisely identifies an event. Jobs can be scheduled to wait for an event for the combination of event and a particular event argument.
Hope you understand.
‎2009 May 14 7:50 AM
‎2009 May 16 12:07 PM
hi
i understood the FM but i want to what should i pass in event id and event parameter how should i relate it to the pgm .. where should i declare the event Plz Provide me with an example..I will be so thankful to u..
i went thro FM Documentation But i am not able to find it
Thanks in Advance
‎2009 Jun 02 5:25 AM
‎2009 Jul 06 7:24 PM
Hello Hema,
Here is an example for the FM you are trying to use. Let me know if you have any questions!
All the best
Use function module BP_EVENT_RAISE to trigger an event from an ABAP program.
Example
Report processing before triggering event...
Trigger event to start background jobs waiting for the event.
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
EVENTID = 'SP_TEST_EVENT'. " Event name must be defined
" with transaction SM62.
EVENTPARM = 'EVENT1'. " Optional: a job can be
" scheduled to wait for an
" EVENTID or combination of
" EVENTID and EVENTPARM.
CALL FUNCTION 'BP_EVENT_RAISE' " Event is triggered. Jobs
EXPORTING " waiting for event will be
EVENTID = EVENTID " started.
EVENTPARM = EVENTPARM
TARGET_INSTANCE = u2018 u2018 " Instance at which an event
" should be processed. Can
" generally be omitted.
EXCEPTIONS OTHERS = 1. " Exceptions include event not
" defined, no EVENTID
" exported, etc.
‎2010 May 06 2:19 PM
Hi I'm working on same issue. Here I want to schedule a predefined time point for bex broadcasting. I need to run tihis for after Ievery fisc quarter wed day...I created an event in SM62 and wrote the logic in ABAP
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = 'FISC'
Now in order to trigger this event after each fisc quarter do I need to run something or write some code ? If so do I need to write the code in same ABAP coding above ? Also Do I need to include this program in process chain again ?Please advice..