Skip to Content
avatar image
Former Member

Shopping Cart Approvers

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 28, 2012 at 05:11 PM

    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 😉

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 28, 2012 at 05:05 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

      1.JPG (44.6 kB)
  • avatar image
    Former Member
    Oct 01, 2012 at 07:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2013 at 01:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded