cancel
Showing results for 
Search instead for 
Did you mean: 

trigger an event onsuccessfull data loading process

Former Member
0 Kudos
131

dear gurus.

I need help on the following

I need an event to be triggered the moment i complete the data load process to an infocube from an Data Store object This loading from Data Store object to info cube is done manually. I need this event to be triggered so that a process chain can be started to be once this loading completed

Please help me and i will assign points for your answers

Thanks in advance

View Entire Topic
Former Member
0 Kudos

Why can't you create a small process chain to perform the load from ODS to cube then triggers an event?

Then instead of manually running the InfoPkg, you manually start the Process Chain - it loads the cube and then triggers the subsequent event you want run.

To trigger the eent from the process chain, add an ABAP pgm step that execs pgm ZB_BDCP_EVENT_TRIGGER, with a variant that specifies the event you want to trigger.

Former Member
0 Kudos

Hi Pizzaman, can you please provide me the sample coding of the ZB_BDCP_EVENT_TRIGGER,

Thank you

Former Member
0 Kudos

I dont think there would be a program of that name in your system. Coz that's a Z program.

ZB_BDCP_EVENT_TRIGGER,

Ok As people advised before I don't Think you need an Event to Trigger.

About Event:

Event we need to write the code calling the function module.

BP_EVENT_RAISE - Check this Function Module. (Copy this in Z name and play with that you will know about it)

To create an Event - SM62

Trigger Manually - SM64

Former Member
0 Kudos

Our Z pgm calls function module RSSM_EVENT_RAISE. I never really looked at it before, and I see that RSSM_EVENT_RAISE has some debugging and error msg code added, but it turns around and just calls function module BD_EVENT_RAISE which is all you would probably want to do.

REPORT ZB_BDCP_EVENT_TRIGGER .

PARAMETERS: L_DEST LIKE RFCDISPLAY-RFCDEST,

L_EVENT LIKE TBTCSTRT-EVENTID,

L_PARM LIKE TBTCSTRT-EVENTPARM DEFAULT 'X'.

CALL FUNCTION 'RSSM_EVENT_RAISE' DESTINATION L_DEST

EXPORTING

I_EVENTID = L_EVENT

I_EVENTPARM = L_PARM.

IF NOT SY-SUBRC IS INITIAL.

WRITE:/ 'EVENT DID NOT START'.

ENDIF.