Adhoc workflows with Web dynpro

Hello All,
Is it possible to implement Adhoc workflows with Web dynpro ABAP?
I am trying to do a prototype on the same, and wanted to know if Web dynpro has some options for the same.
Please let me know.
Regards,
Shalini.

Hi Shalini,
Maybe this helps you...
Create new UI's for existing workflow tasks with ABAP Web Dynpro and Universal Worklist!
Chitrali

Similar Messages

  • Invoke Workflow from Web Dynpro for Java Application

    I am working on a custom web dynpro for java application and when the user clicks the submit button the SAP standard workflow (WS50000041) should be invoked. Does anyone have experience they can share with me on how to achieve this functionality? It should also be able to attach an adobe form or read data from the form and submit the data as xml.
    Thanks,
    Ashley

    Hi Ashley,
    Use following code in RFC to invoke your workflow -
    DATA : w_subrc TYPE sy-subrc,
                w_wi_id LIKE swwwihead-wi_id.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task                      = ' WORKFLOW - WSxxxxxx '
              language                  = sy-langu
              do_commit                 = 'X'
            IMPORTING
              return_code               = w_subrc
              workitem_id               = w_wi_id
            TABLES
              input_container           = it_container
              message_lines             = lv_swr_messag
          COMMIT WORK.
    With this code your workflow will get start. But u have to use workflow id in next application also in which your request is getting navigated. In that application you have to take this workflow ID and have to pass again in workflow using - PortalNavigation statements.
    After that this workflow will get start to publish in your TaskList (My Task) in Portal. Remeber that your all task should be maintained in workflow table by using SWFVISU  transaction.
    After that go to Portal and Re-Register your UWL so that your new Workflow ID will get usable in portal.
    With this way you would be able to use workflow with Web Dynpro Java using UWL and Workflow.
    Regards,
    Roshan Gupta

  • Send pdf file to workflow through web dynpro.

    Hi All,
    I have a web dynpro component, with this component i am raising a request, which will go to multiple level of approvals(for this triggering workflow from web dynpro).
    Now i want to send a pdf file as an attachment to approvers work items.
    For this i have used File Upload UI element, and i have binded data property of this upload UI element with an attribute of type Xstring.
    Now can you please help me to send this file to workflow.
    I am able to send a pdf file as an attachment through executable report (SE38), but same functionality is not working from web dynpro.
    Code used in executable report is as below:
    DATA: t_data_tab TYPE TABLE OF x255,
    bin_size TYPE i,
    buffer_x TYPE xstring,
    buffer_zip TYPE xstring,
    filename TYPE string VALUE 'C:\Documents and Settings\My Documents\Downloads\IT.pdf'.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename                      = filename
    filetype                      = 'BIN'
    IMPORTING
    filelength                    = bin_size
      HEADER                        =
    TABLES
    data_tab                      = t_data_tab.
    **get xstring
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
      EXPORTING
        input_length = bin_size
      IMPORTING
        buffer       = buffer_x
      TABLES
        binary_tab   = t_data_tab.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ZSWR_ATT_HEADER-FILE_TYPE = 'B'.
    ZSWR_ATT_HEADER-FILE_NAME = 'FORM-407'.
    ZSWR_ATT_HEADER-FILE_EXTENSION = 'PDF'.
    ZSWR_ATT_HEADER-LANGUAGE = 'EN'.
    WORKITEMID = '000000401208'.
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
      EXPORTING
        WORKITEM_ID          = WORKITEMID
        ATT_HEADER           = ZSWR_ATT_HEADER
      ATT_TXT              =
        ATT_BIN              = buffer_x
       DOCUMENT_OWNER       = SY-UNAME
       LANGUAGE             = SY-LANGU
       DO_COMMIT            = 'X'
    IMPORTING
      RETURN_CODE          =
       ATT_ID               = ZSWR_ATT_ID
    TABLES
      MESSAGE_LINES        = SWR_MESSAG
    *MESSAGE_STRUCT       =
    if sy-subrc = 0.
    else.
    endif.
    But function "GUI_UPLOAD" is not working in web dynpro.
    Regards,
    Amar

    HI,
    Try out this code :
    FileInputStream is = new FileInputStream(file);
          long length = file.length();
          byte[] bytes = new byte[(int)length];
          long bytesRead = is.read(bytes);
          if (bytesRead < length)
           throw new IOException("Could not completely read file "+file.getName());
          is.close();
    element.setDocumentContent(bytes);
    Create a context attribute of binary type and assign the read data to it and bind the dataSource property of your File Upload and Download properties to this context Attribute.
    Regards
    Sid

  • 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

  • Workflows in web dynpro java

    Hi experts,
    please guide me about the workflows in web dynpro java. i have to implement workflow outside SAP, i dont have any idea about it.

    Dear Shilpi
    For Configuring Workflows outside SAP we need to have a Gateway HUB where it channelizes to connect through Outside SAP. Based on the Tasks available in SWFVISU we can choose either Java or ABAP workflow where the Appropriate Task numbers will be available.
    Check these links
    Gateway Workflow Configuration Problem
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dfad5a-5398-2b10-568b-d3d999d49b5c?QuickLink=index&…
    Hope this Info will be helpful
    Cheers
    Pradyp

  • Search Help on Adobe Interactive Form with Web Dynpro ABAP

    Hi All,
    I have created Adobe Interactive Form with ZCI type and XML based interface type using Webdynpro ABAP.
    I placed a text field USER_NAME on the form ( data element is linked to search help USER_COMP ).
    Added Native WD UI element 'Value Help' to form to search for users and changed script
    *var fieldName = "INSERT_NAME_HERE*"; to var fieldName = "USER_NAME";
    The problem is that when I click on the value help button, nothing happens.
    Is any more additional steps required ?
    Thanks
    Karu

    Hello
    Check this
    F4 Value Help on Adobe Interactive Form with Web Dynpro ABAP
    Thanks
    Anirudh

  • Exception occured when deploying in Visual Composer with web dynpro mode

    Hi,All
    when I deploy application in visual composer with web dynpro mode, exception occured as following, please help me.
    Thanks.
    best regards
    Jiande Ding
    The initial exception that caused the request to fail, was:
       com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application sap.com/tcwd4vcengineconfigstd for startup. Reason= Clusterwide exception: Failed to start application sap.com/tcwd4vcengineconfigstd: The referenced application sap.com/tcwd4vccorestdinfoactors cannot be started. Check the causing exception for details. Hint: Is the referenced application deployed correctly on the server?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1494)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
        ... 8 more
    Edited by: Jiande Ding on Nov 4, 2008 1:08 PM

    Hi
    Check out this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/7c/9ce742bdab5604e10000000a155106/frameset.htm
    Thanks

  • Upload a file in KM repository with Web dynpro for abap

    Hi gurus, i´m trying to create a KM repository and then upload a file into this repository with Web dynpro for abap , but i can´t find any info. Can anyone help me with this problem, i have to solve it ASAP...
    Thanks for all....
    Regards,
    Diego.

    Please referr to the ideas on this thread.
    Install Problems withe the NW04s ABAP Trial verssion
    You have installed the loopback adapter and made the propriate entries in the hosts file, right?
    Regards,
    Rich Heilman

  • Full ABAP Edition-Trial (with Web Dynpro for ABAP) Max DB data volume

    I recently installed Full ABAP Edition-Trial (with Web Dynpro for ABAP)- SPS08.
    http://static.flickr.com/89/243544270_91e713e3a3_o.jpg
    as you can see, it's already 92% acquired ( just after installation)
    Is it correct?
    or it's better to add another volume?
    The other question is
    according to the license installation guide,
    it sounds like we can delete the temp licese with SAP*.
    so I did like that but i got the following message
    http://static.flickr.com/81/243546622_bc99d1af2b_o.jpg
    Well, I could delete the old license with BCUSER.
    Thanks,
    David

    Hello,
    to your first question.
    The MaxDB database has a feature which can
    increase the database automatically.
    This ( auto_extend ) is turned on for the SDN Preview
    installation.
    That means the database should extend a further datavolume
    automatically when the filling level gets over 90%.
    In your case the database already added two more datavolumes. The installation only creates one.
    Best regards, Stefan

  • Business Graphics with Web Dynpro?

    Hello @ all,
    I have got a question about displaying dashboards and other charts on mobile devices using SAP Technology.
    1) Does someone know, when it will become possible to display BusinessGraphics in Mobile Devices like BlackBerry, Pocket PC a.s.o buildt with Web Dynpro?
    2) Which Technology can I use instead of Web Dynpro? Does it make sense to use HTMLB or should we use non SAP Products like "JFree Chart" for J2EE applications specially buildt for Mobile Devices?
    Thank you for any hints!
    Mehmet

    Hi Memhet!
    You can use Business Graphics with Web Dynpro with version NWDS 2.0(we are in was 6.40)and could be displayed on mobile devices.We use Symbol devices.I am not sure abt Blackberry.Is that your question? OR Are you looking for some alternate solution to WebDynpro.Is that because you have some limitations in running your WD applications in mobile devices?Just trying to understand......
    Thx
    Gisk
    Message was edited by: Sivakumar Ganesan(Gisk)
    Message was edited by: Sivakumar Ganesan(Gisk)
    Message was edited by: Sivakumar Ganesan(Gisk)

  • Part II: Adobe Print Forms with Web Dynpro for ABAP. -Practice issue

    Hi,
    I am practicing Thomas jung Tutorial on Adobe forms [Part II: Adobe Print Forms with Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97].
    I am trying to complete this and looks like this tutorial in not complete.Anybody can help me in completing this until we get a preview of adobe form?
    FYI.. Ic ompleted evevrything in tutorial and I am waiting to complete and test.
    Rgds
    Vara

    Thomas,
    Here is where I am stuck.
    Wrote this code in ONACTIONSEARCH.I am getting my entries in internal table ISFLIGHT.
    but unable to bind it to adobe form and show in the form.
    *  SELECT statement
        clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    * navigate from <ADOBE_DATA> to <SFLIGHT> via lead selection
      lo_nd_sflight = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_sflight ).
      lo_nd_sflight->bind_table( new_items = isflight set_initial_elements = abap_true ).
    Error is Access via 'NULL' object reference not possible.
    FYI.. I just dragged and dropped 2 elements from DATA to Adobe form.what are the other changes do i need to do in form gui elements so that it shows the internal table contents?
    this would really help me..
    Rgds
    vara
    Edited by: Vara K on Jan 21, 2009 5:51 PM

  • Search Help with Web Dynpro call on another system

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

  • Search Help with Web Dynpro

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

  • Tutorials to implement Flash Islands with Web Dynpro Java

    Hi,
    We have downloaded the CE 7.1 EhP1 trial version.
    Any pointers to tutorials to implement Flash Islands with Web Dynpro Java would be helpful.
    Thanks,
    Chitrali

    Hi,
      I read a document which says Adobe Flex Builder is not been included part of shipment of NW. So not lots of documents available. Yet with WDA, some tutorials and blogs are available. Similar application can be developed using WDJ. Please check these.
    WDJ:
    The specified item was not found.
    WDA:
    http://www.adobe.com/devnet/sap/
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10989ef6-968c-2b10-50a9-eb34a5267163
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/emtech/sapRichIslandsforAdobe+Flash
    Regards,
    Harini S

  • Problems using Visual Composer with Web Dynpro runtime

    I am currently trying to build a Visual Composer iView and we need to use the Web Dynpro runtime rather than Flash because it needs to work with a screen reader for users with sight problems.  Which is a pity because Flash works fine. But when I use Web Dynpro runtime I'm getting the following problems:
    a) When I define fields and pushbuttons in forms where Align Contents is set to Absolute, they do not appear at runtime in the positions in which I've placed them - all form elements are aligned vertically.  The only other options are to align all fields vertically or align all fields horizontally.  This lack of flexibility makes it rather difficult to create a good screen design; the only option seems to be to create a separate form for each set of differently aligned fields, which leads on to the next problem.  . 
    b) When I define more than one form on a page, again at runtime the forms do not always appear in the positions in which I've placed them; the compiler seems to calculate how much space it needs to display the screen elements and then re-sizes and  re-positions the forms accordingly, ignoring what I've told it to do. 
    c) Toolbar pushbuttons do not appear on forms (they do appear on tables).  Irritating, but at least I can still create pushbuttons on the form itself. 
    There are other issues, but the main problems is that it appears that when I use VC with Web Dynpro I cannot trust the editor layout at all and the only way I can build something that looks decent is to fiddle about with  field / form sizes and positions, checking every change on the output, until hopefully I get it looking ok.  Having to do this will dramatically increase the time taken to develop VC applications.  Has anyone else experienced these problems with VC and Web Dynpro?  Has anyone managed to overcome them?

    Thanks, but neither of these describes the problems I've been having.  And they are misleading since they say that you can use VC with Web Dynpro only with Web Services ie not directly with BAPIs / RFCs, but using it with BAPIs / RFCs is one of the few things that works well in our system. 
    The most recent problem I've found is that if you make a form or table read-only it will stay read-only in Flash but the fields are editable in Web Dynpro.  The individual field disable option does work for Web Dynpro, but it turns the fields from black to a vey pale and almost invisible grey (this doesn't happen in Flash).  And you can't seem to change this. 
    It does seem to be a bit pathetic that input fields can't be made read only.  I've tried expression boxes, which are read-only anyway, but they appear in as pale a grey as the disabled input fields.  And although plain text fields can be added to tables, they are pretty useless since they can only hold a single value and so all the lines will contain the same value. 
    I guess I should resign myself to the fact that I am never going to be able to produce a decent screen using VC and Web Dynprp.

Maybe you are looking for

  • Get values from selected row in a Table?

    Hello. I'm on VC 7.1 (the trial version downloaded from SDN). I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector. I have a web-service which returns results to the Ta

  • JAVA with MYSQL problem

    i am using jdk1.6.0_02,apache tomcat 5.5.23 ,mysql integrated with redhat linux EE 4 and.mysql connector java 5.0.7.bin.jar. look at the the following java program import java.sql.*; public class TestMysql public static void main(String args[]) try S

  • Problem in using WS_DELIVERY_UPDATE(updating the deliveries)

    Hi Gurus, Iam facing problem  i updating the deliveries using the fm WS_DELIVERY_UPDATE..This is the code.. MOVE : lwa_mchb-matnr   TO lwa_vbpok-matnr,                    lwa_mchb-charg   TO lwa_vbpok-charg,                    lwa_mchb-lgort   TO lwa

  • Graphing engine is not responding.

    An error occurred during connect to "<IP_Address>:9810". A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [Socket:1

  • Tray Minimize and Maximize!

    Hello, On my WDA View i have got two trays(TRAY1 and TRAY2) under ROOTUIELEMENTCONTAINER. On TRAY1 i have a button, which when clicked should minimize TRAY1 and maximize TRAY2. How to do this? I did some examples by accessing CONTEXT elements and mod