cancel
Showing results for 
Search instead for 
Did you mean: 

Starting a process chain after completion of another

Former Member
0 Kudos
372

Hai,

We have a process chain where an ODS named ZODSREP gets loaded with data along with other FIAR data targets. I created another process chain that has flow that starts with loading ODSREP and then loading others targets in the flow and so on. Now our policy is to EXTRACT ONCE AND USE MANY TIMES. I have to make an arrangement in such a way that my chain starts only after the ODS is completely loaded. Both the process chains are daily chains.I thought of few options like making the first one as a local process chain in my process chain and then go on. But I shouldnot command the other chain. I think we have options like starting a chain after completion of a job or an event. Does that help? or are there any other better ways? Can somebody please tell me how I can do this?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

After your first local process chain is complete, kick off an event using ABAP process type. You could create this simple program & use it in the ABAP process type:

REPORT ZBW_RAISE_EVENT.

*************************************************************

  • Selection screen. **

*************************************************************

selection-screen skip 1.

selection-screen begin of block b1 with frame.

selection-screen skip.

parameters : p_event like btcuev-EVENTID obligatory.

selection-screen skip.

selection-screen end of block b1.

************************************************

  • Start-of-selection. **

************************************************

start-of-selection.

perform raise_event.

&----


*& Form raise_event

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


form raise_event.

CALL FUNCTION 'BP_EVENT_RAISE'

EXPORTING

eventid = p_event.

endform. " raise_event

AND use this event in START process of all subsequent process chains.

Kumar Gudiseva.

Answers (1)

Answers (1)

Former Member
0 Kudos

Local process chains is the way to go. But if you strong reasons for not taking that route, then you could use ABAP process type with a simple program using Function module BP_EVENT_RAISE to raise an event which could be used to START the next PC.

Kumar Gudiseva.

Former Member
0 Kudos

Hai Kumar,

I am afraid I cannot go for the local process chains. The problem is that the extraction process is ok till the first ODS. From then this data is used by many other things. I cannot make a local process chain for all these as it may lead to duplication. Can you give me more details about the ABAp process type and raising an event using BP_EVENT_RAISE ? I would appreciate if you can send me any documentation on that to my id: visu_venkat@yahoo.com.

Thanks a lot.