Automate

 View Only
  • 1.  VA01 Order Type OR

    Posted 04-06-2020 13:32
      |   view attached
    Hi Fellow Developers

    I am running into a wall with a VA01 script. It needs to be able to handle max quantity errors, along with batch determination (one time delivery) messages. I have tried both standard and batch scripting modes. I'd prefer to not have to go GUI method if at all possible. The script can get three rows of data inputs added, but then errors on the batch determination (one time delivery) for the 1st material listed. After "one time delivery" is clicked (run & stop on errors mode), the script stops. It doesn't know what to do next. Which I do not understand as it was able to complete three entries before getting confused. Also, even when using "skip if not found", the script fails if none of the pop ups happen. I realize I am missing a trigger but just cannot seem to figure out what/where. 

    Also, I am no very familiar with BAPIs, but if that is a better way to go, and someone has a template they could share, I am willing to take a trip down that road. My only understanding of BAPI is that they don't have to deal with the pop ups, but that they can cause quite a problem if not properly designed. 

    Batch test script attached 

    Thank you!

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

    Attachment(s)

    Txr
    VA01_batch.Txr   943 KB 1 version


  • 2.  RE: VA01 Order Type OR

    Posted 04-07-2020 10:28
    Hi Vanessa,

    It is hard to say where the exact failure is without also reviewing the data file and Debug screenshots. I can say that the skip screens you have for a couple of these screens have not worked when I have seen them in this type of requirement. Availability control screen tends to cause issues within non-batch/batch scripts. If you tried GUI scripting it should work.

    If you want to open a support ticket and provide the data file and screenshots of Debug we are happy to review further.

    Thank you!
    -Shelby

    ------------------------------
    Winshuttle Support |
    Winshuttle North America |
    ------------------------------



  • 3.  RE: VA01 Order Type OR

    Posted 04-08-2020 13:25
    Hi Shelby
    I recorded using GUI scripting today and am running into the same issue. If neither of the pop-ups happen, the script wants to save and exit. I will open a support case and include all the details.

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



  • 4.  RE: VA01 Order Type OR

    Posted 04-09-2020 03:41
    Hi,

    I think I'm having the same kind of problem. 
    The problem is the screen contents differs in the different situations for availability control.
    - no stock at all.
    - not enough stock at all.
    - enough stock but not yet available for the correct date.
    - enough stock but only partly available for the correct date.
    In all of these cases a message occurs and you have to make a choice.
    Normally you will get a different screen or pop-up and you can use skip screen until you get the correct screen/pop-up to give the answer for the choice.
    If I could use an if condition in the script to catch the messagenumber it would be possible to determine the correct answer to give.

    But still not succesfull in getting that done.
    Maybe it is possible by changing the settings of the GUI to give warning messages in a popup also but not tried that yet because these are settings in the GUI and are often controlled by the IT-deparment.
     


    ------------------------------
    Jan van Asseldonk | Consultant
    CTAC | +31629078169
    ------------------------------



  • 5.  RE: VA01 Order Type OR

    Employee
    Posted 04-09-2020 09:58
    HI Vanessa - and Jan

    Hope you're both well!

    For sales order, I try BATCH and try to set it up to catch everything I can. 

    If that doesn't work, I revert to a BAPI.  I've attached an example with BAPI_SALESORDER_CREATEFROMDAT2 .    HTH

    Best Regards,
    Sigrid

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



  • 6.  RE: VA01 Order Type OR

    Posted 04-10-2020 10:10
    Thank you Sigrid! This worked to get past all the things I was struggling with. Much appreciated!

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



  • 7.  RE: VA01 Order Type OR

    Employee
    Posted 04-10-2020 10:23
    Glad it works, Vanessa!  BAPIs are our friends, especially with something as dynamic as sales orders! :)

    Stay well!
    Sigrid

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