Custom Workflow generates a thousand of Workflow Instances and EREs

Hi everyone,
I developed a Custom Workflow that complete user attributes information when a user select a value from a drop down list. I tested this workflow with a Request MPR  with an Action Type "Create" and the workflow Works perfectly. But now, I
have to use this workflow in an Action Type "Modify" , when I changed it, the workflow Works fine but generates  a thousand of Workflow Instances and in consequence a thousand of EREs.
Can you help me please?
Thanks in advance,

Make sure that the change invoked by your workflow is not used as button to run another workflow - described scenario looks like you have created a loop.
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

Similar Messages

  • 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

  • Custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list

    I  am looking for custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Greetings.
    pls check if it helps you.
    http://msdn.microsoft.com/en-us/library/office/jj554504(v=office.15).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Cannot update due date in SharePoint 2010 Approvel Workflow generated Task

    Wondering why due date cannot be changed by users with List permissions on a Task which was generated from the built-in Approval workflow.
    I can have the workflow set the initial due date. The business process dictates that at times the due date need to be updated on the Task before they are completed (shift to the right or whatever).
    The column settings for the due date field do not seem to be set as read only??? why can the not be updated by users/admins?
    If the due date must be updated by a workflow how can a workflow be manually be run...like an administrator business process feature?
    BTW...this project mandates that all processes are run with OOB settings (codeless).
    Thanks
    Ok, found the answer to this on another post: click on the workflow status field of the workflow that generated the tasks. Then click "Add or update assignees". Very nice!

    Hi,
    Thank you for sharing this with us!
    Beside the way you mentioned, you can also try to reassign the task from the task list directly. Thus you can enter a new duration for this task and SharePoint will generate a new task.
    Thanks
    Pengyu Zhao
    TechNet Community Support

  • One Infopath 2013 custom list be access by 2 workflows

    When accessing an InfoPath 2013 form that accesses a custom list, I have found that I need to split up an existing workflow 2013 into 2 workflows.  This is due to the workflow 2013 does not contain some features that workflow 2010 contains.
    Thus I have the following questions:
    1. Can a workflow 2010 call a workflow 2013? If so, can you tell me how to make this call?
    2. Can  I have the custom list that is accessed and updated by both a workflow 2010 and workflow 2013? If so, can  you tell me how to connect the same custom list to both a workflow 2010 and workflow 2013?

    Hi Wendy,
    You can click into the "parameters" and if there are any parameters need to be filled in the 2010 workflow selected , you need to give the values there; and if there is no parameters there, then you just need to click OK.
    It depends on the steps in the 2010 workflow.
    For "this item", I recommend to select Current Item as the 2010 workflow is created to be associated with the same list as the 2013 workflow.
    You can refer to the links for more details about Start a list workflow:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/18/how-to-trigger-a-sharepoint-2010-workflow-from-a-sharepoint-2013-workflow.aspx
    http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-start-a-sharepoint-2010-workflow-within-a-sharepoint/
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • When are Workflows generated from Integration Processes?

    Hi Friends
    When are Workflows generated from Integration Processes?
    regards
    Sam

    Hello Samuel,
    Workflows are build in ABAP engine when you implement your Integration Scenario. So with each Int. Szen. saved in Int. Repository you will get your ABAP workflow in the ABAP stack.
    When starting the Integration scenario the workflow history/log in ABAP stack is filled with the first step within your Integration Scenario which is placed after your Start step and using an internal workflow process step.
    So you won´t find here explicitly documented send and receive steps in the workflow log (SXMB_MONI_BPE) but transform steps, decision steps etc.... .
    Send and receive steps are displayed in SXMB_MONI connected to PI partner (process engine).
    So when starting with using BPM it is a little bit confusing to understand how to read both logs and put their information together.
    regards
    Dirk

  • Will custom process defined in a standard workflow get affected by Patch

    Hi,
    Kindly let me know in case I have some custom processes defined in my standard workflow(Extending a wrokflow), will it be overriden by Oracle patch application or not.
    Thanks,
    Nisha.

    Hi,
    It depends on the access and protection level in the patch file, and the level at which you made your customizations.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Workflows: How to set a workflow variable that is the difference in hours between now and a created date

    I'm trying to create a variable that contains the number of hours between the item created date and Now.  When i use TODAY, it seems to set the time at 12:00 rather than the time now - so that throws the hours off.  Any ideas?
    ajw

    Hi ajw,
    According to your description, my understanding is that you want to calculate the hours between the item created date and now.
    It seems to be not an OOB way to implement your requirement, to get the current time, you need to create a custom workflow activity for SharePoint 2010 workflow. About creating custom workflow activity, you can refer to the links below:
    http://msdn.microsoft.com/en-us/library/hh872790(v=office.14).aspx
    http://blogs-sharepoint-ashutoshmisra.blogspot.in/2013/02/create-custom-workflow-action-for.html
    Or, you can use a third party solution to achieve your requriement.
    Here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e93ea37a-df09-4cbf-a58d-5d4def3d3d42/how-to-compare-time-in-sharepoint-designer-2010sp-2010-workflow?forum=sharepointgeneralprevious
    http://blog-sharepoint.blogspot.in/2009/03/get-current-time-in-sharepoint-designer.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Workflow stopping @ beginning of sub workflow

    Guys,
    I am calling Sub workflow from MAIN workflow.
    Processing of Main workflow stopping @ the STEP, wherein i trigger sub workflow.
    The status is : In process. (it is a background task to trigger sub workflow)
    If i process it manually with SWIA t-code , it is porcessing further.
    But, it is not processing automatically.
    Please guide.......
    Regrads.
    santosh.

    Hi Arghadip,
    Design Description of MAIN WF.
    BO: ZBUSECM(original: ECM).
    1)WF get triggered by ECO(CC01).
    2)ACTIVITY STEP to extract fields for both (Material & BOM ).
    3)2 level FORK to trigger BOM & Material WF.
    4) CONDITION to check flags for both BOM & Material.
    5)  BOM : if yes, reset flag to space & proceed. if no, no action. proceed further. till end of FORK.
    6) MATERIAL :if yes,reset flag to space
    6a)BLOCK to trigger material WF.
    6b)STEP to Trigger material WF(This will  call sub workflow).
    6c)WAIT step to receive material WF "COMPLETED" event.
    6d)ENDBLOCK to trigger material WF.
    7) END of 2 level FORK.
    8) ECH: Release ECO.
    9) WAIT step to ECM Close.
    10) Send mail for ECM Closure Notification.
    11) WF Complete.
    Design Description of Material(SUb) WF.
    BO: ZBUS1001(supertypel: BUS1001006).
    starting from 6b above.
    1)WF get triggered by 6b event "INITIATE".
    2)ACTIVITY STEP to send the material for editing to  MM COntroller agent.
    3) ACTIVITY STEP to send material for editing to fianance agent.
    4) ACTIVITY STEP to complete the  sub flow by triggering custom event "ZMANITRIGGERMATWFCOMPLETE" , which further calls the "COMPLETED" event by function module to hand over the control back to MAIN WF.
    Now, the above mentioned step(4) is not handing over the control to main WF........
    & also matnr is not being passed to sub flow now........
    Regards  & thanks.
    santosh.
    Edited by: santosh koraddi on Jun 22, 2010 7:22 PM

  • Custom Report using Metrics of Instance and Server

    Hello
    I need to create a custom report using different instance and server metrics like:
    File System Space Available
    Tablesapaces
    Database Spaces usage
    Sort in Memory
    library Cache Hit
    Data Dictionary Hit
    Buffer Cache Hit
    I already made the report, but I can´t change the size of the graphic (for a better presentation on my report)....
    Do you know how can I change the size of the report?
    I think that I´m using a "metric" so for that reason I Can´t change the size ... :(

    I am currently having a problem with this report and drilldown to KSB1, the cost centers selected int S_ALR_87013611 are not transferring to KSB1 and thus all the cost centers come up in the call to KSB1, are you experiencing this problem? I am on V4.7

  • Share Point 2013 Designer not showing platform as "Share point 2013 Workflow" at the time of workflow creation.

    Hi All,
    I am trying to create workflow for my Share Point 2013 site. To do this, I installed Share Point 2013 Designer,
    then created couple of workflows in that, using "Share point 2013 Workflow" platform.
    But when today, I tried to create workflow, I found that "Share point 2013 Workflow"  platform option was not there. Because of that I am unable to create and deploy workflow on my SP 2013 site.
    I am really not getting the problem. As I created some workflows using "Share point 2013 Workflow"  platform on same share point designer and now I dont see that option in dropdown.
    Please suggest me something for this. I tried all possible solution which are present on internet.
    Thanks in advance.

    Hi,
    Since you are posting the thread in SharePoint 2013 server forum, I assume you are using SharePoint server 2013.
    I understand the option SharePoint 2013 platform disappears when you create a workflow in Designer, the issue might be caused by workflow manager. Please refer to the article below and check workflow configuration per the steps listed:
    http://techbrij.com/the-option-sharepoint-2013-workflow-platform-not-available
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Workflow not showing in started workflows

    Hi all,
    I developed one workflow by using the user developed  business object.
    I am triggering this workflow from abap program by using the function module 'SAP_WAPI_CREATE_EVENT'.
    Workflow is getting triggered from every id as i checked it by SWEL.
    If i execute the program from my id it getting triggered and showing in outbox as started workflows, if i did it from other id
    it is not coming in his outbox of started workflows.
    I checked the authorisation roles and profiles of both ids , they are same.
    what might be the problem, can anbody help?

    Hi swami,
    the code i am using is
              CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
                EXPORTING
                  object_type             = 'ZTRNAPR'
                  object_key              =  object_key
                  event                   = 'CREATED'
                  commit_work             = 'X'
                EVENT_LANGUAGE          = SY-LANGU
                LANGUAGE                = SY-LANGU
                USER                    = SY-UNAME
                IFS_XML_CONTAINER       =
              IMPORTING
                return_code             = return_code
                 event_id                = event_id
               TABLES
                 input_container         =  input_container[]
                 message_lines           = message_lines[]
                 message_struct          = message_struct[]
    The return code i am getting is 0.

  • AWR snapsohots not generating after restart of the instance

    oracle : 10.2.0.3
    OS : Linux 64-bit
    Issue : AWR snapshots are being generated after restart of the instance.
    I restarted the instance at 31.01.2010 8 AM CST.
    SQL> select STARTUP_TIME from  v$instance;
    STARTUP_T
    31-JAN-10
    SQL> select max(begin_interval_time)   from DBA_HIST_SNAPSHOT
      2  /
    MAX(BEGIN_INTERVAL_TIME)
    31-JAN-10 08.00.04.996 AMto my surprise the AWR reports are not being generated from 8 AM till now 8PM.
    What could be the reason ? Do I need to do any thing manual initiation ?
    Edited by: [email protected] on Feb 1, 2010 8:41 AM

    SELECT STARTUP_TIME     FROM DBA_HIST_SNAPSHOT WHERE STARTUP_TIME > TRUNC(SYSDATE);
    post results from SQL above

  • In info spoke customer details generating in two lines

    Hi All,
       In Info spoke after file trigerring job background, file creating in AL11 but in that file for each customer details generating in two lines.
    Eg:
    Correct reocrd : 1212|dsfsdfd|ddf|fdf||dfsdf
    Error record: 1212|dsfsdfd
                           |ddf|fdf||dfsdf
    Thanks,
    Manjunatha

    Hi All,
        The above issue is getting due to # character in text at end(e.g ljdfsaa##). After removing # characters in text issue got resolved.
    Thansk,
    Manjunatha

  • Given a workflow where can we see the BORs and programs invoved in it

    Given a workflow where can we see the BORs and programs invoved in it.

    Hi Kittu,
    Go to PFTC:
    Ex:
    Task Type: Workflow Template
    Task : 20000040
    Go to triggering Events here you can find BO.
    Inside BO u can find Program.
    Thanks and Regards,
    Prabhakar Dharmala

Maybe you are looking for