Automate

 View Only
Expand all | Collapse all

Winshuttle: How to make the script skip/or choose 'Class Type' popup?

  • 1.  Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 03-20-2024 01:44

    When I go into MM02 in Classifications tab, sometimes there will be a 'Class Type' pop up which ruins the script.

    I tried to record the script when it appears, but the script doesn't detect it as per below screenshot. Or I am not able to recognize it. 

    Class Type created on the Material only has 1 value, which is '001'.



    ------------------------------
    Nart Paksamut
    R.TWINING & COMPANY LTD
    Andover
    ------------------------------


  • 2.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 03-21-2024 17:28

    Hi Nart,

    The screen for that popup is SAPMSSY0-0120 so you can either apply a skip screen or an If first transaction:

    Or

    Attached are the script and data file I created. 

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------

    Attachment(s)

    xlsx
    MM02_Classification.xlsx   5 KB 1 version
    Txr
    MM02_Classification.Txr   443 KB 1 version


  • 3.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 03-26-2024 23:54

    Hi Maria,

    It works, thank you.

    How do you check what is the Screen Code for it for that particular pop up?



    ------------------------------
    Nart Paksamut
    R.TWINING & COMPANY LTD
    Andover
    ------------------------------



  • 4.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 03-27-2024 12:15

    Hi Nart,

    I made sure the screen would pop up when I did the recording. That allowed me to apply the if condition or skip screen.

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 5.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 03-27-2024 22:43

    Hi Maria,

    Thank you.

    I did that as well, but it doesn't pop up in the script. I only got those in the screenshot.



    ------------------------------
    Nart Paksamut
    R.TWINING & COMPANY LTD
    Andover
    ------------------------------



  • 6.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-08-2025 09:12

    Hi Maria, 
    I'm sorry to hijack this thread. but I am also having this problem.

    I make sure the popup appears during the recording but Automate doesn't record it like you showed.



    ------------------------------
    Manuel Prieto
    IT Team Lead
    Arthrex, Inc.
    FL
    ------------------------------



  • 7.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-08-2025 11:51

    Hi Manuel,

    Sorry you're running into that issue as well. Are you able to open the script I sent in the thread above and copy those rows into your script? You can also manually add those rows using the screenshots I provided. 

    Here is a training webinar we did on modifying scripts.

    If you add the screen along with the skip screen or if condition and it's still not working, please share your script. 

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 8.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-08-2025 20:57

    Hi Maria,

    Just an update. Even though I tried to record it with the screen pops up, it won't show in the script. I am using v24.1. I tried with all 3 types of recording (standard,batch,GUI).

    The solution was to copy a part of your script that shows the pops up to mine. Sometimes it bypasses the pops up but sometimes it doesn't.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 9.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-09-2025 08:05

    yes, I am able to copy the code into my script, but that only works partially and with some users only.
    let me explain.

    first scenario, we have users with different access, therefore for some users, the popup contains 3 classes and for others it contains 5. (we have diferent scripts so i need the different versions)

    this means the cursor position code (04/03 in your case) will not work for all.

    Second scenario, we need to access other classes, and i can call the popup, but im unable to know what the cursor position is for all the other options.



    ------------------------------
    Manuel Prieto
    IT Team Lead
    Arthrex, Inc.
    FL
    ------------------------------



  • 10.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-09-2025 15:14

    Hi Manuel,

    That is a tricky scenario. I recommend having a separate script for each class. Regarding the different cursor position, you can create copies of the script and have one for each cursor position and then chain them together. It will run all the scripts, so most will error but one will work. The other option is to have users figure out which scripts will work for them given their access. 

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 11.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-09-2025 16:26

    Hi Maria,

    Either of those plans will work and we are willing to use those scenarios, but without the ability to be able to select the other classes, we cannot have separate scripts.



    ------------------------------
    Manuel Prieto
    IT Team Lead
    Arthrex, Inc.
    FL
    ------------------------------



  • 12.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-09-2025 16:50

    Hi Manuel,

    Hopefully we're talking about the same thing. On the class type popup screen, there is a filter button that will allow you to specify the class type you need:

    Will that work for you? I know the popup doesn't typically show up after the first run, so if you need to switch the class type, click the "Other Class Type" button on the classification screen and then use the filter in the popup screen:

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 13.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-09-2025 21:22

    HI Maria,

    For me I don't need to filter it. I just pressed the green tick box.

    It's still doesn't work most of the time. The script will fail, and I have to 'Run and stop on error'. The screen will stop at the pops up and I press it. Once that is done the script works fine and for other Materials as well. It will happen at the first row of the run.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 14.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-10-2025 09:45

    yes @Nart Paksamut,
    same thing with me.

    @Maria Ebner thank you,

    this will solve our problem if we add the SAPMSSY0-0120 screen but still will need the BDC_OKCODE for
    the filter
    the cursor position for the Class Type text and BDC_OKCODE for the enter (i assume it would be "=ENTR")



    ------------------------------
    Manuel Prieto
    IT Team Lead
    Arthrex, Inc.
    FL
    ------------------------------



  • 15.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-10-2025 10:45

    Hi Manuel,

    Here are screenshots from my script for those screen and field names. I also attached the script. Please note the script exits out after getting to the classification screen.

    If you need to change the class type when you're already in the classification, the OK code for that button is WECH, so =WECH would be added in the script. 

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------

    Attachment(s)

    Txr
    MM01_ClassTypeFilter.Txr   139 KB 1 version
    xlsx
    MM01_ClassTypeFilter.xlsx   5 KB 1 version


  • 16.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-10-2025 14:25

    @Maria Ebner you are awesome!

    this solved my problems,
    I built the OKCODEs you provided into my scripts (=NSEL and =GOON) and that solved it for me.

    thank you so much, we really appreciate it.

    Now I would like to figure out why those screens are not getting recorded in SHDB or Automate but I'll reach out to support and my Basis team for that.



    ------------------------------
    Manuel Prieto
    IT Team Lead
    Arthrex, Inc.
    FL
    ------------------------------



  • 17.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-10-2025 14:28

    Great! You're welcome! I'm glad that resolved your issue. I'm curious what your Basis team says because it should get captured. 



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 18.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-10-2025 10:39

    Hi Nart,

    Did you apply the skip screen or the If first transaction around that popup screen?

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------



  • 19.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Posted 01-12-2025 21:34

    Hi Maria,

    Yes, I did. It is still a 50/50 like Manuel.

    Also, the script won't pick up the screen like Manuel as well when recording.

    Seems like this is a bug.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 20.  RE: Winshuttle: How to make the script skip/or choose 'Class Type' popup?

    Employee
    Posted 01-13-2025 11:27

    Hi Nart,

    Please send a copy of the script along with the error message so I can take a look.

    Regarding why it's not recording, please open a ticket by emailing support@precisely.com. If it is a bug then our Engineering team will take a look and hopefully provide a fix.

    Thanks,



    ------------------------------
    Maria Ebner
    Precisely Software Inc.
    ------------------------------