<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Initiate an event from a new Change Documents</TITLE>
</HEAD>
<BODY>
 
<P><FONT SIZE=3D2>Kishore,</FONT>
</P>
 
<P><FONT SIZE=3D2>Yes, it is what I need to do.</FONT>
<BR><FONT SIZE=3D2>Thanks for your help!</FONT>
<BR><FONT SIZE=3D2>Cheer!!!!!!!!</FONT>
</P>
 
<P><FONT SIZE=3D2>Regards,</FONT>
<BR><FONT SIZE=3D2>Jennie</FONT>
</P>
 
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Kishore Thota [<A =
HREF=3D"mailto:kthota@us.ibm.com">mailto:kthota@us.ibm.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Saturday, April 22, 2000 12:22 PM</FONT>
<BR><FONT SIZE=3D2>To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Initiate an event from a new Change =
Documents</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2>Jennie,</FONT>
<BR><FONT SIZE=3D2>I have tried to do this before.&nbsp; This is what I =
have found out.</FONT>
<BR><FONT SIZE=3D2>When you create a custom change document object, you =
have to do the</FONT>
<BR><FONT SIZE=3D2>following to make it trigger an event:</FONT>
</P>
 
<P><FONT SIZE=3D2>&nbsp;&nbsp; Generate an Update program (SCDO)</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; A Function module in the form =
'Z_OBJECT'_WRITE_DOCUMENT</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; Call this update program in the =
application from where you want to</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; create the change document.&nbsp; You =
can see how this is implemented by</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; looking at where used list of active =
change document object function</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; modules ex: =
ERKBELEG_WRITE_DOCUMENT.</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; This should create the change document =
and trigger the event linked to</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; it in SCDO.</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2>All:</FONT>
</P>
 
<P><FONT SIZE=3D2>Please correct me if you think otherwise.</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2>Thanks,</FONT>
<BR><FONT SIZE=3D2>Kishore Thota</FONT>
<BR><FONT SIZE=3D2>Ph: (919) 543-1831</FONT>
<BR><FONT SIZE=3D2>Tie Line: 8-441-1831</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2>&quot;Chen, Jennie&quot; =
&lt;xacchenj@ti.com&gt;@MITVMA.MIT.EDU&gt; on 04/22/2000 01:07:51 =
PM</FONT>
</P>
 
<P><FONT SIZE=3D2>Please respond to &quot;SAP Workflow Users' =
Group&quot; &lt;SAP-WUG@MITVMA.MIT.EDU&gt;</FONT>
</P>
 
<P><FONT SIZE=3D2>Sent by:&nbsp; SAP Workflow =
&lt;Owner-SAP-WUG@MITVMA.MIT.EDU&gt;</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2>To:&nbsp;&nbsp; SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=3D2>cc:</FONT>
<BR><FONT SIZE=3D2>Subject:&nbsp; Initiate an event from a new Change =
Documents</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
 
<P><FONT SIZE=3D2>Hope you can help me with my questions.=A0 ;-)</FONT>
</P>
 
<P><FONT SIZE=3D2>We are working on 4.0B and</FONT>
<BR><FONT SIZE=3D2>1)Transaction SCDO.=A0 I created a new change =
document object ZVERKBELEG</FONT>
<BR><FONT SIZE=3D2>which is copied from VERKBELEG in system.</FONT>
</P>
 
<P><FONT SIZE=3D2>2)Transaction SWED.=A0 I entered my new object =
ZVERKBELEG and listed the</FONT>
<BR><FONT SIZE=3D2>&quot;main table</FONT>
<BR><FONT SIZE=3D2>in change doc&quot; as VBAP.=A0 I want the event =
generated for &quot;change&quot; and</FONT>
<BR><FONT SIZE=3D2>&quot;create&quot; records.</FONT>
</P>
 
<P><FONT SIZE=3D2>3)I created a business object ZVBAP that is the =
subtype of VBAP.</FONT>
</P>
 
<P><FONT SIZE=3D2>4)Transaction SWEC.=A0 I entered my new change =
document object and pointed</FONT>
<BR><FONT SIZE=3D2>to my business object ZVBAP and events( trigger =
event &amp; terminate event</FONT>
<BR><FONT SIZE=3D2>).=A0 Also,=A0 in the field restrictions I enter =
field VBAP-CEPOK which is</FONT>
<BR><FONT SIZE=3D2>marked as change</FONT>
<BR><FONT SIZE=3D2>document field and if the field value is changed =
from ' ', 'A' to 'B', then</FONT>
<BR><FONT SIZE=3D2>starts the triggering event.</FONT>
<BR><FONT SIZE=3D2>If the field value of VBAP-CEPOK is changed from 'B' =
to 'C', 'A', then</FONT>
<BR><FONT SIZE=3D2>starts the terminating event.</FONT>
</P>
 
<P><FONT SIZE=3D2>5)A task is created with triggering event and =
terminating event as same</FONT>
<BR><FONT SIZE=3D2>as 4).</FONT>
</P>
 
<P><FONT SIZE=3D2>Questions:</FONT>
<BR><FONT SIZE=3D2>I tried to create a Sales Order and then change =
customer expected</FONT>
<BR><FONT SIZE=3D2>price which will change the value of=A0 VBAP-CEPOK =
from ' ' to 'B'.=A0 Why</FONT>
<BR><FONT SIZE=3D2>there is no event triggered?</FONT>
<BR><FONT SIZE=3D2>Do I miss anything?</FONT>
</P>
 
<P><FONT SIZE=3D2>Thanks for your help and patience!</FONT>
</P>
 
<P><FONT SIZE=3D2>Regards,</FONT>
<BR><FONT SIZE=3D2>Jennie Chen</FONT>
<BR><FONT SIZE=3D2>xacchenj@ti.com</FONT>
<BR><FONT SIZE=3D2>972-927-5448</FONT>
</P>
<BR>
 
</BODY>
</HTML>