I have a very odd problem which I have never seen before. I have a script which I use to enter a value into a Textarea object. The thing is, that let's say 7 out of 10 times the script fails with the errormessage that the object could not be found. The script is exactly the same! I guess it has something to to with the environment. Has anyone of you guys encountered a problem like such before?

I am sure the object is available at the time it's being called by the script. I also 'isolated' the script so that only the textarea is being called and no actions before and after it are executed. [img]/images/graemlins/confused.gif[/img] [img]/images/graemlins/confused.gif[/img]

I have the folowing script to enter a value in a SAPGuiTextArea:

Sub SAP_set_Textarea(Text)

on error resume next

Set OBJ = SAPSession.SapGuiTextArea("guicomponenttype:=203")
ReportLog "INFO" , "SAP Textarea", "Entering text " & Text
OBJ.set Text


End sub