<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=135291006-09022006><FONT face=Arial 
color=#0000ff size=2>Hi Akshay,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=135291006-09022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Arial color=#0000ff 
size=2>You&nbsp;would usually call <FONT 
face=Verdana>SWE_EVENT_CREATE_IN_UPD_TASK in the update task - the purpose is to 
ensure the workflow event only happens if and when the commit happens.&nbsp; 
</FONT></FONT></SPAN><SPAN class=135291006-09022006><FONT face=Verdana 
color=#0000ff size=2>i.e. that the event is not raised if the transaction fails 
or the user cancels.</FONT></SPAN></DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff 
size=2>&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff 
size=2>However it calling SWE_EVENT_CREATE (with your remote system destination) 
in the update task should do for your purpose as well. </FONT></SPAN></DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff size=2>You 
could also use the equivalent method in CL_SWF_EVT_EVENT if you are on 6.40 or 
above. </FONT></SPAN></DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=135291006-09022006><FONT face=Verdana color=#0000ff size=2>An 
alternative might be to use a pre-condition on your workflow step to only 
continue if the contract is unlocked. </FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN 
lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn 
Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT face=Arial 
color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>Level 1/168 Walker 
St.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>North Sydney </FONT></SPAN><BR><SPAN lang=en-us><FONT face=Arial 
color=#808080 size=1>NSW, 2060</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>Australia</FONT></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>T&nbsp;&nbsp; +61 412 390 
267</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>M&nbsp;&nbsp; + 61 412 390 267</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>E&nbsp;&nbsp; jocelyn.dart@sap.com</FONT></SPAN> 
<BR><SPAN lang=en-us><FONT face=Arial color=#808080 size=1><A 
href="http://www.sap.com/">http://www.sap.com</A></FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>The 
information contained in or attached to this electronic transmission is 
confidential and may be legally privileged. It is intended only for the person 
or entity to which it is addressed. If you are not the intended recipient, you 
are hereby notified that any distribution, copying, review, retransmission, 
dissemination or other use of this electronic transmission or the information 
contained in it is strictly prohibited. If you have received this electronic 
transmission in error, please immediately contact the sender to arrange for the 
return of the original documents. </FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Electronic 
transmission cannot be guaranteed to be secure and accordingly, the sender does 
not accept liability for any such data corruption, interception, unauthorized 
amendment, viruses, delays or the consequences thereof.</FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Any views 
expressed in this electronic transmission are those of the individual sender, 
except where the message states otherwise and the sender is authorized to state 
them to be the views of SAP AG or any of its subsidiaries. SAP AG, its 
subsidiaries, and their directors, officers and employees make no representation 
nor accept any liability for the accuracy or completeness of the views or 
information contained herein. Please be aware that the furnishing of any pricing 
information/ business proposal herein is indicative only, is subject to change 
and shall not be construed as an offer or as constituting a binding agreement on 
the part of SAP AG or any of its subsidiaries to enter into any relationship, 
unless otherwise expressly stated. </FONT></SPAN></P>
<DIV>&nbsp;</DIV><BR>
<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>akshay.bhagwat@wipro.com<BR><B>Sent:</B> Thursday, 09 February 2006 4:41 
PM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> Triggering an event in 
Update task<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff size=2>Hi 
All,</FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff size=2>Let 
me first explain the scenario. We have 2 systems, one is SAP CRM and another is 
SAP-ISU.</FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2>While creating a contract in CRM, <SPAN class=046013605-09022006><FONT 
face=Verdana color=#0000ff size=2>We have to trigger the event in ISU system and 
start workflow in ISU system.</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>Once the workflow is started in ISU, it 
has some steps, which in turn has to update the status for line items&nbsp;of 
this contract&nbsp;in CRM system&nbsp;( which we are creating in 
CRM&nbsp;)</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>Now here we are facing problem of Contract 
being locked while workflow from ISU tries to update line items of this 
contract.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>I was thinking of two options of avoiding 
this locking: </SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>1 . Creating an event in update task of 
CRM, so as to make sure that it will be triggered at the latest point of saving 
the contract.( This will require rfc call for&nbsp;Event_create at ISU system's 
destination ,&nbsp;in CRM system's update task.)</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>2. Put the requested start step in ISU 
workflow with some delay say 1 min. , so that till this time, in CRM, contract 
is saved and not in edit mode.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>Pls. suggest which option we can opt 
for?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=046013605-09022006><FONT face=Verdana color=#0000ff 
size=2><SPAN class=046013605-09022006>3. Another point&nbsp;clarification needed 
that&nbsp;, is the purpose of calling SWE_EVENT_CREATE&nbsp;in Update task F.M. 
just to prolong the triggering&nbsp;at the latest point in a particular 
transaction?&nbsp;(In other words,&nbsp;can I use it just for prolonging the 
event triggering?)</SPAN></FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV align=left><FONT color=#000080 size=2><SPAN class=046013605-09022006>Thanks 
in advance.</SPAN></FONT></DIV>
<DIV align=left><FONT color=#000080 size=2><SPAN 
class=046013605-09022006></SPAN></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Verdana color=#000080 size=2>Regards,</FONT></DIV>
<DIV align=left><FONT face=Verdana color=#000080 size=2>Akshay</FONT></DIV>
<DIV><FONT face=Verdana><FONT color=#0000ff size=2><SPAN 
class=046013605-09022006></SPAN></FONT></FONT>&nbsp;</DIV>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT color=#000000><BR>The information contained in 
      this electronic message and any attachments to this message are intended 
      for the exclusive use of the addressee(s) and may contain proprietary, 
      confidential or privileged information. If you are not the intended 
      recipient, you should not disseminate, distribute or copy this e-mail. 
      Please notify the sender immediately and destroy all copies of this 
      message and any attachments. <BR><BR>WARNING: Computer viruses can be 
      transmitted via email. The recipient should check this email and any 
      attachments for the presence of viruses. The company accepts no liability 
      for any damage caused by any virus transmitted by this 
      email.<BR><BR>www.wipro.com<BR></FONT></TD></TR></TBODY></TABLE></BODY></HTML>