Solution with BAdI
The customer can implement this BAdI:
The parameter "cadunit" is actually not used but reserved for future development.
Now unauthorized users get the following message in the ECTR logon process:
Solution with configuration and PFCG checks
Control usage of ECTR
To control the usage of ECTR you have to add this configuration into your default.txt file:
Additionally you have to assign the user the authorization with PFCG roles to use transaction (object S_TCODE) '/DSCSAG/ECTR' for ECTR standard unit 7522 and / or transaction (object S_TCODE) '/DSCSAG/ECTR_PRO' for ECTR professional unit 7523.