<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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]-->
<title>Message</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Tahoma;}
h1
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:16.0pt;
        font-family:Tahoma;
        font-weight:bold;}
h2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:14.0pt;
        font-family:Tahoma;
        font-weight:bold;
        font-style:italic;}
h3
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:13.0pt;
        font-family:Tahoma;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {font-family:Tahoma;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Tahoma;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.m1
        {color:blue;}
span.pi1
        {color:blue;}
span.t1
        {color:#990000;}
span.ns1
        {color:red;}
span.b1
        {font-family:"Courier New";
        color:red;
        font-weight:bold;
        text-decoration:none none;}
span.tx1
        {font-weight:bold;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:Tahoma;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-AU link=blue vlink="#606420">

<div class=Section1>

<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;color:blue'>Hi Christian, Mark,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;color:blue'>Thankyou for your responses. Mark I went through all the
steps you mentioned and the problem I had has been resolved, I&#8217;m pretty
sure it was the possible agents in one of the workflow templates, so thanks
very much for the comprehensive list of checks.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;color:blue'>Unfortunately I now have a different problem in the receiving
(640) system. It receives the &#8220;CreateProcessInstance&#8221; message,
starts a workflow, sends back the response. Great, but when the workflow
completes, I get no &#8220;ProcessInstanceStateChanged&#8221; message coming
back, leaving the original workflow hanging&#8230; Also despite running </span></font><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>RSWXML_REPAIR, I cannot see any XML messages via SWXML in the receiving
640 system.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I tried setting up the scenario in reverse
and it all works correctly, so there must be something wrong with the 640
system. I&#8217;ve raised it in <st1:City w:st="on"><st1:place w:st="on">OSS</st1:place></st1:City>.</span></font><font
size=2 color=blue><span style='font-size:10.0pt;color:blue'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Kind Regards,</span></font><font
color=blue><span style='color:blue'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=red face=Tahoma><span style='font-size:
10.0pt;color:red'>Andrew Rankin</span></font><font color=blue><span
style='color:blue'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=red face=Tahoma><span style='font-size:
10.0pt;color:red'>0437991735</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;font-family:
"Times New Roman"'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-weight:bold'>From:</span></font></b><font size=2><span
lang=EN-US style='font-size:10.0pt'> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b><span style='font-weight:bold'>On Behalf Of
</span></b>Griffiths, Mark<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, 9 August 2005 7:58
PM<br>
<b><span style='font-weight:bold'>To:</span></b> SAP Workflow Users' Group<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Webflow step - error
&quot;XML tag &lt;ProcessInstanceKey&gt; not available&quot;</span></font><font
face="Times New Roman"><span lang=EN-US style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face=Tahoma><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>It looks like your XML file is missing the
workitem id.</span></font><font face="Times New Roman"><span style='font-family:
"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Resolving these sorts of problems can be
tricky, make sure:</span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>- you have maintained anonymous logon data
in SICF for the workflow_xml service </span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>- you have configured SWR_WEBSERVER on
both systems (when you test you shouldn't get a logon prompt if SICF is OK).</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>- You have run RSWXML_REPAIR (name may not
be quite right but it is in some oss notes) in both systems</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>- You have set up possible agents for the
calling, called and reference workflow templates (steer clear of authentication
rules until you get the basic communication working) i.e. the agents at the
'header level' of the template</span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>When you test, both workflows should end
up with at least&nbsp;4 xml files - read these and sometimes you will get extra
error information.</span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>You may also get problems with your
workflows if your network isn't configured, sometimes the systems find it
difficult to talk to one another, get your basis person to do an NIPING to make
sure your reverse DNS is all OK (no idea what this means but basis people
will).&nbsp; Also check with basis that the ICM parameters are all set up in
RZ10 for your host and port.</span></font><font face="Times New Roman"><span
style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Good luck, this sort of WF_XML
communication is much more fun than boring old RFCs!</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Cheers,</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Mark</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>SAP <st1:country-region w:st="on"><st1:place
 w:st="on">UK</st1:place></st1:country-region> Consulting</span></font><font
face="Times New Roman"><span style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b><span style='font-weight:bold'>On Behalf Of
</span></b>Rankin, Andrew<br>
<b><span style='font-weight:bold'>Sent:</span></b> 09 August 2005 02:37<br>
<b><span style='font-weight:bold'>To:</span></b> sap-wug@mit.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> Webflow step - error
&quot;XML tag &lt;ProcessInstanceKey&gt; not available&quot;</span></font><font
face="Times New Roman"><span lang=EN-US style='font-family:"Times New Roman"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>I am
working on a webflow scenario that integrates a process between two SAP systems
&#8211;being R/3 Enterprise and SRM 4.0. The idea is that a workflow in started
in R/3 when an invoice is held. It collects various pieces of information then
starts a corresponding workflow in SRM using a webflow activity, and should
then wait until the SRM workflow is complete. The SRM workflow will request
creation of a service confirmation to an agent. Once this is complete, the SRM
workflow ends and the R/3 workflow will continue from there.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>Because
I haven&#8217;t worked with the webflow step before, I started by just creating
a simple example. In the example, an R/3 workflow fills a container element
with the value of a user-id and passes it to an SRM workflow which sends an
email to this user. A reference workflow is created with the same container
element. I just wanted to see the process working so I know how to write up a spec
for the real workflow scenario mentioned above and be sure that it is going to
work!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>I
have the example working to the point where the initiating R/3 workflow
successfully sends the wf-xml message to the SRM system, which starts the SRM
workflow (passing the container value of my user-id correctly). The SRM
workflow completes ok. But before anything else can happen, the R/3 workflow
goes into error. The error message is &quot;XML tag &lt;ProcessInstanceKey&gt;
not available&quot;</span></font><font size=2><span lang=EN-US
style='font-size:10.0pt'>. </span></font><font size=2><span style='font-size:
10.0pt'>When I checked the request / response messages (with transaction
SWXML), this is what the &#8220;CreateProcessInstance.Request (received
response)</span></font><font size=2><span lang=EN-US style='font-size:10.0pt'>&#8221;
</span></font><font size=2><span style='font-size:10.0pt'>looks like:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&lt;?xml
version=&quot;1.0&quot; ?&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>-
&lt;WfMessage Version=&quot;1.1&quot;
xmlns=&quot;http://www.wfmc.org/standards/docs/Wf-XML&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>-
&lt;WfMessageHeader&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;Response /&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;Key&gt;HTTP://stlmelhsapd.stlmel.bsl.net:8002/SAP/BC/WORKFLOW_XML/?~protocol=04&amp;~localkey=WS90200001&lt;/Key&gt;
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;/WfMessageHeader&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>-
&lt;WfMessageBody&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>-
&lt;CreateProcessInstance.Response&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;ProcessInstanceKey /&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;/CreateProcessInstance.Response&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;/WfMessageBody&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;
&lt;/WfMessage&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>So
it seems like the response from SRM is not being correctly formed when it
responds to the initial request from R/3.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>I
found a message previously in this group which suggested that it might be an
authentication problem. I tried using an authentication rule in the header of
the SRM workflow (passing a user and password to it) but it didn&#8217;t make
any difference. Does anyone have any idea what is going wrong or what I should
check?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>Thankyou!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Kind Regards,</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=red face=Tahoma><span style='font-size:
10.0pt;color:red'>Andrew Rankin</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=red face=Tahoma><span style='font-size:
10.0pt;color:red'>+61 0437991735</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face=Tahoma><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>EOM<br>
<br>
NOTICE - This message and any attached files may contain information that is
confidential and/or subject of legal privilege intended only for use by the
intended recipient. If you are not the intended recipient or the person
responsible for delivering the message to the intended recipient, be advised
that you have received this message in error and that any dissemination,
copying or use of this message or attachment is strictly forbidden, as is the
disclosure of the information therein. If you have received this message in
error please notify the sender immediately and delete the message. <o:p></o:p></span></font></p>

</div>

</blockquote>

</div>


<DIV><P><HR>
EOM<BR>
<BR>
NOTICE - This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message.
</P></DIV>
</body>

</html>