cancel
Showing results for 
Search instead for 
Did you mean: 

How to get complete list of SC approver agents in SRM 7.0 GUI

former_member434229
Active Participant
0 Kudos
1,014

Hi,

I found multiple ways to get current agent/approver for a given shopping cart.

Transaction SWIA

Class-method - /SAPSRM/CL_WF_EVENT_FACADE->GET_CURRENT_AGENTS

FM SAP_WAPI_GET_WI_AGENTS
FM RH_SWWUSERWI_READ_FOR_WI

Table SWWUSERWI

However, my requirement to get all level of approvers for any shopping cart in SRM 7.0 GUI.

Is there any way, I can retrieve the complete approver list either through Class-method, function module or thr database tables.

Help will be appreciated and points will be awarded.

Thank you,

Ni3

Accepted Solutions (1)

Accepted Solutions (1)

former_member434229
Active Participant
0 Kudos

Got the solution.

Class - method /SAPSRM/CL_WF_APV_FACADE->GET_PROCESS_INFO provides all approver details based on below parameter

Agent ID - <SC Creator>

Regards,

Ni3

Answers (1)

Answers (1)

0 Kudos

Hello,

actually the agents which have already executed their workitems can be found in the WFL tables. To get an insight of this, visit the Wiki page: https://wiki.scn.sap.com/wiki/x/JoTOEg. Here you will find the historical data only. If you wish to find all the possible future approvers, that task is a bit harder because those approvers are not stored in any tables but determined during runtime. To get more insights I would recommend to debug the approval preview e.g.:

/SAPSRM/CL_CH_WD_DOM_APV_AT method /SAPSRM/IF_CLL_DOM_APV_EXT~CONVRT_PROC_INFO_FOR_UI (Header)

to get an insight about how the approvers are evaluated.

Best Regards

Zoltán

former_member434229
Active Participant

Hi Zoltan,

Thank you for the response, wiki page link provided was really helpful, table '/SAPSRM/D_WF_016' hold good amount of information related to WF agent details.

However, the table do not provide complete list of approvers as per my requirement, search still on.

Regards,

Nitin

vishal_agrawal3
Participant
0 Kudos

HI Nitin,

Did you find an answer? I am also looking for the same scenario where I can get a list of all future approvers for a PO/Contract as soon as it gets created.

Regards,

Vishal Agrawal