How to Trigger a Workflow from ABAP Webdynpro

Hi All Gurus,
I have the following urgent requirement, my client is implementing HR and there is a requirement, where is a ABAP Webdynpro component in which we have integrated a Adobe Interactive Form. When the user calls this from through Portal and fills out the relevant data and submits it, a Workflow in the backend ECC system should lauch,
I am not familiar with, this concept although I have worked in Workflow this is the first time I am interfacind with ABAP Webdynpro and Adobe Interactive From.
Can you please let me know in steps what needs to be done to make the workflow trigger for my scenario and also the specific settings to be done in the bacckend.
Regards,
Pratima Jain

Hi,
If you are using HCM Processes and Forms, the Workflow and form are not directly related, thats true.
But the method in the task calls the corresponding webdynpro application which responds to the action triggered by the user in turn to trigger the workflow and update the data in the HR Master Data.
There are 3 layers  1. UI (webdynpro which launches Adobe Interactive form based on ISR Framework)
2. Workflow
3. Backend framework (used for retrieving F4 helps, default values, save data in the infotypes).
for more documentation, please refer it on help.sap.com.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/82/b6b94278560c31e10000000a1550b0/content.htm
hope this helps.
Best Regards,
Saujanya.

Similar Messages

  • Trigger a workflow from ABAP Webdynpro

    My Scenario:
    Step 1: When a user hits the SAVE button on the webdynpro form, check if that data is consistent only and trigger a message(I have a BAPI to handle this check).
    Step 2: If the data is consistent, then trigger a workflow to send an alert to an agent along with the data user entered on the form.
    Step 3: AGENT shall review the data(Same form from step 1 should appear here) and will have the option to SUBMIT / POST or REJECT. If SUBMITTED, data will be posted to R/3(I have a 2nd BAPI to handle this). If REJECTED, send an alert back to the USER who entered data in step 1.
    I checked lots of threads from the forum, none gave me a complete idea. Can any one give me a good documentation to trigger workflow from webdynpro to handle my requirement.
    I am new to webdynpro.
    I checked this blogs & articles also...
    /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf
    Thanks a lot in advance.
    Best Regards,
    Kiran

    Hello Kiran,
    I slightly misunderstood you requirement earlier. But if I am not wrong this time, here is what you need to do:
    1) The Web dynpro form that you are creating is only for data entry purpose. But the agent who is going to review the data will need an access to this form. So this means that you need to save the content of this form to the database and provide a URL in the workflow workitem which the agent can use to open the web dynpro application with the form data on it.
    2) To access the correct form, you need to save the form data in a Z-table with a GUID attached to it. Generate this GUID using GUID_CREATE function module. In the window controller of the Web dynpro component, there will be a handleDefault method where you can read the parameter'GUID' from the incoming request and use it to read the form data from the database to display the form.
    3) You can use Object Oriented programming approach for creating Workflow. Check the following article to learn how to do that:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0409e6c-d213-2d10-3cb6-c12d417626c1?quicklink=index&overridelayout=true]
    4) Create a Z-class and use this class as object type in your workflow (instead of BOR object).
    5) In the constructor of this class, pass a parameter GUID, which would be passed when you create an object of this class in the Web Dynpro forms "OnActionSave" method.
    6) Create a method in this class which will do the task of calling the BAPI to save the Acct Document. This method will be used in a Background task in a workflow step (after the agent approves the workitem).
    7) Create a method in the class which generates the URL to the webdynpro application with the GUID passed as parameter.
    (for eg: http://urltoserver/appname?GUID='guidoftheform').
    8) In your save method of WD application, call the method to raise event that triggers the workflow (using OO)
    lv_guid    = '04AE4546EED7101DE10000000A424026'. "use GUID_CREATE
           lv_objtype = 'ZWFCLASS'. " create a Z-class of your own
       TRY.
          CALL METHOD cl_swf_evt_event=>raise
            EXPORTING
              im_objcateg = 'CL'
              im_objtype  = lv_objtype
              im_event    = 'FORM_APPROVE' " this event needs to be defined in ZWFCLASS
              im_objkey   = lv_guid.
        CATCH: cx_swf_evt_exception.
      ENDTRY.
    Please read through the workflow using Object Oriented document in the URL that I have mentioned above before you read through these instructions.
    There would be a way to do this using BOR objects, but this is the way that I have tried and tested to use trigger workflows from Web dynpro applications.
    Best Regards,
    Gaurav
    Edited by: Gaurav Salkar on Apr 6, 2010 6:13 PM

  • How to trigger MDM Workflow  from ABAP Program.

    HI
    I have requriment  to trigger MDM Workflow(Design in MDM) from My Module pool program. Suggest how to do it?
    Thanks in Advance.
    Regards,
    Shyam Babu Sah.

    Hi,
    This question is for forum SAP Netweaver --> Workflow. There are functions and programmes that SAP delivers for this.
    [Example here|Re: How can I trigger workflow from my report]

  • HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?

    HELLO THERE ,
    CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?

    Hello Neon,
    If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
    CALL FUNCTION 'SWU_START_WORKFLOW'
      EXPORTING
        task                  =
    *   LANGUAGE              = SY-LANGU
        user                  =
    *   SENDER_ID             =
    * IMPORTING
    *   RETURN_CODE           =
    *   WORKITEM_ID           =
      tables
    *   CONTAINER             =
    *   MESSAGE_LINES         =
        attachment_list       =
    A workflow can also be triggered by and event which is in turn triggered by a program.
    By the FM, SWE_CREATE_EVENT
    Example:
    w_key = 'Connie'.
      w_creator-otype = 'US'.
      w_creator-objid = 'SAPDEV02'.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                       = 'YH_BUDDIES'
          objkey                        = w_key
          event                         = 'event'
         creator                        = w_creator
    *     TAKE_WORKITEM_REQUESTER       = ' '
    *     START_WITH_DELAY              = ' '
    *     START_RECFB_SYNCHRON          = ' '
    *     NO_COMMIT_FOR_QUEUE           = ' '
    *     DEBUG_FLAG                    = ' '
    *     NO_LOGGING                    = ' '
    *     IDENT                         =
    *   IMPORTING
    *     EVENT_ID                      =
    *   TABLES
    *     EVENT_CONTAINER               =
       EXCEPTIONS
         objtype_not_found              = 1
         OTHERS                         = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        WRITE: / 'EVENT TRIGGERED'.
      ENDIF.
      COMMIT WORK.
    Hope it helps you.
    Regards
    Indu.

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • How to trigger GP workflow through ABAP Program.

    Hi All.
    i have one scnerio , i want to create BOM through Custom Ztransaction that will be developed in ABAP Modulepool.
    User will create BOM  from this ztransaction through  Transactional Iview in PORTAL,Once the user save transaction , i want to trigger a GP(Guided Procedure ) workflow,from ABAP Program.
    is it possible to trigger GP workflow?
    if yes how  to  do it , please suggest the way out.
    Regards,
    Shyam.

    Hi lingana,
    As u see in my requriment that, Workflow is not designed within SAP , But the Workflow will be designing
    in SAP Netweaver, its a GP Workflow. And Ztransaction(Developed by ABAP) will  be seen by user through portal  and
    he save transaction on PORTAL, In backend  ABAP program will run , and after meeting certain condition, it should create
    or(Initiate) GP workflow(process).
    So my question is , how ABAP Program will call GP workflow, How the connection will be made in between ABAP Code and GP workflow framework.
    If any doubt regarding requriment let me know,
    Regards,
    Shyam.

  • How to trigger the workflow from the excel sheet

    hello friends,
    my problem is that i should trigger the workflow from a excel sheet which contains a list of appraisers and appraisees.how to do this. can anyone  help on this.
    thanks.

    Hi Murthy,
    If you are asking if a workflow can be started on R/3 while in Excel - may be possible if you can develop some fancy macros that can make RFC calls to an ABAP function module. I won't even attempt to travel that route.
    Save the excel sheet as CSV or Tab delimited file and process it using ABAP. You can use the WAPI function module SAP_WAPI_CREATE_EVENT (Rel 4.7)to start the Workflow by raising the relevant event. In earlier releases, see FM SWE_EVENT_CREATE.
    Please do keep in mind there could be performance and response time issues for dialog users of the system if you are going to start several workflows using a report program.
    Cheers,
    Ramki.

  • How to trigger the workflow from RFC

    Hi,
    I need to trigger a workflow from a RFC.How can I call the event and start my workflow?
    How can i do this?
    please advice.
    Thanks,
    Anand

    Hello Anand,
    Goto swetypv transaction.Mention the abap class/bor object with the corresponding event.
    In the receiver type, just mention some unique name.In the receiver function module mention the async RFC.
    Mention the SENDER     TYPE     SIBFLPORB                        Local Persistent Object Reference - BOR Compatible
    EVENT     TYPE     SIBFEVENT                               Event
    RECTYPE     TYPE     SWFERECTYP                               Name of Receiver Type
    HANDLER     TYPE     SIBFLPORB                               Local Persistent Object Reference - BOR Compatible
    EXCEPTIONS_ALLOWED     TYPE     SWEFLAGS-EXC_OK     SPACE     Checkbox
    XML_SIZE     TYPE     SWF_XMLSIZ                               Size in Bytes
    EVENT_CONTAINER     TYPE     SWF_XMLCNT                               Container as XML Stream of Fixed Width
    So that the guid can be used inorder to identify the instance.
    you can use : "sap_wapi_start_workflow" fn module.
    Hope this helps.
    Best Regards,
    Saujanya

  • Trigger workflow from ABAP webdynpro and attach an Adobe interactive form

    I have a need to create an ABAP Webdynpro that will upload a completed Adobe interactive form and then route the form to multiple approvers thru workflow.  I am having trouble finding any documentation or examples of passing the Adobe form in the workflow.  Do I have to save the content of every field on the form to an internal table and then have every workitem call an ABAP webdynpro to render the form?  Any help or suggestions would be greatly appreciated.

    Hi Joyce,
    This can be done as follows :
    [pdf as an attachment|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29&overridelayout=true]
    Regards,
    Geet

  • How to Initiate the Workflow from Java webdynpro?

    Hi All,
    I am developing Customized WD application for ESS, which in turn having integration with Workflow.
    Now How to Initiate the Workflow coding part in Webdynpro Development.
    Through Adaptive RFC Model, i created model using sap_wapi_start_workflow RFC
    Can anybody provide the sample code on this!!!
    What are the stpes i have to follow to this Workflow Initiation from WD Java..
    Thanks In Advance
    Krishna

    Krishna,
    What Alejandro is mentioning that create a RFC which accesses you workflow on ABAP end. At your Java side just make the call the BAPI.
    So you need a BAPI say ZMYBAPI which accesses your ZWORKFLOW.  Now on Java side create a WD project which accesses ZMYBAPI.
    For information on how to connect to a BAPI please refer this [link|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15]
    Chintan

  • Trigger workflow from ABAP webdynpro (having an adobe form)

    Hello All,
    I have developed an Webdynpro (for ABAP) component that has an Adobe Form integrated within it. Now I have been given a requirment that the form (once filled out on the portal) needs to be routed to 2-3 persons for approval and then submitted (or processed in SAP). The approving personnel will look at their UWL on the portal and approve/dissapprove.
    I do not have much hands on experience on such a Workflow scenario as above. I have already completed the adobe form part and the webdynpro section.
    I will really appreciate it if anyone can advise as to how I need to proceed here.
    Thanks in advance, Liz

    Hi Liz,
    You can use the FM SAP_WAPI_START_WORKFLOW. In webdynpro you have the button like "Submit" right? All the process has done, the user can click the submit button to get the approval. Under the button you can call this FM.
    Create one workflow based on your scenario, and pass the workflow number to this FM. So once the submit button is clicked then in back end workflow will getting triggered.
    For more Informations, please have a look at following links.
    SAP_WAPI_START_WORKFLOW doesn't start workflow...
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_START_WORKFLOW help
    Thanks.

  • How to trigger a workflow from event - newbie question

    Hi,
    I have a simple workflow, with the start node triggered by an XML event.
    What JMS destination I am supposed to send the XML document to in order for
    the workflow to be triggered. I thought that it was the wlpiEvent, but the
    workflow doesn't start. Also tried WLI_BPM_EVENT, with no joy.
    If anyone can point me in the right direction, then I would be grateful
    Lucy

    If it is one workflow sending a message to another, you can use internal destination.
    If it is another application then it would be WLI_BPM_EVENT ( which goes by the
    jndi name com.bea.wli.bpm.EventQueue in default installation ).
    "Lucy Collins" <[email protected]> wrote:
    Hi,
    I have a simple workflow, with the start node triggered by an XML event.
    What JMS destination I am supposed to send the XML document to in order
    for
    the workflow to be triggered. I thought that it was the wlpiEvent, but
    the
    workflow doesn't start. Also tried WLI_BPM_EVENT, with no joy.
    If anyone can point me in the right direction, then I would be grateful
    Lucy

  • 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

  • Attachments from Workflow to ABAP Webdynpro launched from UWL

    Hi All,
    You might have seen a recent post from me for sending attachments from ABAP Webdynpro to Workflow.
    I could do that by just calling SAP_WAPI_ATTACHMENT_ADD. I didnt have to create an instance of the SOFM object
    by passing the ATT_ID from this function module.
    Now the next task of the workflow which is sent to UWL, automatically carries the attachements in the Workitem.
    I didnt do binding from workflow container to Task container. (I dont know how!!)
    But I need to get those attachments on my ABAP Webdynpro after it is launched from UWL.
    For this I am using SAP_WAPI_GET_ATTACHEMENTS. But this FM is giving me the BOR reference.
    How do use this to get the attachments displayed on my Webdynpro as links?
    Thanks
    Deb

    Hi Debabra,
    I have similar requirement where I want to add new attachment from Webdynpro abap to workflow and again next level want to view it in UWL in another Webdynpro abap from workflow.
    I am trying to attach the document from Webdynpro to Workflow I used FM SAP_WAPI_ATTACHMENT_ADD and looks like it attached in workflow.
    Can you please tell  how the second part was solved where I want to attach document from workflow to Webdynpro abap
    Thanks,
    ST

  • How to open a brfplus Catalog from abap webdynpro screen.

    How to open a catalog from abap web dynpro application. and also what roles are to be provided to a user for restricting access only to the objects in the given catalog.

    Hi Pratik,
    do you use NetWeaver 7.0, Enhancement Pack 2 (or higher)?
    Then you can then define an own UI mode class and set it via SET_UI_MODE( ) in IF_FDT_WD_UI_EXECUTION before you call EXECUTE_CATALOG_BROWSER().
    An explanation how to define a UI mode class is available in the chapter "Configuration through a UI mode class (7.0/7.1 EHP2)" of the document [Embedding a BRFplus Object in an ABAP WebDynpro Application|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50e44bf9-9135-2d10-2ea2-b13e5be8661d]
    Hint: With help of the interface IF_FDT_WD_USER_CONFIGURATION you have the possibility to hide views in the navigation view by using the respective, listed parameters (e.g.. GC_PARAMETER_FAVORITES_VIEW). Please be aware of that the configuration is just available to adapt the UI, it does not fulfill the requirements to act as an authority concept. If you do not set the parameter GC_PARAMETER_HIDE_SETTING_DLG of the interface IF_FDT_WD_CONFIGURATION to false, the user is also able to change it via the configuration dialog in the BRF+ workbench.
    With the current available BRF plus standard authority concept you can prevent that the user can see the content of objects like applications but you have no influence to prevent the user from seeing UI artifacts like the repository tree. Please consult the documentation to learn more about its capabilities.
    Kind Regards,
    Marco

Maybe you are looking for

  • Setting security context in sql*plus session

    Hi, For a SQL*Plus session under an account that doesn't have execute privileges on fnd_global, is there any way to set the application security context similar to the way fnd_global.apps_initialize does? For example, as APPS one can do this: <br> sq

  • IPad 3 substitutes question marks in place of numbers

    In Calendar and other apps with numbers in headings, my iPad 3 (iOS 8) shows ?? instead. I have a 12 year old who uses it. Any ideas as to what might be causing this?

  • Having trouble deciding on an iPad 2 case

    So I'm having a hard time choosing what. iPad 2 case to get. I don't want the smart cover because I think I need something to cover the back to.I know could get a smart cover with compatible back shell but that gets pretty pricey and I don't know if

  • Any way for iPhone backup to save apps?

    I wonder if there's any way to save my apps when i upgrade the iPhone software. The apps don't seem to be saved when i backup and then restore. Is there some aftermarket software for the iPhone that can do that? I'm running iTunes 9 and iPhone softwa

  • Error #IS6532 and #AUTH701

    I have been randomly receiving these errors trying to receive emails on all five of my email addresses on my PC since Friday. I can access my emails on my phone and on webmail but am getting frustrated wanting to respond using outlook. Ironically in