Automate

 View Only
  • 1.  Delay in Script line

    Posted 12-10-2018 01:27

    ​Hi,
    I am trying to load split valuation (Accounting 1) types in 1 row so on blanc, A, B, C, D.

    Between every type I save the data and go into the material again for the next type.

    I prefer to have 1 line instead of loading the first and do an extend for every line in a separate line.

    Now my question.

    Between the 2nd and 3rd "save" I got an error that the material is still locked (by myself).

    So, I need a delay line in my script to avoid this, but how? 

    Recording : GUI

    The delay function in WSS works only between rows.



    ------------------------------
    John van Schuppen | MD Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | [City] | 0646600365
    ------------------------------


  • 2.  RE: Delay in Script line

    Employee
    Posted 12-11-2018 12:55
    Hi John

    There's a run option to delay run between rows in milliseconds.  Doc:  https://winshuttle-help.s3.amazonaws.com/studio/en/central-sap/help/12/transaction-run-settings.htm   It is in the RUN tab of Studio Transaction in the Developer Settings.

    Hope that works for you!
    Sigrid

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



  • 3.  RE: Delay in Script line

    Posted 12-11-2018 14:15

    Hi Sigrid,

    I know this option, but this only works from row to row and I need a "code line" in the expert view that will generate a delay.

    My challenge is to create a split valuation, save it and in the same line create the next valuation.

    Only SAP did not release the material so fast, so after the save and starting the next code line, mat nr is in used by me (creation before the save line).​



    ------------------------------
    John van Schuppen | MD Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | [City] | 0646600365
    ------------------------------



  • 4.  RE: Delay in Script line

    Employee
    Posted 12-11-2018 14:26
    Hi John - Sorry, I missed that.  Any chance you can post your script so that I/we can see what you're doing?  Perhaps there's another approach that may work better.
    Best Regards,
    Sigrid

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



  • 5.  RE: Delay in Script line

    Posted 12-12-2018 01:59
      |   view attached
    ​Script attached

    ------------------------------
    John van Schuppen | MD Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | [City] | 0646600365
    ------------------------------

    Attachment(s)

    Txr
    MM01 ZMCN RU B3.Txr   372 KB 1 version


  • 6.  RE: Delay in Script line

    Employee
    Posted 01-11-2019 15:21
    Sorry for dropping the ball on this one, John. 

    After reviewing your script, I see that you're actually posting several times in a GUI script for each row.  Given that method, there isn't a way to really have a pause.

    If you were to revert to a script that does each valuation entry as a separate post, you could put a pause in between them easily, but you likely wouldn't need it. 

    We always recommend using a non-GUI scripting method if at all possible.  It's easier to create, runs faster & is less error prone, too.

    Again, sorry for the delay.  Hope that answers your question.

    Best Regards, 
    Sigrid

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



  • 7.  RE: Delay in Script line

    Posted 01-12-2019 04:41

    ​Hi Sigrid,

    Yes, I know that the easiest way is to use multiple lines and to use the delay in studio for the delay between it.

    From our request form we try to move the all data to the WS template and a flat line per SAP nr is my wish.

    Our SAP system is a little bit slow and the release of a just created number.

    I know the side effect of Gui scripts, but you cannot save a material and start an extension again if you do not use GUI.

    I already found that if you build in that you do a task between that is "doing nothing", like going to a dummy number and continue the script again.

    Still playing with the "extra" tasks how much I need to cover every delay in our SAP system.

    For now the record was 1 creation and 3 extensions in 1 flat line, so there is hope :-)

    I try to go for the impossible options.



    ------------------------------
    John van Schuppen | MD Specialist
    JACOBS DOUWE EGBERTS Export NL B.V. | [City] | 0646600365
    ------------------------------