I have a problem using the reqular expression with QTP while doing scripting on SAP.
SAPGuiSession("Session").SAPGuiWindow("Edit G/L Account Centrally").SAPGuiButton("Cancel (F12)").Click
I need to use either regular expression for SAPGuiWindow object since this window will change as per the input. Currently my script is failing due to this, or I can use other properties to identify the window (I tried but I get an error Object is not in repository)
I need someone to help me walk through how to use the regular expression so as to capture the dynamic SAP window.This is [stupid is as stupid does] !
You can follow what rajpes has suggested or if possible check if you can add the cancel button directly by ignoring the SAPGuiWindow (This will be possible if you dont ahve any additional cancel button on the screen vsiible)