on 10-23-2014 3:56 PM
Hi all,
Do you know if there is a FM to get the user who approved a document?
In our system we have, for Confirmations for example, several approval eschemas with several process levels.
What we want to know is the user who approved the last level. (or the current level)
Do you know if exists a FM to get this user? Or do I need to read all the workflow's workitems and select the user from table swwwihead or something like that.
Thanks in advance,
Regads,
Ricardo.
Hello,
As always in SAP, you should only access the tables as a last resort (since they could change them at any time). With workflow-related queries almost everything can be done with SAP_WAPI* functions.
I think the one you need here is SAP_WAPI_READ_CONTAINER.
regards
Rick Bakker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rick,
Yes, knowing the workitem I can use this FM instead of accesing the tables.
But what I want to know is if exists an specific SRM FM to get the approver or if I need to read the WF tables...
If not I guess I can use FM SAP_WAPI_WORKITEMS_TO_OBJECT to get all the workitems and then SAP_WAPI_READ_CONTAINER to obtain the user.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.