<div>
<div>Ah. Well. If you're not getting ZBILLDOCUMENT entries in CDHDR then you won't get events triggered out of SWEC. I think you need to get this resolved before you worry about the SWEC entries. Sorry, but this is too SD based for me. 
</div>
<div>&nbsp;</div>
<div>Good luck,</div></div>
<div><span class="sg">
<div>Mark<br>&nbsp;</div></span></div>
<div>&nbsp;</div>
<div>(no need to send to my email address&nbsp;directly&nbsp;- I get everything that comes through the list).<br>&nbsp;</div>
<div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Krasnopolsky, Marina (US - Glen Mills)</b> &lt;<a href="mailto:mkrasnopolsky@deloitte.com">mkrasnopolsky@deloitte.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>Hi Mark,</span></font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>ZBILLDOCUMENT is my change document object I created. It is like VERKBELEG, but with the table VBRK. I cannot use VERKBELEG, because it is for VBAK - for Sales Orders, not for Billing Documents. I don't see any SAP change document objects I can use. The object type I use is ZVBRK.&nbsp;
</span></font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>When I execute for example, IW31, I can see entries in CDHDR for ORDER (ORDER is Change Document Object). How can I see entries in CDHDR when I execute VF01? I definetely miss something.
</span></font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>Please advise.</span></font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>Thanks,</span></font></div>
<div dir="ltr" align="left"><font face="Verdana" color="#0000ff" size="2"><span>Marina</span></font></div>
<div><br><span><font face="Verdana" color="#0000ff" size="2">&nbsp;</font></span> 
<hr>
<font face="Tahoma" size="2"><b>From:</b> Mark Pyc [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mark.pyc@gmail.com" target="_blank">mark.pyc@gmail.com</a>] <br><b>Sent:</b> Tuesday, September 12, 2006 11:25 AM
<br><b>To:</b> SAP Workflow Users' Group<br><b>Subject:</b> Re: Trigger an event when execute VF01 - Create Billing Document<br></font><br>&nbsp;</div></div>
<div><span class="e" id="q_10da2c3146b508f7_1">
<div></div>
<div>G'day Marina,</div>
<div>&nbsp;</div>
<div>I don't know SD particularly well, but it seems to me that you've got a bit confused in SWEC. The ChangeDocObject shouldn't be your business object but the Change Document Object (different kind of object concept). A quick look at the drop down and I guess you'd be looking for VERKBELEG. To be sure you can look at what entries are created in table CDHDR as the 
C.D.O is part of the key.</div>
<div>&nbsp;</div>
<div>Also unless there is a good reason you shouldn't be refering to your ZBILLINGDOC at all but rather using substitution and refering to VBRK. </div>
<div>&nbsp;</div>
<div>Actually you say your subtype is ZVBRK, so what is ZBILLINGDOC? Maybe I'm confused.</div>
<div>&nbsp;</div>
<div>Have fun,</div>
<div>Mark<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/11/06, <b class="gmail_sendername">Krasnopolsky, Marina (US - Glen Mills)</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mkrasnopolsky@deloitte.com" target="_blank">
mkrasnopolsky@deloitte.com</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>
<div><font face="Verdana" size="2">
<p><font face="Verdana" size="2">Hi All,</font> </p>
<p><font face="Verdana" size="2">I've created a workflow that has to be triggered every time user executes the transaction VF01 - Create Billing Document.</font></p>
<p><font face="Verdana" size="2">The Business Object Type VBRK doesn't have an event 'Created'. So I've created a subtype ZVBRK with event 'BillingDocument.created'.</font></p>
<p><font face="Verdana" size="2">When this event is triggered, my workflow starts. I thought I can find a user-exit for VF01 and start this event using function module 'SWE_EVENT_CREATE', but I couldn't find a user-exit in VF01. I decided to create a Change Document. 
</font></p>
<p><font face="Verdana" size="2">I went to Tools -&gt; Business WF -&gt; Development -&gt; Definition Tools -&gt; Events -&gt; Event Creation -&gt; Change Document -&gt; Define WF Properties and added ZBILLDOCUMENT as Change Document Object with VBRK table and action 'Create'. 
</font></p>
<p><font face="Verdana" size="2">Then I executed SWEC and created an event for Change Document Object ZBILLDOCUMENT using my Business Object Type ZVBRK, event 'Created' and On Create.&nbsp; I've added Field Restrictions - </font>
</p>
<p><font face="Arial" color="#000000" size="2"><img alt="Picture (Metafile)" src="No%20AttachName"></font> </p>
<p><font face="Verdana" size="2">I'm not sure if this is right. But Workflow doesn't start when I execute VF01.</font> </p>
<p><font face="Verdana" size="2">What I'm doing wrong? Is there a better way to trigger my event?</font> </p>
<p><font face="Verdana" size="2">Thanks,</font> <br><font face="Verdana" size="2">Marina</font> </p><br><br></font></div>
<div><font face="Verdana" size="2">This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.&nbsp; If you are not the intended recipient, you should delete this message.&nbsp; 
<br><br></font></div>
<div><font face="Verdana" size="2">Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]<br></font></div></div></div><br>_______________________________________________ 
<br>SAP-WUG mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">
http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br><br></blockquote></div><br></span></div>
<div></div></div></blockquote></div><br>