Automate

 View Only
  • 1.  Run chained scripts and last script only in validate mode

    Posted 03-24-2020 04:26
    Hi all,

    we have a chain of scripts.
    First script is a transaction script, then a query script based on a BAPI is chained and then a second transaction script will run using the results of the BAPI.
    But this last script should run in validate mode. Is this possible?


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


  • 2.  RE: Run chained scripts and last script only in validate mode

    Posted 03-24-2020 14:43
    Hi Jan -

    You wouldn't be able to run the last script in a true "validation" mode.  If you are running, you are running everything that is chained.  You would need to essentially take that 2nd transaction script and turn it into a validation-only version of the script, removing the Post/Commit ok-code at the end of the script, and instead replacing that with an "exit" type of ok-code instead so that no changes are made.  So that when you "run" this validation-only script, it would essentially be doing the same thing that the validation script would be doing, running through the t-code but not saving at the end.  

    Hope this helps.

    Thank you!

    ------------------------------
    JENNIFER HWANG | SE
    Winshuttle North America
    ------------------------------



  • 3.  RE: Run chained scripts and last script only in validate mode

    Posted 03-25-2020 06:08
    Hi Jennifer,

    Creative solution. Thanks, I will try this and guess it will do what we want.

    kind regards

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



  • 4.  RE: Run chained scripts and last script only in validate mode

    Posted 03-25-2020 16:56
    Hi Jennifer,

    just want to let you know your propossed solution works fine.
    Thanks again.

    Kind regards,

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