I want to use this Open SQL code in my ABAP code :
SELECT RIGHT( NODENAME, LENGTH( NODENAME ) - 8 )
FROM RSMHIERNODE
WHERE HIEID = 'HRJ'
INTO TABLE @lt_commentdata.
but when I try to activate the method I have this error :
In the function RIGHT , the parameter number 2 must be an abap variable. this is not the case for the expression that starts with 'LENGTH'.
Have any idea how can I solve this ?