Workflow execution from Web

Hi
I have not worked on forms part regarding workflow.
I have a scenario where in when a workflow is started, work items are required to be executed from Portal. Here underlying tasks when the work item is executed, will be a form ( which might be used to display or modify the data.)
Wanted to know what approach has to be taken so that workflow can be executed from web?
I understand in case of NW04s, we have Adobe forms.Also wanted to know how Adobe form technique can be used in case of Workflow?
Thanks in advance
Regards,
Akshay Bhagwat

Hi Akshay,
Basically what you need to do to execute a workitem from the web is to install the Knowledge Management functionality of Netweaver which will give you the Universal Worklist. 
The worklist is configured to recognize workitems from the R/3 system.  That is all that is required. (The workitems will still be accessable in R/3 in addition)
The default visualization in the UWL is the SAP Gui for HTML which gives you a screen that pretty much duplicates what you see in R/3.  If you want a more Web like screen you can use transation SWFVISU and associate a specific workflow task with another method of visualization like a WebDynpro or an Iview.  This requires some additional configuration in the UWL for this and you also have to build the Iview or WebDynpro
If your users find the SAP gui for HTML acceptable it's just a matter of config.
Look for a document called "How to Configure the Universal Worklist" that should be available for download to get the details of the necessary configuration.
Hope this helps.
Brent

Similar Messages

  • Best practice for workflow triggering from Web Dynpro UI

    Hello, workflow community!
    I'm working on a task which allow to trigger the workflow by clicking a button in Web Dynpro UI. As always, there are multiple ways to do that, for instance, to use SAP Workflow API (SAP_WAPI_START_WORKFLOW) or to raise an event upon the button click, which will be caught by workflow template.
    In my opinion, the optimal solution is to call FM, which will call ABAP-class, raising an event, which, in turn, will be caught by workflow template. In this case, FM will service kind of wrapper, where we can implement some additional checks if needed.
    But the question is what approach is the best practice — to raise an event or use SAP_WAPI_*?
    Thanks.

    let combine, use SAP_WAPI_CREATE_EVENT
    usually I would not recommend creating a workflow directly (SAP_WAPI_START_WORKFLOW) since when I look for workflows in a system I usually start from SWE2 (the event linkage) which uses events so the workflow you start by SAP_WAPI_START_WORKFLOW will not be seen there, also SWE2 gives you better control for starting the workflow, you can easily deactivate an event linkage. finding where you called the workflow by SAP_WAPI_START_WORKFLOW will be more difficult and deactivation will require a code change.
    so use events, and start them by SAP_WAPI_CREATE_EVENT
    Also pay attention that you have a check function module option in SWE2.

  • Remote PowerShell script execution from web page

    I am building a web interface for Active Directory for a school project. (It will NOT touch the Internet, it is for intranet use.) I want to click a "button" on my interface and execute a PowerShell script on a server. (example: Clicking on "AD Users" would execute a PS script to get a list of users) Does anyone know a good approach to accomplish this? I can nandle writing the PowerShell scripts, I am just not sure what the best way to call them from a web interface would be. Any reference or information would be appreciated.

    hi igor
    i am actually working on a simillar project , i'm planning to publish it as an open source in codeplex
    the idea is that you have to know another programming language like VB , C# ... in my case i used ironpython
    ASP.NET , while ironpython calls powershells command using system.managment.automation through runspace
    iron python only handles the web interface stuff , like button click events , and handling output stuff from powershell
    you can convertto-html cmdlet from powershell it will make your life alot easier :)
    G

  • What triggers workflows execution from IDocs

    I have set up a process that triggrs workflows from IDocs by setting the Process code to 'Process by task'.
    In some cases, when the workflow falls over, it would be easier to create a new workflow rather than fix the old (the workflow has checks in so that it will not create duplicate documents at any point).
    I would like to write a restart report that allows an IDoc to be reprocessed using a new workflow, but I don't see how it is triggered; it is not via an event because the workflow does not have a triggereing event.
    Can somebody tell me what the function module is that triggers the workflow, or if it is a report program?
    Kind regards,
    Tony.

    Found it: it is IDOC_START_INBOUND.
    Bit of a giveaway really.
    - Tony.

  • 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

  • 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

  • Workflow not proceeding, when decision workitem is executed from WEB UI

    Hi Gurus,
    We are using the standard user decision task(TS00008267) in a custom workflow.If we execute the Decision task workitem from the SAP Inbox(backend SAP GUI) then if  we see the workflow log the outcome of the decision task is being populated in WIRESULT  & _RESULT fields and the flow is proceeding further and the workflow is working fine.
      But If we execute the same Decision task workitem from the CRM Portal worklist (WEB UI) and see the workflow log the Outcome is being populated in Process & Process fields  Overwriting WIRESULT  & _RESULT  the field names. The decision task status is set to 'Completed' and the workflow is not proceeding further and the workflw status remain 'in process'.
    I am not sure whether any settings to be made in the backend to make it work and flow the data from WEB UI to bakend? if so please let me know the setings . or
    Please let us know the solution.
    regards,
    Sateesh.

    Hi Govil,
       Thanks.
    The agent assignent is fine and the task is also made as general task . Even the object  i am using is standard 'BUS2000120' not  the custom one.
    i feel the problem may be due to someworkflow settings between Web UI and backend. Let me know if any settings like such (apart from SWU3).
    Any more suggesstions please????
    Regards,
    Sateesh

  • SP 2013 Designer Workflow problems retrieving data from Web Service

    Hi all,
    I am creating a SharePoint 2013 Designer Workflow, and I am having trouble retrieving data from a web service. The web service URL is
    http://services.odata.org/V2/Northwind/Northwind.svc/Customers and the problem I am having is with the SharePoint Designer Workflow “Call HTTP Web Service” action URL. The URL I am
    having problems with is shown below:
    http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax
    or
    http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax&$format=json
    The SharePoint 2013 Designer workflow works OK if I try to retrieve two items like "CompanyName" and "ContactName", but when I try to retrieve three or more items the workflow doesn’t work it just pauses
    with no error message. The URL that works OK is shown below:
    http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CompanyName,ContactName
    or
    http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CompanyName,ContactName&$format=json
    Does anyone know why I cannot retrieve more than two items from a web server? Am I making a mistake with the URL?
    I hope you can
    Colin

    Hi Amit,
    According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
    For troubleshooting this issue, please provide the more detailed code.
    Here are some similar posts, please check if they are useful:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
    http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
    http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • 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.

  • Issue of invoke wf_engine function from web service client.

    hi,
    I want to update work flow item attribute from web service client through soa gateway. but got the below exception:
    Error Description Error occured while service was processing.
    Error Details oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: Exception returned from JCA Service Runtime. file:/pim/oracle/DEV/inst/apps/DEV_pimenv/soa/PLSQL/1318/SETITEMATTRTEXT.wsdl [ SETITEMATTRTEXT_ptt::SETITEMATTRTEXT(InputParameters) ] - WSIF JCA Execute of operation 'SETITEMATTRTEXT' failed due to: Error while processing an API interaction execution. An error occurred while processing the interaction for invoking the WF_ENGINE.SETITEMATTRTEXT API. Cause: oracle.tip.adapter.apps.AppsContextValidationException: Cannot set Context ; nested exception is: ORABPEL-11812 Error while processing an API interaction execution. An error occurred while processing the interaction for invoking the WF_ENGINE.SETITEMATTRTEXT API. Cause: oracle.tip.adapter.apps.AppsContextValidationException: Cannot set Context Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD. Contact oracle support if error is not fixable. at oracle.apps.fnd.soa.provider.services.jca.JCAHandler.invoke(JCAHandler.java:173) at oracle.apps.fnd.soa.provider.services.jca.JCAHandler.handleRequest(JCAHandler.java:120)
    it indicate " cannot set context". but there is no method of wf_engine api to set it.
    Thanks,
    Rock

    Hi, Buddy,
    Did you fix your issue?
    Now, I have the same issue, EBS version is 12.1.3. Using Soapui invoking PL/SQL, then go back to SOA monitor to check the error message.
    Could you please give me some advises?
    Thanks,
    Jackie

  • Call / trigger an ECC workflow step from PI ?

    Hi,
    For a flow "ext (file) -> PI -> ECC (workflow)", from PI, I need to run / execute / trigger () a workflow step in ECC, which already exist. I think that I can acheive this by creating an abap proxy in ECC in which I will call a Bapi or Method to run / execute / trigger () this workflow step. I don't know exactly how for the moment (in parallel I'm doing search about it), but that's not the matter.
    before to waste time by searching in this way, what's the best solution to call an ECC workflow step from PI ?
    Many thanks.
    Mickael
    (*) maybe I don't use the good terminology. Sorry.

    hi Shabarish,
    I'm confortable with web service, IDoc, RFC/bapi and abap proxy (and ...), but here, I prefer to use abap proxy (asynch + sxmb_moni in ecc) except if there is another better approach
    else as in PI we have ccBPM, so a workflow , as in ECC we have also workflow , does my approach (abap proxy & call method) is the good one ? or is there a better way between these two workflow tools: PI + ECC ? like a standard "workflow module" or a workflow "connexion" ? (I fear I know the answer but I would prefer to be sure),
    Note: I'm in PI 7.11 SP06 and ECC 6.0.
    Regards.
    Mickael

  • Workflow integration with Web/Portal

    Hi All,
    I have been working on workflow front but only limited to R/3 front.
    Can anyone guide me as to steps involved for making worklfow capable of executing from Web or portal?
    Also would like to know what all things I should start to learn in order that I will be able to comfortably develop a small workflow scenario which can be executed from portal.
    e.g. I have heared about transactions SWFVISU,WF_EXTSRV QISRSCENARIO etc at various places. <b>But wanted to know step by step approach</b> (i.e whether I should look for SWFVISU first then WF_EXTSRV what are they exactly used for)and information about all the involved activities.
    Your any help is  appriciated.

    Hi Akshay,
    Coming to workflows that are executable in Enterprise Portal - Universal WorkList...
      -> Workitem calling a BSP Application.
      -> Workitem calling WD Application.
    I worked much on the second front, so lemme explain you something which I know. Instead of calling R/3 Based Form / Transaction as a workitem, you can call an Adobe Interactive Form / Webdnypro Application.The link between the Standard task and Webdnypro Application is done in <i><b>SWFVISU</b></i> Transaction.
    In the similar way, the ESS-Leave Service is also integrated(Leave Workitem calls the Leave WD Application). Please refer <i>WS12300111</i> template to get a fair idea.(Refer Leave Service Customizing in this link ... http://help.sap.com/saphelp_erp2004/helpdata/en/e6/ecec4082008631e10000000a1550b0/frameset.htm )
    To get idea of<b> ISR/PCR</b> Framework, please refer the following link
    <i>http://help.sap.com/saphelp_erp2004/helpdata/en/4e/3120386827c23ce10000009b38f842/frameset.htm</i>
    This <b>ISR/PCR</b> Framework involves Creation of Scenarios(in <b>QISRSCENARIO</b> txn),Development of Adobe Forms for the respective scenarios(in <b>SFP</b> txn.),related Workflow development and EP Content Development(IViews that call <b>IsrForm</b>,<b>IsrFormApprove</b> Standard WD Applications) to deploy these Forms in Enterprise Portal.
    Also refer this link for more info on ISR/PCR
    <i>https://websmp201.sap-ag.de/isr</i>
    For information about ADOBE FORMS DEVELOPMENT,Please refer the following links.
    <i>https://websmp201.sap-ag.de/adobe
    https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/21e4975d-0501-0010-1db9-8c45d832670a</i> [original link is broken]
    Please note that this ISR Framework requires import of ESS & MSS Business Packs on Enterprise Portal.
    For getting some idea about these ISR/PCR Based workflows, you can refer standard Workflows - <b>WS50000041</b> / <b>WS50000031</b>.
    And another way of developing the EP Based workflows are...
    Integrate the Custom WD Applications in our Workflows. I mean, the Custom WD Application that are developed using Java WD or ABAP WD are linked to a standard task using the <b>SWFVISU</b> Transaction.
    Coming to the BSP based stuff, we use WF_EXTSRV transaction to create a new Standard Task that calls the BSP Application(with all the required Import/Export Application Parameters).
    The <b>UNIVERSAL WORKLIST</b> in your Enterprise Portal must be configured in prior.
    I hope this information must be useful...
    Regards,
    <i><b>Raja Sekhar</b></i>
    Message was edited by: Raja Sekhar

  • CS6: DistributedCOM Error id: 10016 when open pdf from web page in Win8.1

    For example here below I've got the issue: 
    http://modemwifi.it/wp-content/uploads/asus-dsl-n55u.pdf
    Adobe Acrobat X pro V 10.1.8:
    DistributedCOM Error id: 10016 when open pdf from web page.
    Nome registro: System
    Origine:       Microsoft-Windows-DistributedCOM
    Data:          04/11/2013 19:09:19
    ID evento:     10016
    Categoria attività:Nessuna
    Livello:       Errore
    Parole chiave: Classico
    Utente:        PC-PIERO\Piero
    Computer:      Pc-Piero
    Descrizione:
    Le impostazioni delle autorizzazioni impostazioni predefinite del computer non concedono l'autorizzazione di Attivazione in Locale per l'applicazione server COM con CLSID
    {B801CA65-A1FC-11D0-85AD-444553540000}
    e APPID
    {2EAF0840-690A-101B-9CA8-9240CE2738AE}
    all'utente Pc-Piero\SID Piero (S-1-5-21-3453328585-262132574-2759341577-1001) dall'indirizzo LocalHost (tramite LRPC) in esecuzione nel SID del contenitore di applicazioni Non disponibile (S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394). Per modificare tale autorizzazione di sicurezza, è possibile utilizzare lo strumento amministrativo Servizi componenti.
    XML evento:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10016</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-11-04T18:09:19.468877700Z" />
        <EventRecordID>14806</EventRecordID>
        <Correlation />
        <Execution ProcessID="768" ThreadID="776" />
        <Channel>System</Channel>
        <Computer>Pc-Piero</Computer>
        <Security UserID="S-1-5-21-3453328585-262132574-2759341577-1001" />
      </System>
      <EventData>
        <Data Name="param1">impostazioni predefinite del computer</Data>
        <Data Name="param2">Locale</Data>
        <Data Name="param3">Attivazione</Data>
        <Data Name="param4">{B801CA65-A1FC-11D0-85AD-444553540000}</Data>
        <Data Name="param5">{2EAF0840-690A-101B-9CA8-9240CE2738AE}</Data>
        <Data Name="param6">Pc-Piero</Data>
        <Data Name="param7">Piero</Data>
        <Data Name="param8">S-1-5-21-3453328585-262132574-2759341577-1001</Data>
        <Data Name="param9">LocalHost (tramite LRPC)</Data>
        <Data Name="param10">Non disponibile</Data>
        <Data Name="param11">S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1 277922394</Data>
      </EventData>
    < /Event>
    How can I solve this problem?
    Thanks

    // I got this from an Action (I�m using Struts)
    java.sql.Blob file=(java.sql.Blob)request.getAttribute("PDFfile");
    String filename=(String)request.getAttribute("filename");
    try{
      int iLength = (int)(file.length());
      response.setHeader("Content-type", "application/pdf");   
      response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"");
      response.setHeader("Expires","0");
      response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
      response.setHeader("Pragma","public");
      response.setContentLength(iLength);
      ServletOutputStream os = response.getOutputStream();
      InputStream in = null;
      in = file.getBinaryStream();
      byte buff[] = new byte[1024];
      while (true) {
          int i = in.read(buff);
          if (i<0) break;      
          os.write(buff,0,i); 
      os.flush();
      os.close();
    } catch(Exception ex){
       out.println("Error while reading file : " + ex.getMessage());
    }and now it�s running !!! I�m not using response.setContentType(...) and I do this in response.setHeader("Content-type", "application/pdf"). And I use response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"") instead of response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");

  • Remove album from Web Gallery (not in Iphoto)

    I have a album in my Web Gallery but it's not in my IPhoto. I am trying to remove it from Web Gallery but can not figure out how?

    Welcome to the Apple Discussions. Go into iPhoto's Preferences/Web Gallery. If the gallery is listed then select it and hit the Stop Publishing button.
    If the gallery is not listed then mount your iDisk and go to the iDisk/Sites/Web/_gallery folder. If you have more than one gallery you'll have to look inside each of the gallery folders (they are just numbered and hard identify which is which) to determine which is the gallery you want to delete. When you find it drag it to the trash.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

Maybe you are looking for