Workflow Performance

Hi All,
I have a Performance Issue in Work flow.
I modified BOR object created Subtype and accessed Change pointer tables to get the old and new data. It is working good in Development Server .
When it is moved to Production performance of production is coming down.
I can see that clearly in SM50. Anyone has suggestions in improving Performance and any parameters i need to set in Production server,.
Thanks in Advance,
Anjani.

You probably don't have much data in development box in CDHDR and CDPOS.  But production has a lot of data in these tables.  A table scan in development hence takes much less time than in production.  Post your SELECT statement on CDHDR and CDPOS here.
My bet:  You are probably starting your query with CDPOS first and then selecting other fields from CDHDR.

Similar Messages

  • SharePoint foundation 2010 workflow performance issue

    I need clarification for the below issue.
    I have designed state machine approval workflow through VS2010.
    It was worked fine for 3 months and now it is taking long time for each level of execution.
    I have checked the running workflow instances in site, it is around 1800 instances for each sub site.
    Application: SharePoint Foundation 2010                                                                              
    Farm configuration
    Web server
    Application Server
    Database Server
    Processor
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    RAM
    8 GB
    8 GB
    14 GB
    OS
    Windows Server 2008 R2 SP 1
    Windows Server 2008 R2 SP 1
    Windows Server 2008 R2 SP 1
    Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

    I have done the below configuration in production servers. Still the problem exists.
    System took around 13 hours+ to proceed to next approver. Suggest some ideas to increase workflow performance.
    Decreased DB server memory configuration
    (Database server)
    Maximum memory in SQL server reduced from
    10GB to 8GB.
    Increased Workflow throttle configurations
    (Application & Web server)
    PS C:\Windows\system32> stsadm -o getproperty -pn
    workflow-eventdelivery-throttle <Property Exist="Yes" Value="150" />
    (Default value is 15)
    PS C:\Windows\system32> stsadm -o getproperty -pn
    workitem-eventdelivery-batchsize <Property Exist="Yes" Value="150" />
    (Default value is 100)
    PS C:\Windows\system32> stsadm -o getproperty -pn
    workflow-eventdelivery-timeout <Property Exist="Yes" Value="10" />
    (Default value is 5)
    PS C:\Windows\system32> stsadm -o getproperty -pn
    job-workflow -url http://myweb:1333 <Property Exist="Yes" Value="Every 10 minutes between 0 and 30" />
    (Default - Property Exists = “No”)
    Site collection analytics
    Sub-Site1: Total running workflow instances: 302
    Sub-Site 2: Total running workflow instances: 58
    Sub-Site 3: Total running workflow instances: 1234
    Sub-Site 4: Total running workflow instances: 2
    Sub-Site 5: Total running workflow instances: 2306
    Sub-Site 6: Total running workflow instances: 512
    Sub-Site 7: Total running workflow instances: 1631
    Sub-Site 8: Total running workflow instances: 7
    Sub-Site 9: Total running workflow instances: 38
    Sum of workflow instances from all sites:
    6090….
    Farm configuration
    Web server
    Application Server
    Database Server
    Processor
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    Intel® Xeon® CPU E5-26670 0 @2.90GHz 2.89GHz
    RAM
    8 GB
    8 GB
    14 GB
    OS
    Windows Server 2008 R2 SP 1
    Windows Server 2008 R2 SP 1
    Windows Server 2008 R2 SP 1
    Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • Workflow performance is getting slow down

    The workflow performance is getting affected due to massive growth in number of records in workflow tables. Due to this users are facing problem in opening and sorting notification. we have to delete or purge this records.
    concurerrent programs like "Approval management Transaction Data Purge" and "Purge Obsolete workflow Run time Data" could not delete the records.
    regards
    Arif
    Edited by: user11309801 on Jun 26, 2010 4:28 AM

    Hi,
    Please mention the application release along with the database version and OS.
    The workflow performance is getting affected due to massive growth in number of records in workflow tables. Due to this users are facing problem in opening and sorting notification. Please see these documents.
    Note: 132254.1 - Speeding up and Purging Workflow
    Note: 277124.1 - FAQ on Purging Oracle Workflow Data
    Note: 337923.1 - A closer examination of the Concurrent Program Purge Obsolete Workflow Runtime Data
    we have to delete or purge this records. concurerrent programs like "Approval management Transaction Data Purge" and "Purge Obsolete workflow Run time Data" could not delete the records. Please post the contents of the log files of those concurrent requests.
    Thanks,
    Hussein

  • Idoc views updation, Workflow, Performance tuning techniques!

    Hello,
    Greetings for the Day!
    Currently my client is facing following issues and they seek an help/attention to these issues. Following is the current landscape of an client.
    Sector – Mining
    SAP NW MDM 7.1 SP 09
    SAP ECC EHP 5
    SAP PI 7.0
    List of Issues:
    Classification (CLFMAS idoc) and Quality (MATQM idoc) views tries to update before MATMAS idoc updates and creates the material in ECC table.
    At workflow level, how to assign incoming record approval request, put them in mask like functionality and approve them as bulk records.
    Performance tuning techniques.
    Issue description:
    Classification (CLFMAS idoc) and Quality (MATQM idoc) views tries to update before MATMAS idoc updates and creates the material in a table.
    Currently, client’s MATMAS idoc updates Basic data1 and Basic data2 along with other views and material gets updated in ECC table, but whenever record has classification and quality view to update via CLFMAS and MATQM idoc, these 2 idocs tries to search the material ECC table before respective MATMAS to update the table. As it does not have the basic data created for the material entire idoc fails. Kindly suggest the solution as in how we can align the process where classification and quality view will get update only after the basic data views gets updated to material master. Is there any way we can make views to be updated sequentially?
    At workflow level, how to assign incoming record approval request, put them in mask like functionality and approve them as bulk records.
    Currently, super users are configured within the system, they have 2 roles assigned to their ID’s, 1.custodian and 2.steward. In custodian role user assigns the MDM material number and check other relevant assignment to record creation request, user approves the material request and the request goes to steward role. As the 1 user has 2 roles, same user need not to checks everything again in steward role, hence user wants whatever request comes at steward user inbox, he shall be able to create one single group for those 20-30 records and on one single click entire materials shall be approved and disappear out of his workflow level. Is there any way by which it can be achieved.
    Performance tuning techniques.
    Currently, client MDM system response time is very very slow, after a single click of action it takes long time to reflect the action within MDM. Material database is almost around 2.5 lakh records, standard structure has been used, not a complex landscape structure. Both ECC and MDM server is on single hardware, only the logical separate DB. Kindly suggest performance techniques if any.
    Kindly suggest !
    Regards,
    Neil

    Hi Niel,
    Kindly try the below options
    -> Performance tuning techniques.
    SAP Recommendation is to put the application ,server and Database in different Boxes . I am not sure how you managed to install both MDM and ECC in the same box but that is a big NO NO .
    Make sure there is enough hardware support for a separate MDM box.
    -> Classification (CLFMAS idoc) and Quality (MATQM idoc) views tries to update before MATMAS idoc updates and creates the material in a table.
    MDM only sends out an XML file , so you definitely need a middle ware (PI) to do the conversion.
    You can use PI logic ( ccBPM) to sent the IDOC is the necessary sequence .
    Else you can maintain this logic in the Processing code of ECC system .
    PS : The PI option is more recommended.
    Regards,
    Vag VIgnesh Shenoy

  • Workflow performance issue or not?

    Hello experts!!!!!!
        when several workflow instance is in process and waiting for a document status change to occur, will it be a performance issue?
        I have a scenario in which my workflow is triggered when a document is created, it goes through statuses from 1 to 10 (for ex). Most document will only reach status 7. Is it a good idea to design a workflow which will complete when the document reaches status 7 or there will not any performance issue if the workflow waits for document status to go the stage 10 for its completed.
        your thoughts and suggestions are apreciated
    Thanks
    Prakash

    Hi
    If all these workflow's are waiting for changes that will occur almost simultaneously - the yes, you could be facing a performance issue, (depending on the load and the sizing of your landscape).
    If the flows are triggered using events, I would recommend you to use the event queue.  You can find documentation on how to use / Setup here http://help.sap.com/saphelp_47x200/helpdata/en/17/1adc37d4edec12e10000009b38f8cf/frameset.htm
    Even if your not facing a performance issue, the event queue is still a very good idea, as it can help stabilize your solution.  e.g.  in case of at error in your workflow, you can mark the event, in the event queue as having an error. The queue will then continue to collect the event, without triggering your workflow.
    When you then have fixed the bug, you can reactivate the event queue, and no event will have been lost.
    Regards
    Morten Nielsen

  • Reporting on Workflow performance

    Hi,
    The business is trying to gain an insight in to how long the process is from the time we create a Shopping Cart to the time it is approved. 
    Ideally they are looking for the following:
    1) Time taken from Shopping Cart Creation > Financial Approval is carried out;
    2) Time taken from Financial Approval > Group Procurement Approval;
    2) Time taken for the Shopping Cart Creation > Shopping Cart fully approved (both Financial & Group Procurement)
    This would enable us to monitor and report on the process and look for process improvements (if we need to).
    I have shown them the SWI2_DURA report, but they want a custom report written that is more user-friendly. I've been tasked with analysing whether we can get a report created.
    Can you let me know how difficult this would be?
    Chers,
    John

    Hi,
    You could create an abap report but my experience is that you will need to read the workflow container (perhaps even several times) (sap_wapi_read_container for instance). The performance will be very poor.
    A solution to this can perhaps be to add an activity to the workflowmodel which creates a record with certain fields in a z-table. Then your abap will only need to read the z-table.
    Also have a look at programming exits. Each task in the workflowmodel has this tab. You can enter a class which creates the record. It is intended for this purpose. Look for classes cl_swh_workitem_exit* for demo classes from SAP.
    regards,
    Bert

  • Workflow Performance Issue (Used with OWB10.2.0.3)

    Hi
    We have a problem which seems consistent among our process flows.
    The process flow contains a fork then runs 3 or 4 mappings routing back to an "AND" activity.
    each mapping completes in a matter of seconds but the duration of the AND activity is consistently around 2mins.
    This in terms of our overall load elapsed times adds an overhead of at least 20-30 mins which is not acceptable really.
    Can anyone shed any light on what the AND is doing in the background and what can be done to speed it up e.g. what might need purging (everything i've seen tends to relate to use with Oracle Apps)?
    Kind Regards
    Mark

    Hi
    I have the log file from the wfstat
    snippet below if you want I could email you the full log but there does not appear to be anything else of note
    **** Activity Statuses
    Begin Date End Date Activity Status RESULT User NID Status Action
    Performer
    13-AUG-08 10:08:37 13-AUG-08 10:10:15 ROOT/SUPERSEDE_QUARANTINED_ITEMS COMPLETE OK
    13-AUG-08 10:08:37 13-AUG-08 10:08:37 SUPERSEDE_QUARANTINED_ITEMS/START1 COMPLETE #NULL
    13-AUG-08 10:08:37 13-AUG-08 10:08:37 SUPERSEDE_QUARANTINED_ITEMS/FORK COMPLETE #NULL
    13-AUG-08 10:08:37 13-AUG-08 10:08:38 SUPERSEDE_QUARANTINED_ITEMS/SUPERSEDE_TRANSFE COMPLETE OK
    R_DETAIL_UI
    13-AUG-08 10:08:37 13-AUG-08 10:08:38 SUPERSEDE_QUARANTINED_ITEMS/SUPERSEDE_TRADE_H COMPLETE OK
    EADER_UI
    13-AUG-08 10:08:37 13-AUG-08 10:08:38 SUPERSEDE_QUARANTINED_ITEMS/SUPERSEDE_TRADE_D COMPLETE OK
    ETAIL_UI
    13-AUG-08 10:08:37 13-AUG-08 10:08:38 SUPERSEDE_QUARANTINED_ITEMS/SUPERSEDE_TRANSFE COMPLETE OK
    R_HEADER_UI
    13-AUG-08 10:08:38 13-AUG-08 10:10:15 SUPERSEDE_QUARANTINED_ITEMS/AND1 COMPLETE OK
    13-AUG-08 10:10:15 13-AUG-08 10:10:15 SUPERSEDE_QUARANTINED_ITEMS/END_SUCCESS COMPLETE #NULL
    9 rows selected.

  • Locking issue in workflow with conseutive database update

    Dear Workflowers,
    We are in ECC 5.0 and release 6.40. We went live for SAP in February and we are currently using workflow in PLM module for DMS and ECM.
    We have been facing this locking issue randomly happened in our production and quality system. The error from workflow log is "Document XXXX is locked by WF-BATCH". I have two steps in workflow one is to update the document user( from originator to editor with custom BO "zdraw" new method "setuser") and the next step is to update the document status( BO "zdraw" "setstatus" method which inherited form standard BO "draw").  
    I have tried to use "wait" (1st try) , statements  "BAPI_DOCUMENT_ENQUEUE", "BAPI_DOCUMENT_DEQUEUE" (2nd try) and  "Commit work and wait" (3rd try) to add one step in between, however the issue remains.
    The other question I had was we need to write "commit work" when we use BAPI to perform database update in the ABAP program. But I don't see "commit work" in the method of BO(for example "setstatus" in "draw" object) which performs database update. How does workflow perform DB update properly without "commit work" by referencing standard method?
    Could anyone please share your expertise with the issue I am facing?
    Thank you in advance,
    Merta

    Hi Merta,
    Regarding COMMITs: theoretically you should never use COMMIT statements because the Workflow runtime handles that - the transaction of executing the task is the LUW, not your method. By adding COMMIT WORK you are also committing the workflow task execution.
    In practice however there are the occasional exceptions where something just won't work without an explicit commit - but the theory remains that you should always try it without.
    Regarding your problem, the one way to be certain that a DB update is complete is to use a terminating event - either through change documents or status management.
    Failing that, you can write a wrapper method for SETSTATUS that does something like:
    do 10 times.
      try to lock it.
      if success.
        unlock.
        swc_call_method self 'SetStatus' container.
        set success flag.
      else.
        wait up to 3 seconds.
      endif.
    enddo.
    if no success, raise exception.
    Cheers,
    Mike

  • GRC 10.0 Workflow customizing problem

    Hi experts,
    We are working with GRC Access Control 10.0 and when doing the customizing tasks related with workflows we have an issue that doesnt let us continue.
    Here is the background information.
    We are in the "IMG/Governance Risk and Compliance/General Settings/Workflow/Perform Automatic Workflow Customizing" or easiest, we are in transaction code SWU3.
    Here we have: Maintain Runtime Environment, all green, Maintain Definition Environment, all green, Maintain Additional Settings and Services, a red cross :(.
    So, when opening the tree of our red cross task, we find that the only task that is with a red cross is "Maintain Web Server".
    So, we execute the task, and here we have the following information:
    Service = Webflow (Internet)
    Address web server = http://<our web server>:8000/
    Protocol Address = HTTP
    Path of service = sap/bc/workflow_xml/?
    URL = http://<our web server>:8000/sap/bc/workflow_xml/?
    And here is something that kept our attention. When we push the button to test the URL, our IE opens a page but it is in blank (it doesnt show anything).
    As we saw that, we thought that the service was not active and so went to transaction SICF and checked it, and yes, when you test the service, it doesnt work.
    We finally, checked support packages upgrades and went to SP5 in our GRC server and SP5 in both plugins in our SAP ERP server.
    And, here we are. Have no idea what else to do or check.
    Any suggestion?
    Thanks very much in advance.

    Hi,
    I have just checked my SICF settings and found that we have not actually activated those services at all and our NWBC sessions work fine now.
    Have you activated the sap/bc/nwbc and sap/bc/webdynpro services?
    Also, have you activated the required BC sets for the standard content on Access Controls? This removes the need to do a lot of the basic setups but you still need to follow through the event linkages to check the successful generation etc.
    Simon
    Edited by: Simon Persin on Sep 21, 2011 5:51 PM

  • Workflow won't Start in Sharepoint Online

    I have a fairly simple workflow that does some logic to decide whether or not to call a webservice and then log the results, but it either taking an incredible amount of time to start or does not start at all, if I try to "End this workflow" that
    takes a very long time as well. At the moment it doesn't look like a lot if any other workflows are running, I am confused as to why it is taking so long, in it's current state the site is effectively unusable because of the issue with the workflows(this happens
    to other workflows as well). Is there anyway to see all of the running workflows on the site? Why does it take so long, to start?
    There are no errors to be seen just Internal Status: Not Started

    Hi,
    According to your description, your workflow start and end slowly.
    If your server is not powerful and depending on the load, it will perform slowly.
    If SharePoint is under load then it'll send the workflow to be processed in the background using the workflow timer job, Timer job for workflows by default was every 5minutes.
    Here is a link about how to improve workflow performance, you can use as a reference:
    http://melick-rajee.blogspot.dk/2011/09/how-to-improve-workflow-performance-in.html
    Besides, here are some similar posts, you can take a look at:
    https://social.msdn.microsoft.com/Forums/en-US/3e07fb03-147a-4eb8-9f76-9625cd7bda38/slow-workflow-start-initiation-how-to-speed-up
    http://sharepoint.stackexchange.com/questions/47195/workflow-starts-slowly
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Sharepoint Designer workflow takes long time for execution of action

    Hi All ,
    I have created declarative workflow using SharePoint designer 2010.which is getting executed successfully,But taking lot of time for execution.
    Below are details of it
    workflow contains only one activity "assign Task to User" and workflow will start automatically after uploading document.
    workflow takes 10 minutes to create task for user , 10 minutes to claim task and 10 minutes to execute if any action(Approve or Reject) is taken on task.
    no error in log file or event log related to workflow.
    options tried:
    1.I have tried options  suggested in article(http://www.codeproject.com/Articles/251828/How-to-Improve-Workflow-Performance-in-SharePoint#_rating ),but no luck
    2. Reduced the interval of worflow timer job to 1  from 5 .still no luck
    Any thoughts regarding this would be appreciated.
    ragava_28

    Hi Thuan,
    I have similar issue posted here
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/82410142-31bc-43a2-b8bb-782c99e082d3/designer-workflow-with-takes-time-to-execute?forum=sharepointcustomizationprevious
    Regards,
    SPGeek03

  • GRC 10 - General Setting - Workflow - Customization

    Hello Experts ,
    I am confused with the one of the option provided in BPX Post installation pdf .
    According to this document we need to Activate Common workflow inside
    SPRO - GRC  -General setting -Workflow  - Perform Automatic Workflow Customizing .
    I am not sure what this step do .Did we had this kind of step in GRC 5.3 .
    I am confused because I configured GRC 10 sometime back when this document was not released without any issue
    Thanks & Regards
    Asheesh

    Hi,
    This step is mandatory unless the SAP workflow engine was already setup, please notice this is not GRC specific. If you access the activity you will see each of the steps documented in the right hand side.
    Regards,
    Luis

  • Purchase reqistion Release workflow issue

    Dear experts,
    My PR release procedure works well for releasing useing ME54N. All configs are correct & works well.
    Now while trying to activate workflow for just the Director & VP level I have followed the configuration steps under SAP help.
    But it does not work as I could not get email to be sent to SAP INBOX of user ( Director/VP)
    I am listing steps that I have configured below using SAP help documents. Please guide what I am missing.
    1. Under PR release procedure with classification ---> workflow -->
    Created new entry for my Rel grp (M1)/ code (s4) / VP / plant 3010/ object - US (user) / SAP user id of VP
    2. Under (Netweaver- SAPWAS) Basis --> Business Management --> SAP Business Workflow --> Perform Task-Specific Customizing). Next selected Materials Management --> Purchasing --> Assign Agents
    3. The task TS00007986 ( Release Purchase Requisition) --> Create Agent assignment --> Select User ( SAP user id of VP)
    Please advice the correct steps to activate workflow for PR release.
    thanks,
    Ram

    Hi Ram
    In SWI5 transaction, check whether a work item has got generated for director and VP or not.....
    You will find the work items in SAP Inbox if system has generated a work item for director or VP....
    That will narrow your analysis
    Regards
    Virender Singh

  • Problem - SCSM Change status workflow does not work, shows huge "minutes behind" in SQL, but do not appear as failed.

    There is a workflow "Change request status changed" which periodically fails to run, and it does not show up in "All instances" tab. For instance when I cancel a CR, all activities remain as-is in their respective statuses.
    SQL - "SubscriptionStatus" from
    http://blogs.technet.com/b/servicemanager/archive/2013/01/14/troubleshooting-workflow-performance-and-delays.aspx
    shows increasing number of "minutes by" each minute for this particular workflow. 
    Restarting "Management service" does not give enything. As well as "UpdateSubscriptionWatermark" SQL from the link above (except resetting the "minutes behind" counter)
    Please help!
    Egils Zonde from Technet

    Take it to an apple store and see if you can get an out of warranty replacement. It won't be free, I think the fee for an Air replacement is $299, but it sounds like the insides are broken.

  • Workflow appearing twice in SQL

    I recently checked up on
    workflow performance after an extended parental leave and found that one of the workflows appeared twice in the DB.
    The functioning workflow had a watermark being just one or two transactions behind, but the other was behind by what I guess is the time I implemented the workflow (which means several months by now). Both workflows have the same exact ruleid. Funny
    thing is the RuleLastModified is only off by around 100 milliseconds.
    The stuck workflow has no Relationship type ID nor a Related type ID.
    Not sure where to go from here in order to remove this errornous subscription state (except deleting the errornous row).
    http://codebeaver.blogspot.dk/

    Hi
    Not very much sure what are you referring to here.
    But based upon the partner function procedure assigned to transaction type you get the list of partner in the ticket
    so if you have z transaction type with all partners so you are getting the entire set of partner including z and standard
    so decide as per requirement which one you want and then enhance the z partner profile and further assign it to custom transaction type
    regards
    prakhar

Maybe you are looking for