HI @suraj23
When I am reading this:
It is a clear sign that SAP Scripting interface is not correct enabled. Please follow this step, really step-by-step to enable proper SAP WinGUI Automation.
The framework should be Default, means SAP and all buttons are recognised with tag SAP in selectors.
Best regards, Lev