Robotic Process Automation (RPA)

 View Only
Expand all | Collapse all

Handling GridView cell in SAP automation

  • 1.  Handling GridView cell in SAP automation

    Posted Tue April 19, 2022 11:42 AM
    Hello everyone!
    I have been trying unsuccessfully to get the cell value from within an SAP GridView.
    This is my code:
    getValue --selector "Id" --id "wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell/Cell(2,Layout)" cellValue=value

    And this is the error:
    System.ArgumentException
    at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
    at SAPFEWSELib.ISapGridViewTarget.GetCellValue(Int32 Row, String Column)
    at WDG.Automation.Windows.GetValueCommand.ExecuteCore(WindowsContext context)

    I made the settings as per the documentation in SAP GUI and IBM RPA Studio configuration , and I used cell position reference as per the other documentation Handling GridView controls in SAP automation.

    Can anyone help me?

    ------------------------------
    Daniel Moraes
    ------------------------------


  • 2.  RE: Handling GridView cell in SAP automation

    Posted Thu July 21, 2022 10:03 AM
    Edited by Giulianele Alves Barbosa Fri July 22, 2022 09:47 AM
    Have you tried to use the column number/index?

    ------------------------------
    Giulianele Alves Barbosa
    ------------------------------