QTP does not identify objects based on the name you assign to objects in the OR. You can reference your object by whatever name you please. The reason the object is not getting recognized is probably because one of the identifying properties has that number as a check (probably innertext).
When you open the OR, find this object. On the right hand side you should see a list of properties that identify the object. If you see a property which changes over time (for instance "innertext" = 82445566) change it's value to a regular expression (Remember to check the regular expression checkbox). Or you can simply remove this identifier if you have enough of other properties to identify the object.
QTP is having difficulty identifying an object on the page. This is because the name of the object is an order number like 82445566. The problem is the order number changes each time so if I recorded the order at 82445566 the next playback will be 82445567 and when QTP looks for an object called 82445566 it will not find it. I realize you can use regular expressions for the properties of an object by checking the box but is there anyway to apply regular expressions to the name of the object in the repository? I tried changing the name of the object to 82.* but QTP couldn't find the object. How can QTP tell if the characters in the object's name are regular expressions or literals? If it is possible to make object names regular expressions I'm not sure what kind of regular expression I should use. If I just did something like 82.* then it would work up until my orders reached 83...... Also if I make it too general then QTP won't be able to uniquely identity the object on the screen.
The object I was having trouble with was of Class SAPGUILabel and its name was 82445566. The only property associated with this object is guicomponenttype which has a value of 30. I am actually suprised that QTP can identify this object based only on the guicomponenttype property of 30 seeing that many other objects in SAP have the same value for the property. I suppose this is because the object 82445566 is the only guicomponenttype 30 in that particular window. At this point I have changed the name of the object to 82.* which is working for now, but I do not think it is a permanent solution. If there were multiple orders on the screen then there would be multiple objects beginning with the 82 in their name and they would all be of guicomponenttype 30.
In that case Ben QTP would add other properties. Probably an index. I dont really have experience with SAP so cant for sure predict the property used. But even with multiple orders you will be able to identify and isolate each object.
I am actually a little confused about the properties in the add/remove section of the object repository. Why is it that most of these properties do not have values yet? Do I need to re-run or re-record in order to have those properties populated with values? I cannot tell if a property will uniquely identify an object unless I can compare its values with other objects that have the same property.
Yes that is a problem that occurs every once in a while. Firstly, not all objects will have values for all the properties listed in that section. Secondly, if they do, QTP may sometimes not display them unless they were part of the original identifying properties (selected ones). The way to get around this would be to manually spy on the object, extract the value and insert into the value field. Use the GUI SPY for this.