Work Flow - Triggering Event through Webdynpro

Hi,
          I am new to Workflow. I have generated the Workflow related to claim (Objects as ABAP Class). Now I have generated Webdynpro component and through this I need to execute the Workflow. I have used the FM SAP_WAPI_START_WORKFLOW & SAP_WAPI_CREATE_EVENT. To raise the event 'cl_swf_evt_event=>raise'. I have used. But this is not triggering event. So, Any one can help me on this issue.
In workflow using ABAP CLASS is essential or Business object.
In my case I have used only ABAP CLASS. In workflow I have generated the Triggering event as SAVE. In webdynpro I have generated the code in 'ONACTIONSAVE'. When ever the user clicks SAVE' button. Workflow shouild trigger and approver should receive the mail as notification and he/she will approve/reject the claim.
Thanks & Regards
Kannappan

After SAP_WAPI_START_WORKFLOW do you have COMMIT WORK?
Does the SAP_WAPI_START_WORKFLOW return some error message?
Are you sure that the event is not triggered? Check this with event monitor SWEL (turn monitor on in SWELS).
Also, ready Jocelyn Dart's blogs about ABAP OO. She have clear instructions about how to trigger ABAP OO events.
Regards,
Karri

Similar Messages

  • Work flow triggering

    Hi experts,
       I need to trigger an workflow email from my abap program and configure the workflow to get the mail in outlook express.
    Can anyone pls help on 1. How to configure the workflow to send an email to outlook express
                                       2. how to trigger an work flow in abap program
    I am novice to wokflow pls brief me with details or example.
    Thanks in advance
    sai

    Hello Sai,
    You can direct the mail from your SAP mailbox to your outlook or you can do it programatically too.
    In SBWP tcode, Goto Settings menu -> Goto Office settings -> Goto Automatin forwarding tab and enter your email id there.
    The mails in your SAP inbox will be forwarded to your outlook
    If you want to do it programatically,
    It first depends how you are triggering your workflow.
    If it is by an event, you can use the SWE_CERATE_EVENT to first trigger the event and then the workflow is started. Attach a business object to a task in the workflow which call the function module SO_DOCUMENT_SEND_API1 that will send the mail to your outlook inbox
    Here lies the sample code as of how to use this FM, SO_DOCUMENT_SEND_API1.
    report yh_email.
    data: email type somlreci1-receiver value '[email protected]'.
    data: sender type SOEXTRECI1-RECEIVER value 'SAPDEV02'.
    data: imessage type standard table of solisti1 with header line,
    iattach type standard table of solisti1 with header line,
    ipacking_list like sopcklsti1 occurs 0 with header line,
    ireceivers like somlreci1 occurs 0 with header line,
    iattachment like solisti1 occurs 0 with header line.
    start-of-selection.
    clear imessage. refresh imessage.
    imessage = 'This is a mail from SAP ECC6'.
    append imessage.
    imessage = 'Thanks and Regards'.
    append imessage.
    imessage = 'Indu'.
    append imessage.
    perform send_email tables imessage
    iattach
    using email
    'Mail from Indu'.
    * Form SEND_EMAIL
    form send_email tables pit_message
    pit_attach
    using email
    p_mtitle.
    data: xdocdata like sodocchgi1,
    xcnt type i.
    * Fill the document data.
    xdocdata-doc_size = 1.
    * Populate the subject/generic message attributes
    xdocdata-obj_langu = sy-langu .
    xdocdata-obj_name = 'SAPRPT' .
    xdocdata-obj_descr = p_mtitle .
    clear ipacking_list. refresh ipacking_list.
    ipacking_list-transf_bin = space.
    ipacking_list-head_start = 1.
    ipacking_list-head_num = 0.
    ipacking_list-body_start = 1.
    describe table imessage lines ipacking_list-body_num.
    ipacking_list-doc_type = 'RAW'.
    append ipacking_list.
    clear ireceivers.
    refresh ireceivers.
    ireceivers-receiver = email.
    ireceivers-rec_type = 'U'.
    append ireceivers.
    call function 'SO_DOCUMENT_SEND_API1'
    exporting
    document_data = xdocdata
    put_in_outbox = 'X'
    SENDER_ADDRESS = SENDER
    commit_work = 'X'
    tables
    packing_list = ipacking_list
    contents_bin = iattachment
    contents_txt = imessage
    receivers = ireceivers
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    others = 8.
    endform.
    Hope it helps you.
    Regards
    Indu.

  • Triggering event through Change Management for Sales order

    I am working on three different scenarios of workflow which is triggered on change of sales order.  I am trying to put conditions in SWEC for the workflows to start but not sure how to go about it.  I created change doc object VERKBELEG and assigned bus2032 and changed as my event.  I inserted a value in condition editor like vbap_(fieldname)_new etc.  Nothing seem to be working.
    I would like to know once we assign event here in SWEC, should we also assign and activate it in the triggering tab of workflow or just create an entry in the linkage table.
    Please guide me as to how I need to work on the sales order change.  I am basically want to trigger a sales order only when a field value is updated or inserted which pertains to my requirement.
    Thank you very much.

    Karthik,
    My problem is still not resolved.  I am trying to put something like this.  Let me know if you have were able to do this in any other way.
    DATA : i_cdhdr LIKE cdhdr OCCURS 0 WITH HEADER LINE.
    DATA : lt_editpos LIKE cdshw OCCURS 0 WITH HEADER LINE.
    DATA : it_vbap LIKE vbap OCCURS 0 WITH HEADER LINE.
    DATA : flag(1) TYPE c.
    DATA : text LIKE message-msgtx.
    DATA: BEGIN OF ITAB OCCURS 10.
            INCLUDE STRUCTURE cdshw.
    DATA:   UDATE LIKE CDHDR-UDATE,
            USERNAME LIKE CDHDR-USERNAME,
            CHANGENR LIKE CDHDR-CHANGENR,
            VBELN(10),
            POSNR(6),
            ETENR(4),
            INDTEXT(200),
      END OF ITAB.
    data : lv_vbeln like vbap-vbeln.
    data : lv_posnr like vbap-posnr.
    SELECT vbeln posnr FROM vbap INTO TABLE it_vbap WHERE
                                           vbeln = '               ' AND
                                           posnr = .
    i_cdhdr-objectclas = 'VERKBELEG'.
    i_cdhdr-objectid   =  '      '.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              objectclass       = 'VERKBELEG'
              objectid          = '            '
              username          = space
              time_of_change    = i_cdhdr-utime
         TABLES
              i_cdhdr           = i_cdhdr
         EXCEPTIONS
              no_position_found = 1
              OTHERS            = 2.
    IF sy-subrc EQ 0 AND NOT i_cdhdr[] IS INITIAL.
      sort i_cdhdr by CHANGENR UDATE UTIME descending.
      LOOP AT i_cdhdr.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
             EXPORTING
                  changenumber      = i_cdhdr-changenr
             TABLES
                  editpos           = lt_editpos
             EXCEPTIONS
                  no_position_found = 1
                  OTHERS            = 2.
      ENDLOOP.
    **change in fname is eq lprio delete the records.
    loop at lt_editpos.  
        if lt_editpos-fname = 'LPRIO' and
           lt_editpos-CHNGIND = 'U' and
           lt_editpos-F_NEW = '03' and
           lt_editpos-tabname = 'VBAP'.
          flag = 'X'.
            concatenate lt_editpos-fname lt_editpos-f_new into text.
          exit.
        elseif lt_editpos-fname = 'KEY' and
               lt_editpos-CHNGIND = 'I' and
               lt_editpos-tabname = 'VBAP'.
          lv_vbeln = lt_editpos-tabkey+3(10).
          lv_posnr = lt_editpos-tabkey+13(6).
          select single * from vbap into it_vbap where
                                           vbeln eq lv_vbeln and
                                           posnr eq lv_posnr.
          if sy-subrc = 0 and it_vbap-lprio = '03'.
            flag = 'X'.
             concatenate lv_vbeln lv_posnr it_vbap-lprio into text.
            exit.
          endif.
        endif.
      endloop.
    endif.

  • Work flow to be triggered from portal but not from PA30 Transaction

    Hi,
    We have copied a standard workflow to enhance it and attached standart event to that workflow in SWETYPV t-code.
    Now the work flow is triggered from both PA30 and portal whenever changes are made.But we want it to be triggered from portal alone.
    Can anyone suggest how can i restrict work flow start event to be triggered from portal alone.
    Thanks in advance.
    Martina.

    My suggestion is instead of starting the workflow by using EVENT it is better to start by using SAP_WAPI_START_WORKFLOW
    As you are saying that you need to trigger the workflow only from the protal. Now in the portal you might be using a WebdDynpro Application or a BSP application, so in that application after filling all the details you might be having a button like Save or Submit or Create so under this final button you call the FM SAP_WAPI_START_WORKFLOW in the action handler.
    And more over even by using this FM you can even pass the values from WD Application to workflow by using the tables Parameter Simple_container.
    And one more thing is if you start a workflow by using a event then when ever the event is occured then the workflow gets triggered.
    or make use of Start Condition in the basic data of the workflow.

  • Event occured, Work flow didnt trigger

    Hi,
         I have created a new work with triggering event (of a standard BOR object). the event is occuring but the work flow is not getting started. the work flow is active and in implemented status. can anyone tell if something else has to be doen when a new work flow is created. Thanks!
    Regards,
    Bharath Mohan B

    Hi Bharath,
    First u chk in PFTC transaction to see triggering event is enabled or not .
    then Go to SWETYPV t-code and enable event type linkage.
    or check in SWELS t-code to on the event trace.
    hope it gives some idea to sove ur prob, plz so please award some points
    Regards,
    Kali Pramod

  • Event linkage deactivated after executing the work flow

    Hi Experts,
    We are facing a problem in the production with Event linkage activation.After Event linkage was activated (ENABLED = u2018Xu2019 in the table SWFDEVENA) and if we execute the workflow then again this linkage is deactivated(Enabled value is cleared).if we activate the linkage and execute the work flow again after work flow exectution event linkage will be deactivated.Could you please  give the solution if any one face this issue.
    Thanks and Regards,
    venkat

    Hi Rickk baker,
    Thanks for your answer.Now my issue was resoved .This is because of some mandatory work flow container parameter value is missed in the programme.This was traced throgh event trace(swel and swels)
    Thanks and Regards,
    Venkat Marisetti

  • Work Flow RFC

    Hi,
    i have made some changes to the SAP developed webdynpro application as per the requirement,
    when the user changes the personal information in the ESS personal information screen the Standard RFC is getting called but, if the user made any chanegs to the First name or last name or martial status the Z rfc is getting called and the work flow triggers and the notification will go to the corresponding manager for approval once the manager approves the request then the changes will appear in the portal and also saved in the backend system.
    bu while making changes the first name and last name or martial status and clicking the save button the following error is coming,
      Personal Data   
      Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
      An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE   
      An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
         at com.sap.xss.hr.per.ca.personal.fc.FcPerPersonalCA.callWorkFlowFM(FcPerPersonalCA.java:488)
         at com.sap.xss.hr.per.ca.personal.fc.wdp.InternalFcPerPersonalCA.callWorkFlowFM(InternalFcPerPersonalCA.java:681)
         at com.sap.xss.hr.per.ca.personal.fc.FcPerPersonalCAInterface.callWorkFlowFM(FcPerPersonalCAInterface.java:206)
         at com.sap.xss.hr.per.ca.personal.fc.wdp.InternalFcPerPersonalCAInterface.callWorkFlowFM(InternalFcPerPersonalCAInterface.java:242)
         at com.sap.xss.hr.per.ca.personal.fc.wdp.InternalFcPerPersonalCAInterface$External.callWorkFlowFM(InternalFcPerPersonalCAInterface.java:322)
         at com.sap.xss.hr.per.ca.personal.review.VcPerPersonalCAReview.onBeforeOutput(VcPerPersonalCAReview.java:235)
         at com.sap.xss.hr.per.ca.personal.review.wdp.InternalVcPerPersonalCAReview.onBeforeOutput(InternalVcPerPersonalCAReview.java:234)
         at com.sap.xss.hr.per.ca.personal.review.VcPerPersonalCAReviewInterface.onBeforeOutput(VcPerPersonalCAReviewInterface.java:135)
         at com.sap.xss.hr.per.ca.personal.review.wdp.InternalVcPerPersonalCAReviewInterface.onBeforeOutput(InternalVcPerPersonalCAReviewInterface.java:132)
         at com.sap.xss.hr.per.ca.personal.review.wdp.InternalVcPerPersonalCAReviewInterface$External.onBeforeOutput(InternalVcPerPersonalCAReviewInterface.java:208)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$600(FPMComponent.java:78)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.raiseSaveEvent(FPMComponent.java:953)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.raiseSaveEvent(FPMComponent.java:1116)
         at com.sap.xss.per.vc.reviewnavi.VcPersInfoReviewNavi.next(VcPersInfoReviewNavi.java:227)
         at com.sap.xss.per.vc.reviewnavi.wdp.InternalVcPersInfoReviewNavi.next(InternalVcPersInfoReviewNavi.java:175)
         at com.sap.xss.per.vc.reviewnavi.ReviewNaviView.onActionNext(ReviewNaviView.java:153)
         at com.sap.xss.per.vc.reviewnavi.wdp.InternalReviewNaviView.wdInvokeEventHandler(InternalReviewNaviView.java:173)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
         at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
         at com.sap.xss.hr.per.ca.personal.zhw201.model.ZHW201_PERSAPPR.zhw201_Persappr(ZHW201_PERSAPPR.java:179)
         at com.sap.xss.hr.per.ca.personal.zhw201.model.Zhw201_Persappr_Input.doExecute(Zhw201_Persappr_Input.java:137)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
         ... 65 more
    and my problem is that my application is working in the developement portal, but in testing it is giving error. please give me some suggestion s on this,
    i have checked in the backend the RFC is available and executed successfully.
    Cheers,
    Apparao

    Hi
        did you check the RFC in the backend with the same inputs ,  is it working fine .
        RFC_ERROR_SYSTEM_FAILURE An exception occurred that was not caught ,
        this would occur if there is problem from your RFC side , 
        put the code inthe try catch and try to test the application(which you are passing to the RFC) ,
         instead of  application throwing  the runtime exception , you would figure out the exact exception .
         even  check the RFC in the backend with the same values you are passing , and execute the RFC .
         or  even you can put a external debugging where the RFC get called and check whether the
         values are  passed to the RFC , or other thing you can do it test the application inthe webdynpro
         with hard cording the values .

  • Set up Work Flow Email for Bill of Lading Process

    Hello, I am trying to set up work flow for a process that we have within our company. Can anyone direct me in what steps I need to take in order to have the system trigger a automatic email within SAP to a user to approve a delivery transport each time one is saved?
    I would like to have work flow triggered at the save of each transportation document. Is this possible?

    Hi,
    To get the Basics of WF check:-
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/using%252bfunctional%252bmethods%252bin%252bworkflows%252band%252btasks
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action%3fpageid=29032626
    Check SAP Technical -> Tutorials -> Business WF
    There you can get a lot of starting material for WF's.
    To trigger your WF u need to find the BO - SWO3 - U can find it here..!!
    would like to have work flow triggered at the save of each transportation document
    WF Trigger Event should be SAVE in the BO ..!!
    To ask for Approval, u should have a User-Decision for the Approver.
    Try these and let me know if you still face any issues..!!
    Regards,
    Kanika

  • Local Work flow

    Hi experts,
    What is Local work flow.  When it will triggred like when ever the main work flow triggered or it trigger when the local event triggered?
    Thanks,
    Points will be rewarded.

    hi
    local workflow will get trigger when the local event get raised .
    for futher ref
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a7961fe42034

  • Work flow email to SR

    Hi,
    I need to associate the email sent when a work flow triggered as an attachment to Service request.
    i.e add all mails sent as an attachment to created SR
    Edited by: user11170982 on Jun 4, 2009 4:54 AM

    You cannot associated the WF email as an attachment. But you should be able to create a Task with Type as Email and associate with the SR. The same WF rule can be used used.

  • Error Un wanted work flow event triggering

    Hi Folks,
       I am facing a high priority issue in work flow in PRD, User has created certain PR's for which system has raised required events to tirgger the workflow items and the whole approval job is completely done. Accidentally, the same work flow events are re-triggerd to raise the work item the very next day, when it is observerd for the trace no clues where thrown to explain the situation to client.
    Can any one suggest me with this type of rescheduling / retriggering of events, why they have retriggerd ?. The situation created problem by getting the work item's triggered un-wantingly.
    Please Help me ASAP I am left with no clue from Last 2 days.
    Thanks and Regards,
    Krishna Mukthineni

    Hi Krishna,
    may i know which BO and which event you are using? are you using the event RELEASESTEPCREATED? in the log did you check the workflow is triggered by which user?
    In case to avoid this, you can use start conditions in your workflow. This will avoid unwanted triggering of the workflow.
    Regards,
    Raj

  • Event linakge for PO work flow not transporting to Qualty system

    This is Sudhakar ,
    I have a problem in Event linkage for PO Release strategy work flow.
    I have created a work flow for PO release strategy and done the event linkage through SWETYPV transaction code.
    I have added a new entry in SWETYPV transaction code and tick the 'Linkage Activated' check box. I have done this in development server. When I saved it prompted for a request and I have saved this Under the request( Customize request).
    When I create the purchase Order  for the first time the work flow is getting triggered. When I run the second time its not triggering.
    If I observe the reason is 'Linkage Activated' check box  is getting unchecked  when I create the PO. If I check it again it is asking for a request again.But after next run the linkage is again deactivated.
    Can you please help why this is happening.
    I have created another request in Customize client and transported first the development client, next the customise client request. When I observe in quality system an entry is created in SWETYPV transaction code for my work flow but 'Linkage Activated' check box is not checked.
    How to transport 'Linkage Activated' check box  to quality.
    This is an urgent one. Any body please help me
    Thanks
    Sudhakar

    Hi Imthiaz,
    What you said is correct. Its throwing one error in event trace
    Feedback after error - The message is.
    The mandatory input parameters of the workflow must be set.
    I think I am missing some input parameters.
    One more queation, I had transported this already to Quality
    But the linkage activation flag is not moved.  What could be the reason.
    Thanks
    Sudhakar

  • NO Event created for Customer Billing Document (VF01) in Work Flow

    Hi expert ,
    I would like to trigger a work flow from the customer invoice created event.
    Bus Object should be "VBRK" or "BUS2037" ( Customer billing document )
    But ,I cannot get any event after the billing transaction in VF01.
    I use the "SWEL" transaction to monitor all events triggered, but I don't see any event related with billing ( I only see events for sales order creation ).
    Also in "SWO1" BUS2037 has only one event  : "ItCustBillingDoc.assigned"; but It doesn't make any sense to me .Why isn't there a created event for invoice ?
    Has any of you been thru that problem ?
    Thanks for advising .
    Sincerely
    Yvon.

    Hi thanks for your answer.
    SWELS is activated.
    PB still remains :
    In  SWEL i see no event triggered after the creation of a billing invoice .
    I can only see an event related to BUS2032 which is the sales order creation .
    But nothing related to the billing document although the doument is created in SD ( I have the record in VBRK ).
    Any idea Why ?
    Thanks again

  • Error in work flow wait for change event

    Error in work flow wait for change event of business object bus1014, Actually this business object is triggering for two transaction one is me21n and another is c201 . am trying to create fork with two branches one is create and another if change occurs wait will trigger, bt when i trigger work flow controll is not after fork, it will stop in fork only. and am not getting my workflow container variable getting instantiate, am getting error in wait. please any one get out of me in this

    Hi Sangeetha
    What is LV_MATERIAL? is it a BO container element? or a class element or a just a simple variable?
    Error message is clear, you are trying to evaluate LV_MATERIAL but it does not contain a value.
    This is a custom workflow as it begins with WS9xxxxxxx... what is LV_MATERIAL used for? what are we expecting it to hold? maybe, from event to workflow binding we can pass the value to it.
    Please share the following:
    1) Definition screen shot of LV_MATERIAL
    2) Screen shot of The step where it is first used - from SWDD
    3) Screenshot of Event to Workflow Binding
    4) name of your base Business Object (seen in the triggering events tab of the WF template in PFTC)
    5) What is the corresponding variable for that BO in your workflow container
    6) Screen shot of WF definition from SWDD - please identify the step going in error in that screen shot
    Regards,
    Modak

  • CreateListItem Action at work flow not trigger Event reciever

     
      Hello ,
    I have two Lists (List1 , List2).
    I have attached Workflow by SharePoint designer to List 1 .
    I have attached event receiver (Item was added) to list 2 .
    In the workflow . I use "CreateListItem"  to create new item in list 2.
    I have test the work flow . The item is added in List 2 , but the Event receiver not triggered .
    if I Create new item in List2 from browser , the event receiver is triggered.
         so  why  "CreateListItem" action not triggered event receiver ?
        Thanks
    ASk

    Hi himo,
    I made a test in my environment and when I start workflow in List1, then the event receiver in List2 is Triggered.
    Here are my test steps:
    1. Create a workflow for List1 in SharePoint Designer using CreateListItem action set the Title field to "Test" which is in List2.
    2. Create an event receiver for List2 with the below code
    public override void ItemAdded(SPItemEventProperties properties)
    string siteUrl = "http://sp2013sps/sites/testdevsite";
    ClientContext clientContext = new ClientContext(siteUrl);
    List oList = clientContext.Web.Lists.GetByTitle("List2");
    ListItem oListItem = oList.GetItemById(1);
    oListItem["Title"] = "My Updated Title.";
    oListItem.Update();
    clientContext.ExecuteQuery();
    base.ItemAdded(properties);
    3. Deploy the event receiver.
    4. When I execute the workflow in List1, then the title field in List2 will be updated to "My Updated Title". The event receiver has been triggered.
    I suggest you recreate a new List and follow the steps to above to check whether it works.
    Best Regards
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for