cancel
Showing results for 
Search instead for 
Did you mean: 

Raise event for waiting step

Former Member
0 Kudos

Hi experts,

I have a requrement that the report is getting all work items of documents which are parked from inbox based on userid by using FM,

1. based on work item id i need to get object key how to get it?

2. once i get the all the document number i need to raise event called 'MASS' (in waiting step) to complete the workflows which are waiting for mass approval. how to raise a event in report for each document no?

Please prove neccessary information

step by step pls.

Best Regards,

Venu.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185167
Active Contributor
0 Kudos

Hello,

fm SAP_WAPI* to the rescue.

1. SAP_WAPI_READ_CONTAINER

2. SAP_WAPI_CREATE_EVENT

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Rick Backer thanks for your reply?

I want to raise event 'process' which is in waiting step, for that I have created event 'process' in BO ZFIPP and linked in SWE3 as follows

Obj category BO

Object type zfipp

Event process

Receiver type EVENTITEM

Receiver FM SWW_EI_EVENT_RECEIVE_IBF

and i have used FM to raise event SWE_EVENT_CREATE_IN_UPD_TASK and also tried with PP_WF_EVENT.

It is raising the event but says no receiver found (In SWEL). Am i missing anything?

Is it possible to raise the event of waiting step explicitly?

Best Regards,

Former Member
0 Kudos

IF your aim is to raise an event just for a waiting step, you don't need to define the event in SWE3.If you can see the event in SWEL, the event itself should be fine.It seems now that the workflow is just not reacting to it correctly.

The event itself you should trigger with function SAP_WAPI_CREATEEVENT (or SAP_WAPIEVENT). Althouh if you can see the event in SWEL, the event creation part should be fine whichever function you are using now.

Are you use that your waiting step is correctly defined?

Regards,

Karri

Answers (1)

Answers (1)

Former Member
0 Kudos

>1. based on work item id i need to get object key how to get it?

Always check SAP_WAPI* functions. There should be SAP_WAPIOBJECTWORKITEM or something like that which you can use to find the objects "attached" to a work item.

>2. once i get the all the document number i need to raise event called 'MASS' (in waiting step) to complete the workflows which are waiting for mass approval. how to raise a event in report for each document no?

As I said in my previous post, always use SAP_WAPI_CREATE_EVENT function to create the events (and unless you don't want to use ABAP class events)..

Regards,

Karri

Former Member
0 Kudos

Hi Karri,

Thank you for your help.

I have one more thing, i want send a notification mail to outlook, i have user id and need to get mail address, is there any standard way to get mail address(like infotype 105) or it varies client to client?

Regards,

Venu.

former_member185167
Active Contributor
0 Kudos

Hello,

You don't need to find the email address; let SAP do that for you.

Just change the settings in SO16 so that it will forward any mails sent to the userid.

Search this forum for SO16.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Thank you Karri.