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.

Similar Messages

  • 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

  • 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

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

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

  • 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

  • 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

  • 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

  • Shopping Cart - Process Controlled Workflow - replace standard task

    Hallo,
    I am on SRM 7.0 SAPKIBKV09 using NWBC.
    I use Process Controlled Workflow for Shopping Cart, and in the process schema definition,
    I replaced the standard workflow task 40007952,
    (with name - SRM Shopping Cart Completion),
    with a copy of task 40007952, task 90000010
    (with name - SRM Shopping Cart BUYER Completion)
    I did that for the following Reason: to ensure that in the Shopping Cart Approval Log, I can distinguish between diffrent approval level, all of type completion.
    Issue is that now when approver is executing the task from NWBC, I get the following error:
    ´No default action found for task TS90000010´
    Any idea?
    tried to apply Note 1409276 - Not all tasks have default action in inbox config, (as this applies to SAPKIBKV06)
    but no success.
    Thank you
    Marco

    Hi,
    I wanted to add that there is standard report /SAPSRM/IBO_FILL_TABLES in SRM 7.0 that updates these tables for all standard tasks:
    IBO_C_WF_ACS
    IBO_C_WF_APS
    IBO_C_WF_CAS
    IBO_C_WF_TAS
    IBO_C_WF_TTAS
    Use these views in SM30 to create entries for customer specific tasks:
    IBO_V_WF_ACC
    IBO_V_WF_APC
    IBO_V_WF_CAC
    IBO_V_WF_IRA
    IBO_V_WF_TAC
    IBO_V_WF_TTAC
    Best Regards,
    Marcus
    Edited by: Marcus Mock on Jun 6, 2011 11:56 AM
    Edited by: Marcus Mock on Jun 6, 2011 11:59 AM

  • Approval Level in Process Controlled workflows

    Hi Sap Gurus,
    How can i find the number of approval levels in process controlled workflows for Shopping Cart, Purchase Order....
    Thanks in advance

    Hello,
    IMG: SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Business Workflow > Process-Controlled Workflow > Business Process Configuration > Define Process Levels
    For concerned object type, select "Process Schema Definition" directory.
    Then, select correct process level schema to display "Process Level Configuration" directory: here are the process levels defined.
    Regards.
    Laurent.

  • Problems with Auto approval workflow (WS 10000060) for shopping carts

    Hi SAP Network community,
    I have got a problem with the auto approval workflow for shopping carts.
    Basically the workflow approves the shopping cart once it was created.
    But then the related Purchase Order remains in Status held. If the PO gets ordered manually then it is not transferred to the R/3 backend system.
    For testing purposes also the one step approval workflow was activated. If the shopping cart gets approved by clicking into the detail approval screen (not by approving through the green tick box in the shopping cart overview) then the PO gets ordered and transferred to the backend system as normal.
    But if the shopping cart gets approved by using the green tick box in the shopping cart overview then the same problem occurs as described for the auto approval workflow.
    The system version is SRM 4.00
    Did anybody have the same or similar problems with the auto approval workflow and what could be the reason for this problems.
    Thanks in advance,
    Robert

    Hi
    Which SRM Workflow Scenario are you using (IS it Item level workflow or Shopping cart level Workflow) ?
    Are you using customized SRM Business workflow or Standard SRM Workflow ?
    <u>Please go through these links as well.</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/eb/289f4099852e54e10000000a1550b0/frameset.htm
    Incase you are using Standard SRM Workflow, please raise an Customer OSS message with SAP at the earliest.
    Regards
    - Atul

  • Process Control Workflow Configuration error on portal

    Hi Experts,
    We are using process controlled workflow for BUS2121 and activated a BC Set "/SAPSRM/C_SC_600_000_SP04" Shopping cart without approval.
    For this We have created a Event and a Expression in BRF as constant  for Process schema evaluation. No approval is required as of now. But when try to shop from the portal it shows a dump as:
    The following error text was processed in system SRD : Dynamic type conflict when assigning references
    The error occurred on the application server dl3803_SRD_40 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: INIT_BRF_TRACE of program /SAPSRM/CL_WF_BRF_MSG=========CP
    Method: CONSTRUCTOR of program /SAPSRM/CL_WF_BRF_MSG=========CP
    Method: INITIALIZE_BRF_MSG of program /SAPSRM/CL_WF_BRF_MSG=========CP
    Method: /SAPSRM/IF_WF_RULE_CONNECTOR~EVALUATE of program /SAPSRM/CL_WF_BRF_CONNECTOR===CP
    Method: /SAPSRM/IF_WF_RULE_CONNECTOR~EVALUATE of program /SAPSRM/CL_WF_SCHEME_PROVIDER=CP
    Method: GET_SCHEME of program /SAPSRM/CL_WF_SCHEME_PROVIDER=CP
    Method: GET_PROCESS_SCHEME of program /SAPSRM/CL_WF_CONFIGURATION===CP
    Method: CREATE_PROCESS_LEVEL_SEQUENCE of program /SAPSRM/CL_WF_CONFIGURATION===CP
    Method: CREATE_PROCESS_INSTANCE of program /SAPSRM/CL_WF_PROCESS_MANAGER=CP
    Method: CREATE_PROCESS_FORECAST of program /SAPSRM/CL_WF_APV_FACADE======CP
    Kindly help to solve this problem.

    Hi Anand,
    I am facing the same problem. Were you able to resolve that issue? if so, what is the solution? I don't find any relevant note for this.
    Probelm: BRF is activated and when you do save/check on SC, throws short dump with error message as
    "Dynamic type conflict when assigning references".
    "MOVE_CAST_ERROR" "CX_SY_MOVE_CAST_ERROR"
    Thanks
    Akbar

  • Dump on screen when configuring Process controlled workflow

    Hi Experts,
    I am facing 1 problem in SAP SRM 7 ehp1.  I am configuring Process controlled workflow. Previous workflow settings was Application controlled workflow as its been upgraded from SRM 5. If i run a RFX (BUS2200) cycle in application controlled workflow environment, it works flawlessly.
    But when i change my workflow framework to process controlled workflow for all Business Objects. I face a dump when I am creating an RFX. The dump on the portal is:
    http://dl3803.ltisap.com:8040/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif
    DATREF_NOT_ASSIGNED
    No access possible via the 'NULL' data reference
    Method: PARTICIPATING_IN_ACTIVE_WF of program /SAPSRM/CL_PDO_DYN_MDA_WF_ADJ=CP
    Method: EDIT_DURING_WORKFLOW of program /SAPSRM/CL_PDO_DYN_MDA_WF_ADJ=CP
    Method: /SAPSRM/IF_PDO_META_CONF_BO~GET_BO_HDR_ACTION_METADATA of program /SAPSRM/CL_PDO_META_CONF_PROV=CP
    Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_ACTION_METADATA of program /SAPSRM/CL_PDO_META_BO_RFQ====CP
    Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_ACTION_METADATA of program /SAPSRM/CL_PDO_META_BO_RFQ_ADVCP
    Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_ACTION_METADATA of program /SAPSRM/CL_PDO_META_HANDLER===CP
    Method: UPDATE_ACTIONS of program /SAPSRM/CL_CH_WD_MAP_IDENT====CP
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_MAP_IDENT====CP
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_IDEN_MAP_RFQ=CP
    Method: OVERRIDE_LEAVE_INIT_SCREEN of program /SAPSRM/CL_FPM_OVRIDE_OIF=====CP
    & when i check in st22. I get the dump as:
    Category               ABAP Programming Error
    Runtime Errors         DATREF_NOT_ASSIGNED
    ABAP Program           /SAPSRM/CL_PDO_DYN_MDA_WF_ADJ=CP
    Application Component  SRM-EBP-PD
    Date and Time          17.12.2011 15:46:56
    and get dump at:
      1 method PARTICIPATING_IN_ACTIVE_WF.
      2   " this method returns ABAP_TRUE if the logon user has an active work item,
      3   " i.e. he participates in an active approval workflow process.
      4
      5   DATA lv_curr_workitem_id    TYPE /sapsrm/wf_workitem_id.
      6   DATA lr_process_info        TYPE ref to /SAPSRM/S_PDO_WF_PROCESS_INFO.
      7
      8   " the default:
      9   rv_participates_in_active_wf = abap_false.
    10
    11   " The scenario is not valid for application-controlled workflow:
    12   " Any agents who may edit the document (approver and requester)
    13   " enter "Edit" mode right-away. No special handling possible.
    14   lr_process_info = io_apf_md_context->get_process_info_ref( ).
    >>>   IF lr_process_info->wf_version NE /sapsrm/if_wf_process_c=>GC_APF_VERSION_0200.
    16     return.
    17   endif.
    18
    19   " check if a valid workitem exists
    20   lv_curr_workitem_id = io_apf_md_context->get_workitem_id( ).
    21   IF lv_curr_workitem_id IS INITIAL.
    22     RETURN.
    23   ENDIF.
    the only configuration I change in the system is I changed the workflow framework to process controlled workflow.
    Kindly help.
    Thanks
    Anand

    Hello Anand,
    As per standard SAP recommendations the application-controlled workflow framework is only intended to be used if you are upgrading from SAP SRM 5.0 or earlier and you need to continue using your existing work-flows.
    The default workflow framework setting is the process-controlled workflow from SRM 6.0 on-wards and the user will be provided a option to switch to the application-controlled workflow framework.  The option to switch to process-controlled workflows is available only after you have once switched to application-controlled work flows but there will be a big caution that " If you switch from the application-controlled workflow framework to the process-controlled workflow framework; once a process-controlled workflow has been run, it is not supported that you switch back to application-controlled work-flows".
    As per the details given i got a feel that we have tried executing the scenario by switching between application and process controlled workflow and hence the system have become inconsistent and its dumping.
    I suggest you to raise a OSS ticket to SAP to resolve the issue.
    Best Regards,
    Rahul

  • SRM 7.0 Process Controlled Workflow-Level Type in Process level config

    Hello Experts,
    In SRM 7.0 for Process controlled workflow,for Level Type in Process Level configuration we have 3 different options
    1) Approval with Completion
    2) Approval
    3) Automatic(System User)
    Can you plz explain what is the difference between these 3 diffrent potion for Level Type in Process Level configuration.
    Your help will be highly appreciated,
    Thanks & Regards,
    RKS

    1. Approval with completion : This allows approvers to make any changes to document while approving. Generally you define this type for buyer in SC approval.
    2. Approval :  above minus change
    3. Automatic (system approval) : If no process level is determined, you need to set up a process level with automatic approval to approve the document by system.

  • Process Controlled Workflow - 1-step approval for shopping cart approval

    Hi,
    I have configured a one-level approval for SC (Process Controlled Workflow):
    Object Type: BUS2121
    Additional 1 level under schema: 3C_SC_600_000 (the last level is the automatic approval)
    Level Type: Approval with completion
    Eval ID: 0EV_SC_SL1
    RR Name: RR_SPENDING_LIMIT_APPROVER
    RR Param: USTONY.Y (I hardcoded it using my user ID, for the moment)
    Task ID: 40007953 (I have checked, it's generalized as well)
    Decision Type: Item-based decision for entire document
    For PPOMA_BBP:
    Under my org unit (Position):
    Approval Limit: 1000
    Output Limit: 1000
    I didn't do any BADI implementations yet.
    During creation of SC by other user, before "Order" the SC, the approval preview can show correctly that the Processor is as indicated in the config.
    Once the SC is ordered, the whole step is gone and the event linkage becoming delinked (because there is error, and according to the config in SWEQADM).
    However, I cannot find the workitem (no workitem generated) and SLG1 does not give any clue whatsoever.
    I tried debugging method APPROVAL_LIMIT, and it seems fine as well.
    Please help, what did I do wrong here?
    Thanks,
    Tony Y

    Hi Sahil,
    I even changed to first process level to:
    Level Type: Approval
    Eval ID: 0EV000
    RR Name: RR_MANAGER
    RR Param: (Blank)
    Task ID: 40007953 (I have checked, it's generalized as well)
    Decision Type: Decision for entire document
    Under PPOMA_BBP:
    I made myself as a head of the org unit with the role manager.
    The requester is "Exclude" the role manager.
    The agent can be determined now.
    But the workitem ID is still cannot be generated. It's always no workitem generated.
    Please everyone, any help?
    Thanks in advance,
    Tony

Maybe you are looking for