on 07-14-2004 5:59 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
*====================================================
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.