Issue in N level workflow of shopping cart

Hi all,
SRM5.0 and ECC5, using ECS scenario
We are using the N level workflow ( SC approval workflow and not item level workflow) with the BADI for determining the approvers of the shopping cart.
The following are issues faced during rejection:
1. When the 1st approver rejects some of the line items and approves others, The SC is sent back to the requester or. the requester accepts the changes, the SC instead of going to the next level of approvers gets approved.
      I have debugged and found that the actual index is set to 2 and the next level of approvers are determined correctly in the BADI, once it is out of the BADI, something happens and the SC is approved and it doesn't go for approval.
2. When the 1st approver approves all the line items and the 2nd approver does a partial rejection, the SC is sent back to the requester and once the requester accepts the changes, the workflow restarts and the approvers are redetermined again.
For the 2nd issue, if its a standard process, Can onyone provide me with a document or a OSS note which can be used for substantiating it. Does this behavior correspond to the back and forth process of N level workflow?
Thanks and Regards
Kishan

Hi Munna,
The code just determines the approvers for each level, this works fine when I debug but it changes after the control comes out of the N level BADI.
Is there any other check which I need to do?
Regards
Kishan

Similar Messages

  • Issue in Process Controlled workflow for Shopping cart in Quality system.

    Hello All,
    I ahve configured a Process controlled workflow in SRM 7.0  with custom resolver, and I am facing an issue taht the Workflow works well in Development but in Quality the approvers are dropped after SC is ordered in Quality system.
    The SC Workflow drops the approvers picked up from the Interface  method /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP and IF_EX_WF_RESP_RESOLVERGET_APPROVERS_BY_AREA_GUID of BADI /SAPSRM/BD_WF_RESP_RESOLVER. The approvers can be seen in the shopping cart Approval preview Tab until the SC is ordered.
    I have compared the OSS notes relevant for Workflow, all of them have been transported, Also I compared and checked general Workflow settings, BRF Config and  Process level  settings in Dev and Quality, everything is same.
    Also while debugging; the approvers can be seen in the decision set table in the create_process_forecast method of class /SAPSRM/CL_WF_PROCESS_MANAGER.
    Kindly let me know what else i can check to find the root cause.
    Thank you in advance for help!
    Regards
    Prasuna.

    Hello Vinita;
    Thanks for the input and sorry for the not so "ASAP" reply;
    From what I'm seeing in from your 2 screenshot, i strongly believe that the problem is even before the Z implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID (in which the FM i ZSRM_GET_USER_FROM_PGRP is called. I think the problem could be in the process level determination  ZSRM_WF_BRF_0EXP000_SC_APP100. Let me explain:
    In your  cases where not buyer is determined,  in the approval tab there is not even a process level for buyer approval. If the problem were indeed in the implementation  /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID  then the process level would be there, but the system will display, instead of the name of the buyer(if the buyer determination fails) a red label with the message:  "With the strategy "Buyer determination" an approver could not be determined (or something like that..please check the image at the end of the text)".
    I can propose a way to discard this: Implement the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS of class ZCL_BADI_SC_WC (in case you didn't know, in this method you can specify an "default" approver in case that the determination of approver in GET_APPROVERS_BY_AREA_GUID fails). The idea is to specify an default approval and see how it behaves:
    If the user you indicated in the method GET_FALLBACK_AGENTS appears as approver, then yes, the problem is arises from implementation GET_APPROVERS_BY_AREA_GUID, in which case it could be a data problem (peharps in pposa_bbp?). You could also check in TX SU53 with the users with this problem to see if there's a missing authorization objetc.
    If, in the other hand, the "default" approver is not shown, it means that the process level buyer determination is not even called, so you should check in more detail ZSRM_WF_BRF_0EXP000_SC_APP100 and /SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- (i have never used this method, so i could not tell if  it could be the source of the problem).
    Also, you could implement the method GET_FALLBACK_AGENTS in this way so the default approver would be the WF administrator indicated in the customizing (or you could just append directly any user you want):
    METHOD /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS.
       DATA: lv_admin_expr TYPE swd_shead-admin_expr,
             lv_admin      TYPE swd_shead-wfi_admin,
             lv_admin_type TYPE sy-input,
             ls_agent      TYPE  /sapsrm/s_wf_approver.
       CALL FUNCTION 'SWD_WF_DEFINITION_ADMIN_GET'
         IMPORTING
           default_admin_expr = lv_admin_expr
           default_admin      = lv_admin
           default_admin_type = lv_admin_type.
       ls_agent-approver_id = lv_admin.
       APPEND ls_agent TO rt_agent.
    ENDMETHOD.
    Error of agent determination:
    Please let me know the result of the test with the implementation of method GET_FALLBACK_AGENT. By doing this we could ensure if really the problem is in method GET_APPROVERS_BY_AREA_GUID or before.  I just made the test in our system and I'm almost sure that you wont get the default approver, but i could be wrong. 
    Any question please let me know.
    Best regards
    Cristian R.

  • Hi BC, I have an issue with BC. When the shopping cart is used it takes stock out of inventory and h

    Hi BC,
    I have an issue with BC. When the shopping cart is used it takes stock out of inventory and holds it, regardless of whether or not a customer proceeds to purchase. OK.
    To make matters worse, the stock is only cleared from the shopping cart when the customer closes the browser - not when they close the shopping window.
    Now lets say a customer doesn't close their browser for a month - it happens! .. when their stock is finally returned it may throw out our stock levels that have in the meanwhile been adjusted. So their stock will be added on top of an accurate stock take, putting stock in that isnt really available.
    This is causing us mayhem.
    We have not yet seen if stock is actually returned at all. In the test we did today where we filled a shopping cart then closed the browser without making a purchase, the stock was not returned immediately. So we dont even know when it will be returned - thats IF a customer actually closes their browser. Any solutions out there?
    Jo

    Hi there,
    The way stock is managed in this situation is desirable for many in that case otherwise shopping on a site and adding to cart would not be viable or use friendly.
    What you mention about not closing a browser though is a case that is not true. IF you go into the shop settings in the admin you can see the cart restore timer which is by default 24 hours but you can change this to as low as 1 hour if you wish.

  • How to create new starting conditions for a workflow of shopping cart

    Hi all,
    How to create new starting conditions for a workflow of shopping cart
    SATYA

    Excecute SWB_COND
    Creating New:
    Click on Create button. If you cannot see that it could be a authorization issue
    then Business Object:  BUS2121
    Double Click the event linkage for one step workflow
    Define the expressions, Check Consistency and click on Traansfer
    Start Condition is created. If it is not Active click on the Red Button to make it Active
    Editing Already existing:
    Click on Edit Button If you cannot see that it could be a authorization issue
    then select Business Object:  BUS2121
    Click on the condition part (White area) of the start condtion needing editing
    Change the expressions, Check Consistency) and click on Traansfer.If it is not Active click on the Red Button to make it Active

  • N-step approval workflow for Shopping Cart-WS14000133

    Hi Experts,
    We have 5-6 levels of approvals for Shoppoing carts.All the SC needs to be approved by 5-6 managers based on their approval limits.All the approval limits are assigned at the Role level .(We have created Z roles)
    Please let me know how and where to define the roles in BADI to activate the N-step approval workflow for Shopping Cart-WS14000133
    Thanks,
    Venky

    To add to Masa's reply.
    This Badi is well documented by the online help and it even comes with example implementations AND it is mentioned in full detail at help.sap.com
    Kind regards, Rob Dielemans

  • Issue in Process Level Workflow

    Dear SRM Workflow Experts,
    I have following issue for workflow in SAP SRM 7.0
    We have configured item level shopping cart approval workflow using process level configuration. Total four process Levels are configured for Audit/Deman Challenge/Tax and Financial approval.
    Process Level Config Details
    Level.  Apr.Type  Evval.Id                              Description                               Resp.Resover                            Decision Type
    100     Approval  ZEV_SC_DMCH_LEVEL1   Demand Challenge Workflow  ZRR_DEMAND_CHALLENGE       4
    200     Approval  ZEV_SC_AUDT_LEVEL1   Audit Approval Workflow        ZRR_AUDIT                           4
    300     Approval  ZEV_SC_ITAX_LEVEL1    Tax Approval Workflow           ZRR_TAX                           4
    400     Approval  ZEV_SC_LEVEL3              Financial approval                    ZRR_COSTCENTER_APPROVE      4
    We have a issue for the shopping cart with multiple items, once process level is applicable for first item it becomes mandatory for another items even though BRF expression rule for process level is not valid. It looks like my BRF event is executing only once for Shopping Cart and it's not getting trigerred for each line item.
    Please suggest how I can resolve this issue.
    Thanks & Best Regards,
    Navnath Bondarde

    Thanks for quick response,
    Actually I am using GET_AREA_TO_ITEM_MAP method in the /SAPSRM/BD_WF_RESP_RESOLDER BADI.
    I am not creating the Responsibility Area for the items for which Approver not needed.
    Please refer following code, please note AREA_ID field will be empty for the items for which approver not needed. For these items workflow is getting triggered with error "Strategy ZRR_AUDIT' did not determine any approver.
      LOOP AT lt_item_to_area_map REFERENCE INTO lr_item_to_area_map.
        AT NEW area_id.
        For each area id a new responsibility area is created, this instance can
        later be retrieved  in
        method GET_APPROVERS_BY_AREA_GUID to return the list of responsible
        agents
          IF not lr_item_to_area_map->area_id is initial.
            lo_area = /sapsrm/cl_wf_area=>/sapsrm/if_wf_area~create_instance(
              iv_area_type         = /sapsrm/if_wf_process_c=>GC_AREA_TYPE_ADHOC
              iv_leading_object_id = lr_item_to_area_map->area_id
            ls_area_to_item_map-area_guid = lo_area->get_guid( ).
          ELSE.
            ls_area_to_item_map-area_guid = /sapsrm/if_wf_process_c=>gc_nil_guid.
          ENDIF.
        ENDAT.
        IF NOT ls_area_to_item_map-area_guid EQ /sapsrm/if_wf_process_c=>gc_nil_guid.
            ls_area_to_item_map-item_guid = lr_item_to_area_map->item_guid.
            APPEND ls_area_to_item_map TO rt_item_to_area_map.
        ENDIF.
      ENDLOOP.
    Thanks & Best Regards,
    Navnath Bondarde

  • Workflow for shopping cart ordering not triggered

    Hi Gurus,
    we are running SRM 7.0 and we are facing a big issue in handling the shopping carts when created by interfaces.
    basically, when we create a shopping cart via interfaces and not manually on the SRM, the shopping cart remains in status "Open" and it is not ordered. We can also see in the shopping cart (in the tab Approval Process Overview we can see that the Approval Status is Open - No Decision Made).
    Can anybody give a hint on how having the worlflow to "order" the shopping cart executed also whenever a shopping cart is created by the interface and not manually?
    Thanks a lot in advance (lot of points promised...)

    Hi Masa, thanks a lot for answring!
    - It is a new implementation
    - We are using the new Processed-Controlled workflow
    - it works if I manually create a SC from the standard webdynpro UI and I click the Order button.
    - How can I check the receiving interface?
    thanks!

  • How to re-start the workflow for Shopping carts in WAITING status

    Hi
    We are using 1-step approval work flow, and we get some strange issue. We can add approver in the workflow, but after we click order button and back to check status again, sometimes there will be "Ad-hoc agent not found" issue. Do you know how to solve?
    And one workaround for user is to re-add the approval, and sometimes the shopping cart back to normal. But sometimes, after we add the approver, the shopping cart are in waiting status:
    Workflow Item:
    Workitem-ID 000000714642
    Task WS10000276
    Text One-Step Approval: Value limit: Shopping Cart
    1000114698
    Status WAITING
    Statustext Waiting
    Date 13.06.2008
    Time 10:41:22
    So may I ask how to re-trigger the workflow?

    Hi,
    Thx for that. I need to trigger the Approval workflow to go the the approval manager.
    Can u give me the document on this? thx,  kerry.liu [at] ap.effem.com.
    Thx very much
    Kerry

  • Addition of a inputfield as column to item level table in shopping cart

    Dear Experts
    i added a new inputfield to item level table as columen of Shopping cart and binded a variable from context. that column is displayed in the table but it is displayed in Disabled mode im not able to give input to the column(as it is a inputfield).
    I checked the table column property it is enabled and i aslo configure on the SPRO, nothing is woring for me.
    Please giude me to make the table column enabled so that i can give input..
    Regards
    Arun.K.P

    Hi  Arun ,
    you need to maintain the Meta data entries ,
    Navigate path
    spro->sap implementation guide->Supplier Relationship Management->SRM server->cross application basic settings-> extension and field control->create table extension and supply with data->control table extension and there field action-> configure control of fields of table extension .
    Thanks & Regards
    Pradeep Kumar Dondeti

  • Workflow for shopping cart

    Hi experts
    I am in SRM 7.0 and triing to use Process controled workflow, I have done some configurations for shopping cart aproval but no workflow is started and in shopping cart appear as in aproval.
    What cold be missing?
    Thanks
    Nilson

    Hi Guys
    Urgent
    In Sourcing cockpit field having morethan 1000 line item Shopping cart.  Could anyone help me to get the sourcing cockpit shopping cart entire report in a single report.
    We use to download the report morethan on hour on a daily basis.If anyone help me out for this really appriciated.

  • Workflow - SRM Shopping Cart

    Hi,
    Am new at Workflow. Is there a way to have different WF per line item of the Shopping Cart? As per standard transaction, the WF approval is according to the total amount of the Ordered items.
    thank you

    Check if the following helps...
    SRM 7.0 BADI Define Agents--> How to use type /sapsrm/t_wf_area_entity
    Regards,
    PR.

  • Workflow and Shopping Cart

    Hi Colleagues,
    I want to know how do we relate a shopping carts to the workflows created for it.
    Example: When i create a shopping cart,  an entry is created in CRMD_ORDERADM_H and workflows are created. Can you tell me which table to check the workflow and how. (Table links).
    Regards,
    Rishav Surana

    Hi,
      You can get WF details..
    How to Get WorkItem ID
    Saravanan

  • Need to query workflow for Shopping Carts for a report

    Hello,
    I am not familar enough with SAP's workflow to know if there are tables or function modules that I can use.  I am requested to develop a report to allow selection of a user's id and find all shopping carts where that person is in the workflow.  Can this be done without re-inventing the world?
    Thank you in advance and points will be assigned accordingly.
    Regards, Dean.

    Hi
    <u>Which SRM version are you using ? What's the detailed business requirement ?</u>
    Please refer to existing transactions on SRM workflow
    like starting with SWW*
    SWWL
    SWWI
    Also check the standard tables used in these transactions like , SWWIHEAD (for all workflow inbox items of any user)...
    Do let me know.
    Regards
    - Atul

  • Line Item level Approval for Shopping cart

    Hi Expert,
    I am using workflow template WS14500015 for line item level approval.i have few doubts on this
    i am using cost center based approval, so if the 1st line item is approved will it generate a PO or will it wait for all the line items approval.

    Hi Mano,
    if you use approval. It will be approved by steps. Next step will not be started until previous completely done. In your case 1st Item should wait until all other items processed.
    Regards
    Konstantin

  • WorkFlow - WS10000276: Shopping cart is hanging with "Awaiting Approval'

    Hi,
    We are SRM 4.0 (SRM_SERVER 5.0) SP 8 (SAPKIBKS08).
    We have only WS10000276 active in the system. The User orders the SC. SC goes to the approver (mentioned in attribute SLAPPROVER).
    Approver changes the quantity in the SC and saves. SC comes back to user for accepting changes. User accepts changes, but the SC shows status "Awaiting approval" and hangs.
    Transaction SWI1 shows only upto the step where mail notification has been sent to the user informing him that the approver has changed the contents of the SC.
    We had applied SAP note 948733 as per SAP instructions but this has not worked.
    Has anyone faced a similar situation? Any recommendations?
    Srivatsan

    Hi,
      Try if the foll notes can help:
    649551
    690716
    930750
    903200
    BR,
    Disha.
    Pls reward points for helpful answers

Maybe you are looking for

  • I can't paste text from external sources into Photoshop CC 2014.

    Hello everyone, Since a few days I'm not able to paste texts from external sources into Photoshop CC 2014. I never have problems with Photoshop CC before. I have the new iOS Yosemite installed in my macbook. It's really frustrating, can someone help

  • Can I create a home network withous dsl connection with airport express

    can I create a home network without dsl connection with airport express? So it means I can't connect to my HP Airprint/Wireless printer without exretnal connection through ISP?? Just need to print from my Mac and iphone. I have Vodafone Prepaid conne

  • Join ResultSet fra Oracle and MS SQL?

    I currently looking for documentation on how to JOIN ResultSet fra two different databases? Currently, we use a Oracle DB for some information, and MS SQL for some other type of information which is related to each other. Don't ask why, this is a pro

  • JMF Payload type 33

    Hey guys, i m trying to play RTP stream video but everytime i play, it give me the following error. No format has been registered for RTP Payload type 33 Does anyone has any idea about this?? I am using VLC media player to stream the output. Please h

  • Download oracle s/w from command line

    Hi, I want to download oracle s/w is their any way to download frm command line my os is Linux .