Automate

 View Only
Expand all | Collapse all

Script working differently for different users

  • 1.  Script working differently for different users

    Posted 09-28-2018 07:26
    ​​Has anyone had an issue with a script not working consistently between different computers/users?  My boss wrote a script with three different condition sections. He ran it and it worked exactly as he intended it to.  I ran the same script  and it only would run one of the conditions.  Any materials that should have been run by the other conditions were skipped.  We even sat together and compared the script and our data for inconsistencies.  We even tried running the same group of materials together, with different results.  We could not find any reason for the discrepancy. 

    Anyone else have this issue or know why it would work fully on one computer, but only partially on a different computer?

    Becky


    ------------------------------
    Becky Collins |
    Promega Corporation | [City] |
    ------------------------------


  • 2.  RE: Script working differently for different users

    Posted 09-28-2018 09:09
    ​Materials is outside of what I deal with, but the first port of call (which you've already done) is to check, double check and then triple check both your data and the script. You don't say precisely what steps you've taken however so if I may offer a couple of suggestions?

    For reference I use Winshuttle Studio. You say that you used the same group of materials but was that the exact same file as your boss used or a different one? If the script is being run from Excel using the Winshuttle ribbon, has the most up-to-date version of the script been published to it?

    If you are using the same file with the same data but on your system/login and it's not working for you then there's something strange going on. I haven't had this scenario myself, when I have had something similar it's always been down to a data issue.

    Have you tried running it in debug mode? That should normally provide a bit more information as to what is going on. Failing that if you are able to provide a bit more info as to what the conditions look like within the script, it might give others an idea as to what's going on.

    Other random things that crossed my mind (but probably not the cause) is do you have the correct permissions (discounted this because I'd expect to see an error within the log), and whether or not it's a GUI script. Haven't touched upon the GUI scripts since the training (haven't had a requirement), but I seem to recall (could be wrong!) it being said different resolutions on different PCs would be an issue?

    ------------------------------
    Douglas Cripps |
    Welsh Water | [City] |
    ------------------------------



  • 3.  RE: Script working differently for different users

    Posted 09-29-2018 17:01
    ​Hi
    I experience this issue and resolved by comparing personal settings and user parameters in SAP.  Example: I don't have any default controlling area where as other use have, so selection of controlling are screen does not pop-up for user.

    I would recommend to run step-by-step stop on all screens mode to identify the differences.

    Thanks

    ------------------------------
    Madhu Komaravolu | SAP Solution Architect
    Navajo Tribal Utility Authority | [City] | 9287296163
    ------------------------------



  • 4.  RE: Script working differently for different users

    Employee
    Posted 09-29-2018 10:22
    HI Becky

    For transactions with user settings, execution can differ from user to user.

    For material master, the default views is often the culprit, as well as default values.  Many people save default views, and that can mess up execution, because they will pop-up, even if you didn't select them. 

    (1) So clearing the views when listed and then selecting the one view to begin with is best practice.  Then you can use the icon on the right of the listed tabs to chose the next one you would like to go to.

    (2) Also for any values that may have defaults in MM, like plant, storage location, sales area data (sales org, dist channel, division), make sure you are passing values up to the transaction, so that default values won't take affect.

    (3) As other mentioned, check your data, comparing it to your bosses, to ensure there isn't something different.  Run in step by step mode to see what is going on. 

    (4) And also check if there are differences in SAP systems and/or Winshuttle versions.

    Hope that's helpful.  If these are not the cause of the issues, please open a support ticket.

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------



  • 5.  RE: Script working differently for different users

    Posted 10-01-2018 04:31
    ​I had the same issue and what I did in transaction was to write an condition that IF the value does not appear, skip it.
    I think Sigrid has a valid point of skipping the views in the recording, however, if a user have them defaulted, it will stop there as well as value is expected.
    Materials is a much more tricky area according to me than HR, Vendor and Customer

    ------------------------------
    Henrik Axell Master Data Analyst
    Essity Hygiene and Health
    ------------------------------



  • 6.  RE: Script working differently for different users

    Posted 10-01-2018 07:13
    ​Hello, We had something similar and found that the SAP user settings were different. Check to see if each of you have the same SAP user settings.

    ------------------------------
    Duncan Myers | ETL
    Applied Industrial Technologies | Cleveland
    ------------------------------



  • 7.  RE: Script working differently for different users

    Posted 10-01-2018 09:58
    I experienced the same problem, unable to run a script created by another person.
    Our solution, my SAP profile was deleted and recreated copying the profile of the script writer.
    What was interesting was on the surface my original SAP profile was identical to the script writer's.

    ------------------------------
    Ron Unthank | Plant Manager
    American Air Filter Company, Inc. | [City] | +1.502.637.0011
    ------------------------------



  • 8.  RE: Script working differently for different users

    Posted 10-02-2018 05:33
    So basically, 4 cases can happen :

    - Excel / Access regional parameters are not the same : . and , this is fatal
    - SAP logon language : I've already seen a system where it has been mandatory to connect in Germain as in English some controls don't work
    - SAP user parameters and SAP default user parameters :
    * Here again : , and . this is fatal
    * Parameters : default value, default variant, etc this an have some impacts as we do not always remember their influences when creating a script, and as well default screen with specific field sometime
    - User authorization of cause

    BR


    ------------------------------
    Gerald Bonnin | Processes & Projects Specialist
    Siemens SAS | France
    All comments are my own and do not reflect my company idea or policy. They cannot engage my company in any reason.
    ------------------------------



  • 9.  RE: Script working differently for different users

    Posted 10-02-2018 09:27
    ​I think this is probably fairly obvious (sometimes catches folks off guard), but I've had scripts run differently due to varying user sap credentials.  As an example, I have full access to all views on a material master, so one of the mistakes I've made in the past is to create an MM02 script that starts on the BD1 view (first screen of the script), and then navigates to a different view (or two) to perform some material master updates.  Script worked great for me, as I have the ability to modify data on BD1 via MM02, but when another user came along and tried to run the script (who did not have the ability to edit data on BD1 via MM02), the script starts out at the first view that they are able to edit (e.g. "Purchasing"), and the script functionality went downhill from there.

    ------------------------------
    Jeremie Dippel
    Project Engineer @ Rockwell Automation
    Wisconsin Local Wug Leader
    I'm your huckleberry.
    ------------------------------



  • 10.  RE: Script working differently for different users

    Posted 10-02-2018 11:34
    Hi all,
    We have had a similar issue with a few of our users.  We have a MM01 script that works for some of us but not for all.  For the users having issues running the script, the initial MM01 screen opens with no material number being entered.   When the script executes the ok code to select the Org levels the message "Enter a material type" appears at the bottom of the screen.  This is because no material number was being entered on the initial screen.  The script does not seem to be uploading the material number contained on the data template.  I have checked so many things to figure out the issue.  While reading all the feedback for this post I got a few more ideas on what to check.  It turns out that it the user had all views selected as a default and this was causing the issue when running the script.  Our issue is finally resolved!

    Thank you Winshuttle Community!!

    ------------------------------
    Monica Anicito | Master Data Specialist
    Ortho-Clinical Diagnostics, Inc. Raritan, NJ
    ------------------------------



  • 11.  RE: Script working differently for different users

    Posted 10-03-2018 13:41
    We're so glad to hear that this is resolved! Great work to the Community and thanks for sharing your story!

    ------------------------------
    Community Manager | Winshuttle
    ------------------------------