<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi <BR>
<BR>
Stupid question why would you do it .... <BR>
In fact, I am working on an SRM system, where the user ID are going to change (ex: user X456 will become user Y123)<BR>
And the users want to see their executed workitems (with user X456) when logging in with user Y123.<BR>
<BR>
Transferring workitems that are not yet executed was quite easy with the SAP_WAPI function but with the completed workitem I am stuck... <BR>
Is there any BADI&nbsp; or Exit to change the selection ? I don't really want to overwrite the agent on the <FONT SIZE="2"><FONT COLOR="#000080">SWWWIHEAD table [WI_AAGENT and certainly WI_AADDR]</FONT></FONT><BR>
<BR>
Do you know any method that I could use to get this requirement done ?<BR>
<BR>
Best regards<BR>
Stephane<BR>
<BR>
Le mercredi 21 ao&#251;t 2013 &#224; 12:50 -0400, sap-wug-request@mit.edu a &#233;crit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
Send SAP-WUG mailing list submissions to
        <A HREF="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>

To subscribe or unsubscribe via the World Wide Web, visit
        <A HREF="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
or, via email, send a message with subject or body 'help' to
        <A HREF="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A>

You can reach the person managing the list at
        <A HREF="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A>

When replying, please edit your Subject line so it is more specific
than &quot;Re: Contents of SAP-WUG digest...&quot;


Today's Topics:

   1. User Decision Note via UWL vs SBWP (Mark Pyc)
   2. Re: User Decision Note via UWL vs SBWP (Kjetil Kilhavn)
   3. Re: User Decision Note via UWL vs SBWP (Mark Pyc)


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 Aug 2013 10:36:16 +1000
From: Mark Pyc &lt;<A HREF="mailto:mark.pyc@gmail.com">mark.pyc@gmail.com</A>&gt;
Subject: User Decision Note via UWL vs SBWP
To: WUG &lt;<A HREF="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;
Message-ID:
        &lt;<A HREF="mailto:CA+795SA5Z8pD1e+f7TnSaqZFnzdt=SAFNd02wcL_iVJc=bF1FQ@mail.gmail.com">CA+795SA5Z8pD1e+f7TnSaqZFnzdt=SAFNd02wcL_iVJc=bF1FQ@mail.gmail.com</A>&gt;
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;

G'day Wuggers,

If you use the 'Mandatory Justification' option on a User Decision and
process via SBWP that comment is loaded into a specific container element
called 'Decision_Note'.

If you use the XML configuration option of &quot;&lt;Property
name=&quot;UserDecisionNote&quot; value=&quot;mandatory&quot;/&gt;&quot; then that comment is just
loaded into _Attach_Objects

Is there any way to control where the comment ends up via UWL? My problem
is that within the process I've already potentially got things in
_Attach_Objects but these are purely internal documents, and I need the
Rejection comment attached to an email sent out to a Vendor.

If it has to end up in _Attach_Objects is there a clever way to pull out
the latest entry?

Many thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://mailman.mit.edu/pipermail/sap-wug/attachments/20130821/f69ce30e/attachment-0001.htm">http://mailman.mit.edu/pipermail/sap-wug/attachments/20130821/f69ce30e/attachment-0001.htm</A>

------------------------------

Message: 2
Date: Wed, 21 Aug 2013 10:02:34 +0200
From: Kjetil Kilhavn &lt;<A HREF="mailto:list.sap-wug@vettug.no">list.sap-wug@vettug.no</A>&gt;
Subject: Re: User Decision Note via UWL vs SBWP
To: &quot;SAP Workflow Users' Group&quot; &lt;<A HREF="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</A>&gt;
Message-ID: &lt;<A HREF="mailto:3281765.qSIej4FlAC@t410-kjetil.vettug.no">3281765.qSIej4FlAC@t410-kjetil.vettug.no</A>&gt;
Content-Type: text/plain; charset=&quot;us-ascii&quot;

Onsdag 21. august 2013 10.36.16 skrev Mark Pyc:
&gt; If it has to end up in _Attach_Objects is there a clever way to pull out
&gt; the latest entry?
Not sure about clever ways, but it is certainly not too difficult in a program. 
It has been years since I did such manipulation, but using the WAPI functions 
(or perhaps you have to use the older function modules) you can get a list of 
attachments with information about creation date and time (and type of 
attachment etc).

&gt; Many thanks,
&gt; Mark
-- 
Kjetil Kilhavn / Vettug AS (<A HREF="http://www.vettug.no">http://www.vettug.no</A>)


------------------------------

Message: 3
Date: Wed, 21 Aug 2013 18:27:49 +1000
From: Mark Pyc &lt;<A HREF="mailto:mark.pyc@gmail.com">mark.pyc@gmail.com</A>&gt;
Subject: Re: User Decision Note via UWL vs SBWP
To: &quot;SAP Workflow Users' Group&quot; &lt;<A HREF="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</A>&gt;
Message-ID:
        &lt;<A HREF="mailto:CA+795SC43y0nHjj2PARfhQysoxep=rGB8hYeBeCf3T-Wdg+XOQ@mail.gmail.com">CA+795SC43y0nHjj2PARfhQysoxep=rGB8hYeBeCf3T-Wdg+XOQ@mail.gmail.com</A>&gt;
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;

Thanks Kjetil!

I've managed to avoid the issue by not placing anything else into
_Attach_Objects and instead use my own specific container element to hold
prior attachments, but I'm curious to know what's possible.

I find the disconnect between the 'Mandatory Comment' behaviour in SBWP and
UWL surprising (disappointing at least).

Thanks,
Mark


On 21 August 2013 18:02, Kjetil Kilhavn &lt;<A HREF="mailto:list.sap-wug@vettug.no">list.sap-wug@vettug.no</A>&gt; wrote:

&gt; Onsdag 21. august 2013 10.36.16 skrev Mark Pyc:
&gt; &gt; If it has to end up in _Attach_Objects is there a clever way to pull out
&gt; &gt; the latest entry?
&gt; Not sure about clever ways, but it is certainly not too difficult in a
&gt; program.
&gt; It has been years since I did such manipulation, but using the WAPI
&gt; functions
&gt; (or perhaps you have to use the older function modules) you can get a list
&gt; of
&gt; attachments with information about creation date and time (and type of
&gt; attachment etc).
&gt;
&gt; &gt; Many thanks,
&gt; &gt; Mark
&gt; --
&gt; Kjetil Kilhavn / Vettug AS (<A HREF="http://www.vettug.no">http://www.vettug.no</A>)
&gt; _______________________________________________
&gt; SAP-WUG mailing list
&gt; <A HREF="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A>
&gt; <A HREF="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
&gt;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://mailman.mit.edu/pipermail/sap-wug/attachments/20130821/44231466/attachment-0001.htm">http://mailman.mit.edu/pipermail/sap-wug/attachments/20130821/44231466/attachment-0001.htm</A>

------------------------------

_______________________________________________
SAP-WUG mailing list
<A HREF="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A>
<A HREF="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A>


End of SAP-WUG Digest, Vol 105, Issue 8
***************************************
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>