sap_wapi_start_workflow
Veit Unger
veit.unger at de.ibm.com
Thu Sep 13 10:45:03 EDT 2007
Hello Björn,
you should check what your fancy "from" column draws on.
Because even if you just rely on the standard events to trigger the
workflow, you'll get the user of the issuing transaction passed and you
can bind it to the workflow container (for instance the standard binding:
_evt_creator > _wf_initiator). So there's no need writing your own start
transactions if you just need the creating user passed.
kind regards,
Veit
Dipl. WiInf. Veit Unger
-
eMail: veit.unger at de.ibm.com
Telefon: +(49) 170 914 7650
IBM Global Business Services
Nahmitzer Damm 12 - 12277 Berlin . Germany
--
IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Hans Ulrich Maerki
Geschäftsführung: Martin Jetter (Vorsitzender), Rudolf Bauer, Christian
Diedrich, Christoph Grandpierre, Matthias Hartmann, Thomas Fell, Michael
Diemer
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 14562 WEEE-Reg.-Nr. DE
99369940
"Bjorn Demol" <Bjorn.Demol at oasisconsultants.com>
Sent by: sap-wug-bounces at mit.edu
13.09.2007 16:09
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>
To
"SAP Workflow Users' Group" <sap-wug at mit.edu>
cc
Subject
RE: sap_wapi_start_workflow
Well Sue,
I'm looking for a way to display a username in the wi_creator-field of a
workflow.
Let me try to explain, I'll apologize already if it becomes fuzzy :)
At this client, approvals are don on the portal. So they have a nice task
list there, with the field 'From' as a column. In this column, they want
to see the 'sender' of the workitem.
For my workflow (approval of PO) it says 'workflowsystem'.
Other consultants (who implemented EHR )launch also a flow, and they
solved this problem by launching the flow from a job. So I'm trying to odo
the same. If there's someone out there who has a better idea to solve this
problem, please tell me :)
I'll send you a Duvel (famous beer from Belgium)... :)
kr
Björn
________________________________
Van: sap-wug-bounces at mit.edu namens Keohan, Susan
Verzonden: do 13/09/2007 15:49
Aan: SAP Workflow Users' Group
Onderwerp: RE: sap_wapi_start_workflow
Hi Bjorn,
I just have to ask, why are you trying to use SAP_WAPI_START_WORKFLOW and
filling in release strategies ?
The concept of release strategies is so that events get raised, and
workflows get started without you needing to write your own SAP_WAPI*
calls. If you are doing this as an exercise to get familiar with that
function, then kudos. But you should probably use SAP_WAPI_CREATE_EVENT,
as managing the start of your workflows via events is far better than
starting them directing (IMHO).
If I were testing out SAP_WAPI_START_WORKFLOW (or even
SAP_WAPI_CREATE_EVENT) I would try using a business object that was not
linked to release strategies because I think they just muddy the waters.
Hope this is somewhat helpful.
Sue
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Bjorn Demol
Sent: Thursday, September 13, 2007 9:16 AM
To: sap-wug at mit.edu
Subject: sap_wapi_start_workflow
Hi,
I'm testing the FM sap_wapi_start_workflow, but I'm having some trouble
filling in the container.
The object is BUS2012, I created a new object ZBUS2012.
When I look into the start event, The system transfers the purchaseorder
(which is the object), releasecode and wf_initiator.
When I try the FM, the sy-subrc returns 0, but I don't see an item in the
inbox where I expect the item to appear.
This is my code :
REPORT TEST.
data : l_obj type swotobjid.
data : l_tab type table of swr_cont.
data : lw_tab type swr_cont.
l_obj-objkey = '4500003943'.
l_obj-objtype = 'BUS2012'.
l_obj-describe = 'BUS2012'.
lw_tab-element = 'BUS2012'.
lw_tab-value = l_obj.
append lw_tab to l_tab.
lw_tab-element = 'releasecode'.
lw_tab-value = 'E4'.
append lw_tab to l_tab.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = 'WS20000075'
LANGUAGE = SY-LANGU
DO_COMMIT = 'X'
USER = SY-UNAME
* START_ASYNCHRONOUS = ' '
* DESIRED_START_DATE =
* DESIRED_START_TIME =
* DESIRED_START_ZONLO = SY-ZONLO
* IFS_XML_CONTAINER =
* IMPORTING
* RETURN_CODE =
* WORKITEM_ID =
* NEW_STATUS =
TABLES
INPUT_CONTAINER = l_tab
* MESSAGE_LINES =
* MESSAGE_STRUCT =
* AGENTS =
.
Anyone can tell me what I'm doing wrong ?
thanks !
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070913/6541bef1/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/octet-stream
Size: 9136 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20070913/6541bef1/attachment.obj
More information about the SAP-WUG
mailing list