@suraj23
when you check with with UiExplorer (e.g. standalone mode open by Design > UiExplorer) does it recognize the dialog elements e.g. the button: or the item B LTD or is it recognizing the entire PopUp as a blue box?
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.
I ran into the same issue when using data scraping from a payment overview screen in SAP. I did follow the configuration steps recommended above, but I still see the same issue.