Web Dynpro - Workflow integration

Hello,
Can someone please tell me what are the methods we can use for integrating Web Dynpro and Workflow. I have to create a custom Business Object for this purpose.
I have found out that we can use the FM 'SAP_WAPI_CREATE_EVENT' to trigger an event from the WD screen code. Please let me know if anyone has used the same and kindly share the experience.
Many thanks in advance.
Regards,
Ameya Kulkarni

Hi
  The very important thing to integrate the WDA with workflow is task registration where you are sending work item to SAP inbox with url once the url is clicked the WDA page will open and where the user will take action. These are few guidlies i would suggest for your scenario:
1) If there are approval process then go for workflow if only simple mail sending with validation do go for workflow. Everything can be handled in your screen itslef.
2) If you want to determine the approver based on some validation then go for workflow ex. travel request based on employee group <= condition go for this level of approver else go for this level of approver.
3) For your scenario fellow this way.
  a) Use FM SAP_WAPI_CREATE_EVENT OR SAP_WAPI_START_WORKFLOW but strictly advise to use event create FM rather than start workflow where you are hardcoding the workflow template no. So avoid it.
b) After triggering the workflow need to validate the condition use some custom FM or class to do this. Do Not write entier code in your method of BOR which will not be helful if you want to call that method somewhere other then your workflow you cannot call it. So always write the business logic in ZFM and call inside your method which will be robost.
c) To communicate the values from workflow and WDA use SAP_WAPI_WRITE_CONTAINER AND SAP_WAPI_READ_CONTAINER.
d) To determine the approver create new FM write the logic for approver. Usually we will create rule but for your case its not adviced you are calling WDA screen. In the task(activity) of the workflow in the express field pass the approver user id in the workflow container element which will send the workitem to the SAP inbox.
e) Once the workitem received the workitem to inbox once clicked it your WDA screen has to open for that need to do TASK regestration from SWFVISU t-code just check thsi its been long for me
f) After approving by clicking on approve button the send back the data if comments are there by using the above mentioned FM.
g) Then finally use send mail step to send mail.
For task registartion and data exchange from workflow and WDA see the blog for BSP the same requirement is done using the BSP. Check that which will give excat idea.
Regards
Vijay

Similar Messages

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • Web Dynpro iviews integration with web page composer

    Hi,
    Can web dynpro iviews be integrated into web page composer? I was trying to integrate one ESS web dynpro iview into wpc but the system is throwing an error:
    We are on EP7.01 SP3 (Enhancement Pack1). Please advice if the integration is possible in Enhancement Pack1.

    Hi,
    According to the documentation Web Dynpro iViews are not supported : [Configuring Entry Points for iViews|http://help.sap.com/saphelp_nw70/helpdata/EN/06/4776399abf4b73945acb8fb4f41473/content.htm].
    Regards,
    Pierre

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • Workflow & Web Dynpro integration - best practice?

    Hi,
    I am working on ECC6 and EP7 and looking at building some workflow approval scenarios for Travel Management.  I need to move away from the SAP supplied approval scenarios to meet our business requirements.
    What I'm looking for is a 'best practice' for integrating a Web Dynpro application (for ABAP) which will be the basis of our approval workitem.  I have seen a number of presentations which talk about integrating the user decision task (BOR object DECISION) into a web dynpro application.  I have also seen an approach where the FM WDY_EXECUTE_IN_PLACE is used to call a Web Dynpro application from within a BOR object method. 
    I guess I'm wondering if there is an approach that provides a cleaner integration then either of the above approaches as they both appear (well to me anyway!) to have limitations.  Is there a way for example of implementing an ABAP class method as the basis of the approval task that cleanly integrates with the Web Dynpro application?
    Any suggestions would be greatly appreciated.
    Thanks in advance
    Michael Arter

    Hello,
    Are you going to use the Universal worklist in your portal? If yes, that will bring you more possibilitites. Then you don't have to code anything into your business object - instead in portal (UWL configuration) you can define what which WD application is launched when the user clicks the task in UWL.
    If you are going to use business workplace and just launch WD applications from there, then you probably just need to use WDY_EXECUTE_IN_PLACE (or any other suitable way to launch WD application from ABAP).
    >Is there a way for example of implementing an ABAP class method as the basis of the approval task that cleanly integrates with the Web Dynpro application?
    Yes, but what is really the need for this? Did you know that you can replace the methods of your BO as methods of an ABAP class? Just implement the IF_WORKFLOW interface for your class, and you can use it in your workflow then just like the BO. If you want to "replace" the whole BO with your ABAP class, just take a look to Jocelyn Dart's blog series about the subject. But as I said, it is not really necessary to do this - especially if you already have lot of custom code in your custom business object - then it is probably a good idea to continue using it for your custom stuff.
    Regards,
    Karri

  • Workflow integration with Web Dynpro

    Hi Experts,
    I have a strange problem.   below i will explain.
    I created a custom workflow for a custom process.  the workflow contains 3 activity steps and agent is assigned as Initiator.
    I created a BAPI and called the workflow using SAP_WAPI_START_WORKFLOW and the bapi works fine  in R/3.
    When the same BAPI is called from Web Dynpro.  the workflow is getting executed but the activity step is not getting executed.  when i checked in SAP R/3 Workflow Graph. the activity step is showing message as No Agents Ready.  but i assigned the agent as Initiator.
    Could you please let me know what might be the problem.  whether the problem with developement or with configuration in SAP-EP.
    Waiting for your quick reply
    Thanks in Advance.
    Regards
    Santosh Kumaar.M

    Make the workflow and Task as GENERAL TASK for making t he workflow as Genral task cl
    Execute SWDD.
    Click on BAsic Data Cap.
    Click GOTO ---> AGENT ASSIGNMENT FOR TASK ---> Select General TAsk.
    For making Task as general task
    Execute PFTC
    Select Standard task option & enter the task ID, Open in change mode.
    Click ADDITIONAL DATA ---> Agent Assignment ---> Maintain ----. select general task.

  • Integrating Web Dynpro for ABAP into ABAP Workflow

    We have a requirement to create a User Interface via Web Dynpro for ABAP, and use that information to start off a workflow, transferring the data from the Web Dynpro application into the container of the Workflow.
    Also later in the workflow, we would like an approval step to invoke a Web Dynpro that displayes the data, and an approve/reject button to be pressed that feeds that data back to the Workflow.
    Has anybody done this, or does anybody know how to do this? We do not have the possibilities to use CAF in this project yet.
    Kind Regards,
    Tony.

    Hi,
    This is of course possible. Starting the workflow with Web Dynpro or from classic ABAP dynpro doesn't really differ. Just build your web dynpro as you would build a transaction, and from the submitting/execution phase, you just launch the workflow. Launching the workflow can be done with couple of different techniques (=function modules) and it has been discussed many times here.
    Also the approval part shouldn't cause any problems. Just build an application which takes as a parameter for example the work item ID (or any other relevant parameter that you can imagine, which you can use to retrieve the needed data that you want to display). Then from the web dynpro application you can call for example a function module, which can complete the work item. Or another option is that you will raise an event (again with a function module), which your approval task is waiting for.
    Once again, it isn't really that different from classic dynpro (or any other technique) - the same approaches can be utilized.
    Regards,
    Karri

  • Web dynpro application using workflow

    Hi all,
    I have developed a web dynpro application and attached that to the portal, so the user will login into the portal and will access the application. We have a new requirement now, when a user enters the data and hit save button on the web dynpro application, the workflow should trigger and should send the filled out (everything filled in) web dynpro application to his superior, the supervisor should be able to click on a link (which he should get through workflow) and should get the web dynpro application filled in. I am not sure how can I do this, so can you please guide me through.
    Thanks,
    Raj

    Hi Raj,
    could I suggest perhaps that you have a good search of SCN - there have been multiple posts about this sort of thing in the past.
    for example : the wiki article
    [Integrating WebDynpro ABAP applications with UWL for workflow in Portal|http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal]
    is it perhaps that you do not use the UWL at your site? Or do you want to to send an email to the manager with a link directly to the approval application? The last case is one that I've come across many times before - it just means that you'll need to generate an approval task that is ended by a wf event and send an email to the manager with a URL parameter in the launch of the WDA application so that the app can pick up the details required to display and raise the WF event to complete the approval wf task.
    There are all sorts of ways of persisting the information in the form so that the manager can see it in the approval. You can use the workflow container, you can use a db table, you could even use a shared memory area (not that I'd recommend this for this usage). But this is more a case of how to persist information in a workflow and probably a better question (search first, it's probably been answered already) for the WF forum and not the WDA forum.
    Good luck in designing and building your application. Perhaps when you are done you could write a blog about your experience and further share how to do this with others.
    Cheers,
    Chris

  • Integrating Flex/Flash in Web Dynpro ABAP(Netweaver 7.0) need info!

    Hi all,
            I need to embed a flash or a flex object inside a web dynpro abap application.I am working in Netweaver 7.0 and i don't have enhancement pack 1 installed.Is it possible ?   If it is possible can anyone please provide me the coding and configuration details.
    Thanks,
    Saikat

    I'm afraid that the SAP supplied integration technology - call FlashIslands - is only available from NetWeaver 7.01 and forward.  You could perhaps do some simple integration (very little data transfer) with the iFrame UI element - although the iFrame is deprecated in 7.0 and 7.01, but does return to full support in 7.02.  The other option would be to use the NetWeaver Portal or NetWeaver Business Client and have two iViews within the page. One iView would have WDA and the other some external technology (BSP, JSP, etc) to host the Flash/Flex content.  Not tight integration, but you could potentially use Portal Eventing to at least communicate events.

  • Web dynpro with adobe integration is not working in quality system

    Hi Experts,
       We have developed a web dynpro component with adobe flex integration. In development system everything is ok. Now the object moved to quality. In quality we are not getting the landing page. I checked in debug mode that the control come into SAP and code got executed. Finally the message which is issued from SAP is displaying in the page but the remaining page is blank. What reason might cause for this defect. If any one faced same kind of issue earlier. Respond to my request if you know the answer.
    Cheers,
    Bujji
    Moderator Message: Webdynpro have their own forums. Please post your question there.
    Edited by: kishan P on Sep 13, 2010 5:35 PM

    Hi Romero,
    Ur guess is correct, i have investiagte in the system, the variants saved a  $tmp, thats why it is not migrated.Later i migrated the variants. Now it is perfectly working. Thanks for the inputs.. Sorry for the delay response.
    Thanks
    surendra

  • Problem in submit button on adobe form integrated with web dynpro

    Hello,
    I'm facing prob in triggering web dynpro event onSubmit for Interactive form.
    I've created a submit button from web dynpro activex pallete on adobe form (integrated with web dynpro) to send the form as email.
    Then in the web dynpro view where this form is embedded i have created an action against onSubmit event and called a method within this.
    However, on clicking Submit button this event is not getting triggered.
    Please let me know what is lacking in this process?
    Thanks.

    Hi,
    I am also facing the same problem. i have developed a simple scenario under which user have to input his/her details and on submit button it will be updated to database.
    I have tried the above solution but after adopting this solution all the editable fields become non-editable.
    so the above solution is not working for me could you help me out.
    I think ... try this....
    When you create the Adobe Form from WebDynpro, you need to follow one step in SFP Transaction or inSE80 transaction. Open the Adobe Form in any one the transaction and now in SAP menu bar "Utilities" in that you will find the "INSERT THE WEBDYNPRO SCRIPT" just click on that one. Then you will see a new Script Object is being created with the name "ContainerFoundation_JS" under the "Variables" in the Heirarchy of the Object Pallete of the Adobe Form.
    This step is mandatory to use the SUBMIT Button of the "WebDynpro Native", to trigger the OnSubmit event of the WebDynpro.
    Thanks
    Edited by: shailendra2sap on Mar 6, 2009 12:24 PM

  • Regarding how to pass the data from web dynpro to workflow

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Check this [thread|SAP_WAPI_START_WORKFLOW;

  • How to pass the data from web dynpro to workflow.

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Hi
    you can use function module
    data   ls_input_container  TYPE swr_cont.
    data   lt_input_container  TYPE TABLE OF  swr_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task            = ptask
        IMPORTING
          return_code     = lv_return_code
          new_status      = lv_new_status
        TABLES
          input_container = pinput_container
          message_lines   = lt_message_lines
          message_struct  = lt_message_struct.
    where you pass the data in imnternal table "pinput_container" as
      ls_input_container-element = 'KUNNR'.
      ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'CLUSER'.
      ls_input_container-value = lv_cluser.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'BUKRS'.
      ls_input_container-value = lv_bukrs. " youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VKORG'.
      ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VTWEG'.
      ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'SPART'.
      ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
    *Also Forgot to mention where ptask is your workflow ID *
    Regards,
    Arvind
    Edited by: Arvind Patel on May 14, 2010 7:38 AM

  • Couldn't complete tutorial 'Integrating EJB 3.0 into Web Dynpro ...'

    Hi All,
    I am trying to complete the “Integrating EJB 3.0 into Web Dynpro Using the EJB Model Importer” tutorial that goes with SAP NetWeaver Composition Environment 7.1 SP3 Developer Studio.
    Does anyone ever completed this tutorial because I have problems completing it. The result is very important for me because I need to use this technology for my essay.
    In this tutorial you create a button that calls the method StudsBean.getStudent(String). In this method the object student is created and it will be returned. In several labels the information of the returned student should be displayed. But that doesn’t happen, when I push the button no error occurs but the labels are still empty. When I try to debug the Enterprise Bean and Web Dynpro application I see that the method StudsBean.getStudent(String) is called and the property’s are set and the student object is returned, but still it isn’t displayed.
    After discussing this with a colleague I tried to search for a solution on the SDN and of course Google. First I thought I would be a bug but I only found 2 people with the same problem. I found it remarkable because it’s one of the key subjects of Java EE 5 and it’s a tutorial displayed in the welcome page of the Developer Studio.
    So do you people think it’s a bug in WebDynpro? Because I am sure that I followed all the steps mentioned (a colleague checked it even).
    Regards,
    Sander

    Hi Sander,
    I guess, it's not a bug in Web Dynpro, maybe it's a bug in the tutorial
    I tried something similar, but not following the tutorial and it works. I wasn't able to call the model from the view controller and I guess that's the problem. Take the code from the init-method of the view controller and put it to the component controller's init -method and the code inside the onActionGetStudent and put it into a method you create in the component controller, too. From onActionGetStudent just call this method in the component controller with some code like this:
    wdThis.wdGet<your component controller's name>.<your method's name>;
    Hope this helps
    Kind regards
    Stefanie

  • Upload file in Web Dynpro and add to Workflow container as SOFM object

    Hi!
    I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
    When uploading files in Web Dynpro it is as an XSTRING. I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
    1) Convert from XSTRING to STRING using codepage 4110.
    Then it is split into a string table of 255 chars
    2) Convert from XSTRING to STRING using codepage 4102
    Then it is split into a string table of 255 chars
    3) Convert from XSTRING to BINARY format
    I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
    and then swf_create_object lr_sofm 'SOFM' ls_sofm_key.
    before I call some macros to fill the container.
    Anyone else who have tried to do this with success? I'm greatful for any help.
    Regards, Tine

    Hi,
    I had the same problem in the last days and finally I got a quite simple solution:
    I had a look at the FM SWL_SOFM_CREATE_WITH_TABLE an noticed that it calls another FM (SO_DOCUMENT_INSERT_API1) which has a tables parameter for HEX data and is actually able to  create a SOFM object from HEX data.
    I simply copied SWL_SOFM_CREATE_WITH_TABLE as a customer FM and applied a few changes to make it accept HEX data:
    First I added a new table parameter in the interface which gets the HEX data from the calling application (uploaded data using BIN format):
    OBJECT_CONTENT_HEX     LIKE     SOLIX
    Here is the code of the FM (I marked all additional and changed lines with a comment):
    function z_test_sofm_create_with_table .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(NOTE_TITLE) LIKE  SODOCCHGI1-OBJ_DESCR OPTIONAL
    *"     VALUE(DOCUMENT_TYPE) LIKE  SOODK-OBJTP DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(SOFM_KEY) LIKE  SWOTOBJID-OBJKEY
    *"  TABLES
    *"      NOTE_TEXT STRUCTURE  SOLISTI1 OPTIONAL
    *"      OBJECT_CONTENT_HEX STRUCTURE  SOLIX OPTIONAL
    *"  EXCEPTIONS
    *"      ERROR_SOFM_CREATION
      data: region like sofd-folrg.
      data: folder_id like soodk.
      data: l_folder_id like soobjinfi1-object_id.
      data: document_data like sodocchgi1.
      data: document_info like sofolenti1.
      data: object_content like solisti1 occurs 0 with header line.
      data: lines like sy-tabix.
    *- set default
      if document_type is initial.
        document_type = 'RAW'.
      endif.
    *- create office object
    *-- get dark folder
      region = 'B'.
      call function 'SO_FOLDER_ROOT_ID_GET'
        exporting
          region                = region
        importing
          folder_id             = folder_id
        exceptions
          communication_failure = 1
          owner_not_exist       = 2
          system_failure        = 3
          x_error               = 4
          others                = 5.
      if sy-subrc ne 0.
        message e696(wl)                       "<== Add message class
                raising error_sofm_creation.
      endif.
    *- get description
      if note_title is initial.
        read table note_text index 1.
        note_title = note_text.
      endif.
    *-- create office document
      document_data-obj_name = 'ATTACHMENT'.
      document_data-obj_descr = note_title.
      document_data-obj_langu = sy-langu.
      object_content[] = note_text[].
      describe table object_content lines lines.
      document_data-doc_size = ( lines - 1 ) * 255 + strlen( object_content ).
      if object_content[] is initial.                     "<== insert
        describe table object_content_hex lines lines.    "<== insert
        document_data-doc_size = lines * 255.             "<== insert
      endif.                                              "<== insert
      l_folder_id = folder_id.
      call function 'SO_DOCUMENT_INSERT_API1'
        exporting
          folder_id                  = l_folder_id
          document_data              = document_data
          document_type              = document_type
        importing
          document_info              = document_info
        tables
          object_content             = object_content
          contents_hex               = object_content_hex   " <== Insert line
        exceptions
          folder_not_exist           = 1
          document_type_not_exist    = 2
          operation_no_authorization = 3
          parameter_error            = 4
          x_error                    = 5
          enqueue_error              = 6
          others                     = 7.
      if sy-subrc ne 0.
        message e696(wl)                              "<== Add message class
                raising error_sofm_creation.
      endif.
    *- set export parameter
      sofm_key = document_info-doc_id.
    endfunction.
    The returned  SOFM key I added to a container element. The element refers to event parameter of type OBJ_RECORD in my ABAP OO Class
    Using this function I was able to raise an event by using Method cl_swf_evt_event=>raise
    that invoked a workitem containing an Excel-File i had uploaded as binary file and passed to the FM z_test_sofm_create_with_table as document type 'XLS'.
    In the woritem preview when clicking on the attachment the file was opened directly in Excel.
    Actually the new lines for calculation the file size is not yet quite correct. At first glance it does not seem to cause any trouble, but I will stll check that. In FM SO_OBJECT_INSERT the size is again checked and calculated if initial, so leaving size initial might also be an option.
    I hope this helps anyone having a similar issue.
    Greetings,
    Michael Gulitz

Maybe you are looking for

  • ITunes on Windows 8 PC and iCloud

    My iTunes library appeared on my Windows 8 PC when I downloaded iTunes for the first time.  I purchased a track and wanted to synch my iPod.  The computer wouldn't recognize my iPod.  At first since it was a new PC, I thought there was a problem with

  • General Steps in Creating User Exits

    Can someone give me outline of the Steps involved in Userexits...

  • Order releated billing

    Dear all, I need to generate Order related billing ,,i did in Item category......as B,C.. but i cant able to generate the order related Billing. Regards raj.

  • PHP files in symlinked directory being served as plain text

    I've installed apache and PHP (with MySQL) following the instructions at https://wiki.archlinux.org/index.php/LAMP Everything seems to be working OK - I can view files in /svr/http by navigating to http://localhost, and PHP files in that location or

  • Is there a way to cut down on the "suction power" of the drop items in drag and drop?

    I am trying to develop a game where the user has to correctly space objects from one another depending on what their relationship to one another is.  The drop objects are actually completely transparent and the user has to place the drag item perfect