<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff size=2>Hi
Lyal,</FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial><FONT color=#0000ff
size=2>When you say document, I'm not sure if you mean archivelink
IMAGE. </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial><FONT color=#0000ff
size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial><FONT color=#0000ff
size=2>If so, I noticed recently that SAP_WAPI_WORKITEMS_TO_OBJECT
translates the object key to uppercase, </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial><FONT color=#0000ff
size=2>so for example IMAGE key of D1aaaadmvgymoudneuhmaaaae3i3cly will not
be found.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff size=2>Try
reading from table swiwiobjct directly.</FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=124555811-16122004><FONT face=Arial color=#0000ff
size=2>Phil</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
koenraad.janssens@sidmar.arcelor.com
[mailto:koenraad.janssens@sidmar.arcelor.com]<BR><B>Sent:</B> 16 December 2004
10:38<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> Re: Finding Workitems
for a Document<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>Maybe you
could use:</FONT> <BR><FONT face=sans-serif
size=2>SAP_WAPI_WORKITEMS_TO_OBJECT with the various selection status
variants:</FONT> <BR><BR><FONT face=sans-serif size=2>'0000' : all
instances</FONT> <BR><FONT face=sans-serif size=2>'0001' : active
instances</FONT> <BR><FONT face=sans-serif size=2>'0002': finished
instances</FONT> <BR><FONT face=sans-serif size=2>'0003': active instances
(all)</FONT> <BR><BR><FONT face=sans-serif size=2>You have an indicator to
specify if you only want top level (WS) items or everything. (incl.
TS)</FONT> <BR><BR><FONT face=sans-serif size=2>Kind regards</FONT>
<BR><BR><FONT face=sans-serif size=2>Koenraad</FONT> <BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<TD><FONT face=sans-serif size=1><B>Lyal.Schumann@rmc.co.uk</B></FONT>
<BR><FONT face=sans-serif size=1>Sent by: sap-wug-bounces@mit.edu</FONT>
<P><FONT face=sans-serif size=1>16/12/2004 11:14</FONT> <BR><FONT
face=sans-serif size=1>Please respond to sap-wug</FONT> <BR></P>
<TD><FONT face=Arial size=1> </FONT><BR><FONT
face=sans-serif size=1> To:
sap-wug@mit.edu</FONT> <BR><FONT face=sans-serif
size=1> cc:
</FONT> <BR><FONT face=sans-serif size=1>
Subject: Finding Workitems for a
Document</FONT></TR></TBODY></TABLE><BR><BR><BR><FONT face=Arial size=2>Howzit
WF'ers</FONT> <BR><FONT face="Times New Roman" size=3> </FONT> <BR><FONT
face=Arial size=2>I need to get the workitems attached to a specific document.
In the past, I have have merrily used function module
SWI_WORKITEMS_OF_OBJECT_GET to get these. However, on testing this, it seems
that it doesn't return the workitems of any sub-workflows that happen to be
raised in the process. I know I could then use something like
SWI_GET_DEPENDENT_WORKITEMS to get workitems for the sub-workflows after
running the first function module.</FONT> <BR><FONT face="Times New Roman"
size=3> </FONT> <BR><FONT face=Arial size=2>But, this just feels like
duplication of work, and I can't help feeling that there must be a far more
elegant solution lurking out there!</FONT> <BR><FONT face="Times New Roman"
size=3> </FONT> <BR><FONT face=Arial size=2>Anyone know what this
solution is?</FONT> <BR><FONT face="Times New Roman" size=3> </FONT>
<BR><FONT face=Arial size=2>Cheers</FONT> <BR><FONT face="Times New Roman"
size=3> </FONT> <BR><FONT face=Arial size=2>Lyal</FONT>
<P><FONT face=Arial size=1>IMPORTANT: This email is intended for the use of
the individual addressee(s) named above and may contain information that is
confidential, privileged or unsuitable for overly sensitive persons with low
self-esteem, no sense of humour or irrational religious beliefs. If you are
not the intended recipient, any dissemination, distribution or copying of this
email is not authorised (either explicitly or implicitly) and constitutes an
irritating social faux pas. Environmentalists will be pleased to know that no
animals were harmed in the transmission of this email, and the message is
composed of 100% recycled electrons.</FONT>
<P><FONT face=Arial size=1>Those of you with an overwhelming fear of the
unknown will be gratified to learn that there is no hidden message revealed by
reading this warning backwards or upside-down, so please ignore any conspiracy
theories to the contrary. If you have received this email in error, please add
some nutmeg and egg whites, whisk and place in a warm oven for 40 minutes.
</FONT>
<P><FONT face="Times New Roman" size=3></FONT> <BR><FONT
face="Times New Roman"
size=3><BR><BR>**********************************************************************<BR>This
email and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. If you
have received this email in error please notify the system
manager.<BR><BR>This email is sent by a member of the RMC Group p.l.c. group
of Companies.<BR>RMC Group p.l.c. is registered in England under company no.
249776. The registered office address of RMC Group and its UK subsidiaries is
RMC House, Coldharbour Lane, Thorpe, Egham, Surrey TW20 8TD.<BR><BR>This
footnote also confirms that this email has been swept by MIMEsweeper for the
presence of computer
viruses.<BR><BR>www.mimesweeper.com<BR>**********************************************************************</FONT><FONT
face="Courier New"
size=2>_______________________________________________<BR>SAP-WUG mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></FONT><BR><BR><FONT
size=3><BR><BR>***********************************************************************************<BR>This
message should only be read by those persons to whom it is <BR>addressed, and
may contain confidential information, the disclosure <BR>of which is
prohibited. This message is not intended to create rights <BR>or obligations
without subsequent written confirmation of its contents. <BR>If you have
received this message in error, please notify us immediately
<BR>***********************************************************************************<BR></FONT></P></BLOCKQUOTE></BODY></HTML>