Process Controlled WF for Shopping Cart

Hi,
We have implemented process controlled workflow for shopping cart approval.
1. Created a bespoke schema for the approval process
2. Defined 5 process levels in the schema
3. changed the BRF event at the schema evaluation level. It now
contains a constant with the name of new schema create in step 1.
4. Decision set used is item based approval for partial documents (Type 4)
4. The first process level is get the technical approval from bespoke
table based on material group. For that we have first created a
Responsibility Resolver Name - ZTECHNICAL_APPROVER.
We have implemented the BADI - /SAPSRM/BD_WF_RESP_RESOLVER. Assigned
the filter as BUS2121 and ZTECHNICAL_APPROVER.
5. Now we have placed the external debugger in BADi. when we create
the shopping cart the flow doesn't stop at the break point. The item
reaches to the last step of Automatic approval (Rejected).
6. We think that schema is getting evaluated, however the process
level is not getting called.
7. Before we created schema, all the carts wer getting "Approved" by
automatic step. In our schema the automatic step is "Rejected", hence
the carts are getting rejected.
Could you please let me know what could be reason for BADI
implementation not being called or is there any config step which we
are missing?

Hi,
  I think your process level evaluation id is not true, that is the reason system skips the process level.. Can you check your evaluation event-expression code. What do you see in SLG1?  For testing purpose change the evaluation id to 0EV000 and check. Make Sure you debug through the user(requester) that you are creating the SC. Please test and let me know...
Saravanan

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.

  • 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.

  • Deadline monitoring for Shopping Cart

    Hi Experts,
    I am working on SRM 7.0 process controlled workflows.
    Activated the deadline monitoring for shopping cart but I am getting the below error:
    Work item 000000073752: Object /SAPSRM/CL_WF_EVENT_ADAPTER method TRIGGER_EVENT cannot be execute
    Please help to solve this.
    Thanks,
    Sangeeta

    Hello,
    To find the cause you will need to debug:
    For testing you can call  the method
    /SAPSRM/CL_WF_EVENT_ADAPTER -> TRIGGER_EVENT
    Take the following parameters from the document wfl log:
    IV_DOCUMENT_GUID IV_DOCUMENT_GUID
    IV_DOCUMENT_TYPE IV_DOCUMENT_TYPE
    IV_EVENT IV_EVENT
    IV_EVENT_SUB_CATEGORY
    IV_WORKITEM_ID
    IV_DOCUMENT_ID
    Before to start debugging, set a beark point in CL_BBP_MESSAGE_CREATE -> execute
    Here you can find why the alert method is not been able to be executed.
    Probably you are passing some wrong parameter.. Do you use Badis BBP_OUTPUT_CHANGE_SF or BBP_ALERT.. try to deactivate these Badis and retest.
    Thanks,
    Melina

  • How to use customer extension table for schedule line for shopping cart ?

    Dear Experts,
    One of our client wants to have schedule lines in shopping cart item. I am thinking of using customer extension table at item level for shopping cart. Could you please help me on  how I should proceed with the appending the structures so that the end user can fill the shopping cart schedule line details?
    Which fields should I consider in such cases?
    Thanks and regards,
    Ranjan

    Hi.
    I guess you use SRM 7.0. Please go to IMG.
    SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data
    Regards,
    Masa

  • Wrong approver for shopping cart

    Hi Friends,
    I've found something very strange in my SRM system for Shopping cart approveal process.
    One of my SC is waiting for approaval by a approver who is assigned to different plant  and he has got nothing to do with this SC.
    The SC's basic data contains the responsibility  of some other LPR group for which approver is different and he is the actual approver of this SC.
    Can you guys provide some link where i can find documents related to approval process in detail and also the organisation structure material as i am new to SRM..? after providing the solution for above querry...
    Thanks in advance
    ss

    Hi Volkoale,
                    I am also facing the same issue. If you have resolved it kindly post your approach as it will be helpful to the community.
    In my case, there is one  cutomized table that contains list of approvers, but I am yet to debug and find the source of data for this table. Your reply will be rewarded.
    Cheers,
    Kris

  • New document type for shopping cart /PO

    Hi Gurus,
    I have created a new transaction type ZSHC for Shopping carts in SRM. I have given it a new  number range.
    while creating a shopping cart , how do i ensure that my shopping carts get created with this transaction type?
    is there any attribute which controls this ?
    Regards,
    Mangesh

    Thanks Shrini for your response.
    BADI "BBP_CREATE_BE_PO_NEW" does not exist in SRM 4.0. The corresponds BADI in SRM 4.0 is "BBP_CREATE_PO_BACK".
    The documentation of this BADI says that it can be used to change all data TRANSFERRED TO THE BACKEND SYSTEM to create a purchase order.
    I would want the document type to be selected when the PO is created in SRM and not when SRM transfers the PO to the backend. Because in that case I fear that SRM can have one doucment type and R/3 would end up having different document type for same PO.
    I will activate the BADI and keep the thread posted.
    Thanks
    Venkatesh

  • Error during determn of backend follow-on doc. for shopping cart

    I am using Classic Scenario in SRM 4.0 and R/3 ECC5.
    When I am making PO in SOCO against approved shopping cart I am facing following error and PO is not getting created.
    "Error during determn of backend follow-on doc. for shopping cart XXXXXXXXXX"
    I have Checked up following :
    1. Product Cat defined in backend and in Org plan attribute
    2. Object for Prod Cat Vs. PGR defined in SPRO
    3. Doc type in R/3 attribute defiend in BSA attribute of Org Plan.
    Still problem is coming.
    Any clue form some one.
    Sanjay

    Hi Sanjay/Vadim,
    We are also having a simialr issue..
    for SRM server 500 SAPKIBKS08...
    R/3 4.7
    "But this issue comes up only in the Test system and works fine with the Dev sys.." Double checked all the config steps and looks alike..
    We are using the classic scenario RFx process to create a backend PO from the bidding engine after the bid is accepted..
    it alwayz throws up the error SC/ Local Error..
    : Error during determn of backend follow-on doc. for shopping cart 0010000103 / 0000000001....
    we just started debugging from the web by breaking it at META_BAPI_DISPATCH and still looking into it..
    but in the mean while just want to know if this is more a config issue or and RFC connection issue..
    could you forward me any OSS notes if any regarding this issue..
    thanks in advance..
    Regards
    Manoj

  • N-step WF for shopping carts

    Is there a N-step WF for shopping carts which can be used in SRM 5.0 ?
    The WF is driven by product category and not spending limits.
    Or do we have to develop a custom WF ?
    Thanks
    -Bakulesh

    Separate Determination Method for List of Approvers via BAdI BBP_WFL_APPROV_BADI in WS14000133:
    In WS14000109 the approvers are determined dependent on the total value of the SC and on the approval limits of the managers.
    However, if you use WS14000133 as an alternative, you can determine the list of approvers flexibly according to your particular requirements.
    You do this using the method GET_REMAING_APPROVERS of BAdI BBP_WFL_APPROV_BADI, with which you can integrate a logic for determining the approvers for each approval step (this can be more than one) and the number of steps in the entire approval process.
    For more details, see the IMG:
    Supplier Relationship Management  ®  SRM Server  ®  Business Add-Ins for Enterprise Buyer (BAdIs)  ®  SAP Business Workflow  ®  Determination of Approvers for n-Step Dynamic Approval Workflow.
    Go through the documentation of the BADI BBP_WFL_APPROV_BADI. It will give you a fair idea on how to about the logic you want.
    Hope this helps!!
    Krishna

  • One Step Workflow Activation for Shopping cart in SRM 7.0

    Dear Experts,
    On working to EXtended Classic Scenario, I need to configure one step approval for shopping cart in SRM 7.0.
    Currently it is providing me Auto Approval  by default and based on it PO is being created. I need one-level manager approval  shopping cart.
    I am working in Demo System of Extended Classic Scenario, I need only one step approval SC without any condition.
    Kindly tell me the configuration steps in SRM and please tell me one more thing is there  any need of  BADI or other coding for one-step approval?
    Thanks in Advance,
    Regards
    Pawan Keshwani
    Edited by: pawankeshwani on May 25, 2011 6:22 PM

    Hi Ashutosh,
    Thanks for quick reply.
    As per your comment when i am tring to activate /SAPSRM/C_SC_600_001_SP04  by t-code SCPR20, But It shows me a information pop up Maintain the client role and then Activation is Cancelled.
    Kindly tell me what i am missing or any other prerequisite step to do for this BC Set Activation.
    Thanks
    Pawan Keshwani

  • Check status for Shopping Cart to include F-53 postings

    Dear SRM GURUS
    we are following a classic scenarios and SRM version 4.0 where in we create a shopping cart in SRM and a  purchase Req is created in backend and based on that we create a Purchase Order and do a Goods receipts and Invoice Booking in MIRO in R3.
    When we check the status of shopping cart we are able to view all in SRM check status for shopping cart.
    Now my requiremnt is that when after MIRO in R/3 we run F-53  for payement to vendor.
    Whether this can be displayed in the shopping cart check status that as to when actual payement was made to the vendor through F-53.
    regards,
    Nimish Sheth

    F-53  transaction(R/3) status in SRM

  • Prefered vendor not displayed for shopping cart

    Hi,
    We have PDP scenario, SC's originated from R/3 purchase requisitions,
    Issue details:
    1. P.req was created with desired vendor and transfered to SRM and corresponding shopping cart is available in SOCO.
    2. User created Held PO for corresponding SC.
    3. When user checking monitor shopping cart then preffered vendor not displayed in source of supply tab.
    When i checking BBP_PD for shopping cart, i found there is Disable flag(X) has been set for NO inbox selection partner.
    what could be it mean, and more ever this changs has been originated via RFC user.how it was getting RFC user
    Please advice me....

    Venkateshwar
    SC is generally sent to SOCO only when sourcing has to be carried out for the SC. IN this case you are hving a desired vendor in the SC and then you are creating a pO for the same. Although you have a Vendor in the PO that does not mean that SC will also have same vendor as preferred vendor in SC after you created the PO....
    Regards
    Virender Singh

  • 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

  • CFolder Integration for Shopping Cart

    Experts,
    Can we have cFolder integration for Shopping Carts?
    (For example, in single part RFx, in header notes and attachments tab, we see Collaboration -> create/assign/delete buttons).
    If YES:
    what we have to do to achieve this?
    If NO:
    why we cannot see cFolder for SC? Is it because of the reason that, if at an integration has to exist, it should be at item level for SC, and this is always at header level in RFx?
    Details:  SRM7.0 SP07; ECS; PPS.
    Ganapathi
    Edited by: Ganapathi on Apr 23, 2011 11:07 AM

    Hi
    Check below help links
    http://help.sap.com/saphelp_ppm400/helpdata/en/e7/1fc30727cd4ddeb7f6351416ebf591/frameset.htm
    Implementing CFolders
    Implementing cFolder
    Problem between ITS SRM and CFolder
    cFolder + mySRM 4.0
    Re: Collaboration area in SRM
    Re: SUS-MM integration with cFolders
    regards
    Narahari

  • How to maintain Import Processing: Control Code for the country India

    Hi Gurus,
    I need to maintain the Control Processing: Control Code for the country India in SPRO configuration.
    Please tell me the path to maintain it.
    Thanks,
    Thiyagu

    spro@Logistics - General@Material Master@Material IDs@Maintain PKWiUs
    Regards,
    Indranil

Maybe you are looking for