cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the table ID in SAP and copy to excel?

knight999
Discoverer
0 Kudos
1,496

Hi ,

Can anybody tell me how to find out the table ID in SAP ?

Cells(1,1) = Session.findById("?").Text

Type in my query and new sap window popup which shows the data i need. I want to copy that data to excel but i just don't know how to get the ID.

thanks for your help

Rookie

Accepted Solutions (0)

Answers (1)

Answers (1)

Stefan-Schnell
Active Contributor
0 Kudos

Hello Rookie,

here a tiny approach to detect a GuiTableControl ID on the UserArea.

Set UserAreaChildren = session.findById("wnd[0]/usr").Children
For Each Child In UserAreaChildren
If Child.TypeAsNumber = 80 Then '80 = GuiTableControl MsgBox Child.ID End If Next

Best regards
Stefan

Thanks a lot Stefan, it worked and rightly said, am a Rookie 🙂 I see you all over the internet, and i appreciate if you could provide me with links to your resources or any books you have written on SAP Scripting or SAP Automation - Hara