SAP_WAPI_CREATE_EVENT

Hi,
Within my workflow im using a method.
Inside the method im calling SAP_WAPI_CREATE_EVENT to trigger another workflow.
Is this possible to trigger like this ? will my workflow get triggered.
Please advice.
Regards
Keerthi

Hi ,
For example you have two Approval levels. Once the Event 'Created' triggered, then the workflow should go for First level of approval.
If it is approved then the 'Changed' event should be triggered. Based on this the second workflow will be triggered and it will go for the second level of approval. Is this your requirement?
If so, after the first level of approval, you need to trigger the second event. My question is, is the second event is a standard one? If it is a standard event then you no need to use function to trigger the event.
Thanks.

Similar Messages

  • 'SAP_WAPI_CREATE_EVENT' is not creating mail

    Hello All,
    I am currently working on a requirement in which a mail has to be sent using workflow to the initiator when the net value of a sales item is below a certain value. I have created a standard task for sending mail and I am calling this task in the user exit "userexit_save_document" using FM 'SAP_WAPI_CREATE_EVENT'. I have created a new event for triggering this task.
    My problem is that the task is getting triggered but mail is not being sent. I think I am making a mistake in the container elements part. I am passing only element 'ADDRESSSTRINGS' to the container with value sy-uname.
    Can anyone please suggest me how to solve this problem.
    Thanks in Advance,
    Priyanka Gupta.

    Hello PR,
    I am not very clear about what to send from your reply.
    Please find my code below:
        wa_cont-element = 'ADDRESSSTRINGS'.
        wa_cont-value   =  sy-uname.
        APPEND wa_cont TO itab_cont.
        CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
          EXPORTING
            object_type             = 'ZBUS2032'
            object_key              = g_objkey
            event                   = 'ZMINEXISTS'
          commit_work             = 'X'
      EVENT_LANGUAGE          = SY-LANGU
      LANGUAGE                = SY-LANGU
           user                    = sy-uname
      IFS_XML_CONTAINER       =
    IMPORTING
      RETURN_CODE             =
      EVENT_ID                =
    TABLES
       input_container         = itab_cont
      MESSAGE_LINES           =
      MESSAGE_STRUCT          =
    In transaction SWEL, I am getting "No receiver entered" message.
    Best Regards,
    Priyanka Gupta.

  • How to use Input container in the FM SAP_WAPI_CREATE_EVENT

    Hi All,
    I am using the FM SAP_WAPI_CREATE_EVENT in the Web Dynpro to trigger an event which will start my Custom workflow.
    I need to pass a primary key field ( inventory number) from the Web dynpro contents to the Workflow container . And I later use the Inventory number in different BO methods .
    Can anybody please let me know how we can pass the data from WD to Workflow.
    I know that the input_container table needs to be filled with the details.
    It would be great if someone could help me guide how to do that and also how we can use the same in the Workflow.
    Regards,
    Ameya Kulkarni

    Hi Ronit,
    If you want to send additional parameters with the event , you define them in your Object and send them by filling parameter (Table) INPUT_CONTAINER .
    WA_CONTAINER-ELEMENT = 'PARAMETER_NAME'.
    WA_CONTAINER-VALUE = L_PARAMETER_VALUE.
    APPEND WA_CONTAINER TO LT_CONTAINER.
    Can you please explain what would be the 'PARAMETER NAME' here.
    And also how to know if the container is set. Main issue is passing the value to the Workflow container.
    Would really appreciate if you let me know how in detail.
    Many Thanks in advance !
    Regards,
    Ameya Kulkarni

  • Difference between SWE_EVENT_CREATE  and SAP_WAPI_CREATE_EVENT ?

    what is the difference between the function modules SWE_EVENT_CREATE and SAP_WAPI_CREATE_EVENT ?
    In my program,when I tried to call the FM SWE_EVENT_CREATE for a custom BO event ,the event is not getting triggered.
    But when I use FM SAP_WAPI_CREATE_EVENT for the same custom BO event with the same parameters, the event is getting triggered.
    Can anyone please diffrerentiate between these two FM usages?
    Thanks a lot in Advance.

    HI,
    Plase search before posting ..
    SAP_WAPI_CREATE_EVENT it is meant for Workflow API  instead of the old function module SWE_EVENT_CREATE.
    refer this link
    Re: BUS2012 (PO) swe_event_create - container - use SAP_WAPI_CREATE_EVENT
    thanks..

  • Terminating Event Not Triggering

    HI Guys,
                   I have added a custom task to call MRBR screen and set a Terminating Event for this task. It is a Asynch Method.
    Through SAP_WAPI_CREATE_EVENT i am calling the terminating event but my task is not getting terminated.
    I checked in SWEL i could see evnt log for my terminating event without Receiver type.
    Kindly help me to sort out this issue.
    Regards,
    Dheepak

    Hi
    Where have you written the code for triggering the termination event?
    Also in your task have you created an entry:
    WIOBJECT_ID   FIPP  TerminatingEvent Name.
    When everything is done properly in SWEL you would see the receiver as workitem.
    Thanks and Regards
    Aman

  • SAP Workflow not triggering due to "Start Condition return FALSE" message in SWEL

    Hi,
    I have SES approval workflow which is not triggering in few cases because of check function ends with exception even it has valid start condition and correct data. For example lets say we have PO no. 100 for which 3 SES (SES1,SES2 & SES3) are created. Out of which workflow for SES3 is not triggering even if all the three contain valid start condition(Bases on internal order at PO line item).when triggering workflow manually using SWUE for SES3 it work fine.Please find SWEL screenshot below and let me know if you have come across this type of issue.
    Thanks in Advance.
    Ishant.

    kindly use SAP_WAPI_CREATE_EVENT and not SWE_EVENT_CREATE it's always better to use APIs.
    Why use 2 sub-objects? you already have a z-object and you can modify it. even if there is a reason for the double sub object , the workflow should still run on the standard one - BUS2091.
    see for example :
    Extending Object Types: Inheritance and Delegation - SAP Business Workflow - SAP Library
    As for your question,
    if you are using a function module to raise the event, way not check in it if the service entry sheet has been created properly before creating the event. you can even check if the PO contains an internal order in your RFC function module and raise a specific event. then you will have no need for the starting condition.

  • Event not triggering workflow always

    Hi,
    I have a parallel approval workflow which I trigger everytime I receive a decision from a UWL.it works fine but in some cases all the decisions are not received by the workflow.
    Steps: I receive the decision from UWL via a RFC
               I trigger the workflow with the decision using SAP_WAPI_EVENT_CREATE.
               However sometimes out of 5 decisions only 4 reaches and the workflow never completes since I wait till all the decisions  are received.
    After triggering the event I also update a table which shows correct values meaning the data is correctly passed from UWL.
    Not sure what can be the cause. Anyone any ideas.
    Thanks
    Papiya

    Hello,
    Either the event isn't being created, or the event is being created ad the workflow isn't triggering.
    Check tx SWEL (event trace, turn on with SWELS) to see if SAP_WAPI_CREATE_EVENT is creating the events.
    It will also show you if a workflow is triggered, and what the workitem id is. It will also show any errors.
    regards
    Rick Bakker
    Hanabi Technology

  • Ouput field is not getting displayed

    Hi All,
    I created an object type in BOB which gives me ernam field of MARA table on testing.
    I need to use that object type in the new workflow in which user inserts a material number and should get ernam (Created by) as an output field.
    I tied doing that but on testing , it shows task's status 'COMPLETED' but does not display the ERNAM.
    What else I need to do to make it displayed on the screen?
    Thanks in advance
    Shweta

    Hi Vidya,
    I used 'SAP_WAPI_CREATE_EVENT' to pass the values. Also , I created an event parameter 'MATERIAL' so that the value can be passed as the event gets triggered then I did the binding of event parameter and workflow container parameter of material.
    after that i run the following code in se80.
    DATA : MATERIAL like SWR_STRUCT-OBJECT_KEY,
           lv_matnr TYPE mara-matnr.
    DATA : wa_event like  SWR_STRUCT-EVENT,
           wa_obj LIKE swr_struct-object_typ.
    DATA : lv_user TYPE SWC_ELEM VALUE 'INITUSER',
           LV_MATERIAL TYPE SWC_ELEM VALUE 'MATERIAL'.
    DATA : T_MSG TYPE STANDARD TABLE OF SWR_MESSAG.
    DATA : flg(1) TYPE c.
    DATA : it_cont TYPE TABLE OF SWCONT,
           wa_cont like LINE OF it_cont.
    wa_event = 'ZCLICK_EVENT'.
    Wa_obj = 'ZDEMO_BOR1'.
       MATERIAL = lv_matnr.
       wa_cont-element = lv_user.
       wa_cont-value = sy-uname.
       append wa_cont to it_cont.
       CLEAR : wa_cont.
       wa_cont-element = LV_MATERIAL.
       wa_cont-value = LV_MATNR.
       append wa_cont to it_cont.
       CLEAR : wa_cont.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
       EXPORTING
         object_type             = wa_obj
         object_key              = MATERIAL    "Key field in BOR
         event                   = WA_EVENT
    *   COMMIT_WORK             = 'X'
    *   EVENT_LANGUAGE          = SY-LANGU
    *   LANGUAGE                = SY-LANGU
        USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    * IMPORTING
    *   RETURN_CODE             =
    *   EVENT_ID                =
      TABLES
        INPUT_CONTAINER         = it_cont[]
        MESSAGE_LINES           = T_MSG[].
    *   MESSAGE_STRUCT          =
       READ TABLE T_MSG WITH KEY MSG_TYPE = 'E' TRANSPORTING NO FIELDS.
           IF SY-SUBRC = 0.
             Flg = 'N'.
             MESSAGE E208(00) WITH 'Error initiating Workflow.'.
            ELSEIF SY-SUBRC <> 0.
             MESSAGE 'Workflow initiated.' Type 'S'.
    After this code , I get a message 'Worlflow initiated' but I can not see the value being transferred to the workflow respective container

  • 'Releasestepcreated' not getting triggered for PR generated through MRP run

    Hi,
    I have PR Release strategy workflow configured, working well when i try to create PR manually, triggers workflow.
    PR's created thorugh MRP run, triggers release strategy but not workflow.
    I checked the event trace 'releasestepcreated' event not triggered through MRP run.
    Please respond ASAP.
    Your inputs will be highly appreciated.

    Short Text 
    Workflow with multiple workitems 
    Long Text 
    Refering SAP notes that i came to know that workflow is not supported
    through MRP run (md03/md04).we are not using Planned orders.
    To trigger workflow for Purchase requisitions created by MRP run, we
    have developed a custom report to trigger workflow explicitly.
    1.MRP batch job runs every night. After MRP job,planned to schedule
    another job to trigger workflow for PR's created MRP run.
    2. Used FM 'SAP_WAPI_CREATE_EVENT' to trigger workflow.
    3. PR requires 5 levels of approvals based on release strategy
    configuration.
    4. The issue is PR 'XXX' created and waiting for approval in agent's
    inbox.When 2nd day MPR runs same PR 'XXX' effected, another
    workitem for the same PR in agent's inbox.
    We have multiple workitems for the same PR in agent's Inbox.
    If i execute one of the workitem,releases PR, multiple workitems are
    getting generated for 2nd level approval for the same PR.
    Please give your inputs to resolve this issue.

  • How to work with a workflow in Webdynpro

    Hi Team,
           I am new to webdynpro ABAP, i have a scenario
    I have a work flow id with me, i want to start this workflow from a webdynpro application,
    1. wedynpro application contains a list of inputs and user1 inputs this data that i have stored node, So node contains full data.
    2. Now i have a workflow id, i want to pass this node data to this workflow on a button click
        I have the button action, what code is required to pass this?
             (I sow few FMs in fourms but i dont know how exactly i can use it)
    3. When the approver gets the workitem, he should be able to approve,reject or send backToAuthor option he will get
         how to read this data back to approver screen for the approver to take correct action ?
    Please help me with some code sample, i sow few things but i am not sure about the parameters which required for this.
    Thanks,
       PP

    Hi,
    1)  In order to trigger the workflow from webdynpro and pass the list of inputs and your workitem id  , i will suggest you to go for    a   business object.
    2) If you have a business object than you can just trigger the workflow through the event (provided your workflow should be an event trigger workflow). As well as you can pass your parameters through it.
    3) In order to trigger the workflow through your business object event u can use the following function module.
    in the below code:-
    it_container- contains the parameter u want to pass like workitem id in your case.
    ZPOC_LEAVE- is my business object.
    OPTIONAL- is my event which will trigger the workflow.
    ty_object_key:- structure type of key fields of business object.
    Note:-you have to define these values as per your business object.
    * Trigger the event ZPOC_leave-CREATE to start the workflow
      DATA: it_container TYPE TABLE OF swr_cont,
                 is_container LIKE LINE OF it_container.
      DATA: g_return_code TYPE sy-subrc,
                 glf_event_id TYPE swr_struct-event_id.
      DATA : ls_objkey TYPE ty_objkey.
      DATA : ls_objtype TYPE swr_struct-object_typ VALUE 'ZPOC_LEAVE'.
      DATA : ls_objectkey TYPE swr_struct-object_key.
      DATA : ls_event TYPE swr_struct-event VALUE 'OPTIONAL'.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
        EXPORTING
          object_type             = ls_objtype
          object_key              = ls_objectkey
          event                   = ls_event
          commit_work             = 'X'
          event_language          = sy-langu
          language                = sy-langu
          user                    = sy-uname
    *   IFS_XML_CONTAINER       =
       IMPORTING
         return_code             = g_return_code
         event_id                = glf_event_id
       TABLES
         input_container         = it_container
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
    4) You also need to define the parameter(workitem id in your case) under the parameter option of your event in your business object. (you can use the transaction SWO1 for business objects).
    5) Now in swdd transaction in the basic data u can mention your start event.
    This should be enough to trigger your workflow  and pass your workitem id to it.
    Thanks and regards,
    Mayank Gupta
    Edited by: Mayank Gupta on Feb 4, 2011 5:52 AM

  • How to change workflow for expired qualification in HR Module

    Hi,
    My question how to change workflow for expired qualification in HR Module.We need to when date is expired tcode OOQA that system will check and that time workflow should be triggred.
    I have serached sap help but i am not understand please below mention URL for SAP help
    Link: [http://help.sap.com/saphelp_47x200/helpdata/en/ee/f4c9cafbab11d29ea40000e8215202/frameset.htm]
    Please explain step by step how to trigrred workflow for expired qualification?
    Please this problem is high and try to solve it.
    Thx!
    Sachin

    Hi,
    Why do you want to trigger a wflow and what do you want to do with this trigger. Can you give more details of your exact requirements.
    But, if you are looking for how to trigger, you can write a small ABAP pgm and schedule it as a job every night. THis job basically reads the table P1000-ENDDA for expiry date and if it reached today, then you can either trigger the wflow with SAP_WAPI_START_WORKFLOW or use SAP_WAPI_CREATE_EVENT to raise your custom event(for Business Obj. BUS7018, i think this is your BO and there are no std events right now, so you will ahve to add your custom event by extending BUS7018 to ZBUS7018).
    Hope I am clear and this helps and if you need more details, reply.
    venu

  • Creation of an Enterprise Messae Source Type

    Hi guys,
    has anyone of you tried before connecting BAM to Joram. Joram should be used as JMS provider. I'll post my confirguration:
    Display name:
    Joram
    ID:
    EMST.JORAM
    CLSID of Admin implementation:
    {CAC27017-40A2-4AD4-9BAC-16D01578A192}
    CLSID of Receiver implementation:
    {CAC27017-40A2-4AD4-9BAC-16D01578A192}
    CLSID of Sender implementation:
    {CAC27017-40A2-4AD[/i]4-9BAC-16D01578A192}
    Startup parameter:
    JMS*".;C:\Oracle\OracleBAM\OC4J\j2ee\home\oc4j.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\oc4jclient.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\oc4j-internal.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\ejb.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\servlet.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\jta.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\jms.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\javax88.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\javax77.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\jmxri.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\jmx_remote_api.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\lib\adminclient.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\ojspc.jar;C:\Oracle\OracleBAM\OC4J\j2ee\home\jazn.jar;C:\Oracle\OracleBAM\OC4J\opmn\lib\optic.jar;C:\Oracle\OracleBAM\OC4J\rdbms\jlib\aqapi.jar;"".;c:\TIBCO\JMS\clients\java\tibjms.jar;c:\TIBCO\JMS\clients\java\jms.jar;c:\TIBCO\JMS\clients\java\jndi.jar;c:\TIBCO\JMS\clients\java\jta-spec1_0_1.jar;c:\TIBCO\JMS\clients\java\jcert.jar;c:\TIBCO\JMS\clients\java\jnet.jar;c:\TIBCO\JMS\clients\java\jsse.jar;c:\TIBCO\JMS\clients\java\tibcrypt.jar;"".;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;"".;C:\Program Files\SonicSoftware\SonicMQ\lib\sonic_Client.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\gnu-regexp-1.0.6.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\jaxp.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\xerces.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\tools.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\providerutil.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\fscontext.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\sslj.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\jsafe.jar;C:\Program Files\SonicSoftware\SonicMQ\lib\certj.jar;"".;C:\bea\weblogic700\server\lib\weblogic.jar;"".;C:\eGate\client\classes\stcjms.jar;C:\eGate\client\JRE\1.3\lib\ext\fscontext.jar;C:\eGate\client\JRE\1.3\lib\ext\providerutil.jar;C:\eGate\client\ThirdParty\sun\jms.jar;C:\eGate\client\ThirdParty\sun\jndi.jar;C:\eGate\client\ThirdParty\sun\jta.jar;"".;C:\JNDI-Directory_WebMethods\fscontext.jar;C:\JNDI-Directory_WebMethods\providerutil.jar;C:\JNDI-Directory_WebMethods\javax.jms.jar;C:\Program Files\webMethods6\Broker\lib\BrokerJMS60.jar;C:\Program Files\webMethods6\common\lib\client60.jar;C:\Program Files\webMethods6\Broker\lib\xerces.jar;C:\Programme\SOPware\Devbox\devbox-modules\joram\ship\lib\joram-client.jar;C:\Programme\SOPware\Devbox\devbox-modules\joram\ship\lib\joram-shared.jar;C:\Programme\SOPware\Devbox\devbox-modules\joram\ship\lib\ow_monolog.jar;C:\Programme\SOPware\Devbox\devbox-modules\joram\ship\lib\JCup.jar;"
    The next step is the creation of the Enterprise Message Source:
    [i]Name:
    MyEMS
    Owner:
    VM\admin
    Type:
    Joram
    InitialContextFactory:
    fr.dyade.aaa.jndi2.client.NamingContextFactory
    JNDI Service Prvider URL:
    localhost:16400
    TopicConnectionFactory Name:
    TopicConnectionFactory
    Topic Name:
    Topic
    JMS Message Type:
    TextMessage
    with one field as a String with filesize=4000.
    When I create a plan to insert in a simple Grid and update this plan I am getting the following error:
    Unable to create Message Receiver COM object.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x4B]
    [W32 HRESULT: 0x80004002]
    Interface not Supported
    Error creating Message Receiver COM object.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x4C]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Unable to create Message Receiver COM object.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x4B]
    [W32 HRESULT: 0x80004002]
    Interface not Supported
    Error creating Message Receiver COM object.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x4C]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "NotificationReceiverPlan" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    Did I miss anything in my configuration?
    Regards,
    Christoph

    Hi,
    I dont see a point in having this statement
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
    SWE_EVENT_CREATE like any other FM, take a
    lt_var type standard table of SWCONT.
    ls_var type SWCONT.
    fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
    However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE  from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
    Try above and Good Luck !!
    Regards
    Krishna Mohan

  • Problem of trigger event for Customer master.

    Hi all,
    I created one object type in KNA1. because i want to use task instead of the workflow.
    after i executed the customer master creation , i got this error during the execution."Dereferencing of the NULL reference".
    if anybody want information, please let me know.
    Regards,
    Luke

    Hi
    "At the beginning, i am using the Receiver Function module is SWW_WI_CREATE_VIA_EVENT.
    after i change to "SAP_WAPI_CREATE_EVENT" but got error too."
    Can you tell us where are you calling this FM (is it via Enhancement option or badi or exit) to trigger the event?
    Just leave the Receiver FM as same as in SWE2 and make sure Linkage Actiavted check box is checked
    "i can't do the buiding between &EVT_OBJECT& and &WI_OBJECT_ID&. because it is not same business object.
    for our workflow object, it references to class is developed by me.
    As suggested by Rick, you could make use of FM or as per blog, you could use class to trigger your custom class's event. Then you need to have binding at task level (PFTC)
    &EVT_OBJECT& --> &WI_OBJECT_ID&.
    Vinoth

  • Copy of task TS50000075 and  EXTSRV - termination event not working

    Hi,
    We have done copy of TS50000075 and extended business object EXTSRV to ZEXTSRV
    this was done to call function module ISR_CALL_FOR_CHANGE to open up adobe form in edit mode
    it works well but the task is not terminated
    if termination event is put just like TS50000075 like WIOBJECT, ZEXTSRV COMPLETED then workitem never ends and always stays in inbox
    ZEXTSRV COMPLETED event is not triggered when the workitem is completed in the UWL
    even if we trigger this event programatically , it does not find receiver and the task stays in-process
    if termination event is put as _WORKITEM PROCESSED then it bahves like synchronous task ie even if the workitem is clicked and form is not completed, the workitem ends. so the user can click it only once
    also i've tried following
    1 - used the function module to complete the workitem in QISR BADI. but the workitem ID is not available inthe BADI. If I try to export it from business object method and import in BADI, it doesnt work
    2 - find active workflows and derive workitem id and complete workitem using FM SAP_WAPI_WORKITEM_COMPLETE
         this FM doesnt work , step becomes logically deleted which is not desirable
    3 - find active workflows and derive workitem id and complete workitem using other FM SAP_WAPI_SET_WORKITEM_COMPLETD
         work item is complete but there is workflow error - cannot determine succesor node
    4 - find active workflows and derive workitem id and change a particular container element
        check this container element in complete workitem condition in activity step of dialog step of workflow of this task-
         workitem stays inprocess
        check this container element in parellel wait step to complete the workitem-
         parellel step executes but fork is not complete, workflow doesnt proceed
    kindly help in this matter. the workitem does not get completed at all even if we force complete, workflow goes in error of - cannot determine succesor node.
    is there anything specific to the EXTSRV-PROCESS method which makes the TS50000075 task to trigger EXTSRV-COMPLETED and end the workitem ?
    help is much needed in this case
    thank you,
    b

    Hi,
    You need to see the event in SWEL, otherwise it will never work with workflow. Make sure that the event monitor is on (in transaction SWELS).
    I cant see the event in SWEL. The vent monitor is on because if I create event in SWUE, it shows up.
    How you actually create the event now?
    There is BADI QISR which is always called to handle user action of PDF form. I have written the function modue to create event in the user action
    >If i trigger it using funciton module -- then it doesnt find any receivere so it doesnt terminate the task. it is seen in SWEL with no receiver found. do i still need to do commit work ?
    You need the COMMIT WORK always if you trigger the event in any program&function or whatever.
    ok ill try doing commit work after the create event function module
    Test your event with transaction SWUE. Make a test case first in a way that the task is waiting in the inbox/UWL. Then create the event in SWUE. Now, if the task gets completed, you will know that that event itself is working and your terminating event configuration is done properly. If this works, your only problem is in the event creation itself. And for that you need to tell exactly how you create the event. If you do it with your own custom code, use SAP_WAPI_CREATE_EVENT and don't forget to have COMMIT WORK after the function call.
    I am doing exactly like you said. but it doesnt work ie even if I create the event in SWUE, the workitem doesnt get completed.
    This event is seen in SWEL with no receivere found
    I am able to infact set the workitem to complete using WAPI funciton module to complete teh task in the BADI.
    but the workflow goes in to error saying , next node cannot be determined
    Regards,
    Karri

  • User Exit OR Badi for MK01 transaction (used for saving vendor amster data)

    Hi All,
    I have a requirement where I have to call my workflow, when we create the Vendor using my custom transaction (ZMK01, which is a copy of standard transaction MK01).
    For Workflow triggering I am using FM 'SAP_WAPI_CREATE_EVENT' in the user exit  'EXIT_SAPMF02K_001' but this is only for checking the data on saving Vendor Master.
    So I want to use FM 'SAP_WAPI_CREATE_EVENT' at right place. For that , I need User-Exit or BADI which is used for saving vendor master data.
    Could anyone please help me to find out the user exit or BADI for save event of vendor master data using transaction MK01.
    Looking forward to your advise and thanks in advance.
    Best Regards,
    Mamta

    Hi ,
    I forgot to activiate the project linked with User exit 'EXIT_SAPMF02K_001' .
    so problem is solved now
    Thanks,
    Mamta

Maybe you are looking for

  • No sound on Windows XP Pro

    Because the banks will not guarantuee internetbanking under Windows XP I have installed Windows 7 on two of my Pavilions. Because I am comfortable with XP and do not want a plethora of operating systems I have rolled my Pavilion t3710.nl back to XP (

  • How can we use "tooltip " option in heirarchical tree item in oracle 11g?

    how can we use "tooltip " option in heirarchical tree item properties in oracle 11g forms?

  • It's possible ON UPDATE CASCADE in table relationships?

    Hi, how are you? Sorry my weak English, I'm brazilian. I like create an "ON UPDATE CASCADE" in my table relationship but find only "ON DELETE CASCADE" in Oracle 9i Database Online Documentation. I would like your help. Thank you. Eduardo A. Reche Lop

  • How to pop up if no data found in Crystal Reports XI

    Hi, Can you please suggest me how to alert message if no data found? Thanks and regards, Manjunath N. Jogin Edited by: Manjunath N Jogin on Jan 21, 2010 2:53 PM

  • Process open FD table is full

    Hello ! sun directory server 5.2 patch 6 linux redhat 3.7 My directory server was out yesterday. Here is the error message : [10/Dec/2008:17:35:24 +0100] - ERROR<12289> - Connection - conn=-1 op=-1 msgId=-1 - PR_Accept() failed, error -5971 (Process