ChildObjects of SAP objects
I have newly moved into SAP Automation. The query is related to ChildObjects method in general in context of SAP Automation. I am mainly with the objects SAPGuiSession and SAPGuiWindow. For both of these objects the help file states that both support the ChildObjects method but when I put this method in for execution with the objects above the tool throws an error the the action is not supported by the object.
Set odesc= Description.Create()
set olist = SAPGuiSession("Session").SAPGuiWindow("Park Vendor Invoice: Company").ChildObjects(odesc)'Error on this line
The other fact is that if the Description object is empty then the code doesnot throw any error. The moment I put some property in the Description object the tool starts displayig the error. Any explanations