on 02-25-2014 11:01 AM
Hi Experts,
I have requirement when document status changes in the tcode cv01n or cv02n workflow should trigger.
what is the business object event for the tcode cv01n or cv02n.
whether we need to develop single worflow for the 2 transaction or 2 separate workflow for 2 transaction
Regards,
Zubera
Hi,
You can Implement Badi "DOCUMENT_MAIN01' and use Method AFTER_SAVE to trigger your workflows. This will work for both CV01N and CV02N.
Just read the current DRAW-DOKST value and the older value to trigger.
Thanks &Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Bala and ravi..
I have one more dobut.. 2 Event is there in the DRAW Changed and created event.
So I need to trigger the event is the cv01n and cv02n when the status changed
from A to B. So i need to use the statsu DRAW change right?
How can i pass the value from BADI to the workflow for the key field
DOKNR, DOKAR,DOKVR and DOKTL.
Hi,
If you use Event Changed, then it will trigger any value is changed and saved in CV02N, if you want to use that Event then you need to first add a select statement to fetch the old values from DRAW table and the Badi importing parameter DRAW to check the status change(DOKST), Just check as this method will trigger AFTER SAVE, you can use another method BEFORE_SAVE for triggering the workflow.
For the Business Object:- DRAW, you have keyfields as all those 4 fields, so you pass to them or set.
Thanks & Regards
Bala Krishna
What i am planning is to use event change, than depend upon the status and depend on th department, i can send the mail to user.
For example:
if user changes the status A to B and dept is FI , I will send the approval to FI head
if user changes the status A to B and dept is PM , I will send the approval to PM head.
if user status change to B TO C, irrespective of Dept it has to send the approval to same person.
is this idea is ok?
i have one more question, for the particualr tcode, when workflow trigger, how we can get the key fields values from tocd to workflow. through task and binding we can get the value? pls suggest
Hi Udupi
Whatever Bala & Ravi has given solution is correct. You need to dveleop a workflow based on the following:
Document Type, Document part, Document Version, Document status. Workflow can be triggered through SWDD transaction. Also it can triggered the E-mail facility to user after DMS/DIR changed to specific status. Before this you have to decide the workflow steps & logic.
Workflow can be traced through SWI6 transaction with Key Object as DRAW.
Thanks
Pravin
Hi Zubera,
DRAW is the business object for DIR's in DMS.
You can create workflow for DRAW with triggering event as status change.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.