cancel
Showing results for 
Search instead for 
Did you mean: 

How to find approvers who approved the shopping cart

Former Member
0 Kudos

Hi All,

My requirement is as follows:

If I give the shopping cart document id, I should be able to find

1) the list of approvers who approved the document

2) how much time they have taken to approve the document

3) any pending approvals for the document.

Can anyone help me in this?

Thanks,

Sivagami R

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

Here is technical details which will help if you are in SRM 7.0..

The below methods are in the class /SAPSRM/CL_WF_EVENT_FACADE

Pass the SC GUID to method 'GET_WORKFLOW_ID_BY_DOCUMENT' .. get the header workitem id.

1 . to get the current approvers list call the method GET_CURRENT_AGENTS..

2. to get the previous approvers list call the method GET_PREVIOUS_AGENTS.

if you are in SRM 5.0 then use the below FM's..

1 . call the FM BBP_PDH_WFL_WI_FROM_OBJECT_GETu2019 to get the header workitem id..

2 . call the FM u2018BBP_WFL_DIN_APPR_FINALLIST_GETu2019 to get the list approver's for a SC

3 . if you need the workitem details then call FM BBP_PDH_WFL_WI_DETAILS_GETu2019..

Regards,

Saravanan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I tried FM 'SWI_GET_DEPENDENT_WORKITEMS ' which gives all workitems of the parent work item id. In this I selected the work item with type 'W'.

Is this the right way?

thanks,

Sivagami R

Former Member
0 Kudos

Hi Sivagami,

Your right.. You have to use W - Dialog Work Item; Represents a Single-Step Task..

Thanks!!

Bharath