Automate

 View Only
  • 1.  GUI Scripts with position to a relative row

    Posted 02-13-2025 02:18

    Hi Gurus,

    I'm struggling with an issue with a non standard SAP transaction code script. The transaction code is /HOAG/AKF3.

    I record in standard mode successfully, but when running the script, it cannot identify the side panel on the left side.

    I tried to record in batch input mode, and the side panel does not show up when recording.

    So I finally tried to record in GUI mode. It recorded successfully and tested correctly. However, the GUI mode can only find the absolute row for one items. There's position functionality, but I don't know how to code the script to let it select the relative first row.

    Below is an example. When recording with GUI, I search for rule "ASS NR 1072" in the position box, and it will position the line to first row in the screen, but the absolute row is row 6 in the script code as below. And thus, even I change the search rule to other name, it always position to row 6 when running the script.

    ABV_FFDEF.getAbsoluteRow("6").selected

    Is there any way to change it to relative row 1 in the script? Hope someone can shed some light on it.

    Thanks.



    ------------------------------
    Jane chen
    SSC
    Medtronic (Shanghai) Management Co., Ltd.
    ------------------------------


  • 2.  RE: GUI Scripts with position to a relative row

    Employee
    Posted 02-18-2025 14:38

    Hi Jane

    In general I would recommend a few different approaches 

    Given it's custom, I'm not sure if any of the above will work or not. 

    Did you try an Indexed IF with the GUI script you created?

    Best Regards,

    Sigrid



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