Trigger an event when execute VF01 - Create Billing Document

Krasnopolsky, Marina (US - Glen Mills) mkrasnopolsky at deloitte.com
Tue Sep 12 12:01:31 EDT 2006


Hi Mark,
 
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. 
 
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.
 
Please advise.
 
Thanks,
Marina

  
________________________________

From: Mark Pyc [mailto:mark.pyc at gmail.com] 
Sent: Tuesday, September 12, 2006 11:25 AM
To: SAP Workflow Users' Group
Subject: Re: Trigger an event when execute VF01 - Create Billing
Document


G'day Marina,
 
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.
 
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. 
 
Actually you say your subtype is ZVBRK, so what is ZBILLINGDOC? Maybe
I'm confused.
 
Have fun,
Mark

 
On 9/11/06, Krasnopolsky, Marina (US - Glen Mills) <
mkrasnopolsky at deloitte.com> wrote: 

	Hi All, 

	I've created a workflow that has to be triggered every time user
executes the transaction VF01 - Create Billing Document.

	The Business Object Type VBRK doesn't have an event 'Created'.
So I've created a subtype ZVBRK with event 'BillingDocument.created'.

	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. 

	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'. 

	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 - 

	  

	I'm not sure if this is right. But Workflow doesn't start when I
execute VF01. 

	What I'm doing wrong? Is there a better way to trigger my event?


	Thanks, 
	Marina 



	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.  
	
	
	Any disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited. [v.E.1]
	

	_______________________________________________ 
	SAP-WUG mailing list
	SAP-WUG at mit.edu
	http://mailman.mit.edu/mailman/listinfo/sap-wug
	
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060912/79224872/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/bmp
Size: 396918 bytes
Desc: ole0.bmp
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060912/79224872/attachment.bin


More information about the SAP-WUG mailing list