‎2021 Aug 18 4:21 PM
I am automating a SAP screen that has a grid and I need to check a value in the grid. But the problem is the grid changes dynamically.
Set GRID1 = session.findById("wnd[0]/usr/cntlOBJ_LOG_CONTAINER/shellcont/shell/shellcont[4]/shell")
shellcont[4] changes dynamically
Please give some insights
‎2021 Aug 18 4:24 PM
Welcome to the SAP Community! Take these tutorials to learn more about getting started:
Ask and Answer Questions on SAP Community | Tutorials for SAP Developers
Update and Maintain Your SAP Profile at people.sap.com | Tutorials for SAP Developers
Tour the SAP Community | Tutorials for SAP Developers
Thank you!
‎2021 Aug 18 8:33 PM
You are the only one to know what the screen looks like, so people can't help you much. I guess you have several possible containers, and you want to find the one which contains a GuiGridView object. Do other ones contain GuiGridView objects too? If yes, how do you distinguish them?
Maybe this blog post can be sufficient: https://blogs.sap.com/2021/06/28/how-to-detect-ui-element-id-with-regular-expressions-in-sap-gui-scr...
‎2021 Aug 24 7:06 AM

Thanks for the response Sandra. I have attached the screenshot of the control that I am trying to automate. This control has the id session.findById("wnd[0]/usr/cntlOBJ_LOG_CONTAINER/shellcont/shell/shellcont[4]/shell") in which shellcont[4] changes dynamically (4 is changed dynamically as 3/2)