WORKFLOW IN WEBDYNPRO

Hello Experts ,
          how to call / trigger workflow in web dynpro application ? if possible provide some example ?
Thanks  ,
Rushikesh

Hi,
Starting a workflow from WebDynpro is no different than starting it from anywhere else.
Best practice is to raise a triggering event for your workflow via the function module SAP_WAPI_CREATE_EVENT (or SAP_WAPI_CREATE_EVENT_EXTENDED for OO events)
good luck
Paul

Similar Messages

  • 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 integrate SAP HR Workflows with Webdynpro ?

    Hello All,
    Could you please drop some hints for the below points please ?
    How do we trigger SAP workflow from Webdynpro DC? Usually if its a RFC we import RFC through Model and trigger the RFC. Can that be done only through Adobe forms? If yes,how do we trigger work flow through Adobe Forms?
    Many Thanks,
    Dhanya

    Hi, Dhanya
      Of course via RFC! Usually these workflow related RFMs are called WAPI
    (Workflow API).
      Please refer to this thread.
      Workflow and Trigger Event
      And Adobe forms is not relevant to SAP workflow at all. Usually, Adobe forms
    + workflow scenarios are achieved via the above workflow APIs.
      Best Regards.
      Sejoon

  • Reg: MDM workflow in webdynpro

    Hi,
    I am using MDM java API (Version: 5.5 SP 06 Patch 2) for webdynpro. I am creating a record in MDM using MDM java API. Once the record gets created in MDM i need to call the MDM workflow. Is there any java API available to call the MDM workflow into webdynpro. If that is not possible, what is the alternative to call the MDM workflow into webdynpro.
    Kindly suggest.
    Thanks,
    Prasanthi.

    Hi
    Check the following doc for workflow
    1.[Workflow for SAP NetWeaver MDM|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60559952-ff62-2910-49a5-b4fb8e94f167]
    2. [Extending MDM 5.5 Business Package functionality with Web|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/12195312-0e01-0010-a392-debbd32e39d4]
    Best Regards
    Satish Kumar

  • Initiate Workflow within WebDynpro ABAP

    Hi,
    Can anyone list the steps to be followed in creating a new workflow and initiating the workflow from WebDynpro for ABAP ?
    Regards
    Ravikumar

    Check this elearning for creating a workflow,
    [Tutorial 1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0bbdb3c-d640-2a10-d3b2-e4d9b90536a6]
    [Tutorial 2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30488d68-8451-2a10-d993-bb36e56a1dc8]
    For calling a workflow from webdynpro, chek this thread
    [how to call workflow from webdynpro ?]
    For questions purely related to workflow, please post your queries in the Workflow forum
    Hope it helps!
    Regards,
    Radhika.
    Edited by: Radhika Vadher on May 23, 2009 11:40 AM

  • Binding Structure/Internal Table to Workflow from Webdynpro

    Hi Gurus,
    I have to trigger workflow from WEBDYNPRO application. For now I have two ways they are:
    1. Triggering WFLow using SAP_WAPI_START_WORKFLOW (Successfull):
    How could I bind Structure/Internal Table (DDIC referred structure) to workflow directly. Presently I am mapping indvidual fields which makes my code complex using FM SAP_WAPI_START_WORKFLOW.
    2. Triggering WFLow using SAP_WAPI_CREATE_EVENT (Bindind issues):
    Also When I try to submit using BOR event with SAP_WAPI_CREATE_EVENT workflow triggers successfully But I cannot able to bind the values. So are there any specific configuration need to be made.( like making task as General while triggering workflow using SAP_WAPI_START_WORKFLOW).
    <<text removed>>
    Edited by: Matt on Aug 5, 2011 7:49 PM

    Hi
    Please make use of the below code
    INCLUDE cntn01_swc.
    DATA lt_kna1    TYPE TABLE OF kna1.
    DATA lt_cont    TYPE TABLE OF swcont.
    DATA lv_wiid    TYPE          sww_wiid.
    swc0_create_container  lt_cont.
    SELECT * FROM kna1 INTO TABLE  lt_kna1 UP TO 10 ROWS.
    swc0_set_table lt_cont 'CUST' lt_kna1.
    CALL FUNCTION 'SWW_WI_START'
      EXPORTING
        creator                      = sy-uname
        task                         = 'WSXXXXXXXX'
        do_commit                    = 'X'
      IMPORTING
        wi_id                        = lv_wiid
      TABLES
        wi_container                 = lt_cont
      EXCEPTIONS
        id_not_created               = 1
        read_failed                  = 2
        immediate_start_not_possible = 3
        execution_failed             = 4
        invalid_status               = 5
        OTHERS                       = 6.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    The other way to do is you  can also make use of OO ABAP classes to trigger the workflow. If you want to create a rfc function module then create a wrapper function module .
    SAP_WAPI_START_WORKFLOW cannot transfer structures or tables which are more thatn 255 characters. So the work around is  either make use of  OO  container or SWCONT container.
    The above code snippet should be included in the assistance class of the webdynpro application and you need to include the define the include cntn01_swc in the class local types  under macros.
    and then you create a method ....... and include the above code in that method.   excluding the include statement.
    Regards
    Pavan

  • Trigger an workflow from webdynpro abap.

    hai
    gurus!
        iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
    regards
    rose

    Hi Rose
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
    Use SAP_WAPI_START_WORKFLOW RFC
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Trigger MDM workflow from Webdynpro Java

    Hi All,
    After updating records in MDM, I want to trigger an MDM workflow from Webdynpro Java and pass those updated records to workflow. Any inputs on how to accomplish this. Workflow has already been developed using MSVISIO by the MDM team.
    Thanks,
    Tom

    By following steps, it is possible to integrate  workflow (or any workflow designed in MDM) within portal:
    1. UWL (Universal Worklist): The UWL gives users unified and centralized way to access their work and the relevant
    information in the portal. It collects tasks and notifications from multiple provider systems. One can expose MDM
    workflow functionality on Portal using UWL.
    2. JAVA APIu2019s: MDM Java API consists of set of classes related to MDM workflows through which one can create an
    application that provide the MDM workflow functionality and expose the application as an iView in the portal.

  • Kicking off workflow from webdynpro using events?

    I have abap experience but no workflow. Any advice will be appreciated.
    I have to kick off a workflow from webdynpro. I assume that I have to set up a business object (eg. ZOBJECT), create an event therein (eg. ZEVENT).
    Then when webdynpro runs I use a rfc function module to trigger this event.
    The questions I have are:
    1. How do I set up the workflow to be triggered by this event?
    2. Do I set up an event in Business object builder or in SM62?
    3. How do I trigger an event in a function module. I have found SWE_EVENT_CREATE but don't want to create an event just want to trigger the event and in turn set off the workflow?
    Thank you,
    Warren.

    try this below parameters are passed or not
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
               EXPORTING
                 object_type    = 'BUS2105'
                 object_key     = lv_objkey
                 event          = 'CREATED'
                 commit_work    = 'X'
                 event_language = sy-langu
                 language       = sy-langu
                 user           = sy-uname.

  • Trigger MDM Workflow in Webdynpro

    Hello,
    I want to execute a MDM Workflow from Webdynpro using Java API's. I have the WorkflowId,session Id and the RecordId in the Webdynpro. Can somebody please send the code for the same.?
    Any help would be highly appreciated.
    Thanks.

    Hi,
      Check the pdf at the below link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600333e0-9bf7-2c10-1f99-bf5dcf661949?quicklink=index&overridelayout=true
    Try using this code for calling MDM workflow:
    RetrieveWorkflowTasksCommand task_command = new RetrieveWorkflowTasksCommand(connections);
    task_command.setSession(sessionId);
    task_command.setTableId(new TableId(1));
    try {
    task_command.execute();
    } catch (Exception e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    //Retrieving the tasks after execting the command
    WorkflowTask [] task = task_command.getWorkflowTasks();
    for(int i = 0 ; i < task.length ; i++)
    WorkflowJob job = task.getJob();
    job_id= job.getId();
    System.out.println(job_id.getIdValue());//This is will give the Job ID of all the workflows in MDM.
    Thanks
    Pawan

  • How to trigger a workflow in webdynpro programs

    Hi Experts,
    I am new to SRM Workflow, and I need to trigger a workflow in my webdynpro programs.
    But I don't know how to achieve it.
    I am using SAP SRM 7.0, so I want to use Process Controlled workflow.
    Any suggestions would be greatly appreciated.
    Thanks and Regards
    Wei

    Hi, thank you for the attention, and my requirement is as below.
    1. Creating a web dynpro program
    2. User can execute the program and input data on it. Such as Expense application, Leave application...
    3. When the user click the "Apply" button on the form, the application should be sent to the boss for approval.
    *** I want to trigger a workflow when the user click the "apply" button.***
    I have achieved the similar functions in SAP ERP systems, by generating Events in my custom programs.
    But I don't konw how to do it in SRM 7.0.
    Or it is impossible to achieve it, under Process Controlled workflow architecture.
    Thanks and Regards
    Wei

  • Integrating ABAP workflow in WebDynpro java

    Hi Friends,
    I have a requirement from the client where I need to add some additional services (Functionalities) to the existing ESS application.
    1. The ESS package already contains many standard DC's such as for "Address","Who is Who" etc.Now I am adding a new functionality "Allowances" to that.
    2. I am not using FPM based development architecture to acheive the same.Instead the ABAP team has created a workflow ,so that the approvers in this "Allowance" service can get their approval in their UWL.
    3. Please help me in finding a sample code or let me know how do I do the same using webdynpro java and integrate it as a service in the standard ESS package.
    If anyone has got some documents pls share the same : meet.raj34ATgmail.com
    Regards,
    Ranjan

    Hello Giang,
    You will need at least a placeholder object. Have a look at ESS Leave request - WS12300111 - it functions exactly as per your scenario.
    Cheers,
    Mike

  • Integration of SAP Business Workflow and Webdynpro

    Hello colleague,
    Could you pls. provide any pointers in configuring the following scenario:
    There is a SAP workflow configured in R/3. When one of the steps of the workflow is executed I have to trigger a Web Dynpro (for ABAP) screen.
    Say its an approval workflow and when the manager clicks on the workitem in the inbox a webdynpro screen will pop up indicating the requisite information. The manager can approve or reject the based on information on the screen. The user action will be taken and the workflow will proceed based on that.
    Any pointers in this will be of great help.
    Regards,
    Gajendra.

    I would like to know as well about this, did you get an answer?
    Thanks for any pointers.

  • Integrating Workflow with WebDynpro

    Hi Guys,
                  I am making some altrations to the Workflow integrated with WebDynpro ABAP.
    Once we maintain the Task and WebDynpro application in SWFVISU and Register in UWL,
    Is that the context has been genarated automatically in component controller with structures in task container and an Interface with the name of the application.
    If its not, how to interface Task container data structure with component controller and how to create interface to access task container data.
    Thanks

    HI Geek,
    We are trying to retrieve the workitem id from the web dynpro abap application.
    We have the similar issue and we have done the all things but some where, some things is missing.
    1. When we debug the application, from within the R/3, it directly goes to the init method of the main view.
    We are trying to debug the window - handle default method code, but the control is not able to reach that part. Plz suggest.
    2. Also, can u plz send the steps, to be in place, to retrieving the workitem id from the workflow in the web dynpro application.
    Thanks and Regards,
    Anil.

  • Workflow in Webdynpro java

    Hi All,
    I want to initiate workflow for a sample webdynpro application. Could you please share any document to start?
    Regards
    Suresh

    Hi Pavan,
    I have done one sample application using workflow. I am able to create the task in UWL from my webdynpro java aplciation, it is a simple form to create a task in UWL.
    I am facing an issue when press Approve or reject in UWL it is giving me an exception "Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message". 
    I have configured AdHocWorkflowConnector still it is giving me the same error.
    Could you please provide me the solution to resolve this?
    Regards
    Suresh

Maybe you are looking for

  • Can I work from home?

    Hi I have a Mac at home and a fast internet connection. We have a LAN at work where my (work) Mac and a file server plus a couple of digital printer reside. Where do I start to access the LAN from home? Are there any tutorials/advice resources on the

  • General Ledger GL Account Text in FBL3N

    Dear Friends,                    Is it possible to get the General Ledger Account Text in FBL3N. If yes, please suggest the noters,if any or the customization steps. Thanks in Advance, Prathamesh.

  • XI_J2EE_ADAPTER_XI_HANDLER

    Hello experts, We are facing a critical problem . We are getting the following error in IFR. Message Data Attribute Value Engine Adapter Engine Status System Error Repeatable Yes Cancelable Yes Start 17.01.2008 17:11:50 End 17.01.2008 22:11:29 Sender

  • How to get STP to play through my miglia harmony audio?

    Hi, Despite selecting both input and output as the harmony in STP preferences it wil only record through, and not output to, the miglia. The Miglia is a firewire audio in/out which works fine in and out with Live 5 and out with Reason 3. It's driving

  • Error during activation of text elements

    Hello All, I have a problem activating the text elements of a program. The text elements can be edited but can not be activated. It displays an error during activation prompt.I tried deleteing it and recreating but still does not work. Thanks in adva