on 12-07-2011 2:52 PM
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.
Hello,
fm SAP_WAPI* to the rescue.
1. SAP_WAPI_READ_CONTAINER
2. SAP_WAPI_CREATE_EVENT
regards
Rick Bakker
hanabi technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
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
>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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.