Automate

 View Only
  • 1.  Do an action if a window appears or just continue the loop if not

    Posted 01-24-2020 07:39
      |   view attached
    Dear Community,

    I'm quite new using Winshuttle and I'm facing an issue at the moment I can't solve. 

    I have recorded a script in VA01 to place orders. There is a loop in it that adds as many material numbers and quantity as needed.

    My problem : During the loop there is a possibility that after a check done by SAP an additional view pops up (related to stock).  On this view I can either use CTRL+F5 to validate or click on the corresponding button. 
    I don't find a way with "IF" or the possibility to tick "Skip Screen if Not found" that works. The skip possibility seems really interesting but as soon as I put that in my loop a pop op tells me that it doesn't work in a Loop. For me it has to be included in the loop as this has to be checked each time I enter a material as there is something that should be done or not.
    If nothing is done in this additional view the order will not be generated 

    You can see on the attached screenshot the part of the script I'm talking about  the 3 lines below the loop is the additional window that pop ups sometimes.

    Is there a way to include that to the loop or is it another way to proceeed ?

    Thank you for you help !

    Kind regards, 

    Maxime

    ------------------------------
    Maxime Plessis | Masterdata Specialist
    Fossil, Inc. | 111-222-333
    ------------------------------


  • 2.  RE: Do an action if a window appears or just continue the loop if not

    Posted 03-13-2020 09:30
      |   view attached
    Hi Maxime,
    I am not sure if you have already resolved your issue, but I have a skip if not found w/in a loop. I created the script a while ago so do not recall exactly how. But, I want to say that I added the skip if not found, then add the loop (see attached). Recording method is "non batch without controls" using Studio version 11. The one thing I find is that sometimes I need to run the script as "run and stop on errors", otherwise I receive a batch input error.

    ------------------------------
    Vanessa Kutasi | Application Analyst II
    IDEXX | New England WUG Leader
    ------------------------------

    Attachment(s)



  • 3.  RE: Do an action if a window appears or just continue the loop if not

    Employee
    Posted 03-13-2020 14:15
    Hi Maxime

    You have to click on the screen name row in order to get the skip if not present option selected.  It's the colored row of the pop-up.  (note screen shot from a finance tcode)

    If that doesn't work, you can also try BATCH mode, which may help with pop-ups.  I've also used a BAPI in Direct to create sales orders - no pop-ups at all.

    Hope that gives you some ideas.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------