on 08-03-2006 5:50 AM
Hi,
I am new to the concept of Workflow and Business object.
My requirement is to find a function module which can trigger a worflow from my program in the ABAPeditor,
The function module should allow me to pass two Business object as parameters to it.
I looked in the below FM:
FM:SWU_START_WORKFLOW
The parameters here does not support business object.
Thanks and regards,
A.
Hi Avinash,
You need to use SWE_EVENT_CREATE to create an event in your program and then your workflow
has to listen for that particular event.
This is how the code would be-
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ISUSWITCHD'
objkey = objkey_swtnum
event = evt_name
IMPORTING
event_id = event_id
TABLES
event_container = my_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
<b>objtype</b> is your BOR Object TYPE. The methods of this BOR object would be used in your workflow.
<b>objkey_swtnum</b> should be of type swo_typeidand it is the switch document number.
<b>evt_name</b> is the name of the event to be raised.
The <b>my_container</b> needs to be created in the following way-
<b>swc_container my_container.
swc_create_container my_container.</b>
You can even set elements and tables in a container by using-
<b>swc_set_table
swc_set_element</b>.
These values would go to the workflow that this event would trigger.
Also, have a look at these good links for workflows-
<b>Workflows</b>
http://www.sap-img.com/workflow/sap-workflow.htm
http://www.sapgenie.com/workflow/index.htm
https://sapneth9.wdf.sap.corp/workflow
http://help.sap.com/saphelp_webas620/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
<b>Important Details</b>
http://www.workflowing.com/id18.htm
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.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://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
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://web.mit.edu/sapr3/dev/newdevstand.html
/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.sapgenie.com/workflow/index.htm
<b>For examples on WorkFlow...check the below link..</b>
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://web.mit.edu/sapr3/dev/newdevstand.html
<b>Please Reward Points & Mark Helpful Answers</b>
To mark Helpful Answers ;click radio Button next to the post.
RadioButtons
<b>o</b> Helpful Answer
<b>o</b> Very helpful Answer
<b>o</b> Problem Solved.
Click any of the above button next to the post; as per the anwers
<b>To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers</b>
Regards,
Tanuja.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Avinash,
Do you need to trigger Two Workflow from your Program. I am not able to get your issue Clearly can you please eloborate.
Regards,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue is:
A workflow is to be called/started from an SE38 program.
The workflow has an event listener and a task.
The event listener and the task both require Business object (of type swc_object) as input parameter.
Event listener requires an Instllation Object.
Task requires a property object.
(Its an IS-U workflow, but i believe its no different from any other workflow).
So I was trying to send the workflow parameters throuogh FM "SWU_START_WORKFLOW",. But FM's parameter do not support business objects.
Hi all,
I just implemented my first working automatic workflow call in ERP 6.0. I would recommend using FM SWW_WI_START_SIMPLE and include <cntn01>. This FM has in its interface a table called wi_container. This can used using the normal macro syntax to create BOR objects and set the container elements...
Best Regards,
Frank
Message was edited by:
Frank Rudolf
Hi Avinash,
Use Function Module <b>'SWE_EVENT_CREATE'</b>. You can pass Buss Object Id, Key Field, and Values for the Key Field along with the Event Name which has to be Triggered.
Hope this would have helped you.
Cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.