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

Similar Messages

  • Process controlled workflow - Reject SC approval

    Experts,
    I configured process controlled workflow in SRM 7. My approval process is working fine but i need to send a notification e-mail when the approver rejects the SC approval. The requisitioner will receive this email saying that the SC was rejected.
    Is there any chance to do this with configuration? Do you have to use a new expression linked to an event to perform this ?
    Thanks for your help,
    Best regards,
    Mário

    Hello Mario,
    See IMG path below:
    SAP Implementation Guide -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Business Workflow -> Process-Controlled Workflow -> Business Process Configuration -> Define Recipient of Notifications
    For scenario "Approve Shopping Cart", you can define user role which will receive notification in the event of "Rejection".
    Regards.
    Laurent.

  • Process Controlled Workflow - Process Schemas

    Hi
    I am configuring Process Controlled Workflow in SRM 7.0 for shopping carts. As per one of the guidance documents, I activated the BC Sets for the shopping cart in order to pull in all the component parts. As none of the three standard Process Schemas created meet my requirements I am going to create my own Schema. Please could someone explain to me how I can ensure my schema will get activated, and not say  -  /SAPSRM/C_SC_600_001_SP04?
    Many Thanks
    Claire

    Hi,
    You can create custom schema definition. If you need only 1 schema, you can use constant type BRF expression.
    1. Create BRF event and Expression in transaction BRF
        BRF Event (ZEVALUATION1)
        BRF Expression (ZEXP1)  = Constant Schema name (ZSCHEMA1)
    2. Link the event and expression
    3. Customize Define Process Level
        Process Schema Evaluation = BRF Event (ZEVALUATION1)
                                                     - linked to BRF Expression (ZEXP1)  = Constant Schema name (ZSCHEMA1)
        Process Schema Definition (ZSCHEMA1)
          - based on your requirements
    Regards,
    Masa

  • 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

  • Process-controlled workflow hang due to dump

    Hi all,
    due to a temporary dump in an SRM 7 system, some document-related workflows are stucked... in other terms, these workflow processes have been started, the the dump occoured and by now, they seems to be stucked in "in process" state.
    Tecnically, these are not workflow in error, so SWI2_DIAG is not helpful.
    We'd like to unlock this situation and -eventually- restart the workflow process. How can we do it?
    Thanks in advance for your help and support.
    edit: system dump is now solved, which means, triggering the same workflow process will result in a success.
    Edited by: Matteo Montalto on Jun 30, 2011 4:34 PM

    Ok. There used to be OSS Note 1458380 - Process Controlled Workflow Restart Program, if the document is in "Awaiting Approval" Status.
    Or do the manual restart by using tcode SWUE (Event trigger)
    Object Category - ABAP Class
    Object Type - /SAPSRM/CL_WF_PDO_SC
    Event - READY_FOR_WORKFLOW
    Object Key - <DOCUMENT_GUID>
    Event Parameter - <SC Creator User ID>
    and Click "Create Event" button
    Use SWI1 to check whether the event is created and see whether the document is submitted for workflow triggering or use SWI6 to check for that SC document

  • Approver not determined process controlled workflow in SAP SRM 7.0

    Hello all,
    I have setup process controlled workflow in SAP SRM 7.0 EHP3 for shopping cart approval.
    I have 4 approval levels.
    I have used item-based Decision for entire document because for some items i want system approval.
    In implementation of BADI /SAPSRM/BD_WF_RESP_RESOLVER, in the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_AREA_TO_ITEM_MAP, i am skipping the items for which i want system approval.
    Also in method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID of BADI implementation class, i am keeping the approver table empty for the step which i want system approval.
    For example i have 1 item in shopping cart and for 1st step, based on some accouting criteria, i want system approval for 1st level and the workitem should go directly to 2 approval step when shopping cart is ordered. This is not happening.
    But if i have multiple items, and one item should have system approval based on some criteria and the 1st approval level should be system approval and other item should go to the 1st approver. This is happening and showing 'system' approver for item1 and 'appr_xyz' for item 2.
    For shopping cart having only 1 item, If i approve the shopping cart in this state only, it doesn't go to any approver and is not usable.
    am i missing anything in BADI /SAPSRM/BD_WF_RESP_RESOLVER??
    Please let me know.
    Regards,
    Yayati Ekbote

    Hi Adrian,
    Yes it is possible to display custom workflows in the Universal Worklist,  However, I am not sure what you are trying to do with a routing table.  If the workitems are of type decision, you can use UserDecisionHandler (action handler) configured in the XML file to use the Approve/Reject functionality - we are talking about webflow connector here correct?  R/3 connector?
    Regards,
    Beth Maben
    EP - Senior Support Consultant II
    SAP Active Global Support
    Global Support Centre Ireland
    **SDN Forum Moderator:
    SAP Enterprise Portal: Application Integration
    **SDN Universal Worklist Wiki:
    http://wiki.sdn.sap.com/wiki/x/ehU

  • Process controlled Workflow is not starting

    Hi,
    I have problems with implementing an own process-controlled workflow. The "Sample BC Set for Process Level Definition" /SAPSRM/C_SC_600_001_SP04 is working fine. However I do not succeed in triggering a customer Process Schema for BUS2121.
    The (first?) problem can be duplicated as following:
    1. BC-Set /SAPSRM/C_SC_600_001_SP04 is activated
    1.1 When creating a shopping card (Web Portal) a approver ("Head of organizational unit" in OrgManagement) is displayed in the Details (Approval-Workitem is created when saving the shopping cart)
    --> OK
    2. Deactivation of Process Schema 3C_SC_600_001 (replace Eval.IDs with customer Eval.ID which contains always false expression)
    --> When creating a shopping card (Web Portal) no approval data is displayed in the Details 
    --> OK
    3. Copy Process Schema 3C_SC_600_001 into ZC_SC_600_001; replace customer Eval.ID with original Eval.IDs (Boole; no process schema in expression (Eval-ID 3EV_SC_600_001_100; Expression 3B_SC_600_001_100: "Execute always"))
    --> When creating a shopping card (Web Portal) no approval data is displayed in the Details 
    --> NOT OK; the same result as with 1.1 is expected
    Why is 3. not working? Any ideas would be very welcome.
    Best regards

    In most cases, this means that the 'Start Process' is not configured correctly. Take a look at the following:
    1. make sure that the Wf assigned to your start process is active
    2. make sure that reference numbers are configured and assigned to your process
    3. assign a user to receive error messages when an error occurs
    Thanks,
    Derrick Banks

  • Custom Expression creation in Process controlled  workflow

    Hi All,
    I am working on SRM 7.0 and utilizing process controlled workflow to model my approval workflow scenario. Below are the steps that i have done but still i have not got the desired result. May be i am missing something which the forum members can let me know.
    step 1: i have copied the standard function module  /SAPSRM/WF_BRF_0EXP001 and made chnages in the code  based on the logic to populate the ev_value.
    basically in the coding it is done this way.
    initialize
    EV_TYPE = 'B'.
      EV_LENGTH = 1.
      CLEAR EV_CURRENCY.
      EV_OUTPUT_LENGTH = 1.
      EV_DECIMALS = 0.
      EV_VALUE = ABAP_FALSE. " no processing
      EV_DATA_MISSING = 'X'.
    get event object
      LO_WF_BRF_EVENT ?= IO_EVENT.
    get Context Container from BRF event
      LO_CONTEXT_PROVIDER = LO_WF_BRF_EVENT->GET_CONTEXT_PROVIDER( ).
      CALL METHOD LO_CONTEXT_PROVIDER->GET_DOCUMENT
        IMPORTING
          EV_DOCUMENT_GUID = LV_DOCUMENT_GUID
          EV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE.
      CASE LV_DOCUMENT_TYPE.
        WHEN 'BUS2121'.
    Get shopping cart instance
          LO_WF_PDO_SC ?= /SAPSRM/CL_WF_PDO_IMPL_FACTORY=>GET_INSTANCE(
            IV_DOCUMENT_GUID = LV_DOCUMENT_GUID
            IV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE
            IV_PDO_EVENT_HANDLING = ABAP_FALSE
    custom logic  with the GUID of the shopping cart then populate  value accordingly
            EV_VALUE = ABAP_TRUE.
            CLEAR EV_DATA_MISSING.
    step 2: create an event ZEV_001 linked to expresion ZEX_001.
    step 3: expression ZEX_001 is of type 0FB001. and the xpression is as below.
      ZEX_002 = OB_WF_TRUE.
    step 4: ZEX_002 is of type 0CF001 and output result type is B. the attached function module is the one created above by copying /SAPSRM/WF_BRF_0EXP001
    no parameters provided .
    step 5: the process step level config completed.
    now when i am creating shopping cart  go for approval preview its gives an exception occured  error . i cant see any dump in the system. however  if  in the custom fucnction module code if i do not clear the  EV_DATA_MISSING. then i d o not get the error but my steps is not executed. Inslg1 log i see the  process level executed  but return as space.
    as per other post in the forum we have to clear EV_DATA_MISSING but that casuing  exception eror for me. in the dlg1 log howere the steps  expressin i can see executed  with return =X.
    hope i am made myself clear . feel free to ask for any more info.
    i have below question.
    1) do we need to copy  /SAPSRM/WF_BRF_0EXP001  or  /SAPSRM/WF_BRF_0EXP000 for creating a custom FM expression.
    2)what does the check box "Calculation of Parameter in Function Module/Badi/method" does
    3) how can i do debugging for such FM expression , probably saving the cart and then debugging the expression.
    Thanks in advance for any help provided.
    Cheers
    Iftekhar Alam

    Hi ,
       Just put the below code in the FM and try..
        DATA: lo_wf_brf_event     TYPE REF TO /sapsrm/cl_wf_brf_event,
            lo_wf_pdo           TYPE REF TO /sapsrm/if_wf_pdo,
            lo_ctxt_provider    TYPE REF TO /sapsrm/cl_wf_context_provider.
      DATA: lv_document_guid    TYPE /sapsrm/wf_document_guid,
                lv_msg              TYPE string,
                lv_document_type    TYPE /sapsrm/wf_document_type.
      DATA: lx_exception        TYPE REF TO /sapsrm/cx_wf_abort.
    *=======================================================================
    Preset return parameters
    *=======================================================================
      ev_type          = /sapsrm/if_wf_rule_c=>type_bool.
      ev_length        = 1.
      CLEAR ev_currency.
      ev_output_length = 1.
      ev_decimals      = 0.
    get event object
      IF NOT io_event IS BOUND.
    BRF event Object not bound. No further execution possible.
        MESSAGE e089(/sapsrm/brf) INTO lv_msg.
        TRY.
            CALL METHOD /sapsrm/cl_wf_brf_ccms=>send_message( ).
          CATCH /sapsrm/cx_wf_abort INTO lx_exception.
            ev_data_missing = /sapsrm/if_wf_rule_c=>brf_data_missing.
            EXIT.
        ENDTRY.
        ev_data_missing = /sapsrm/if_wf_rule_c=>brf_data_missing.
        EXIT.
      ENDIF.
    *=======================================================================
    Get purchasing document
    *=======================================================================
    get event object
      lo_wf_brf_event ?= io_event.
    get context container from BRF event
      lo_ctxt_provider = lo_wf_brf_event->get_context_provider( ).
    get Content Container from BRF event
      IF NOT lo_ctxt_provider IS BOUND.
    BRF Context Container Object not bound. No further execution possible.
        MESSAGE e090(/sapsrm/brf) INTO lv_msg.
        TRY.
            CALL METHOD /sapsrm/cl_wf_brf_ccms=>send_message( ).
          CATCH /sapsrm/cx_wf_abort INTO lx_exception.
            ev_data_missing = /sapsrm/if_wf_rule_c=>brf_data_missing.
            EXIT.
        ENDTRY.
        ev_data_missing = /sapsrm/if_wf_rule_c=>brf_data_missing.
        EXIT.
      ENDIF.
    get document
      CALL METHOD lo_ctxt_provider->get_document
        IMPORTING
          ev_document_guid = lv_document_guid
          ev_document_type = lv_document_type.
    get instance
      lo_wf_pdo ?= /sapsrm/cl_wf_pdo_impl_factory=>get_instance(
      iv_document_guid = lv_document_guid
      iv_document_type = lv_document_type
    Case lv_document_type.
    When u2018BUS2121u2019.
    Pass the lv_document_guid to get SC details.
    IF THE CONDITION TRUE..
              CLEAR: ev_data_missing.
              ev_value        = c_x.
    ELSE.
              ev_data_missing = c_x.
              ev_value        = c_blnk.
    ENDIF.
            WHEN OTHERS.
              ev_data_missing = c_x.
              ev_value        = c_blnk.
          ENDCASE.
    Make sure the check expression will have check as shown below
    ZEX_002= 0C_WF_B_FALSE
    FYI-
    You don't need to have expression ZEX_001 to check the result of ZEX_002, because both expressios resut is type 'B". you can directly attached the ZEX_002 to main Event ZEV_001
    Regards,
    Saravanan
    Edited by: Saravanan Dharmaraj on Jun 23, 2010 12:25 PM

  • SRM 7.0 - Process controlled workflow

    Hi,
    Landscape -  SRM 7.0 SP05
    Workflow - Porcess controlled
    Scenario - Self service procurement
    Problem:
    1. We have mulitple level approval workflow for the shopping cart. I am using standard workflow task- 40007953 and using /SAPSRM/BD_WF_RESP_RESOLVER badi to determine agents.
    2. All the potential approvers (managers) are determined correctly by this badi but the issue is work-item is sent to all the approvers at the same time where as the requirement is to sent the work-item to each approver in series i.e. only when the work-item is approved by the lower level manager, it should go to the higher level manager.  Currently, this workflow task sends the work-item to all potential approvers at one go who can start working on parallely which is not desired.
    Could anyone please help me to resolve this?
    Please note that adding additional process steps in the process-level configuration was the option but we could not opt for that at this point of development as we have gone too far in terms badi development for agent derterminiation
    Thanks & regards,
    Amit

    Amit,
      It is not possible to send the work item to people in sequence by configuring only one process level. If you have only one process level, the agent determination will only be applicable to that process level. If you are trying to assign multiple agents to that step, then all will get the work item at the same time.
    I recommend doing one thing, Create multiple process levels(= no of approval levels you want). For each process level you keep same event and expressions. But your agent determination badi implementation need to be tweaked. Here is how you can do that
    Use Parameters along with agent determnation badi implementation. In other words derive Agents based on the value of parameter using your badi implementation. This parameter can be configured in Process Controlled Workflow Configuration.
    Example,
    Process step 1 - WF_BADI - Parameter1
    Process step 2 - WF_BADI - parameter2
    Now write some code in the WF_BADI to pick up particular agent if parameter value is Parameter1 , pick another agent if parameter value is parameter2. Doing this way you wont ve to redesign your BADI implementation as you are able to break up the Agent logic based on parameter values.
    Virender Singh

  • SRM 7.0 Process-controlled Workflow not starting

    Hi,
    I have problems with implementing an own process-controlled workflow. The "Sample BC Set for Process Level Definition" /SAPSRM/C_SC_600_001_SP04 is working fine. However I do not succeed in triggering a customer Process Schema for BUS2121.
    The (first?) problem can be duplicated as following:
    1. BC-Set /SAPSRM/C_SC_600_001_SP04 is activated
    1.1 When creating a shopping card (Web Portal) a approver ("Head of organizational unit" in OrgManagement) is displayed in the Details (Approval-Workitem is created when saving the shopping cart)
    --> OK
    2. Deactivation of Process Schema 3C_SC_600_001 (replace Eval.IDs with customer Eval.ID which contains always false expression)
    --> When creating a shopping card (Web Portal) no approval data is displayed in the Details
    --> OK
    3. Copy Process Schema 3C_SC_600_001 into ZC_SC_600_001; replace customer Eval.ID with original Eval.IDs (Boole; no process schema in expression (Eval-ID 3EV_SC_600_001_100; Expression 3B_SC_600_001_100: "Execute always"))
    --> When creating a shopping card (Web Portal) no approval data is displayed in the Details
    --> NOT OK; the same result as with 1.1 is expected
    Why is 3. not working? Any ideas would be very welcome.
    Best regards

    Hi..
       what do you see in SLG1? .. i think your process level Eval.id result is false, that is the reason workflow is not kicking of 
    1- level approval.. check your process level configure and try to use 0ev000 as a Eval.Id instead your custom Eval.Id and test..
    Saravanan

  • Acceptance by Requestor - Process control workflow

    Hi All,
    I have followed the below thread and configured the "Acceptance by contact person" BRF for status REJECTED. Now when my shopping cart is rejected , i still see the  shopping cart as awaiting approval.This is sometihng strange as i expected soomething like "In Your Inbox".  In the approval preview i can see it is awaiting acceptance from me. however i am confused as there is no acceptance button in the detail of the SC.
    do i need to go to edit mode? if i go to edit mode the SC workflow will start from the beginning as it behaves similarly  when we modify shopping cart awaiting approval .however acceptance would have deleted the shopping cart  item that were rejected and  workflow would have continued from that step onward.
    please do let me know what i am experiencing is standard or thereis something wrong ??
    Re: Enable work item to Requester at process End Check box
    Cheers
    iftekhar Alam
    Edited by: Iftekhar Alam on Jul 5, 2010 1:51 PM
    Also i have noticed that for completion step the rejection of SC i do not get the edit option . its only availbale for the approval type rejection step.

    Hi Siobhan,
    I am delighted to get OSS Notes from you. I have got reply in sdn faster than the oss message i raised for the same
    However small calrification required.
    1430274 Incorrect status display in POWL for par...
    This note talks about application controlled workflow , we are using process controlled workflow. do you suggest implementing this??
    1412458    Status "In your inbox" (2)...
    i am going to implement this and test ,and would update after that.
    1399239 New button "Show my Tasks" for document in a...
    i am going to hold the implementation of this note , coz there is chance we might go for support pack upgrade and that would resolve and bring in additional functionaliy.
    Cheers
    Iftekhar Alam

  • Process Controlled Workflows VS Applicaiton Enabled Workflows-What to chose

    G'Day All,
    We are upgrading from SRM5.0 to SRM7.0
    There are these bespoke shopping cart approval workflows developed previously. I have to do some sort of assessment to include
    1) Why would we go for PCWs instead of just migrating the old ones in SRM 7.0 as business is pretty happy with the functionality they have got and are not interested in revising the workflow processes. Answer :  Application enabled workflows are in maintainence mode so newer functionality would be delivered using PCWs.( is there any other justification ? )
    2) Would we be able to map the existing workflow process to PCWs, here i need some pointers. I understand the PCWs are based on BRF though i don't know much about BRF( updating myself ). The key question i have is, whatever is there in bespoke workflow templates would i be able to  replicate that using this i.e. a different technology. Since my exposure to either PCWs or BRF is not great so as a general rule i am asking, is it possible or are there any sort of technical limitations on what you can and what you can't do using PCWs which you could design using a normal workflow template?
    I am sure this would be a common analysis which many of you might have done or are doing if you are involved in an upgrade.
    An Interesting Fact : There is no documentation available on existing SRM 5.0 workflows as what differently they have done to standard. The only thing i know at this stage is they have a bespoke level 1 template which call different standard templates for n level approval process. The apporval process( agent determination ) is based purely on custom logic. I am not that worried about the agent determination as i know i could get that as rule evaluation in BRF. The crux for me is to understand how BRFcontrols or connects to workflow templates in this particular case and what permutation conbinations are possible.
    So, i want to have a discussion on this and if possible some insight on all this new PCWs.
    Hope to see some valuable comments.
    Regards
    Praveen

    Hi everyone:
    My question is the following.
    We will implement SRM 7.01 with Process Controlled Workflow.
    However in the manual is the following note:
    Note: Even if you decide to use Process-Controlled Workflow in general,
    there are a few workflows still on the old technology:
    WS10400022 . Contract Alert Workflow
    WS10000192 - Approval Workflow for Internal Users
    WS10000209 - Approval workflow for new bidder/supplier     
    WS10000093/WS10000100 -Procurement Card Approval
    Probably We will required some of this.
    My question is if we are planning to configure process and application the correct strategy will be:
    1.     Start the configuration with the application controlled workflow and then
    2.     Follow with the change of the configuration application to process controlled workflow
    3.     And configure the workflowu2019s in process.
    u2022     Is there any problem when if we change the check  application to process?  Are there any chance that we loss the configuration?
    u2022     Is there any problem in the functionality that both kinds of workflow (application-process) work at the same time?
    u2022     If is possible to make change or maintenance of the application workflow?
    Thanksu2019 a lot for all the help
    Best Regards

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

  • Process controlled workflow - SC process schema evaluation

    Hi experts,
    at the moment I'm using the n-step item level approval in SRM 5.0.
    We are implementing SRM 7.0. With the new process controlled workflow I'm not sure how to
    implement the logic of our "old" system.
    Depending on category and item value the SC item has to be approved by 0 - 7 users.
    I've created an event which finds a Z-process schema via FM.
    In the FM I've tried to change the process schema (debugger) for one SC item.
    But the schema has been changed for all items.
    Is it possible to use different process schemas for items?
    When yes how can I set the schema e.g.
    item 10 schema1
    item 20 schema1
    item 30 schema2
    item 40 schema1
    Thanks in advance for your inputs!
    Regards
    Stefan

    Hi,
    Schema Evaluation is document header level.
    There are 2 ways for implementation.
    1. Schema Evaluation returns Schema name. For example, 1 step approval, ... 7 step approval
    2. 1 Fixed Schema and 7 level evaluations. 1 Schema has 7 approval steps and each evaluation returns true or false.
    You have to implement GET_AREA_TO_ITEM_MAP method of Agent BADI to exclude/include items.
    BTW. If you set workflow framework as Application-Controlled Workflow, your old workflow logic works without any change.
    Regards,
    Masa

  • 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