Skip to Content
0

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

Mar 27 at 11:24 AM

52

avatar image
Former Member

Hi,

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.

Regards,

Raj

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Susan Keohan
Mar 27 at 06:31 PM
0

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,

Sue

Share
10 |10000 characters needed characters left characters exceeded