SRM 4.0 - Shopping cart approval

Márton Zsolt Zsolt.Marton at t-systems.co.hu
Fri Nov 3 06:21:13 EST 2006


Hi Susan,
Thanks for quick reply...
Debugging the transaction we found the following:

After adding item(s) to the shopping cart, saving it, we press the order button. Apparently the workitem gets created successfully, however, it is in waiting status due to the fact that the Desired start date is 31.12.9999 and no event is raised by the Shopping cart application which would trigger the workflow.

This standard functionality has been working without problems for quite a long time. However, recently we have installed support package no. 10 for the SRM Server.

We also carried out a source code analysis which led us to the following modification made by SAP became effective in function module  'SWD_API_SIMULATED_WF_START' on the same day when we installed the support package.

...
* ------------------------------------------------------------------- *
  IF iv_start_workitem_id IS INITIAL.
    CALL FUNCTION 'BBP_PDH_WFL_EVENT_CONTAIN_SET'
      EXPORTING
        iv_object_id        = iv_object_id_sc
        iv_object_type      = iv_object_type
        iv_guid             = iv_guid
        iv_user             = iv_user
        iv_start_task       = iv_start_task
      IMPORTING
        ecl_container_start = lcl_container_start
      TABLES
        it_reviewer         = it_reviewer
        it_virtual_approver = lt_virtual_approver
        it_virtual_nodes    = it_virtual_nodes.


    IF lcl_container_start IS NOT INITIAL.
*  start a new unmodified workflow now
      CALL FUNCTION 'SWD_API_SIMULATED_WF_START'
        EXPORTING
          im_task               = iv_start_task
*          im_create_only        = iv_park
          im_create_only        = 'X'
          im_do_commit          = 'X'
          im_workitem_container = lcl_container_start
          im_agent_container    = lcl_container_agents
        IMPORTING
          ex_wi_id              = lv_start_workitem_id
        EXCEPTIONS


Thanks, Zsolt

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Susan Keohan
Sent: Friday, November 03, 2006 11:41 AM
To: SAP Workflow Users' Group
Subject: Re: SRM 4.0 - Shopping cart approval

Hi Zsolt,

I've seen workflows in waiting status when the user 'holds' the cart... 
I'd check the cart status in BBP_PD to see if that's what is happening.
Otherwise, sorry to say, the event log will not help.  Lot of things 
like BUS2121 SAVED are not logged in the event log any more.

A collective moment of silence for the event log would be nice.

Good luck!
Sue
Márton Zsolt wrote:
> Hi all!
> 
> We are in SRM 4.0, SP level: 0010
> 
> We are using the standard workflow WS1000060 (Workflow Without Approval 
> Shopping Cart), without any modifications for creating PO-s from 
> shopping cart.
> 
> Start events: BUS2121 - SAVED, In case of error linkage: 3- do not 
> change linkage
> 
> Simulating the  event in SWU0 for this object type the system selects 
> our workflow, but creating and saving the shopping cart nothing happens. 
> Only the sub workflow is created in waiting status without any starting 
> event. (as you can see in attached file.) The event log is also empty.
> 
> Another strange behavior is: when we create the event manually in SWUE, 
> the workflow starts without any problem.
> 
> The  SWEQADM is also empty.
> 
> Does anybody faced this problem before?
> Thanks,
> Zsolt
> 
> <<Workflow started in SWUE.doc>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list