SWED (change doc linkage) seems to have no effect

Philip Kisloff pkisloff at dc.com
Wed Aug 16 10:13:53 EDT 2000


Hi Tom,
 
I think I can answer part of the question: the transaction that
creates/changes documents calls function module CV_BUCHEN_DOKUMENT. Inside
this function module is SWE_EVENT_CREATE which generates the created/changed
events independant of any change documents produced.
 
In release 4.5B, SWEC contains extra events not present for business object
DRAW (i.e. pending, checked, released & deleted). Perhaps they are there for
a good reason, but if not I suspect events "created" and "changed" also need
not be there.
 
I don't feel qualified to say what is going on with the change document
generation, but my conclusion is that it's nothing to do with event
generation.
 
Regards
 
Philip Kisloff
Deloitte Consulting
Oberwil-CH
 
 
-----Original Message-----
From: Tom Jull [mailto:r9983c at email.sps.mot.com]
Sent: Friday, August 11, 2000 11:05 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: SWED (change doc linkage) seems to have no effect
 
 
Hoping someone can clarify the purpose of transaction SWED ("Define
Workflow Properties" of change document objects), since it seems to have
no impact upon my event development (at least in one respect).
Everything works fine, but I am confused.
 
I am raising an event (called "ZCreated") for a custom copy of the
business object "DRAW" when a new document info record is created.  When
looking at the entry for the change document object type "DOKUMENT" via
SWED, I noticed that the "Change" radio button was filled but the
"Create" radio button was blank.  This puzzled me since I thought that
this had to be selected if I wanted my "create" event to be published.
Nevertheless, my event was being raised just fine.
 
I checked the change document table CDHDR for my document info record.
The "Application update indicator" was "U" (update) instead of "I"
(insert).  I thought, therefore, that the event was being raised because
the "Change" indicator was filled in SWED.  For kicks, I blanked out the
"Change" indicator.  There were then "NO" action indicators set for
"DOKUMENT" in SWED.  Created new document info record... event raised
just fine!
 
I am now under the suspicion that only the settings in SWEC matter in
this instance and I have no idea what the "Create" "Change" "Delete"
radio buttons are for in SWED.
 
Any insight?  Am I missing something fundamental?
 
Tom Jull
 
P.S.:  Seems to me that the delivery class of the table (SWECDOBTYP)
behind SWED should not be "S" (system table).  It should be a control
table with separate name spaces or better, a customizing table.
 


More information about the SAP-WUG mailing list