Skip to Content
author's profile photo Former Member
Former Member

Raise event for waiting step

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 07, 2011 at 09:46 PM

    Hello,

    fm SAP_WAPI* to the rescue.

    1. SAP_WAPI_READ_CONTAINER

    2. SAP_WAPI_CREATE_EVENT

    regards

    Rick Bakker

    hanabi technology

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2011 at 02:33 PM

    >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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.