Automate

  • 1.  VA02 - How to script changing the block condition?

    Posted 12-16-2019 14:48
    Hello All, I am new to Winshuttle and the Winshuttle Community. This is my first post.

    I ran into an issue when scripting for VA02 when trying to change the delivery block condition. The field contains a popup dropdown when the cursor is placed in the field and does not allow text input. But if I type, in the example below, "Z" then "Y", the cursor would then go to the "Check assigned plant" and I can hit "Enter" to choose that value. If I have the user populate ZY in the template, will Winshuttle mimic the Z then Y typing or is more like a cut n paste?  I have never seen an SAP field operate like this and was hoping you had a solution or advisement around this.



    ------------------------------
    John Sekutowski | Analyst
    Rockwell Automation
    ------------------------------


  • 2.  RE: VA02 - How to script changing the block condition?

    Employee
    Posted 12-17-2019 10:04
    Hi John

    Don't have a pop-up for the block field, just a dropdown. 

    When I record, I pick one - where I would typically type one, i.e. its best practice to type your entries and not use lookups, etc, when you record.. 

    I've tested the simple attached script, and it seems to work.  Maybe it will work for you, too?

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    pse | Winshuttle North America
    ------------------------------

    Attachment(s)

    xlsx
    VA02_DeliveryBlock.xlsx   4 KB 1 version
    Txr
    VA02_DeliveryBlock.Txr   252 KB 1 version


  • 3.  RE: VA02 - How to script changing the block condition?

    Posted 01-03-2020 11:36
    Thank you Sigrid! That worked perfectly. And very simple too. :)

    Just as important, this gave me more clear insight as to how Winshuttle populates the data from the cell in the template to the SAP field.
    I was under the impression that it acted as a cut-n-paste from the cell to the mapped field but the way this worked was to take the 2-digit alpha-numeric SAP-valid value in the template and "type" them sequentially into the field.

    As I said in my post, I have never seen an SAP field operate like this one and thought it would be a deal-breaker for my use case but fortunately Winshuttle was able to deal with it!

    Thanks again for the assist.

    ------------------------------
    John Sekutowski | Analyst
    Rockwell Automation
    ------------------------------



  • 4.  RE: VA02 - How to script changing the block condition?

    Employee
    Posted 01-03-2020 11:48

    Glad it worked, John!  It's just a different input method.  No "screen scraping" type functionality - just matching screens and fields to values.

    Happy New Year!
    Sigrid



    ------------------------------
    Sigrid Kok
    winshuttle | Winshuttle North America
    ------------------------------



  • 5.  RE: VA02 - How to script changing the block condition?

    Posted 12-17-2019 10:06
    Hi, John.  
    I had a similar situation when trying to write a script to update partner function.  I was given this link:
    VA02 Partner number update for specific Partner Function.

    ------------------------------
    Irene Graham |
    Siemens Energy, Inc. |
    ------------------------------



  • 6.  RE: VA02 - How to script changing the block condition?

    Posted 01-03-2020 11:40
    Thank you Irene,

    Sigrid's reply worked but I believe there may be an ask coming down the pipeline where I will be implementing your response.

    Happy New Year!

    ------------------------------
    John Sekutowski | Analyst
    Rockwell Automation
    ------------------------------



  • 7.  RE: VA02 - How to script changing the block condition?

    Posted 12-17-2019 13:34
    Hi John,
    I believe Sigrid's solution is correct. The only difference is that she uses 1, 2, 3, etc. because her index is configured like that in the table behind. You (or your user) will have to use your index, e.g. ZA, Z1, ZG, and so on.

    Welcome to the Community!

    ------------------------------
    Cristel Lopez | IT BA
    Kellogg Corporation | 4422268367
    ------------------------------



  • 8.  RE: VA02 - How to script changing the block condition?

    Posted 01-03-2020 11:45
    It was Cristel! The answer was so simple. I let my discovery session with the requestor pepper my perception on the difficulty. But now that I have greater clarity of how Winshuttle is taking the data from the template and populating SAP, my future endeavors should run a bit smoother.

    Happy New Year!

    ------------------------------
    John Sekutowski | Analyst
    Rockwell Automation
    ------------------------------