Automate

 View Only
  • 1.  Group data for material is locked error during MM02 mass update WS script

    Posted 12-05-2023 09:40

    Recently just transitioned from standalone Winshuttle Studio 12 to Evolve 20.2 and I am encountering something I've never seen before with a tried-and-true script.  When running an MM02 script to update the Planned Price field, consecutive records for the same material (SKU) but different plants produce the following error:

    The group data for the material 101P9101 is locked by LLANDRY

    If I rerun the script on the error rows they will all be corrected without issue. The script itself is very simple in that it just opens the material master record and changes the planned price and planned price date on the costing 2 view. It then saves and reads the next row in the excel file.

    I have been running this same script for several years on my standalone version of WS Studio and have never run into this issue before. Wondering if anyone has encountered this issue before and if there is some script setting that can be changed to prevent this.

    Thank you in advance



    ------------------------------
    Leonard Landry
    Senior Financial Analyst
    Clearwater Seafoods
    Bedford NS
    ------------------------------


  • 2.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-05-2023 09:56

    Hi Leonard,

    Maybe try to add an Upload Delay. That will give it a little time in between the records that are being updated. 



    ------------------------------
    thersha cowley
    Systems analyst/programmer
    Flowers Foods
    Thomasville FL
    ------------------------------



  • 3.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-05-2023 10:25

    Thank you Thersha for your quick response.  I added a 100ms upload delay at runtime and it worked perfectly with no conflicts.

    Cheers!



    ------------------------------
    Leonard Landry
    Senior Financial Analyst
    Clearwater Seafoods
    Bedford NS
    ------------------------------



  • 4.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-05-2023 10:27

    That's fantastic! Glad I could help .

    Cheers! 😊

    Thersha Cowley

    Specialist SAP Developer

    Flowers Bakeries, LLC

    thersha.cowley@flocorp.com

     






  • 5.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-06-2023 04:38

    Every now and then I experience the same (or similar) problem in Evolve webforms. SAP is slower to complete the first script/posting and the next (could be another script) is already trying to process the next transaction (can be with both regular recordings and Direct recordings).

    I was intrigued by the Upload Delay setting (which never caught my eye before to be honest) but apparently (acc. Precisely support) this setting is not possible in XML scripts (which are mainly used in Evolve webforms).

    They told me to raise it as customer idea so anyone who experience the same issue... please vote for my idea (title "Enable Upload Delay for XML scripts").



    ------------------------------
    Ed Meiners
    Team lead MDIM
    Wessanen Nederland Holding BV
    Utrecht
    ------------------------------



  • 6.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-06-2023 08:05

    Thank you for your reply Ed.  We have encountered the same issue as you in our Evolve Webforms as well so we would like to support your product improvement suggestion.  Where/how do we vote for your idea (title: "Enable Upload Delay for XML scripts").

    Regards,



    ------------------------------
    Leonard Landry
    Senior Financial Analyst
    Clearwater Seafoods
    Bedford NS
    ------------------------------



  • 7.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-07-2023 08:04

    Ed,

    I have experienced the same issue with webforms, I will vote for your idea.



    ------------------------------
    RTX Polley
    Raytheon Co
    ------------------------------



  • 8.  RE: Group data for material is locked error during MM02 mass update WS script

    Posted 12-07-2023 08:07

    I will vote for your idea! 



    ------------------------------
    thersha cowley
    Systems analyst/programmer
    Flowers Foods
    Thomasville FL
    ------------------------------