Trigger an event when execute VF01 - Create Billing Document

Flavio Oliveira oliveiraflavio at hotmail.com
Tue Sep 12 13:20:29 EDT 2006


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 DocumentDate: Tue, 12 Sep 2006 11:01:31 -0500From: mkrasnopolsky at deloitte.comTo: 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 AMTo: SAP Workflow Users' GroupSubject: 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 listSAP-WUG at mit.eduhttp://mailman.mit.edu/mailman/listinfo/sap-wug
_________________________________________________________________
Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today!
http://www.toolbar.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060912/d48f7af0/attachment.htm


More information about the SAP-WUG mailing list