Automate

Welcome to the Automate community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Here are some useful links where you can find more information:

Product Announcements

Discussions

Members

Resources

Events

 View Only
  • 1.  VA01 - Loop not working

    Posted 20 days ago

    I have added loop to the script but having issues when test run.

    In total I have 4 lines (D), however at first only the first line was captured. Now it seems to have some other issues. Did I miss out any step for the script?




    ------------------------------
    Huey_Chinn Tan
    Elanco US Inc
    ------------------------------


  • 2.  RE: VA01 - Loop not working

    Employee
    Posted 20 days ago

    Hi Huey_Chinn Tan, 

    Based on the screenshots, I suspect one of the following:

    1. The loop is not advancing to the next Excel row correctly.
    2. SAP is moving to a different screen after the first item.

      Please run the script in debug mode and observe the SAP screen at the point where the script halts. If the problem continues, open a support ticket with the script file and debug screenshots on the support portal.

    Thanks

    Jagat



    ------------------------------
    jagat kaushal
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: VA01 - Loop not working

    Employee
    Posted 20 days ago

    Hi Huey_Chinn Tan

    Thank you for reaching out. Regarding this error, one possible reason is that when you create a line item, you enter data on the first line item, and once you create the loop, the script keeps using the same cursor position.

    The best way to create a loop around line items is as follows.

    1) Add the header data that is Sold to Party, Ship to Party, etc 

    2) Press Page down from your keyboard and then add the data on the last line of the screen

    3) Now click on the Add Button at the bottom of the screen to shift the Line Item to the top level.

    4) Create a Loop around these fields in the Studio.

    You can also refer to the documentation below.

    https://help.precisely.com/r/n/Automate-Studio/Connect/20.3/en-US/Automate-Studio-with-Connect-User-Guide/VA01-step-by-step_-Creating-a-sales-order-with-reference

    If this does not resolve the issue, run a script in debug mode to identify where it is failing, or please create a support ticket by logging in to support.precisely.com; one of the engineers will assist with debugging the script.

    Thanks

    Archana C Singh



    ------------------------------
    Archana Chandar
    *Precisely Software Inc.
    ------------------------------



  • 4.  RE: VA01 - Loop not working

    Employee
    Posted 19 days ago

    Hi Huey

    Thanks for reaching out. Can you share your script and potentially template? Please clean out any sensitive data. I'm happy to take a look.

    One place that got me early on - going into line item details. Did your script do that? If so, SAP remembers the last tab you were on so it will start there.  It's best practice to position back to the first tab so that the next row starts in the same place. 

    Example - I drill into details and start here

    I now navigate to a few tabs

    I go back to the item overview from here

    When I add a new row and go into item details, it starts where I left off - here on account assignment (or whatever tab you were on) instead of Sales A, which it is expecting.

    Instead before going back to item overview, click on the first tab, which is where the script expects to be. For me that's Sales A, then I click the green back button

    Put a loop around that, and your script will start in the same place each time, as it expects to do.

    Hope that helps,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------