cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart Approvers

Former Member
0 Kudos

Hi Sap gurus,

Can anyone tell me how to find the approvers for the shopping cart..

as per my knowledge we can find the approvers at APPROVAL PROCESS at shopping cart page... and how can we find through BBP_PD??

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can see this at the WFL log. You can acess the WFL log via SWI1 ( if you have the WI) or via SWI6.

Cheers,

Melina

Ps.: If this helps you, please assign the concerning SDN points

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I needed to do the same. This is how I solved it. You only need the GUID of the shopping cart.

REPORT 

zmsz_teszt.



DATA:

      lv_sc_id
TYPE crmd_orderadm_h-object_id,

      lv_sc_guid
TYPE crmd_orderadm_h-guid,

      ls_wf_hist
TYPE /sapsrm/s_wf_process.



FIELD-SYMBOLS:

               <ls_prolevlist>
TYPE LINE OF /sapsrm/s_wf_process-process_level_list,

               <ls_decision>
TYPE LINE OF /sapsrm/t_wf_decisionset_s,

               <ls_wi_list>
TYPE LINE OF /SAPSRM/T_WF_WORKITEM_S.



lv_sc_id
= '6800003658'.

lv_sc_guid
= '0050568602601ED299E0575227599CF4'.



/sapsrm/cl_wf_apv_facade
=>retrieve_process_history( EXPORTING iv_document_guid = lv_sc_guid

                                                              iv_agent_id
= ''

                                                              iv_language
= ''

                                                   
IMPORTING es_process = ls_wf_hist ).



*ls_wf_hist

WRITE: / 'USER         Decision'.

LOOP AT ls_wf_hist-process_level_list ASSIGNING <ls_prolevlist>.

 
LOOP AT <ls_prolevlist>-decisionset_list ASSIGNING <ls_decision>.

   
LOOP AT <ls_decision>-workitem_list ASSIGNING <ls_wi_list>.

     
WRITE: / <ls_wi_list>-agent, <ls_decision>-status.

   
ENDLOOP.

 
ENDLOOP.

ENDLOOP.

Cheers,

Misi

Former Member
0 Kudos

Hi ,

There is class /SAPSRM/CL_WF_APV_FACADE ,

it has various methods which on execution will give you the list of approvers.

It depends on the SC as to which status it is in.

If it has been completely approved then there is a method RETRIEVE_PROCESS_HISTORY

If you want the current approval process then use GET_CURRENT_PROCESS_LEVEL

so on and so forth.

Regards,

Naveen

Former Member
0 Kudos

Hi Sanjay,

You are correct you can find out approvers from BBP_PD transaction if you have implemented Application controlled workflow. If you have Business Rules Framework (Process Controlled workflow) then you can get workflow ID and go into T.code SWIA or SWI1 to get the approvers.

Are you looking some sort of report? Then there are BW reports which you can activate to find out approvers of SC.  There are function module also available please find below link.

http://scn.sap.com/thread/1915611

Hope this helps.

Thank you

Ritesh

Former Member
0 Kudos

Hi ritesh,

Thank you for your reply ritesh. Where can i found the approvers list in swia or swi1??

in SWIA by giving the workflow ID i got  work item type, work item text, created on, created time etc.... but where can i found the approvers list,,,

Former Member
0 Kudos

Hi Sanjay,

When you open the workflow it will show you Agents against which workflow is pending. Please see below screen shot. You have to click on Agent in order to get the person who is approving.

However there is limitation. This SWI1 and SWIA display current approver not the one that will going to approve the cart. If you are looking a snap shot of which approvers going to approve the cart then use the BW report or create an ABAP report using FM BBP_WFL_DIN_APPR_CONTAINER_GET where you have to enter the workID.

Hope this helps.

Thank you

Ritesh