02-05-2010, 03:42 PM
Hello.
I have a problem with "id" SAP objects property while Descriptive Programming.
I have SAPGuiEdit object which have following properities.
I want to setFocus on this field
When I use regular expression in name property like this
It is working fine
But when I want to use it in id property f.e
I get:
Cannot identify the object "SAPGuiEdit" (of class SAPGuiEdit). Verify that this object's properties match an object currently displayed in your application.
How can I use RegExp in id property for SAP objects??
I have a problem with "id" SAP objects property while Descriptive Programming.
I have SAPGuiEdit object which have following properities.
Code:
name=VBAK-AUART
id=/app/con[0]/ses[0]/wnd[0]/usr/ctxtVBAK-AUART
When I use regular expression in name property like this
Code:
sapguisession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiEdit("name:=.*-AUART").SetFocus
But when I want to use it in id property f.e
Code:
sapguisession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiEdit("id:=.*ctxtVBAK-AUART").SetFocus
I get:
Cannot identify the object "SAPGuiEdit" (of class SAPGuiEdit). Verify that this object's properties match an object currently displayed in your application.
How can I use RegExp in id property for SAP objects??