Skip to Content
0
Former Member
Mar 31, 2008 at 10:25 AM

Workflow wait for event

835 Views

Hello Everybody,

I have a typical requirement that teh workflow will be waiting for an event. The workflow is actually being triggered by the event and after that it is waiting for some other event.

I have used the step "WAIT FOR EVENT" in the workflow.

I can trap that both of the events are being triggered through the transcation at different points of the same transcation XK02. Both of the events are custom events of custom workflow.

The two events are:

1. ZVENDOR_CHNAGED

2. ZVENDOR_SAVED.

Now the first event contains the paramaters for the import and export, but the second event does not.

In the workflow, at the header in the Start EVENT tab, I have provide the linkage for the start event 'ZVENDOR_CHNAGED', and the workflow and clicked on the activated button, the linkage is being generated automatically by the SAP system and can be viewed through the transcation SWE2.

In this condition, when I am triggering the transcation XK02, I am getting the workflow started through the starting event but it is going to error stage. Also, in SWEL, it was showing some receiver type missing for the second event.

After that I made some settings in the SWE3 transaction.

I have created a settings with the following entry:

Object Category BOR Object Type

Object Type ZZLFA1

Event ZVENDOR_SAVED

Receiver Type EVENTITEM

Receiver Call Function Module

Receiver Function Module SWW_EI_EVENT_RECEIVE

Check Function Module

Receiver Type Function Module

Destination of Receiver

Behavior Upon Error Feedback System defaults

Receiver Status No errors

Object Category

Object Type

Again for the Object Data I have made the following settings:

Object Category BOR Object Type

Object Type ZZLFA1

Event ZVENDOR_SAVED

Receiver Type EVENTITEM

Object Key GFDGDFG

Receiver Key: 000022.

But then also, I am getting error in triggering the workflow. There ti si not able to get the information that the event is being triggered. And it is waiting for the WAIT FOR EVENT step.

Please let me know what are the other settings that I have to made.

Thanks in advance for your kind cooperation.

Regards.

Abhijit