<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: HouschkaBold;
}
@font-face {
        font-family: @SimSun;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
P.a625785a-19e5-4e27-8a92-275aa9d54539 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: a625785a-19e5-4e27-8a92-275aa9d54539
}
LI.a625785a-19e5-4e27-8a92-275aa9d54539 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: a625785a-19e5-4e27-8a92-275aa9d54539
}
DIV.a625785a-19e5-4e27-8a92-275aa9d54539 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: a625785a-19e5-4e27-8a92-275aa9d54539
}
P.56c37028-3542-4c8f-82ba-daca11bafdb8 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: 56c37028-3542-4c8f-82ba-daca11bafdb8
}
LI.56c37028-3542-4c8f-82ba-daca11bafdb8 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: 56c37028-3542-4c8f-82ba-daca11bafdb8
}
DIV.56c37028-3542-4c8f-82ba-daca11bafdb8 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: 56c37028-3542-4c8f-82ba-daca11bafdb8
}
SPAN.EmailStyle20 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>Two
examples so far:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT> </DIV>
<DIV><U><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>First - </SPAN></FONT><SPAN
class=099293309-08022010><FONT face=Arial color=#0000ff size=2>Child objects
missing in WF & WF log</FONT></SPAN></U></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>Workflow is bombing out (in new ECC6 environment)
because it cannot determine the agents... because it cannot find the
object-values against which to interrogate the Responsibility Rule. In this
case, this is the SALES ORG attribute, on the SALES ORG object (BUS0006)
which is a custom attribute of [extended] IDOCALEAUD.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>The
error message is SWF_EXP001 072 "Error in the evaluation of expression
'&IDOC_PACKET<???>.ZSALESORGANIZATION.SALESORGANIZA' for it". The
<???> has given me a little nugget of doubt as to whether I have a
dodgy character or something, but I can't find it.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>In the
log, this child object is clearly missing (IDOCALEAUD/IDOCPACKET is
instantiated). Yet, when I test the IDOCALEAUD object in SWO1, the SALES ORG
object does exist.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>Stranger yet, if I set a break point in the
virtual-attribute code, and open the log, the code correctly finds the SALES ORG
references, and then still fails to show the object in the
log.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>The
variable type is SWC_OBJECT.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>I am
using SWC_CREATE_OBJECT to instantiate it.</SPAN></FONT></DIV>
<DIV><U><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT></U> </DIV>
<DIV><U><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT></U> </DIV>
<DIV><U><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>Second - Event CheckFM throwing
exception</SPAN></FONT></U></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>When
creating a Document Information Record, the DRAW-FULLYCREATED event is raised. A
custom CheckFM is used to interrogate a value held the object. The error appears
to be that my code is expecting a run-time handle, but is having a persistent
handle passed to it. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>Just
as I understood this, however, I discovered that if I raise the
DRAW-FULLYCREATED event against the same object via SWUE, the event-container
now holds a run-time object reference, and the entire operation
works!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>So, it
would appear that my code has to assess whether an object reference in a
container is a run-time or a persistent handle first, and move it to
the correct variable type accordingly. As both CV01N and SWUE were run in
my name as foreground transactions, I was a little surprised that the reference
types in the event-container differed, and this led me to wondering what was the
'correct' way of handling object references...?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=099293309-08022010>I am
vaguely aware, from the "Considerations when upgrading SAP Business
Workflow..." document that the handling of SWC_OBJECT and SWOTOBJID has become
stricter, but I am not entirely clear what 'right' looks
like.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=099293309-08022010>Andy</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Mike
Pokraka<BR><B>Sent:</B> Saturday 06 February 2010 09:11<BR><B>To:</B> 'SAP
Workflow Users' Group'<BR><B>Subject:</B> RE: Persistent vs Runtime handles -
development standards?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi
Andy, <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I
don’t believe such a document exists, but could you provide an example of such
surprises? <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Basic
idea is that everything is persistent when it goes outside the current context.
This means binding, container storage. Persistent is converted to runtime for
working with an object and back to persistent for binding/storage.
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hope
that helps, <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Mike<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>Catherall, Andy<BR><B>Sent:</B> 05 February 2010 15:33<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> BOR: Persistent vs Runtime handles -
development standards?<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Hi
all</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">As I progress
through my ECC6 upgrade, I have now started to trip over a few locations where
the runtime/persistent handles are not as rigorous as they might be. This is
having some entertaining effects!</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Can anyone point me
towards some development standards documents that might exist to make sure I use
the correct handle type at the correct time?</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Thanks</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'HouschkaBold','serif'">Andy
Catherall</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'HouschkaBold','serif'">Technical
Analyst - SAP Workflow, IXOS & DMS</SPAN> <o:p></o:p></P></DIV>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'HouschkaBold','serif'"><IMG
id=_x0000_i1025 height=32 src="cid:099293309@08022010-2BC4"
width=80></SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'HouschkaBold','serif'">Int: 751
0556</SPAN> <BR><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'HouschkaBold','serif'">Ext: +44 (0)121
486 0556</SPAN> <BR><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'HouschkaBold','serif'">Mobile: +44
(0)7813 025481</SPAN> <o:p></o:p></P>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<P class=MsoNormal> <o:p></o:p></P>
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Verdana','sans-serif'">The
Cadbury Cocoa Partnership is working to secure the future of cocoa farming
around the world. Cadbury Dairy Milk bars are now Fairtrade certified in the UK
and Ireland. Visit </SPAN></B><B><U><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Verdana','sans-serif'"><A
title=http://www.cadbury.com/
href="http://www.cadbury.com/">www.cadbury.com</A></SPAN></U></B><B><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Verdana','sans-serif'"> to
learn more.</SPAN></B><o:p></o:p></P>
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Verdana','sans-serif'"> </SPAN></B><o:p></o:p></P>
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Verdana','sans-serif'">Be
part of our "Purple Goes Green" commitments and don't print this
email.</SPAN></B><o:p></o:p></P>
<P class=56c37028-3542-4c8f-82ba-daca11bafdb8> <o:p></o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">-----------------------------------------</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"> </SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN-BOTTOM: 8pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 8.0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">This email
(including any attachment) is confidential and may contain privileged
information and is intended for the use of the individual(s) to whom it is
addressed. If you are not the intended recipient or receive it in error, you may
not use, distribute, disclose or copy any of the information contained within it
and it may be unlawful to do so. If you are not the intended recipient please
notify us immediately by returning this email to us at </SPAN><U><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Verdana','sans-serif'"><A
href="mailto:mailerror@cadbury.com">mailerror@cadbury.com</A></SPAN></U><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"> and destroy all
copies.</SPAN><o:p></o:p></P>
<P class=MsoNormal
style="MARGIN-BOTTOM: 8pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 8.0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Any views expressed
by individuals within this email do not necessarily reflect the views of Cadbury
Holdings Ltd or any of its subsidiaries or affiliates. This email does not
constitute a binding offer, acceptance, amendment, waiver or other agreement, or
create any obligation whatsoever, unless such intention is clearly stated in the
body of the email. Whilst we have taken reasonable steps to ensure that this
email and any attachments are free from viruses, recipients are advised to
subject this email to their own virus checking, in keeping with good computing
practice. We accept no liability for any damage sustained as a result of any
viruses. Please note that email received by Cadbury Holdings Ltd or its
subsidiaries or affiliates may be monitored in accordance with applicable law.
</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">This email
originates from </SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Cadbury Holdings
Ltd </SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">("Cadbury") or
Cadbury UK ("Cadbury UK") as the case may be.</SPAN><o:p></o:p></P>
<P class=MsoNormal> <o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Cadbury Holdings
Ltd: registered in England and Wales, registered no. 52457<BR>Registered office
address: Cadbury House, Sanderson Road, Uxbridge, Middlesex, UB8 1DH United
Kingdom. <SPAN style="COLOR: black">Telephone: +44 (0)1895 615000 Fax:+44
(0)1895 615001 </SPAN><BR> </SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Cadbury UK: a
partnership of Cadbury UK Ltd, Trebor Bassett Ltd and The Old Leo Company
Ltd. each of which is registered in England and Wales.
</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Principal trading
address: </SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Cadbury
House, Sanderson Road, Uxbridge, Middlesex, UB8 1DH United Kingdom. <SPAN
style="COLOR: black">Telephone: +44 (0)1895 615000 Fax:+44 (0)1895 615001
</SPAN><BR><BR><BR></SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">-----------------------------------------</SPAN><o:p></o:p></P></DIV></DIV></DIV></BODY></HTML>