Trigger an event when execute VF01 - Create Billing Document

Krasnopolsky, Marina (US - Glen Mills) mkrasnopolsky at deloitte.com
Mon Sep 11 15:04:06 EDT 2006


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)>> 

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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060911/35aa3b95/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/bmp
Size: 396918 bytes
Desc: Picture (Metafile)
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060911/35aa3b95/attachment.bin


More information about the SAP-WUG mailing list