How to end a work item exlicitly without executing it?

i want to find out how to end a workitem explicitly without executing it from the business workplace. we have created a dummy workitem and would like to end it when it is not needed.
i have set up the terminating event in the workitem task but even though the event is raised the workitem is not ended and the workitem is still in the inbox. i was expecting that when the event is raised the event will end the workitem and it will move into the outbox.
am i doing something worng? why isnt the workitem getting ended and move to outbox when the terminating event is raised?

Hi Arghadip,
thanks for your inputs. That was really useful but in my case i dont have the workitem ID. Actually here is my process, the system creates a workflow when a invoice is created and it is blocked for payment. When the invoice triggers a workflow it does two things in a FORK. One it sends an email and the second it sends a workitem. The workitem is a dummy workitem. When the user reply's to the email a RFC FM is called from the external system which will release the invoice in SAP. Now once this is done we would like to close the workitem which is lying in the business workplace. So i have implemented the terminating event however i guess that doesnt work. When the RFC FM is called externally it releases the Invoice using a BAPI and once it is done i am calling the FM SWE_EVENT_CREATE to raise the event to terminate the event.
Am i doing something wrong?

Similar Messages

  • How to retain the work item in inbox of user if user press the icon cancel?

    HI,
    we  are using a text editor in approval section of workflow where the user needs to enter the reason for apporval or rejection.
    the requirement is how to retain the work item in inbox of user if user press the icon cancel? there are two icons in editor,one is ok(tick marg) and cancel(cross mark).
    so when user dont enter any text in the editor and press on cancel icon,then approval/rejection should not authorize and work item will remain in the user's inbox .unless and untill he enters the text.
    i have tried   LEAVE TO TRANSACTION 'SBWP'.leave program etc but nothing is working.
    please guide me.
    thanks
    prsahu

    Hi,
    Go with Sangvir Singh suggestion.
    It also looks neater from a Business Process Modeling perspective. You continue the process flow only when a change has occurred.
    Kind regards, Rob Dielemans

  • PO Response approval Work item is not executing from approver inbox.

    Hi,
    PO Response approval Work item is not executing from approver inbox. After click the approve button system is not showing any error and also work item is not clearing from user inbox. When we checked the status of the work item in SWI1 Transaction is still READY.
    Standard Task: TS14508055 - Transfer purchase order response data to purchase order
    Business Object: BUS2209
    Scenario:
    1. Create PO in SRM System, Vendor belongs to SUS System Vendor
    2. SUS Vendor creates the PO Response SUS system, POR Value is greater Than PO Value
    3. Approval Work item will go to Buyers of purchasing group
    4. Buyer trying to approving The PO Response from his approval inbox
    Regards,
    Surya Sankar

    what all buttons do you see when you open the workitem in the approval inbox.
    as far as i know , there will only button 'transfer response to purchase order'..
    what happens if you click the above button.

  • How to send a work item ( Mail ) as open tasks in WEB UI

    Hi,
      I have a requirement as to send a WF work item of mail text to WEB UI as open tasks.  Upon click of te link; the mail txts comes there with the link detials to the service contract number and service contract quotation. Upon click of the links it need to redirect to the respective documents.
    The requirement is as such that 60 days prior to the contract end date we need to trigger a mail that 'the contract expires in 60 days,do you  need to renewal it'. This text need to go to the WEB UI respective agent of this mail as tasks. Upon click of the task description link need to navigate to the mail text with the details of the contract and quotation numbers in link. upon click of the lnk it needs to navigate such that they can change accordingly and the contractrenewal process is completed.
    How to acheive this one.
    Thanks and Regards,
    Satish Akkina

    Hi,
    Sending Mail to Outlook : U need the Following things done for this:-
    1> Use the Mail Step in the WF and Choose the Receipient as the E-Mail Address and Give the E-Mail Address there.
    2> Check the Configurations that need to be done in Transaction SCOT. SMTP Server Settings are done to get the Desired Results.
    From the external mail, they should have the flexibility to approve or reject PO.
    To get Workitems in Outlook..!!
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    Problem in transferring the workitems into OUTLOOK
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    Workflow Items in Outlook
    Let me know if u still face any issues.
    Regards,
    Kanika

  • How to direct the Work Items in SBWP to different folders

    Hello All ,
    Is there a possibility of having a rule on the SBWP , so that the work items coming in to the inbox can be placed in different folders based on some grouping .
    I see 4 kinds of grouping :
    Grouped according to task
    Grouped according to content
    Grouped according to content type
    Grouped according to sort key
    Is there any help on how to use this . Any example given ?
    Do we have any other groupings on the workflow inbox other then the above ?
    Thank you very much for your valuable input ...

    As said above, the work items are automatically directed to these folders according to rules briefly explained here (and you can't change the rules): [sap library - workflow - inbox|http://help.sap.com/saphelp_nw70/helpdata/EN/ae/b82ccee10611d2a62f0060087a79ea/frameset.htm]
    In case you don't have work items in your inbox, use transaction SWUI_DEMO: used to start several demo workflows
    If you want a custom business workplace, see demo transaction SWLD_INPLACE1: a custom business workplace with one container (program of 210 lines)

  • How to include Sap Work item in email by FSCM workflow WS01700044

    Hi,
    In FSCM Dispute Management, we have a requirment to include the sap work item in the email being sent by the workflow - WS01700044.
    The underlying task in it is TS01707928. This Task sends an email to the outlook as well as work item to SAP inbox.
    We want to include Sap Work item in email being sent to the outlook.
    This will help the users to process the workitem directly from the email instead of going to SAP Inbox to process the work items.
    Please suggest the possible ways.
    Thank you.
    Amar

    Hi,
    For you kind of requirment you have to use tcode SWNCONFIG.
    Through SWNCONFIG you can sent workitems to external email id.(exa. lotus notus/ outlook)
    Regards,
    Gurprit Bhatia

  • How to include sap work item in the email sent by workflow - WS01700044

    Hi,
    In FSCM Dispute Management, we have a requirment to include the sap work item in the email being sent by the workflow - WS01700044.
    The underlying task in it is TS01707928. This Task sends an email to the outlook as well as work item to SAP inbox.
    We want to include Sap Work item in email being sent to the outlook.
    This will help the users to process the workitem directly from the email instead of going to SAP Inbox to process the work items.
    Please suggest the possible ways.
    Thank you.
    Vijay

    Sadly, I believe this will require a bit of development to make it happen. The project I'm on now...we are finding that to get it to do what we want it to do, a development to customize the email message to include all the case fields is required.
    D

  • How to determine (sub)work-item in bpm

    Hi all,
    is there a way to determine the actual workitem in a bpm. I want to map this workitem in a xml-structure and send to a receiver just for log function.
    Best regards
    Mathias

    Hi Mathias,
    i dont know any standard way to get the work item no into the XML. But for your case should the message ID enough, coz you select the message and click on link PE to navigate to the work item.
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm">Special Access to Mapping Runtime Constants</a>
    Regards,
    Udo

  • How to forward a work item from user inbox

    Hello,
    We are trying to find a way to remove work items from a users inbox. the workitem has not been opened
    and also it is possible that the work item is in more than 1 users inbox.
    we want to remove the work item from only the 1 user and leave the work item in the other user's inbox.
    Regards
    Gaurav Maini

    Hi ,
    U can see the workitem of the user by the table SWWUSERWI giving user id.
    select the workitem id.
    Go to the transcation SWIA.
    Forward the workitem to your inbox.
    This will not appear in user inbox anymore
    Regards
    Pranab

  • Leave Request Workitem error Work item cannot be executed in status COMPLET

    Hi All,
    In case of leave request application when one particular manager is trying to approve the leqave request he is getting the error message
    Work item 000000003046 cannot be executed in status COMPLETED
    when i check in workflow log i am getting the workitem id for the dialog task it is 0000000002111
    work item id 000000003046 mentioned in the workflows is for my background task which is already completed.
    This is happening on production server. Other managers are able approve and reject the leave.
    Please suggest.
    Regards,
    Umesh Chaudhari.

    Hi Florin,
    Thanks for your reply.
    I could not understand your view fully you are saying
    Why modifying the SAP Standard when it could be solved by the SAPNet? There's a hint in the OSS Note's text regarding a problem for custom-made workflow patterns related here.
    Here are you suggesting some new sap note? which will revert to the previous code or something like that.
    What pavan is talking is
      SORT lt_dep_wis STABLE BY WI_ID.                            "Note ANK 980004
      LOOP AT lt_dep_wis INTO lcl_dep_wis. ENDLOOP.
    Pavan: can you please give the details of the implicit Enhancement - Enhancement point or something as I could not find any implicit enhancement here.
    Please suggest.
    Regards,
    Umesh Chaudhari

  • How to check parallel work items status of a workflow

    Hi Experts,
    In a standard workflow, there is a task which can create a workitem to different agents by agents determination.
    As per standard workflow, once the workitem have been opened by any user, the same workitem will disappear from all others inbox. Now there is a need of changing the workflow to perform the task by everyone. For this I am using BLOCK step with parforeach. In the definition, workflow completion is doing based on document status. If any one processed the task, then the doc status will change and then workflow will be in complete state. Now along with this workflow, all other unprocessed workitems are getting closed automatically. So there is any way/function module to check the status of all workitems of a workflow to check same before workflow completion step.
    Thanks in advance...
    Regards,
    Suresh   

    Hi Suresh
    In the definition, workflow completion is doing based on document status. If any one processed the task, then the doc status will change and then workflow will be in complete state.
    How is this achieved in your copy workflow? Are you listening to an event in the workflow which gets triggered when the doc status is changed? Are you checking a condition? What is the technique followed to check that status and complete the workflow?
    Depending on this, there can be different ways to bypass it till the last approval.
    Regards,
    Modak

  • How to read the Work item Container

    Hi all,
              I need to acess the contents of the attachement object i need to read the container valuesof  ATTACHOBJECTS i.e the folder type , folder year etc  for passing it to the FM SO_OBJECT_READ to read the contents i need to get these values in Workflow container. so that i can pass it to the function module.
    Thanks.

    Hi
    Use any  one the Function module accoring to your requirement,
    SWI_READ_CONTAINER_ATTRIBUTE
    SWI_READ_CONTAINER_ATTRIBUTES
    SWI_READ_CONTAINER_ELEMENT
    SWI_READ_CONTAINER_OBJECT
    SWW_WI_READ_CONTAINERS_OF_OBJ
    SWW_WI_READ_CONTAINERS_OF_OBJS
    SWY_READ_TASK_CONTAINER
    Regards
    Pavan

  • How to prohibit 'when-validate-item' to be executed...????

    Hi ,
    I have written 'when-validate-item' in a text item. I want this code not to be executed only in one and only one circumstance . In my form , i don't want it to be executed when a button is pressed...
    The problem is that this item has the focus .. so presumably whatever i try to do -go to another item , press a button , e.t.c.- this code would run.....!!!!
    How can i achieve this ...???
    Thanks , a lot
    Simon

    Does the user press this button before or after navigating to the item? If before, then set a global variable when the button is pressed and just read the variable before executing your validation code. If after, then I think you may want to rethink your design. For example, you could turn off validation as the default until some other event occurs.

  • Work Item Not Getting Executed

    Hi,
    I am using the Standard workflow WS20000077 for Purchase Requisition release.
    In the standard task "TS20000159" I have maintained the agent as my user name for test purpose.
    I have also activated the event linkage for Business object BUS2105 and Workflow WS20000077.
    I have maintained the User againest the release code in the customising activity.
    I am getting an workitem in my inbox stating that "Please release purchase requisition" whenever a purchase requisition gets created.
    When I am executing the workitem nothing is happening..No Tcode gets opened for release.
    Pls suggest what may be the problem..?

    It would be nice if you would post the cause and solution for the benefit of others.
    Regards,
    Martin

  • How to pass work item id from  workitem to webdynpro form

    hi ,
    im working on  webdynpro. when the agent executes  the  workitem  it has to open one form designed with webdynpro screens. here i have to get the workitem id from workitem and basing on the workitem id , i will get other data , that i have to dispaly in the lay out of a view..
    how to pass this work item id to my view and how to display this...?
    Raghu

    Hi,
    Application parameters can be used for this accessed directly only in the Window. Follow these steps;
    1. get the application url using the following code,
    par_wrkitm is the application parameter ( which should also be declared in the HANDLEDEFAULT method of the window as importing parameter and aslo appended in the URL )
    g_wrkitm is a Component Controller attribute
    Data: my_url TYPE string.
    *Get the URL of the Application
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
        application_name = 'ZWDRC_NEW_APP'
    IMPORTING
       out_absolute_url = my_url.
    2. Now pass the required parameter ( i.e in this case Workitem id ) to this URL
    3. In your webdybpro applicatio, Goto Application parameters and create a parameter for workitem id with the same name as used in the URL.
    4. In the HANDLEDEFAULT method of the window, create Importing parameters with same names as that of your application parameter.
    5. Now this variable will contain your workitem id.
    If you want to acess the variable in your views;
    2. create a attribute in the Component Controller( Component Controller->Attributes Tab; mark it as public )
    3. Now in the HANDLEDEFAULT method of the window, assign your application parameter values to the component controller attributes directly as shown below,
    wd_comp_controller->g_wrkitm = par_wrkitm
    Regards,
    Radhika

Maybe you are looking for