How to trig a Task in DMS !

Kim, Ji Hoon ji.hoon.kim at sap.com
Wed Aug 24 03:47:36 EDT 2005


Try followings.

 

1. User A create DIR.

2. User B change status of the DIR.

3. Check whether the WF is triggered or not.

 

If it works, see the "check function module" of following record in
transaction SWETYPV.

 

Object Category: BOR Object

Object Type: DRAW

Event: Changed

Receiver Type: DOKST

 

The check function module is usually CVWF_EVENT_REC_DOKST_CHECK.

 

In the source code of CVWF_EVENT_REC_DOKST_CHECK,

 

IF TDWS-OBJID EQ SPACE
     OR TDWS-OTYPE EQ SPACE
     OR L_USER EQ SY-UNAME                    <----- This is your
problem, I guess.
     OR L_DOKST EQ L_DOKST_OLD.
      RAISE NO_RECTYPE.
  ENDIF.

 

Above code means that the event will not be triggered, if the user who
changed status is equal to the user who changed DIR recently
(DRAW-DWNAM).

 

I don't know why SAP checks this when creating event. 

 

One workaround is copy CVWF_EVENT_REC_DOKST_CHECK to customer namespace
without the line, "OR L_USER EQ SY-UNAME".

And change check function module to new one in transaction SWETYPV.

 

Thanks and regards,

Kim, Ji Hoon

 


________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of lql
Sent: Wednesday, August 24, 2005 2:54 PM
To: sap-wug at mit.edu
Cc: lql at wri.com.cn
Subject: How to trig a Task in DMS !


Hi,Workflowers:
 
I have a question now.
 
 
I want to trig a WS when document 's status from one to another one(such
as form AA  to FR).
 
in IMG (R/3 4.6C): Cross-Application Components- Document Management
System-Control Data-Define Document types 
 
Set the object type & Object ID in the FR status Workflow Task box.
 
But when the Status is changed, My WS not be trigged. why?
 
i lost sth?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050824/b7b5d77d/attachment.htm


More information about the SAP-WUG mailing list