<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>Hi Flavio,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>I did.&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>First I executed SWED and added FAKTBELEG with tables VBRK and 
action 'Create'. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>Then I executed SWEC and added FAKTBELEG with my Business Object 
Type ZVBRK.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>I checked SCDO and it has FAKTBELEG with function 
module.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>But when I execute VF01, the table CDHDR - Change Document Header 
is not updated and my Workflow doesn't start.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>There is something else I don't know about...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248311819-12092006><FONT face=Verdana 
color=#0000ff>Marina</FONT></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Flavio Oliveira 
[mailto:oliveiraflavio@hotmail.com] <BR><B>Sent:</B> Tuesday, September 12, 2006 
1:20 PM<BR><B>To:</B> Krasnopolsky, Marina (US - Glen Mills)<BR><B>Subject:</B> 
RE: Trigger an event when execute VF01 - Create Billing 
Document<BR></FONT><BR></DIV>
<DIV></DIV>Marina:<BR>&nbsp;<BR>Try change document object FAKTBELEG. It stors 
the billing document 
changes.<BR>&nbsp;<BR>Regards,<BR>Flávio.<BR><BR><BR><BR><BR><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px">
  <HR id=EC_stopSpelling>
  Subject: RE: Trigger an event when execute VF01 - Create Billing 
  Document<BR>Date: Tue, 12 Sep 2006 11:01:31 -0500<BR>From: 
  mkrasnopolsky@deloitte.com<BR>To: sap-wug@mit.edu<BR><BR>
  <META content="Microsoft SafeHTML" name=Generator>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>Hi Mark,</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>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 
  class=EC_163334615-12092006></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>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 
  class=EC_163334615-12092006></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>Please advise.</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>Thanks,</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN 
  class=EC_163334615-12092006>Marina</SPAN></FONT></DIV>
  <DIV><BR><SPAN class=EC_163334615-12092006><FONT face=Verdana color=#0000ff 
  size=2>&nbsp;</FONT></SPAN> 
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> Mark Pyc [mailto:mark.pyc@gmail.com] 
  <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></DIV>
  <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=EC_gmail_quote>On 9/11/06, <B 
  class=EC_gmail_sendername>Krasnopolsky, Marina (US - Glen Mills)</B> &lt;<A 
  href="mailto:mkrasnopolsky@deloitte.com">mkrasnopolsky@deloitte.com</A>&gt; 
  wrote:</SPAN> 
  <BLOCKQUOTE class=EC_gmail_quote 
  style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <DIV>
    <DIV><FONT face=Verdana size=2><FONT face=Verdana size=2>Hi All,</FONT> 
    <BR><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><BR><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><BR><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><BR><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><BR><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><BR><FONT face=Arial color=#000000 size=2><IMG 
    alt="Picture (Metafile)" src="http://no%20attachname/" NOSEND="1"></FONT> 
    <BR><FONT face=Verdana size=2>I'm not sure if this is right. But Workflow 
    doesn't start when I execute VF01.</FONT> <BR><FONT face=Verdana size=2>What 
    I'm doing wrong? Is there a better way to trigger my event?</FONT> <BR><FONT 
    face=Verdana size=2>Thanks,</FONT> <BR><FONT face=Verdana 
    size=2>Marina</FONT> <BR><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 
    href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A 
    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></BLOCKQUOTE><BR>
<HR>
Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today! <A href="http://www.toolbar.live.com" target=_new>Try it now!</A> 
</BODY></HTML>