cancel
Showing results for 
Search instead for 
Did you mean: 

Started process chain to wait for an event & then continue

Former Member
0 Kudos

Hello Xperts,

I wish to add a step in a process chain which:

makes an already running process chain wait in case a ceratin event has been triggered and then continues once this event is cleared OR another event is raised.

The scenario is that several process chains are running in parallel and there are 'hot spots' where they access the same objects and thereby tend to disturb each other.

Question: is there a way to get a process chain to wait for an event without adding a process chain step of type "ABAP Program"?

However, if using an ABAP program for the waiting on the event - not the triggering - how is this done best?

Thanx for any input.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Martin,

There is a standard process type in the general services folder where you can readily find a Wait event process type.

there is no need for an ABAP program. Try the standard one.

Regards,

Sudheer

Edited by: Sudheer Kumar Kurra on Feb 1, 2011 7:53 PM

Former Member
0 Kudos

Hi Sudheer,

thanx for your answer but in my system under General Services I only have:

Interrupt Process

Start Process

AND (Last)

OR (Each)

EXOR (First)

ABAP Program

OS Command

Local Process Chain

Remote Process Chain

Workflow (Remote Also)

Decision Between Multiple Alternatives

The system stand is:

SAP_BW 700 0023 SAPKW70023 SAP NetWeaver BI 7.0

How come I am missing this type?

Former Member
0 Kudos

Martin,

I'm not sure how did this is not available in general services.. please try looking in other folders as well.

may be i got confused with the folders, i'm not using any BI system right now. i just remembered it that wait even process type is that folder. but please check in the other folders as well.

Former Member
0 Kudos

Hello,

Try "Interrupt Process".

Regards

Aman

Former Member
0 Kudos

Hello,

Try "Interrupt Process".

Regards

Aman

Former Member
0 Kudos

@Sudheer

I find no "Wait" process type in any folder

@Aman

my requirement is to have the chain wait and then continue, hence, if I interrupt the process chain, how do I start it again from the exact location where it was interrupted?

Former Member
0 Kudos

... no more suggestions out there?

Former Member
0 Kudos

no need to have abap program.

create event by yourself in SM64.

create a seperate one for each processes.

then in scheduling option go to after event option and specify the event names which you have created.

Former Member
0 Kudos

Thanx for your answer Omprakash, but it seems to me that you are talking about scheduling the starting of a process chain (not running ones) ... correct???

The question was:

".... makes an already running process chain wait in case a certain event has been triggered and then continues once this event is cleared OR another event is raised."

Key is "already running process chain"

Please let me know if I misunderstand you and indeed there is solution to my question. Thanx

Also: splitting the process chains into several smaller with each starting based on an event is not really an option.

Former Member
0 Kudos

Hi Martin,

As i said, I'm able to see it under the General services folder. This is the first process type under the folder (above interrupt process). here are the verison and SP details of my system.

Component version: SAP EHP 1 for SAP NetWeaver 7.0

SAP_BW 701 0006 SAPKW70106

BI_CONT 704 0006 SAPK-70406INBICONT

Regards,

Sudheer.

Edited by: Sudheer Kumar Kurra on Feb 8, 2011 3:00 PM

Former Member
0 Kudos

Thanx Sudheer!

Could u pls send me the content from table RSPROCESSTYPES for the line of that process type.

Thanx in advance.

Martin

Former Member
0 Kudos

Hi Martin,

PFB the details you asked for ( from RSPROCESSTYPES table).

I cannot mention the TYPE and OBJECT, you can give your custom (Z) names here. Rest of the details should be helpful.

TYPE

OBJECT

OBJECTTYPE CL

EVENTRANGE 2

RESTARTABLE X

REPAIRABLE

ICON

INTERNAL_NAME X

NO_MAIL

CATEGORY 5

DISPLAY_ORDER

DOCU_TYPE

DOCU_OBJ

SINGLECLIENT

BCTCOMP

ICON_TEXT Waiting Event

DESCRIPTION Waiting Event

Regards,

Sudheer.

Edited by: Sudheer Kumar Kurra on Feb 9, 2011 11:02 AM

Former Member
0 Kudos

... so this is not a standard SAP process type but a Z-process type then ... right?

Former Member
0 Kudos

This is something that I would like to see in process chains as well. On the other hand, I do understand that this kind of option would enable people to create unmanagable process chains, in which events play the main role and where it is hard to identify how actions are linked. But I wonder if that's the reason it doesn't exist as standard functionality.

However, I have come across the need for this as well, but haven't developed it yet. I'm thinking of an ABAP event in which you fill a value in the STVARV with a mark, and delete it when this process is done. If you need to wait in another chain for this value to be unmarked, you could wait for this with the statement:


WHILE lv_mark EQ 'X'.
  Call FUNCTION 'ENQUEUE_SLEEP'
  EXPORTING
     seconds = 1.
ENDWHILE.

And the process would then continue after the other process unmarked lv_mark.

Would that be a solution?