cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding change setter in Change Document

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

suresh_subramanian2
Active Contributor
0 Kudos

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.

mh97
Contributor
0 Kudos

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

Former Member
0 Kudos

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