Hi,
For the issue which you're experiencing right now
" EHP4: SAP System message:
SQL error -1 occurred when accessing program SAPMS "
Suggest you try to access your IDES system through SAP GUI 720 or 730 instead of SAP GUI version 710 and re-share the results.
Hope this will help you.
Regards,
Gaurav