<br><font size=2 face="sans-serif">Hello Björn,</font>
<br>
<br><font size=2 face="sans-serif">you should check what your fancy &quot;from&quot;
column draws on.</font>
<br>
<br><font size=2 face="sans-serif">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 &gt; _wf_initiator). So there's no need
writing your own start transactions if you just need the creating user
passed.</font>
<br>
<br><font size=2 face="sans-serif">kind regards,</font>
<br><font size=2 face="sans-serif">Veit </font>
<br>
<br>
<br><font size=2 face="sans-serif">Dipl. WiInf. Veit Unger <br>
- <br>
eMail: veit.unger@de.ibm.com <br>
Telefon: +(49) 170 914 7650 <br>
<br>
IBM Global Business Services <br>
Nahmitzer Damm 12 - 12277 Berlin . Germany <br>
<br>
--<br>
IBM Deutschland GmbH<br>
Vorsitzender des Aufsichtsrats: Hans Ulrich Maerki<br>
Geschäftsführung: Martin Jetter (Vorsitzender), Rudolf Bauer, Christian
Diedrich, Christoph Grandpierre, Matthias Hartmann, Thomas Fell, Michael
Diemer<br>
Sitz der Gesellschaft: Stuttgart<br>
Registergericht: Amtsgericht Stuttgart, HRB 14562 WEEE-Reg.-Nr. DE 99369940</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Bjorn Demol&quot;
&lt;Bjorn.Demol@oasisconsultants.com&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">13.09.2007 16:09</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: sap_wapi_start_workflow</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Well Sue,<br>
 <br>
I'm looking for a way to display a username in the wi_creator-field of
a workflow.<br>
Let me try to explain, I'll apologize already if it becomes fuzzy :)<br>
 <br>
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.<br>
For my workflow (approval of PO) it says 'workflowsystem'. <br>
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 :)<br>
I'll send you a Duvel (famous beer from Belgium)... :)<br>
 <br>
kr<br>
 <br>
Björn<br>
<br>
________________________________<br>
<br>
Van: sap-wug-bounces@mit.edu namens Keohan, Susan<br>
Verzonden: do 13/09/2007 15:49<br>
Aan: SAP Workflow Users' Group<br>
Onderwerp: RE: sap_wapi_start_workflow<br>
<br>
<br>
<br>
Hi Bjorn,<br>
<br>
<br>
I just have to ask, why are you trying to use SAP_WAPI_START_WORKFLOW and
filling in release strategies &nbsp;? <br>
<br>
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. &nbsp;If
you are doing this as an exercise to get familiar with that function, then
kudos. &nbsp;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).<br>
<br>
 <br>
<br>
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.<br>
<br>
 <br>
<br>
Hope this is somewhat helpful.<br>
<br>
Sue<br>
<br>
From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf
Of Bjorn Demol<br>
Sent: Thursday, September 13, 2007 9:16 AM<br>
To: sap-wug@mit.edu<br>
Subject: sap_wapi_start_workflow<br>
<br>
 <br>
<br>
Hi,<br>
<br>
 <br>
<br>
I'm testing the FM sap_wapi_start_workflow, but I'm having some trouble
filling in the container.<br>
<br>
The object is BUS2012, I created a new object ZBUS2012.<br>
<br>
When I look into the start event, The system transfers the purchaseorder
(which is the object), releasecode and wf_initiator.<br>
<br>
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.<br>
<br>
 <br>
<br>
This is my code : <br>
<br>
 <br>
<br>
REPORT TEST.<br>
<br>
data : l_obj type swotobjid.<br>
<br>
data : l_tab type table of swr_cont.<br>
<br>
data : lw_tab type swr_cont.<br>
<br>
l_obj-objkey = '4500003943'.<br>
<br>
l_obj-objtype = 'BUS2012'.<br>
<br>
l_obj-describe = 'BUS2012'.<br>
<br>
lw_tab-element = 'BUS2012'.<br>
<br>
lw_tab-value = l_obj.<br>
<br>
append lw_tab to l_tab.<br>
<br>
lw_tab-element = 'releasecode'.<br>
<br>
lw_tab-value = 'E4'.<br>
<br>
append lw_tab to l_tab.<br>
<br>
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'<br>
<br>
EXPORTING<br>
<br>
task = 'WS20000075'<br>
<br>
LANGUAGE = SY-LANGU<br>
<br>
DO_COMMIT = 'X'<br>
<br>
USER = SY-UNAME<br>
<br>
* START_ASYNCHRONOUS = ' '<br>
<br>
* DESIRED_START_DATE =<br>
<br>
* DESIRED_START_TIME =<br>
<br>
* DESIRED_START_ZONLO = SY-ZONLO<br>
<br>
* IFS_XML_CONTAINER =<br>
<br>
* IMPORTING<br>
<br>
* RETURN_CODE =<br>
<br>
* WORKITEM_ID =<br>
<br>
* NEW_STATUS =<br>
<br>
TABLES<br>
<br>
INPUT_CONTAINER = l_tab<br>
<br>
* MESSAGE_LINES =<br>
<br>
* MESSAGE_STRUCT =<br>
<br>
* AGENTS =<br>
<br>
.<br>
<br>
 <br>
<br>
Anyone can tell me what I'm doing wrong ?<br>
<br>
 <br>
<br>
thanks !<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</font></tt>
<br>