cancel
Showing results for 
Search instead for 
Did you mean: 

Raise event from within process chain

Former Member
0 Kudos

Is there some way to easily raise an event from within a process chain? The only way I know to do this is to run an ABAP program that raises the event.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Gianfranco,

Using ABAP to raise and event using the function module appears to be my only solution.

Marc,

I want to raise an event to trigger another process chain, not further events in the process chain that is already running.

Thanks for your replies

Darrell

GFV
Active Contributor
0 Kudos

Excuse me Darrell,

but if you only need to start a second PC from within another ... why not to use "Local Process Chain" under "Gereral Services"?

Hope it helps

GFV

Former Member
0 Kudos

Gianfranco,

Greetings.

I am in the same situation where I want to trigger my transaction data process chain when the master data process chain load is complete. I know that as you said I could use a local process chain option within my master data process chain to do this.

But I want to know how to use ABAP for this as I havent done this, I would like to know how it is done. Can you tell me the steps??? If you dont mind. I would greatly appreciate it.

GFV
Active Contributor
0 Kudos

Hi Shashank,

sorry for the delay: I didn't notice your question. Try this way.

1 - define ABAP Report Z_EVENT_RAISER (see sample code below)

2 - define a variant for this Report (Event Name mandatory)

3 - Call ABAP Report Z_EVENT_RAISER from within your Proces Chain.

This should work

Hope it helps

GFV

*====================================================

&----


*& Report Z_EVENT_RAISER *

*& *

&----


*& *

*& *

&----


REPORT Z_EVENT_RAISER .

selection-screen begin of block parametri with frame.

parameters:

EVENT like BTCH1250-EVENTID obligatory,

PARAM like BTCH1250-PARAMETER.

selection-screen skip.

selection-screen end of block parametri.

CALL FUNCTION 'BP_EVENT_RAISE'

EXPORTING

eventid = EVENT

EVENTPARM = PARAM

  • TARGET_INSTANCE = ' '

  • EXCEPTIONS

  • BAD_EVENTID = 1

  • EVENTID_DOES_NOT_EXIST = 2

  • EVENTID_MISSING = 3

  • RAISE_FAILED = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

*====================================================

Former Member
0 Kudos

Thank You very much Gianfranco

Former Member
0 Kudos

Thank You Gianfranco.

SRD

GFV
Active Contributor
0 Kudos

If you need to raise an event I'm afraid that crating an ABAP report that contains FM BP_EVENT_RAISE is the only way out ... But did you considered Remote Process Chains? I mean If you need to execute another PC from the first one ...

Hope it helps

GFV

former_member93896
Active Contributor
0 Kudos

Hello Darrell,

The steps of a process chain are triggered by events anyway. Just schedule whatever you want to run with this event as a start condition (instead of the event that you want to raise). You can find the correct event and parameter in table RSPCCHAIN.

Regards,

Marc

SAP NetWeaver RIG, US BI