on 05-09-2013 10:52 AM
Hi,
In change document ( CV02n), I am changing the document to various status ( CH CN PF PA..) and sending working item to certain status setter ( CH setter, CN setter, PF setter ..).
If we are changing same status multiple times then in that case workitem is not sending to recent status setter. since in container { BOR - DRAW} initial setter ID is reflecting so work item is sent to initial setter.
Please find the attached file.
Initial PF setter is one person and next time some other user may change the document to PF setter. I need to capture recent status setter for all status.
Please let me know how to achieve this
Thanks & Regards,
Jack.
Hello Jack !
Is that the requirement is to trigger the workflow and send work item only if the status of the change document is set to particular status ?
Or you want to know the recent status set by the agent ? If so, the field DOKST in the table DRAW will be updated with recent status once the status is changed and the transaction is saved.
Regards,
S.Suresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jack,
Not sure I'm understanding your question correctly, but maybe this helps: on the DRAW object there is a method GetDetail2 (or GetDetail if you are on an older system) which has import parameter GetStatusLog. Call this method with GetStatusLog = X and the returned table STATUSLOG has which user set which status.
You could wrap the BAPI in your own method to return just the user who set the status that is relevant to this workflow instance.
I hope this is helpful!
Margaret
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Margaret,
Thanks for your reply.
I have solved my issue . In the attributes of PFsetter ( in BOR ) , I made code changes like as below .
Extracting all change numbers associated with setting status ( from CDPOS) and by picking the latest change no and then extracting username for change no from table CDHDR and I passed the same to the workflow.
Thanks & Regards,
Jack
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.