Starting Workflow without a Task ID
Hi All,
Is there a way to start a workflow without having a Task ID? Is there an alternate way? Is there a BAPI/FM or an SAP Transaction to accomplish this?
Any help will be greatly appreciated.
Hi developer,
I am not sure whether I have understood your requirement, but if your workflow is event driven, that is has a Start Event, then you can trigger/start the workflow by manually triggering the event by calling the function module SWE_EVENT_CREATE.
You can also start workflows from transaction SWUI,
Regards,
Aditya
Similar Messages
-
Automatic start workflow for ALL records
Hi Experts,
Does anyone know a way to start workflow automatically for ALL records without human interference?
I want to start workflows every day. For instance to recalculate, re-validate, re-assign or syndicate ALL records of a table.
Kind regards,
Job JansenHello Job Jansen
I suppose recalculate and validate all recodrs once a day don't make sense when that records is the same
and records wasn't changing
However, you can use Autolaunch = Threshold with Max Time = 24 hour(for example)
workflow will fire when Max Time say greater then time last launched job.
And few another ways:
1) you can use task sheduler for launch import manager and turn autolaunch workflow when it do import
2) turn automatic import process(MDIS) once a day and use workflow for add records
3) developed Java application which used MDM JAVA API for start workflow
Regards
Kanstantsin -
Generic object services (GOS) - Start workflow box is allways empty
Dear colleagues,
i have installed a brand new IDES ERP 6.0 successfully but when entering a number of standard transactions like mm02, va03, fb03 etc and trying to execute the GOS toolbox, I can never start any workflow. I click on the 'start workflow' button of the GOS-toolboy but the selection box is allways empty. Did I miss anything? Since there are so many BOR objects that apply to the objects of the standard transactions, there should be at least something to start. For example BOR BUS1001 (material master): When in MM02, why does the GOS-toolbox for workflows not show the related workflows that use BUS1001?
Thank you very much for your answers
Best regards
DanielUdo,
You should start a new discussion - you'll get more responses.
Anyhoo, to make a workflow appear in the GOS 'start workflow' list, just follow these simple rules:
- confirm which BOR object is involved in your transaction (eg BUS1001006 for MM03)
- make sure that the BOR object is a mandatory input of your workflow
- make sure that there are no other mandatory inputs
- make sure that the workflow (WS*) is set to 'General Task' (nb this is client dependent)
Once all these things are done, refresh the buffer (SWU_OBUF) and it should work.
cheers
Paul -
Starting Workflow from Generic Object Services
Hi All.
We are on ECC6. In transaction MM02 when I excute 'Start Workflow' from Generic Object Services, no workflows are found. Can anyone help me with the following issues;
1. What is the underlying object in transaction MM02 (I believe it is BUS1001006)
2. How can i ensure that the proper workflows in this transcation are started through some
customisation, enhencement or user-exit.
Regards.I think you have to maintain the Workflow Template as General Task and then only it will appear in the GOS.
Thanks
Arghadip -
Error while starting workflow from warning msg or error msg?
Hello experts,
I m tryin to start and workflow from error msg of ME21...whn we juss click enter without entering any value, it gives error as -" enter Purch org ". whose msg class - ME and msg num - 083.
thn from t-code SWUY,i creating and linked workflow for the msg.
Now while testing,when m goin to t-code ME21, and goin to the long text of tht error msg.....the button to start workflow is not getttin enabled. tht is still disable.
PLease tell r thr any other back ground settings to be done for this.
Regards
NitinHi,
Your workflow landed up in Error and you want to Restart it right.
Go to SWPR and check that workflow is there.
If found, select it and Restart it.
Regards,
Surjith -
Starting workflow from messages
Hi,
I am trying out the possibility of starting workflows when a message is raised (Error/Warning). Once i create the message to workflow linkage i am able to start the workflow from the message long text.
In this scenario is there a way to start the workflow automatically whenever that particular error message occurs?
For example consider transaction PA30. Now if i try to enter a character value in place of personnel number i get an error message "Enter a Numeric Value". Now once i link the workflow to the message i am able to start the workflow manually. But can this be done automatically on the occurence of this message?
Thanks,
Prasath NHi Karun,
Thanks for your response. I have done this already and it is workfing fine when i start the workflow manually. I would like to know if there is an option to start the workflow <b>automatically (without pressing the workflow button)</b> when the message is raised.
Thanks,
Prasath N -
Starting Workflow from VA02/03 Problem
Hi,
I have a problem, I want to start the workflow in VA03 Transaction, from menu "Service Object"==>" Workflow"==>"Start Workflow", but I can't see the workflow I want to start, the window is empty, this does not happen in our Quality an Production System, I can see it there in VA03 and in SWUI transaction, but in our Development System is not possible to see it, is there any configuration missing or some tasks thet need to be performed to see the workflow to start it manually from VA02 & VA03 Transactions??.
Best Regards,
Moisés.Hi Moisés,
If you want a workflow to be triggered via GOS then it must be in the Start Workflow list in transaction SWUI and in order for it to be in the list it must not have an mandatory import elements and you must also be a possible agent (Set the agent assignment of the workflow template to General). Can you make sure the above 2 conditions are met and then test.
Regards,
Eddie -
Error when starting an analog read task with DAQmx 8.5 while 8.0 works
I am programing a measurement application with Borland C++ Builder 6.
Problem: Every time when I try to start an analog input task with the DAQmxStartTask() command of DAQmx 8.5 the program execution is interrupted and the error message "Invalid floating point operation" is given out. This problem does not occur with DAQmx 8.0 !Hello Johannes,
the error occurs every time, when I try to start an analog voltage input task either with a simulated or a real device (PXI-4472). Changing any of the measurement parameters did not have any effect. I also tried one of the C-source code examples, which came with the original NI-documentation of the DAQmx 8.5 driver, resulting also in the same error.
However, starting a counter task with a simulated PXI-6601 device worked without any problems !
Do you have any ideas ?
Regards,
Thomas -
Hi,
My friend asked me to post this question in his name here.
He wants to create a simple workflow in PM. After user creation of the equipment in IE01 workflow need to be started and give the task for asset number creation to the next user.
Do you have any manuals like "workflow for dummies" )?
BR
Saso
PHi
Workflow automates the steps and activities in a business process according to predefined procedures and rules.
Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
Workflow tracks each and every step in the process flow and maintains an ongoing status.
Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
Check the below links u will get lot of info..
http://www.sap-press.com/product.cfm?account=&product=H950
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Go through the following links on FORK :
http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
http://www.insightcp.com/res_23.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
Check these links.
http://www.sapgenie.com/workflow/index.htm
/people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
Debug a workflow.
This has a step by step procedure :
http://fuller.mit.edu/workflow/debugging.pdf
www.erpgenie.com/sap/workflow/debugging.htm
http://www.erpgenie.com/workflow/debugging.htm?2b5de440
Workflow tutorials with step-by-step and with screenshots are available at
http://www.****************/Tutorials/Workflow/Workflow.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
Regarding Work Flow
work flow scenarios.
1. applying for a leave.
2. approval process.
3. material creation process.
4. mainly work flow is for notification purpose.
chk this links
http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.erpgenie.com/workflow/index.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
http://www.insightcp.com/res_23.htm
A good tutorial
http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
/people/alan.rickayzen/blog
/people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
a good book
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-press.com/downloads/h950_preview.pdf
Check the following PDF
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
also seach the workflow forum: SAP Business Workflow
Transactions
AWUV Wizard for event creation Definition tools -> Event creation -> Set up with wizard
MCA1 Workflow Information System Reporting -> Workflow Information System (WIS)
OOAW Evaluation paths
PFAC Maintain standard roles
PFAC_CHG Change roles Definition tools -> Standard roles -> Change
PFAC_DEL Delete roles Definition tools -> Standard roles -> Delete
PFAC_DIS Display roles Definition tools -> Standard roles -> Display
PFAC_INS Create roles Definition tools -> Standard roles -> Create
PFOM Maintain assignment to SAP organizational objects Definition tools -> SAP org. objects -> Create assignments
PFOS Display assignment to SAP organizational objects Definition tools -> SAP org. objects -> Display assignments
PFSO Organizational environment of a user
PFT Maintain customer task
PFTC General task maintenance
PFTC_CHG Change tasks Definition tools -> Task/Task groups -> Change
PFTC_COP Copy tasks Definition tools -> Task/Task groups -> Copy
PFTC_DEL Delete tasks Definition tools -> Task/Task groups -> Delete
PFTC_DIS Display tasks Definition tools -> Task/Task groups -> Display
PFTC_INS Create tasks Definition tools -> Task/Task groups -> Create
PFTR Standard task for transaction
PFTS Standard task
PFWF Maintain workflow task (customer)
PFWS Maintain workflow template
PPOC Create organizational plan Definition tools -> Organizational plan -> Create
PPOM Maintain organizational plan Definition tools -> Organizational plan -> Change
PPOS Display organizational plan Definition tools -> Organizational plan -> Display
SWDA Ongoing Settings Administration -> Settings
SWDC Workflow editor administration data
SWDM Business Workflow Explorer Definition tools -> Business Workflow Explorer
SWE2 Display and maintain event type linkage Utilities -> Events -> Type linkages
SWE3 Display instance linkages Utilities -> Events -> Instance linkages
SWE4 Switch event log on/off Utilities -> Events -> Event/log -> On/Off
SWEC Link change documents to events Definition tools -> Event creation -> Change documents -> Linkage
SWED Assignment of change document objects to object types Definition tools -> Event creation -> Change documents -> Define workflow properties
SWEL Display event log Utilities -> Events -> Event log -> Display
SWF3 Workflow Wizard Explorer Definition tools -> Wizards -> Workflow Wizard Explorer
SWF4 Workflow Wizard Repository Definition tools -> Wizards -> Workflow Wizard Repository
SWI1 Selection report for workflows Utilities -> Work item selection
SWI2 Work item analysis Reporting -> Work item analysis
SWI3 Workflow outbox Runtime tools -> Workflow outbox
SWI4 Task analysis Reporting -> Task analysis
SWI5 Workload analysis Reporting -> Workload analysis
SWI6 Object links Runtime tools -> Object links
SWI7 Workflow resubmission folder From Integrated Inbox or Workflow Outbox
SWI8 Error overview Part of administration of workflow runtime system (transaction SWUF)
SWL1 Settings for dynamic columns Customizing, part of ongoing settings
SWLC Check tasks for agents Utilities -> Consistency check -> Organizational assignment
SWLD Workbench for Workflow 4.0
SWLP Copy plan version
SWLV Maintain work item views Customizing, part of ongoing settingS
SWLW Workbench for Workflow 3.0
SW01 Business Object Builder Definition tools -> Business Object Builder
SW06 Customizing object types From Business Object Builder, choose Settings -> Delegate -> System-wide
SWU0 Event simulation Utilities -> Events -> Simulate event
SWU2 RFC monitor Utilities -> Workflow RFC monitor
SWU3 Customizing consistency check Utilities -> Customizing
SWU4 Consistency check for standard tasks Utilities -> Consistency check -> Task -> Standard task
SWU5 Consistency check for customer tasks Utilities -> Consistency check -> Task -> Customer task
SWU6 Consistency check for workflow tasks Utilities -> Consistency check -> Task -> Workflow task
SWU7 Consistency check for workflow templates Utilities -> Consistency check -> Task -> Workflow template
SWU8 Switch technical trace on/off Utilities -> Technical trace -> On/off
SWU9 Display technical trace Utilities -> Technical trace -> Display
SWUD Diagnostic tools Utilities -> Diagnosis
SWUE Trigger event Utilities -> Events -> Generate event
SWUF Runtime system administration Administration -> Runtime system
SWUG Workflow start transactions Definition tools -> Workflow start transactions
SWUI Start workflows From the R/3 initial screen, choose Office -> Start Workflow
SWUS Start tasks Runtime tools -> Start workflow
SWUY Wizard for message linkage to workflow Definition tools -> Wizards -> Create "Call workflow from message"
SWX1 Create notification of absence
SWX2 Change notification of absence
SWX3 Display notification of absence
SWX4 Approve notification of absence
SWXF Form applications: Access point Environment -> Demo examples -> Fill out form
Reports
RSWWWIDE Delete work items
RHSOBJCH to fix PD Control Tables
Tables
SWW_OUTBOX - Lists Workflows in outbox together with status
SWW_CONT - Container Contents for Work Item Data Container
SWW_CONTOB- Container Cont. for Work Item Data Container (Only Objects)
SWWLOGHIST- History of a work item
SWWORGTASK- Assignment of WIs to Org.Units and Tasks
SWWUSERWI - Current Work Items Assigned to a User
SWWWIHEAD - Header Table for all Work Item Types
Regards
Anji -
Workflow - Assign serial tasks
Hi,
Perhaps I'm overthinking this or I just have got my brain in a knot, but I'm so confused. What I want to do using Designer is set up a workflow that does this (at its most basic):
InfoPath form is submitted
1) Send a task to person A (listed on the form)
2) When A is done, send a different task to B
3) When B is done, send a different task to C
(Etc.) There are 6 individual tasks that make up this "project". There maybe a document created, maybe not.
I want to get a little fancier in that there are due dates and would need to set reminders but I'm struggling with task vs approval. I created a task list and have the form adding a task to the list, but this isn't really getting me where I need to
go with tracking what's done.
Anything else that can get my head in the right place would be appreciated.Hi,
According to your description, my understanding is that when a InfoPath form is submitted, you want to send tasks to A,B,C,D,E,F with serial (one at a time).
For your issue, you can create a SharePoint Designer workflow with "start workflow automatically when an item is created". Then you can set approval task with Participants: A;B;C;D;E;F , Serial (one at a time). Also you can set Due Date for Task
Process.
For more information, please refer to these blogs:
http://plexhosted.com/billing/knowledgebase/226/How-to-create-a-simple-approval-workflow-in-SharePoint-Designer.html
http://www.nothingbutsharepoint.com/2013/02/25/5-steps-to-enhance-sharepoint-2010-approval-workflow-aspx/
Thanks,
Eric
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]
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Workflow definition of task 'WS90123456' cannot be activated
Hello Experts,
I am trying to activate a workflow on document event change, and i am getting this error in the event trace: Workflow definition of task 'WS90123456' cannot be activated
In the receiver data i have:
receiver type : ws90123456
object key:
receiver fm: SWW_WI_CREATE_VIA_EVENT_IBF
rfc destination:
check fm
receiver type fm:
message: Workflow definition of task 'WS90123456' cannot be activated
any ideas as to why this is happening ?
The workflow has no errors and it is being generated correctly with no warnings and no errors
points are awarded,
regardsHi
Go to SWDD and activate the workflow template. Then go to SWU_OBUF and refresh the buffers, and then refresh the org environment using the option in SWUD-->Problem:Workflow Does not start menu path. Test your event again
If still no joy goto SWUD go to Test Environment and select simulate event taking note of the messages code displayed.
Regards
Gareth -
"starting workflow" window remains open
Hi,
I create a very simple workflow in sqldeveloper4 for clustering a data source with O_Cluster algorithm. when I run it, "starting workflow" window appears and remains for a long time. I will force to close sqldeveloper from Task Manager to get rid it!
do u have any suggestion?HI
you need to have the workflow jobs tab open.
to do this first go click on the Tools(I think) then Oracle Data Mining and then click on Make Visible. Then open the workflow jobs tab.
then run your workflow and it should work
(sorry I don't have the tool open in front of me so hopefully you can find these options from the menu) -
Starting workflow with HTTP-Post
Hello,
like I wrote in Starting workflow with HTTP-Post I have a problem with starting a workflow with a http-post:
I have an installation of SAP ERP 2005 SR2 IDES on Win2003 SR2 SP2 and want to start a simple workflow with an external application. Therefor I created an elementary test-workflow and set the general task flag so everybody is allowed to start it. So far everything work fine as I start it manually.
Now I want to start the workflow by an external application over a HTTP-Post as described in
http://help.sap.com/saphelp_47x200/helpdata/EN/54/de9e3887d6174fe10000009b38f842/content.htm
I configured the webserver (Customizing Web-Server) as follows:
Service: WebFlow (Intranet)
Address: http://192.168.0.216:8000/
Path: SAP/BC/WORKFLOW_XML/?
and sent a post via perl to http://192.168.0.216:8000/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=WS99900004
<?xml version="1.0" ?>
<WfMessage Version="1.0" xmlns="http://www.wfmc.org/standards/doc/WF-XML">
<WfMessageHeader>
<Request ResponseRequired="No">
<Key>http://192.168.0.216:8000/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=WS99900004</Key>
</WfMessageHeader>
<WfMessageBody>
<CreateProcessInstance.Request StartImmediately="true">
<ObserverKey>http://192.168.0.224</ObserverKey>
</CreateProcessInstance.Request>
</WfMessageBody>
</WfMessage>
The Web-Server returns
C:\FH\SAP\perl-scripte>perl http-post.pl
HTTP/1.1 200 OK
Server: SAP Web Application Server (1.0;700)
Content-Length: 0
Content-Type: text/plain
Client-Date: Sun, 01 Jun 2008 11:00:24 GMT
Client-Peer: 192.168.0.216:8000
Client-Response-Num: 1
but it seems that nothing happens.
I also tried to post the XML via html-form-field with the same result.
Did I forgot something essential?Hello Daniel
It's 6 years after you posted your question, but I found your post very useful and thought it would be worth updating for future reference.
I've just managed to trigger a workflow via http.
URL :
http://server.domain:8000/sap/bc/workflow_xml?sap-client=110
Java :
URL obj = new URL(url);
URLConnection con = (URLConnection) obj.openConnection();
String userpass = "username:password";
String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());
con.setRequestProperty ("Authorization", basicAuth);
con.setRequestProperty("Content-type", "text/xml");
con.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
wr.write( xml.getBytes("UTF-8") );
wr.flush();
wr.close();
You can then read the response.
I found that until I added the sap_client parameter I couldn't debug in CL_HTTP_WORKFLOW_XML->IF_HTTP_EXTENSION~HANDLE_REQUEST. Then I found that the content type has to be "text/xml".
I set the xml variable (the data sent to ECC) to :
<?xml version="1.0" ?>
<WfMessage Version="SAP.1.0" xmlns="http://www.wfmc.org/standards/doc/WF-XML">
<WfMessageHeader>
<Request>
<ResponseRequired>Yes</ResponseRequired>
</Request>
<Key>HTTP://server.domain:8000/SAP/BC/WORKFLOW_XML/?~localkey=WS90000074</Key>
<Operation>CreateProcessInstance</Operation>
</WfMessageHeader>
<WfMessageBody>
<CreateProcessInstance>
<Key>HTTP://server.domain:8000/SAP/BC/WORKFLOW_XML/?~localkey=WS90000074</Key>
<ContextData>
<YOUR_CONTEXT_VARIABLE>x</YOUR_CONTEXT_VARIABLE>
</ContextData>
<StartImmediately>Yes</StartImmediately>
</CreateProcessInstance>
</WfMessageBody>
</WfMessage>
regards
Steve -
Cannot Start Workflow Service from Service Manager
Hello Professionals,
I have a problem with starting Workflow service from Service manager,
I have configured all the settings and connection to database was successful.
However, after closing the settings window and try to start the workflow service, i got "Cannot start Service; configuration is not correct or cannot connect to database"
What may cause this issue?
Thanks and Best Regards,Hi,
Please check SAP note:
2019304 - Workflow server connection stops if many workflow
instances with script tasks run simultaneously
Thanks & Regards,
Nagarajan -
Does deleting Workflow also Delete Task List Items
I have Sharepoint 2010 and I am using the standard workflow.
I have created a new workflow and want to delete the previous workflow to avoid use.
If I remove the previous workflow, what happens to the items in the Task List associated with the workflow? Do they remain undisturbed or are they also deleted.Hi,
According to your post, my understanding is that you wanted to know the action of the items in the Task List associated with the deleted workflow.
In my environment, I create a task workflow using SharePoint Designer and then start the workflow in two items. No matter whether I approve the tasks or not,
If I delete the workflow through UI: Click the Ribbon->List->Workflow Settings->Remove a workflow, the two tasks will be disappeared in the task list. However, the workflow will be remian in the SharePoint Designer.
If I republish the workflow in the SharePoint Designer, the workflow will be associated to the list again.
If I delete the workflow through the SharePoint Designer, the two tasks will be also disappeared in the task list. And the workflow will be removed in the Workflow Settings.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
Need help: my Ibook fell and can't get up! (screen dim, have run tests)
Cross posted from displays, but I have found it is not a "display" issue: (also, not quite sure where this should "go", mods feel free to move to a more appropriate forum) First: I have searched and tried several things... OK, I took a fall commuting
-
TR Error Message no. FTR_TRD012
I have configured new Product type for Term Loan. while creating new contract (TM_51) it is giving error message . could you pls help us how to solve Recording position management: Error during distribution 1000 Message no. FTR_TRD012 Diagnosis Proce
-
Non of the button including the call and hang up button are working i can only use the trackpad. anyone know how to fix it?
-
Import only the rows of emp table from Test into emp table of Prod
hi, Test Instance: ========= I have a table "emp". I want to take export of it. Prod Instance: ========= Table with name "emp" already exists. I want to import only the rows of emp table from Test Instance into emp table of Prod Instance. regards, ch
-
Hi experts, I've created a form through screenpainter. The form has a matrix item. The matrix have 3 combo box columns and 1 edittext column. Question 1. I've added ValidValues to the 1st combo boxes throgh the xml. The valid values have a paired val