Trigger an event when execute VF01 - Create Billing Document

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


Hi Flavio,
 
I did. 
First I executed SWED and added FAKTBELEG with tables VBRK and action 'Create'. 
Then I executed SWEC and added FAKTBELEG with my Business Object Type ZVBRK.
I checked SCDO and it has FAKTBELEG with function module.
 
But when I execute VF01, the table CDHDR - Change Document Header is not updated and my Workflow doesn't start.
There is something else I don't know about...
 
Thanks,
Marina
________________________________

From: Flavio Oliveira [mailto:oliveiraflavio at hotmail.com] 
Sent: Tuesday, September 12, 2006 1:20 PM
To: Krasnopolsky, Marina (US - Glen Mills)
Subject: RE: Trigger an event when execute VF01 - Create Billing Document


Marina:
 
Try change document object FAKTBELEG. It stors the billing document changes.
 
Regards,
Flávio.







________________________________

	Subject: RE: Trigger an event when execute VF01 - Create Billing Document
	Date: Tue, 12 Sep 2006 11:01:31 -0500
	From: mkrasnopolsky at deloitte.com
	To: sap-wug at mit.edu
	
	
	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 - 
		 Picture (Metafile)<http://no%20attachname/> 
		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
		
		
		



________________________________

Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today! Try it now! <http://www.toolbar.live.com>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060912/2c316545/attachment.htm


More information about the SAP-WUG mailing list