Skip to Content

How to get the latest approver user id in my SAP MDG material workflow


Please find my scenario as per below.

After step 00, workflow will trigger step 10.

we have added a role and one of the user will approve the CR at step 10.

Now we need to send it to the approver's manager by calling standard HR FM.

here the issue is I need to get the approver user id who has approved step 10.

Is there any class which I can use without calling workflow header table like SWWWIHEAD.

I tried using CL_USMD_WF_SERVICE and method GET_CR_WIS but not able to fetch any value.

Thanks in advance.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 27, 2018 at 06:31 PM

    Hi Raj,

    Well, you don't tell us about the workflow template you are using, so I am going with the assumption that you've built a custom template - since you can't modify an SAP-delivered one anyway.

    In the workflow itself, you'd define a container element similar to UserID. Then, in the WF Builder for your Step 10, you would *bind* the user who executed that task back to the container element that you just defined.

    You don't need to search SWWWIHEAD or anything like that... Workflow can capture that information for you, and it's up to you, the workflow developer, utilize it.

    Good luck,


    Add comment
    10|10000 characters needed characters exceeded