Select 
CSR_STRLEVEL3 as code,
CSR_DESC as description,
CSR_IMPORTANCE as importance,
CSR_MATERIALTYPE as materialtype
from R5CodeStructure 
where CSR_STRLEVEL1=<param.syslevel> and 
CSR_STRLEVEL2 =<param.asslevel> and CSR_STRLEVEL3 is NOT NULL
AND COALESCE(csr_notused, '-') = '-'
order by CSR_STRLEVEL3
