参考:https://answers.sap.com/questions/12843356/how-can-i-detect-if-a-gui-element-exists.html
If Not session.findById("/app/con[0]/ses[0]/wnd[0]/usr/tabsUD_DATA/tabpPLMK/ssubSUB_UD_DATA", False) Is Nothing Then
table_found = true
else:
table_found = false
End If