<br><font size=2 face="Arial">Hi Jocelyn,</font>
<br><font size=2 face="Arial">That was quite useful but I did notice that
when a workitem was executed the event STATE_CHG was published twice. &nbsp;I
wonder whether this is because it occurs when you first reserve the workitem
during execution and then again when you complete execution. &nbsp;No problem
for my application but maybe an issue if you only want to react once during
the LUW. </font>
<br><font size=2 face="Arial">Karl </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">&quot;Dart, Jocelyn&quot; &lt;jocelyn.dart@sap.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">19/10/2010 10:31 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">RE: WF ProgramExists</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Mike - Try the state change event - Yes that should
be usable when the work item is forwarded, reserved or replaced. <br>
Regards,<br>
Jocelyn <br>
<br>
-----Original Message-----<br>
From: sap-wug-bounces@mit.edu [</font></tt><a href="mailto:sap-wug-bounces@mit.edu"><tt><font size=2>mailto:sap-wug-bounces@mit.edu</font></tt></a><tt><font size=2>]
On Behalf Of Mike Pokraka<br>
Sent: Monday, 18 October 2010 9:20 PM<br>
To: SAP Workflow Users' Group<br>
Subject: Re: WF ProgramExists<br>
<br>
Hi Kjetil,<br>
<br>
Doesn't address the question whether it gets called during forwarding,
but<br>
a much more useful piece of info instead, thanks!<br>
<br>
Mike<br>
<br>
On Mon, October 18, 2010 10:21 am, Kjetil Kilhavn wrote:<br>
&gt; Fredag 15. oktober 2010 09.44.51 skrev Mike Pokraka:<br>
&gt;&gt; Hi Rick,<br>
&gt;&gt;<br>
&gt;&gt; No I haven't played with them, but looks like there's some good
stuff<br>
&gt;&gt; there. If the forwarding isn't catchable in the WF exit, you could
do a<br>
&gt;&gt; small enhancement somewhere in the forwarding functionality.<br>
&gt;<br>
&gt; It's been a while since I examined IF_SWF_IFS_WORKITEM in order to
find<br>
&gt; out if<br>
&gt; I could use this interface to log some information in a solution's
WF log<br>
&gt; instead of using separate logging tables, but here's my findings about
the<br>
&gt; sequence of method invocations anyway - for what it is worth:<br>
&gt;<br>
&gt; WI type &nbsp; &nbsp; | BC | AR &nbsp; &nbsp; &nbsp; | C &nbsp;| BE
&nbsp;| SC &nbsp; &nbsp;| AE | AA | BR |<br>
&gt; ---------------------------------------------------------------<br>
&gt; W (dialog) &nbsp;| 1 &nbsp;| 2 (a) &nbsp; &nbsp;| 3 &nbsp;| &nbsp;
&nbsp; | &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;| &nbsp; &nbsp;| &nbsp; &nbsp;|<br>
&gt; B (backgr.) | &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;
&nbsp;| 1 &nbsp; | 2 &nbsp; &nbsp; | 3 &nbsp;| &nbsp; &nbsp;| &nbsp; &nbsp;|<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;| &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp;| &nbsp; &nbsp; | 4,5 &nbsp;
| &nbsp; &nbsp;| &nbsp; &nbsp;| &nbsp; &nbsp;|<br>
&gt; F (flow) &nbsp; &nbsp;| 1 &nbsp;| 6,7,8,9, | 2 &nbsp;| 3 &nbsp; |
4,5, &nbsp;| 10,| &nbsp; &nbsp;| &nbsp; &nbsp;|<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;| 13,14,15,|
&nbsp; &nbsp;| &nbsp; &nbsp; | 11,12 | &nbsp; &nbsp;| &nbsp; &nbsp;| &nbsp;
&nbsp;|<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;| 16,17 &nbsp;
&nbsp;| &nbsp; &nbsp;| &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;|
&nbsp; &nbsp;| &nbsp; &nbsp;|<br>
&gt; ---------------------------------------------------------------<br>
&gt; (a) Not if no agent is found<br>
&gt;<br>
&gt; BC - BEF_CREAT<br>
&gt; AE - AFT_REXEC<br>
&gt; C &nbsp;- CREATED<br>
&gt; BE - BEF_EXEC<br>
&gt; SC - STATE_CHG<br>
&gt; AE - AFT_EXEC<br>
&gt; AA - AFT_ASYINV<br>
&gt; BR - BEF_REMOVE<br>
&gt;<br>
&gt; Well, as I can recall it was the *sequence* I made a note of, my memory<br>
&gt; may of<br>
&gt; course be failing ;-)<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Mike<br>
&gt;&gt;<br>
&gt;&gt; On Thu, October 14, 2010 4:26 pm, Sample, Rick wrote:<br>
&gt;&gt; &gt; Mike,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; That is sort of what I have right now. Pre/Post BG steps
on these<br>
&gt;&gt; &gt; approval tasks.<br>
&gt;&gt; &gt; I have a wee bit of time to play around with these WF Program
Exits<br>
&gt;&gt; and<br>
&gt;&gt; &gt; determine if I have valid use 'without' over engineering
my WF.<br>
&gt;&gt; &gt; It looks doable and some simple container ops seem to work...
mostly<br>
&gt;&gt; &gt; anyway.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am hacking some of the class files in the SWF_TST package.
First try<br>
&gt;&gt; &gt; was the WF Trace.<br>
&gt;&gt; &gt; That did not work. Won't turn on via the class file. Annoying,
but got<br>
&gt;&gt; &gt; the container ops<br>
&gt;&gt; &gt; code and kicking around.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; You use this functionality?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I plan to spend a day or two more and see what I can get
out of these<br>
&gt;&gt; &gt; class files.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; As always, thanks for the feedback.<br>
&gt;&gt; &gt; Rick<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; -----Original Message-----<br>
&gt;&gt; &gt;&gt; From: sap-wug-bounces@mit.edu [</font></tt><a href="mailto:sap-wug-"><tt><font size=2>mailto:sap-wug-</font></tt></a><tt><font size=2><br>
&gt;&gt; &gt;&gt; bounces@mit.edu] On Behalf Of Mike Pokraka<br>
&gt;&gt; &gt;&gt; Sent: Thursday, October 14, 2010 8:03 AM<br>
&gt;&gt; &gt;&gt; To: SAP Workflow Users' Group<br>
&gt;&gt; &gt;&gt; Subject: RE: WF ProgramExists<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Rick,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Just a general comment which may not apply, but I find<br>
&gt;&gt; &gt;&gt; that I tend to do role resolution separately more often<br>
&gt;&gt; &gt;&gt; than not as it avoids most of these conundrums.<br>
&gt;&gt; &gt;&gt; To accomplish your scenario I'd use two conditional texts
in<br>
&gt;&gt; &gt;&gt; my work item and pass in a flag to display one or the
other.<br>
&gt;&gt; &gt;&gt; It may be possible to catch the forwarding action via
a work<br>
&gt;&gt; &gt;&gt; item exit (not sure &amp; no time to look into it) and
change<br>
&gt;&gt; &gt;&gt; the flag in the container - the new text would be displayed<br>
&gt;&gt; &gt;&gt; automatically for the new user.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Cheers,<br>
&gt;&gt; &gt;&gt; Mike<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Thu, October 14, 2010 1:12 pm, Sample, Rick wrote:<br>
&gt;&gt; &gt;&gt; &gt; Sorry, dumb question. I know a flag gets set somewhere,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; because of the<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; option<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; to fail the role if FM failed. &quot;Terminate if
Rule Resolution<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; has no<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Result&quot;.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Most WFs we have a 'Fail Back' option. If role fails
to find<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; next<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; agent in approval,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; send back to last agent with a changed TEXT to inform<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; user what to do<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; next.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; User can manually forward, &nbsp;whatever...<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; What appears to be a better option is to get last
agent<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; and compare to<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; the current agent.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; The event AFT_REXEC &quot;after rule executed&quot;,
looks like it is<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; what I want.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Will forward findings if anyone cares...<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Rick<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; From: sap-wug-bounces@mit.edu [</font></tt><a href="mailto:sap-wug-"><tt><font size=2>mailto:sap-wug-</font></tt></a><tt><font size=2><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; bounces@mit.edu] On<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Behalf Of Steffen Schloenvoigt<br>
&gt;&gt; &gt;&gt; &gt; Sent: Thursday, October 14, 2010 4:58 AM<br>
&gt;&gt; &gt;&gt; &gt; To: SAP Workflow Users' Group<br>
&gt;&gt; &gt;&gt; &gt; Subject: Re: WF ProgramExists<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Hmm no, but you could try to use FM<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 'SAP_WAPI_WORKITEM_RECIPIENTS' and<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; check if the result is empty...<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Best regards,<br>
&gt;&gt; &gt;&gt; &gt; Steffen Schlönvoigt<br>
&gt;&gt; &gt;&gt; &gt; 2010/10/13 Sample, Rick<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &lt;Rick.Sample@graybar.com&lt;</font></tt><a href=mailto:Rick.Sample@graybar.c><tt><font size=2>mailto:Rick.Sample@graybar.c</font></tt></a><tt><font size=2><br>
&gt;&gt; &gt;&gt; om&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Update,<br>
&gt;&gt; &gt;&gt; &gt; I figured out how to update the WI_TEXT with some
code<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; in<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; CL_SWL_ADM_COMMAND-WITEXT_CHANGE.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Now, I would like to change this WI_TEXT on failure
of the<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; role res.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Example, if<br>
&gt;&gt; &gt;&gt; &gt; role res fails, set the WI_TEXT to &quot;Error,
bla bla bla you<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; received<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; this because could not find next agent... &quot;<br>
&gt;&gt; &gt;&gt; &gt; Right now, I have to execute the role res in a background<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; task just to<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; figure out if next agent is found, set the message
if not,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; etc. Then,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; execute the Decision task (which executes the role
res<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; again) and send<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; to last agent.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Question: Is there a flag in Work Item container
that is set<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; if role<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; fails?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; From: Sample, Rick<br>
&gt;&gt; &gt;&gt; &gt; Sent: Wednesday, October 13, 2010 8:53 AM<br>
&gt;&gt; &gt;&gt; &gt; To: SAP Workflow Users' Group<br>
&gt;&gt; &gt;&gt; &gt; Subject: WF ProgramExists<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I have a need for a WF &quot;Program Exit&quot;
to dynamically<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; change the Task<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Text at runtime.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Currently, if I need to change a task text at runtime,
I<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; create a<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; container element and<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; place it in the WI_TEXT. I then have a background
task<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; determine what<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; the task text should be and<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; pass it in before the Decision step is executed.
Kludgy, but<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; it works<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; and fairly simple to understand.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Now, I want to dynamically change this value using
a<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Program Exit.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; So I added the SAP standard<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; CL_SWF_TST_PE_GETDESCRIPTION class to a<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; new task and<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; it gets the Desc text and sets a container. Fine.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Next, I modified this class to just get/set a Work
Item<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; container.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; This also works fine.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Now, I tried to get this to change the Task Text
with this<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; new<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; container element but no luck.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; This changes the container element, but does not
change<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; the Work Item<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; text.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Anyone use these WF program exits?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Any thoughts, examples, assistance is greatly appreciated.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; ==================================<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; METHOD change_cont_element.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; DATA:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp;container TYPE REF TO if_swf_cnt_container,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp;lh_wihandle TYPE REF TO if_swf_run_wim_internal,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp;l_exception TYPE REF TO cx_swf_cnt_container,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp;l_wiid TYPE sww_wiid.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; BREAK-POINT ID zexits.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; l_wiid = me-&gt;m_ctx-&gt;get_workitem_id(
).<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; TRY.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; lh_wihandle =<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; cl_swf_run_wim_factory=&gt;find_by_wiid( l_wiid ).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; container = lh_wihandle-&gt;get_wi_container(
).<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; CATCH cx_swf_run_wim.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; ENDTRY.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; TRY.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; CALL METHOD container-&gt;element_get<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; EXPORTING<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name = 'ZWI_TEXT'.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; CALL METHOD container-&gt;element_set<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; EXPORTING<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; = 'ZWI_TEXT'<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'New_Text'<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; IMPORTING<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exception_return
= l_exception.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; CATCH cx_swf_tst_introspection_error.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; &nbsp; CATCH cx_swf_cnt_container.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &nbsp; ENDTRY.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; ENDMETHOD.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Rick Sample | SAP Workflow Analyst/Developer<br>
&gt;&gt; &gt;&gt; &gt; 11885 Lackland Road | Maryland Heights, MO 63146
|<br>
&gt; --<br>
&gt; Kjetil Kilhavn (+47 40220607)<br>
&gt; Blue Consulting AS (</font></tt><a href=http://www.bluec.no/><tt><font size=2>http://www.bluec.no</font></tt></a><tt><font size=2>)<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; </font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>