Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Script via VBA

0 Likes
1,234

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

3 REPLIES 3
Read only

former_member751591
Participant
Read only

Sandra_Rossi
Active Contributor
1,126

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...

Read only

0 Likes
1,126

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)