Trigger workflow from web form

HI Experts,
I have a requirement to trigger workflow when a web form  is completed through a portal and saved.I also need to perform certain validations on the fields in the web form before triggering the workflow.The web form would then go the proper approvers and then I need to send notification messages on Approval or Rejection.I am at loss of thoughts as to how I can achieve this functionality.
I also need to send reminders to the approver every 2 hours till he takes some action.
Any suggestions would be of great help and would be rewarded appropriately..
Regards,
Narsingh

Hi Narsingh,
the solution depends much on the web form you are implementing.
Is this a standard portal application you are working on? Or are you developing also the form from scratch?
The previous answers just tell how you can trigger a workflow if the application doesn't trigger it itself.
If the web form is a standard application or built with process frameworks like HCM Processes and Forms/ISR/PCR, then the event is often published by default without any customization.
No answers, just questions...
Kind regards,
Mikko

Similar Messages

  • Trigger workflow from adobe form

    Hi.. can anyone outline me with the basic steps required to trigger workflow from abobe. Java Wd and ECC 5.0. Thanks!

    Hi Pankaj,
    have a look at the ISR Cook book and Developing PCR (Personal Change Requests) <a href="https://websmp202.sap-ag.de/mss">Manager Self Service</a> You will gwet more links if you do a quick search or just go to sdn.sap.com/interactive forms
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183">https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183</a>
    Do update, if you find any more issues
    Thanks and Regards,
    Anto

  • How to change/set the browser title from web forms (XP platform with SP2)

    I am running Form9i, I have set the browser windows title from Web Forms dynamically by using following method. However, when my PC has changed to XP, the function seems not work. Does anybody have same problem and how to solve it? Any suggestions would be appreciated.
    Add the Javascript code to your baseHTML file. For example,
    if you are using the basejini.htm:
    <HEAD><TITLE>%pageTitle%</TITLE>
    <script language="javascript1.2" type="text/javascript1.2">
    function Change(a) {    document.title=a;    } </script>
    </HEAD>
    In web Forms , call the javascript function with WEB.SHOW_DOCUMENT built.
    For Example the following code set the browser title with username . web.show_document('javascript:Change('||'"'|| get_application_property(USERNAME)||'"'||')','_self');
    Best Regards,
    Bowie

    Dear Frank,
    Thanks for your reply. Can you tell me in detail which built-in function in Webutil can set value in browser title ?
    Btw, is it possible for me to set parameter "separateFrame=True" in formsweb.cfg and set the form window title by using SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,v_msg_string)?
    Best Regards,
    Bowie

  • How can i trigger workflow from report

    hi i create one report and workflow. i want to trigger workflow from report, how can i do this one, please send me any code you have.
    Thanks & Regards
    Sankar

    Hi Sankar,
    There is another sample code...
       REPORT ZRGEVTCR.
    INCLUDE <CNTN01>.
    DATA: OBJKEY  LIKE SWEINSTCOU-OBJKEY,
          EVENTID LIKE SWEDUMEVID-EVTID.
    DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
            INCLUDE STRUCTURE SWCONT.
    DATA: END OF EVENT_CONTAINER.
    PARAMETERS:
      OBJTYPE  LIKE SWETYPECOU-OBJTYPE DEFAULT 'ZRGMARA',
      MATERIAL LIKE MARA-MATNR,
      EVENT    LIKE SWETYPECOU-EVENT   DEFAULT 'CREATED',
      VOLEH    LIKE MARA-VOLEH,
      LED      LIKE SY-DATUM           DEFAULT '19971231'.
    OBJKEY = MATERIAL.
    CLEAR EVENT_CONTAINER. REFRESH EVENT_CONTAINER.
    set input parameters for CREATED event.
    remark: to be more general, we had to use fm SWO_QUERY_PARAMETERS
    IF EVENT EQ 'CREATED'.
      SWC_SET_ELEMENT EVENT_CONTAINER 'LatestChangeDate' LED.
      SWC_SET_ELEMENT EVENT_CONTAINER 'VolumeUnit' VOLEH.
    ENDIF.
    CALL FUNCTION 'SWE_EVENT_CREATE'
         EXPORTING
              OBJTYPE           = OBJTYPE
              OBJKEY            = OBJKEY
              EVENT             = EVENT
         IMPORTING
              EVENT_ID          = EVENTID
         TABLES
              EVENT_CONTAINER   = EVENT_CONTAINER
         EXCEPTIONS
              OBJTYPE_NOT_FOUND = 1.
    IF SY-SUBRC NE 0.
      WRITE : / 'Object type', OBJTYPE, 'not found in object repository'.
    ELSE.
      IF EVENTID NE 0.
        WRITE : / 'At least one receiver was found'.
        COMMIT WORK.
      ELSE.
        WRITE : / 'No receivers found'.
      ENDIF.
    ENDIF.
    Hope this will help you to solve your problem that how to trigger workflow from the report.
    Thanks,
    Pramod

  • Audit Intersection fails from Web Form

    We have an HFM 9.3.1 application successfully integrated with FDM 9.3.1, in that when navigating to a base level intersection, which has been loaded by FDM, the audit intersection option allows a drill-through analysis to the correct FDM application / location.
    This feature works perfectly OK from right clicking a grid intersection and selecting Audit Intersection. However, if a web form is used to display the same intersection and the user selects Audit Intersection the following error message is generated :-
    System Error "The signed on token is no longer valid" the web screen also displays an error stating there are localization errors and that the action is empty or missing.
    Repeatedly performing the same operation from data grids and web forms results in the web form audit always failing and grid audit always succeeding.
    Looking at the URL parameters I can see that the two sets of actions sent to generate the FDM audit page are indeed different
    I have included the source "action" parameter from the IntersectionSummarybyLocation web page. (With line breaks to aid readability)
    Repeated successful Grid Audit
    action="IntersectionSummaryByLocation.aspx?
    SSO_TOKEN=NbD9qzBZXx%2B%2BFm%2BFySzSa7uCWdYLvOAI14GJ6%2B7kFhWT2YN4lvlRfQExBNUyOMBkvAX1%2F3sfkyyu%0A3Ej8JSWj14o4Gf380eNrEeCax4fMVO28wUniiwcCepjkb6kvNhLCsKc%2FEmTctCxxd1lUmGcnalfO%0Avmc7rwQyxBAu8FtPnrtmy5REje4Epw%3D%3D&amp;
    FDMAppName=TTGFDM&amp;
    ScenarioLabel=Actual&amp;
    YearLabel=2012&amp;
    PeriodLabel=Apr&amp;
    ViewLabel=%3CScenario%20View%3E&amp;
    EntityLabel=CPW0005&amp;
    ParentLabel=AOL&amp;
    ValueLabel=%3CEntity%20Currency%3E&amp;
    AccountLabel=PL50000&amp;
    ICPLabel=%5BICP%20None%5D&amp;
    Custom1Label=F6000&amp;
    Custom2Label=%5BNone%5D&amp;
    Custom3Label=C7142&amp;
    Custom4Label=%5BNone%5D" id="formMain">
    Repeated failed action from web form
    action="IntersectionSummaryByLocation.aspx?
    SSO_TOKEN=NbD9qzBZXx++Fm+FySzSa7uCWdYLvOAI14GJ6+7kFhWT2YN4lvlRfQExBNUyOMBkvAX1/3sfkyyu%0A3Ej8JSWj14o4Gf380eNrEeCax4fMVO28wUniiwcCepjkb6kvNhLCsKc/EmTctCxxd1lUmGcnalfO%0Avmc7rwQyxBAu8FtPnrtmy5REje4Epw==&amp;
    FDMAppName=TTGFDM&amp;
    ScenarioLabel=Actual&amp;
    YearLabel=2012&amp;
    PeriodLabel=Apr&amp;
    ViewLabel=%3CScenario+View%3E&amp;
    EntityLabel=CPW0005&amp;
    ParentLabel=AOL&amp;
    ValueLabel=%3CEntity+Currency%3E&amp;
    AccountLabel=PL50000&amp;
    ICPLabel=%5BICP+None%5D&amp;
    Custom1Label=F6000&amp;
    Custom2Label=%5BNone%5D&amp;
    Custom3Label=C7142&amp;
    Custom4Label=%5BNone%5D" id="formMain"
    It would appear that the format for characters is different and the SSO_TOKEN is differrent (although this maybe by design since the calling locations are different).
    I have checked that the Grid and Web Form operations are calling the same web page encoding of Unicode (UTF-8).
    Anybody got any idea why FORM functionality is failing to display the Audit Intersection?
    Kind regards
    Colin
    Edited by: Colin Lye on Sep 15, 2011 6:26 AM

    Applied Patches 9.3.1.1 thru to 9.3.1.4 (latest).
    Problem resolved. Audit Intersections now work from both Grid and Forms.
    Incidentally, both "Action" parameters from Grid and Form are now identical including the SSO_Token.

  • Sending email from web forms (Forms 6i)

    Does anyone know how to send email using Outlook from web forms? I can get it working with client server but not with web forms.
    Thanks,
    Darcea Klein
    null

    Many ways to send a email:
    1. use Web.Show_Document(v_url, '_blank') to call a .asp or .php or .cgi page which can send email, attaching some message.
    2. use utl_smtp built_in in Oracle 8i, you can save this procedure in database, then call this procedure in your web form.
    PROCEDURE SEND_EMAIL (sender IN VARCHAR2,
    recipient IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := 'smtp.aaaaa.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    -- Handle the error
    END;
    GOOD LUCK

  • Trigger workflow from Email (lotus or Outlook)

    Hi All,
    Is it possible to trigger a workflow from An Email (lotus or Outlook). if so how can we do it?
    Reg,
    Sre
    Edited by: sre on Jul 9, 2009 3:53 PM

    Check the following links.. which answers its pretty much possible to Trigger workflow from email...
    triggering workflow from incoming mail.
    Triggering a workflow on receiving mail from external mail id.
    Can we trigger workflow on receiving e-mail ?
    Regards,
    PR.

  • How to trigger a trigger in a Web Forms 6i from Java script

    Hi,
    I have an applicatin that has two frames. One displays a map, the other one the Oracle Forms 6i web forms. I display the datasheet of various map objects in the second frame when the user clicks on a map object in the first frame.
    My problem is that since each Forms has a different link, JInitiator reloads each time, thus making it the form a bit slow to display.
    Any tips? Thanks in advance.
    Tamas Szecsy

    Hi,
    this kind of inter-region communication requires the use of contextual events in which the producer region sends a notification to the receiving region, which then uses a method to launch the popup. You don't use the showPopupBehavior for this but JavaScript from Java
    See: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#BABHIBGF
    Frank

  • Starting existing workflow from web dynpro application (ABAP)

    Hi experts,
        I am working on web dynpro application from which when I click on a button an existing workflow should trigger. This will be used in portal replacing existing iview with jsp. I did lot of reading on SDN maybe too much that I am confused how to get started. Here is what I have currently.
    We have an existing workflow that sends an approval email to manager when ever some unit information changes. In current functionality, workflow is triggered by event which is linked to workflow in transaction "swetypv". We defined scenario in "qisrscenario" that contains all elements to populate workflow container. The methods to get data into workflow container, send email etc are all written in business object methods. We have a class that implements standard SAP BADI "IF_EX_QISR1"(IF_EX_QISR1~SCENARIO_PROCESS_USER_COMMAND method) that probably has all logic. In current functionality when the workflow gets created it sends notification number back to portal jsp page that triggered the workflow on button click. Users look at notification number in iqs23 for workflow log, PCR form data etc. and I need that functionality too. Now I am confused where I should start so that I can use ew web dynpro applciation instead of jsp iview but want all the functionality that we currently have. How can I start workflow and get notification number back to web dynpro so that I can display that to user? The approving manager goes to UWL to approve, reject the workitem and workflow then finishes.
    Any help will be greatly appreciated.
    Thanks.
    Mithun

    Hi.,
    Using FM  SAP_WAPI_CREATE_EVENT  You can Achieve this., try the below piece of code.,
    DATA: OBJECT_TYPE  TYPE  SWR_STRUCT-OBJECT_TYP VALUE 'ZBUS333',   " Enter Your Business Object here
    OBJECT_KEY  TYPE  SWR_STRUCT-OBJECT_KEY,
    EVENT TYPE  SWR_STRUCT-EVENT VALUE 'FIRE'.     " Enter Your Event here
       DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
             ls_cont TYPE swr_cont.
           ls_cont-element = 'NAME'.       " To Pass Values to business Object you append to container
           ls_cont-value   = lv_name.
           APPEND ls_cont to lt_cont.
           ls_cont-element = 'ID'.
           ls_cont-value   = lv_id.
           APPEND ls_cont to lt_cont.
          CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
            EXPORTING
              OBJECT_TYPE             = OBJECT_TYPE
              OBJECT_KEY              = OBJECT_KEY
              EVENT                        = EVENT
             COMMIT_WORK             = 'X'
             EVENT_LANGUAGE          = SY-LANGU
             LANGUAGE                = SY-LANGU
             USER                    = SY-UNAME
    *         IFS_XML_CONTAINER       =
    *       IMPORTING
    *         RETURN_CODE             =
    *         EVENT_ID                =
           TABLES
             INPUT_CONTAINER         = lt_cont
    *         MESSAGE_LINES           =
    *         MESSAGE_STRUCT          =
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Triggering Workflow from Adobe Form in ERP

    Hello,
    With SAP ERP 2005 version, Adobe Interactive forms can be created within SAP environment. Is there a way to link the SAP Adobe forms to a SAP Workflow instead of using the Adobe Workflow Designer?
    Can we trigger the approval process using SAP WOrkflow from Interactive Adobe form?
    Thanks.

    Hi Anjali,
      Interactive Forms is integrated in other environments that use workflow and make it easier to set it up:
    Guided Procedures (in NetWeaver 2004s): Fully Java-based, GP is the process component of the Composite Application Framework (CAF), and thus largely model- and not development-based. You can use an interactive PDF form in a GP for offline steps.
    Refer the link for more info on  CAF
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/devguide2004s -> Fundamentals -> Creating Composite Applications">CAF</a>
    The general integration into Web Dynpro, which allows you to build a workflow from scratch (requiring full workflow knowledge) and integrate the forms as steps in the workflow. Using this method, you could also integrate PDF forms into lower-release backends.
    Hope this helps
    Regards,
    Sharadha

  • Triggering workflow from Web Dynpro

    Hi,
    What is the best way to trigger a workflow from a web dynpro application?
    Is there a standard 'Netweaver' workflow component or only the classic workflow is available?
    I want to trigger some workflow activity after the user has made a new entry using the dynpro application.
    Also is there a way to view the users 'Inbox' in a web browser or the only way is to use iView in a Portal?
    Thanks for any feedback.
    Regards, Hari

    Thanks for the information Tomas & Anil.
    What part of the component is GP? Is it part of CAF?
    Anil you have mentioned I need to install it on the J2EE.
    We have currently Java stack for Web AS 6.4, what other components do I need to make this happen.
    Thanks, Hari

  • 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

  • I need to call an external application (on the user's PC) from web forms 6i

    We do imaging here, and all our images are scanned to a novell fileserver that has a drive letter mapped to the user's PC.
    These images are used for Oracle applications and other applications, and we only store the image's location path and file type in oracle.
    e.g. image_path varchar2(100), image_type varchar2(3)
    would be: 'w:\archive\ap\0127\ap12345', 'tif' where 'ap12345' is the image name.
    The file is stored on the novell box without an extension, which has worked fine for us with our forms applications in client server.
    Moving to web forms, I'm trying to reference the images via web using forms 6i triggers and web.show_document('file:///'||image_path) for the URL.
    This finds the image, however, internet explorer doesn't know what to pull it up as without the extension, and if I try to put an extension on the file, the browser isn't able to identify it since it doesn't have an extension on the fileserver, so I'm in a catch 22. I'm unable to put an extension on the original copy of the file on the fileserver due to other applications that also need to reference it.
    Also, I'm unable to go directly to the file on the novell server from my 9iAS webserver.
    My question is:
    Would it be possible to use javascript or some other means from inside the forms 6i trigger, or a database procedure that the forms trigger kicks off inside the Jinitiator JVM to go out to the client PC's file system, grab that file and copy it to a temporary location on the 9iAS webserver -OR- the client PC with the extension, and then reference it from there?
    If so, how could I do that?

    The images are stored on an external novell server that I don't have any access to from my 9iAS server. I can find the novell box from the windows machines, but I have no direct means of "grabbing" that image ...
    or so I thought.
    I'm looking now as the Oracle FileUpload javabean utility that I can put within a form to let the user click on the view-image button, it will then kick off a procedure to grab the file from the user's mapped network drive, copy the file to the server with an extension and into the directory I want it, and let me then link to the copy of it with a web.show_document command ...
    At least that's the theory. So far all I get is an ORA-105100 error and I've doublechecked and triple-checked my path and classpath settings everywhere the documentation and several notes says to check them. I've had oracle looking at it too, but so far, nada - still working on it though.

  • Question about data extraction from web forms

    I am developing a simple web form in DreamWeaver MX for
    increased accesibility for users who utilize screen reader
    software, as navigating PDF forms is still currently very difficult
    for most of the screen readers to navigate. I was wondering if
    there is a way to take an .asp webform that a user fills out and
    when they hit a print button it would extract the data from the
    form and open an Adobe PDF form and populate the data they entered
    into specific fields within the PDF form which would allow them to
    print an official copy of the form they used the web version to
    complete. Any insight into this possibility is greatly appreciated!
    Thanks,
    AU PSD

    Regex? Lots of indexOf? Parsing...

  • Filling in PDF forms from web forms

    I have acrobot pro, and can build PDF files. What I don't know how to do is build a web form that'll fill in PDFs, and then make a copy to the server, or email the pdf to the person who filled in the form.
    What forum is the correct place to ask this question? I don't want to be irritating people by asking in the wrong place.

    This forum is fine, you just may want to provide more details. Acrobat's help has more information on creating forms, as do a number of tutorials at AcrobatUsers.com.
    Submitting the entire PDF either to a web server or sending it by email is easy, but if it has to work with Reader, the form has to be Reader-enabled. You can do this in Acrobat, but there is a 500 form limit on the number of returned forms Iincluding hardcopies) that you can use data from if you distribute the document to more than 500 users. When you post a Reader-enabled document on a publicly accessible web site, you are effectively distributing it to an unlimited number or people.
    An alternative is to set up the form to submit just the form data to a web server or send it via email. There are no licensing restrictions for this. The form data can then be later imported back into a blank form, stored in a database, or the data file archived.
    Much of what you asked about does not involve Acrobat directly, but rather programming of the server to respond to a form submission.

Maybe you are looking for

  • Is there a way to make it automatically set the ouputs of new tracks to Bus 5? (or something other than Stereo Out?)

    When I add a new track, it is automatically set to Stereo Out, is there a way to make it automatically set to Bus 5?  I use a mix that sends everything through busses and every time I add a track it seems I have to adjust this. Thanks

  • TREX 7.0 to 7.1 Upgrade

    Hi Experts, We currently have TREX 7.0 installed in the lab and wish to upgrade to the new 7.1 version. I am unable to find appropriate documentation for such an upgrade. Please can you advise if such document exists or if I must perform a fresh inst

  • Itunes can't find content I bought on another machine.

    Hi, I login to my Mac with the same Apple! Account as on my PC. When I purchase content on either machine it cannot be found by the other one even though I "check for purchases" and both can see it in the history. Why is this? Thanks.

  • The BIG thread of how to handle import/export 2011-12-06

    I have used Captivate since its birth! There have always been some issues with import/export. I am now using version 5.0.1.625 and still suffer from import/export problems. Actually those problems drive me crazy! I want this community to rise and dem

  • Java.sql.SQLException: Io exception: Socket read timed out

    Hello, I've a interface RFC - JDBC - RFC. When this interface is executing, i have the follow error in RuntimeWorkbench:: 'Unable to execute statement for table or stored procedure. 'TABLAERR' (Structure 'STATEMENT') due to java.sql.SQLException: Io