<!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.1561" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006>Hi Mark,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=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. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=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=163334615-12092006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006>Please advise.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006>Thanks,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#0000ff size=2><SPAN
class=163334615-12092006>Marina</SPAN></FONT></DIV>
<DIV><BR><SPAN class=163334615-12092006><FONT face=Verdana color=#0000ff
size=2> </FONT></SPAN>
<HR tabIndex=-1>
<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> </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> </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> </DIV>
<DIV>Actually you say your subtype is ZVBRK, so what is ZBILLINGDOC? Maybe I'm
confused.</DIV>
<DIV> </DIV>
<DIV>Have fun,</DIV>
<DIV>Mark<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 9/11/06, <B class=gmail_sendername>Krasnopolsky,
Marina (US - Glen Mills)</B> <<A
href="mailto:mkrasnopolsky@deloitte.com">mkrasnopolsky@deloitte.com</A>>
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 -> Business WF ->
Development -> Definition Tools -> Events -> Event Creation ->
Change Document -> 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. 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. If you are not the intended recipient,
you should delete this message. <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">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></BODY></HTML>