When you are trying to run a script in Transaction, you will receive this error 'SAP Logon Error: No authorization to log on to the target system (error code 10).
Transaction 10x, Studio 11x
This error mainly occurs when the user is not having enough authorizations to logon to the selected SAP Server.
This error is SAP Logon related. Please reach out to your SAP Basis Team to provide you login authorization to access the SAP Server with which the issue is appearing.