How to chnage work flow initiator
I have an workflow which triggers on creation/ change of contract agreement tcode - ME31K or ME32K. Work flow is working fine. I am using class local class methods to get approvers etc.
I have created custom container I_LV_INITIATOR inside work flow.
Whenever user is changing the contract through ME32K , value of container I_LV_INITIATOR is filled with
user id of person who has created the contract .
But the requirement is if purchase document category (EKKO-BSTYP) = 'K' then I want this container I_LV_INITIATOR
to be filled with user id of person who has changed the contract not with the one who has created the contract. and If I manually test the work flow from SWUS , value of container I_LV_INITIATOR is filled with user id of person who is manually processing the work flow.
Kindly help or give any suggestion f we could achieve this in enhancement or exits.
Mike Pokraka replied
I queried this with OSS a while back and apparently it's "by design", POs and Contracts will always show the PO creator as initiator for any changes.
They came close to admitting it was a stupid design, but it's been like this for too long and too many customers have made provision for it so SAP won't change it.
So the answer as per this thread is to determine who last changed it at the beginning of the WF.