The table I use stores different system names, corresponding users and their role. My target is to use the SELECT and COUNT commands together to get some output like this:
SysName | Role1 | Role2 | Role3
----------------------------------
sys1 | 10 | 5 | 25
sys2 | 0 | 70 | 12
But it seems that some of the SQL commands or their structure doesn´t work in ABAP code.
Could you let me know if something like this is possible and when how?
The error was triggered because the key word "DISTINCT" was missing
The correct answer should be something like: