<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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:687365636;
        mso-list-template-ids:-137873074;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I&#8217;ve never found the COMMIT WORK to
be a problem for BAPIs.&nbsp; Many BAPIs have a COMMIT parameter built in which
works fine.&nbsp; If not, just call BAPI_TRANSACTION_COMMIT immediately after your
BAPI and that works fine as well.&nbsp; I&#8217;ll take a BAPI over a BDC any day.<o:p></o:p></span></font></p>

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

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Doug Mowry</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

</div>

<div>

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

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">sap-wug-bounces@mit.edu</st1:PersonName> [mailto:<st1:PersonName
w:st="on">sap-wug-bounces@mit.edu</st1:PersonName>] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Alon Raskin<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, June 12, 2007 9:06
AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">SAP
 Workflow Users' Group</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Commit Work</span></font><o:p></o:p></p>

</div>

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

<div id=idOWAReplyText52107>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Hi Ed,</span></font><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><br>
Thanks very much for the response. I have been burnt way too many times by
BDCs. Not to mention performance implications. Perhaps it is an OK for
workflows with low volumes but on an IS-U implementation (read Mike Gambier
Taylors response to see what I mean) a BDC is a recipe for disaster.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><br>
Thank you for your input anyway.</span></font><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

</div>

<div>

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

</div>

</div>

<div id=idSignature45685>

<div>

<p class=MsoNormal><strong><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Alon Raskin</span></font></b></strong><b><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black;font-weight:bold'><o:p></o:p></span></font></b></p>

</div>

</div>

<div>

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

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>

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

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

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">sap-wug-bounces@mit.edu</st1:PersonName> on behalf of Edward Diehl<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tue 6/12/2007 08:43<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">SAP
 Workflow Users' Group</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Commit Work<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Hi Alon,<br>
I try to always use a BDC function to create a new object rather than a
BAPI.&nbsp; A BAPI, if it is not called as an RFC, required an explicit COMMIT
WORK.&nbsp; It may be some defect in my understanding, but I am not a big fan
of BAPIs for several reasons and this is just one of them.<br>
&nbsp;<br>
Regards,<br>
Ed Diehl<br>
<br>
<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>

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

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

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Subject: Commit Work<br>
Date: Mon, 11 Jun 2007 17:09:57 -0400<br>
From: araskin@3i-consulting.com<br>
To: sap-wug@mit.edu<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>A colleague of mine is having an issue
and I wanted to see if anyone has seen this before. I have seen this issue
creep up on different implementations so I am sure I am not the first to handle
this.</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p></o:p></span></font></p>

</div>

<div>

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

</div>

<div>

<ul type=disc>
 <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=2 face=Arial><span style='font-size:
     10.0pt;font-family:Arial'>Step 1 creates a new document (doesn't matter
     what it is, its IS-U) by calling a BAPI</span></font><font size=2
     face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></li>
</ul>

</div>

<div>

<ul type=disc>
 <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=2 face=Arial><span style='font-size:
     10.0pt;font-family:Arial'>The BAPI returns the ID of the new object which
     can be seen in the container of the Workflow</span></font><font size=2
     face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></li>
</ul>

</div>

<div>

<ul type=disc>
 <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=2 face=Arial><span style='font-size:
     10.0pt;font-family:Arial'>Step 2 then calls SYSTEM.GenericInstantiate to
     get an instance of the newly created document</span></font><font size=2
     face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><o:p></o:p></span></font></li>
</ul>

</div>

<div>

<ul type=disc>
 <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=2 face=Arial><span style='font-size:
     10.0pt;font-family:Arial'>Step 2 errors claiming that the object does not
     exist.</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
     font-family:Tahoma'><o:p></o:p></span></font></li>
</ul>

</div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I suggested to him to uncheck the Advance with Dialog step
as I thought that this would 'force' the WF sub-system to do a COMMIT WORK
between steps but this did not seem to work. I was sure that the Workflow
sub-system always executes a COMMIT WORK between steps. Is that not the case?
We did a test, and created a method where all it did was execute a COMMIT WORK.
We inserted this step in between the BAPI and the System.GenericInstantiate and
everything worked beautifully. So it is definitely a commit issue. Perhaps WF
treats methods marked as BAPIs differently to standard methods and doesn't not
do an explicit COMMIT WORK? If so, how do people get around this?</span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Regards,</span></font><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'><o:p></o:p></span></font></p>

<div id="EC_idSignature31001">

<div>

<p class=MsoNormal><strong><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Alon Raskin</span></font></b></strong><b><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black;font-weight:bold'><o:p></o:p></span></font></b></p>

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

</div>

</div>

</div>

</div>

</body>

</html>