Initiate an event from a new Change Documents

Chen, Jennie xacchenj at ti.com
Tue Apr 25 13:31:03 EDT 2000


Kishore,
 
Yes, it is what I need to do.
Thanks for your help!
Cheer!!!!!!!!
 
Regards,
Jennie
 
-----Original Message-----
From: Kishore Thota [mailto:kthota at us.ibm.com]
Sent: Saturday, April 22, 2000 12:22 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Initiate an event from a new Change Documents
 
 
Jennie,
I have tried to do this before.  This is what I have found out.
When you create a custom change document object, you have to do the
following to make it trigger an event:
 
   Generate an Update program (SCDO)
   A Function module in the form 'Z_OBJECT'_WRITE_DOCUMENT
   Call this update program in the application from where you want to
   create the change document.  You can see how this is implemented by
   looking at where used list of active change document object function
   modules ex: ERKBELEG_WRITE_DOCUMENT.
   This should create the change document and trigger the event linked to
   it in SCDO.
 
 
All:
 
Please correct me if you think otherwise.
 
 
Thanks,
Kishore Thota
Ph: (919) 543-1831
Tie Line: 8-441-1831
 
 
"Chen, Jennie" <xacchenj at ti.com>@MITVMA.MIT.EDU> on 04/22/2000 01:07:51 PM
 
Please respond to "SAP Workflow Users' Group" <SAP-WUG at MITVMA.MIT.EDU>
 
Sent by:  SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
 
 
To:   SAP-WUG at MITVMA.MIT.EDU
cc:
Subject:  Initiate an event from a new Change Documents
 
 
 
 
 
Hope you can help me with my questions.  ;-)
 
We are working on 4.0B and
1)Transaction SCDO.  I created a new change document object ZVERKBELEG
which is copied from VERKBELEG in system.
 
2)Transaction SWED.  I entered my new object ZVERKBELEG and listed the
"main table
in change doc" as VBAP.  I want the event generated for "change" and
"create" records.
 
3)I created a business object ZVBAP that is the subtype of VBAP.
 
4)Transaction SWEC.  I entered my new change document object and pointed
to my business object ZVBAP and events( trigger event & terminate event
).  Also,  in the field restrictions I enter field VBAP-CEPOK which is
marked as change
document field and if the field value is changed from ' ', 'A' to 'B', then
starts the triggering event.
If the field value of VBAP-CEPOK is changed from 'B' to 'C', 'A', then
starts the terminating event.
 
5)A task is created with triggering event and terminating event as same
as 4).
 
Questions:
I tried to create a Sales Order and then change customer expected
price which will change the value of  VBAP-CEPOK from ' ' to 'B'.  Why
there is no event triggered?
Do I miss anything?
 
Thanks for your help and patience!
 
Regards,
Jennie Chen
xacchenj at ti.com
972-927-5448
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20000425/2b3c9069/attachment.htm


More information about the SAP-WUG mailing list