Refer to a row code in nested roster

I want to refer to a rowcode in a nested roster but I am getting this error:

How do we define the variable type : I defined it as long integer and in the expression I have inserted : @rowcode , The name of the variable I kept it as cc
I then used it in my macro to filter out the unit of an item :

=> (decimal)x.unit_type == @optioncode
&& (decimal)x.code == cc.@rowcode)

Thanks in advance

@rowcode (similar to how you use @optioncode above) is a system-generated variable that is used within a context (inside roster, for filtering options etc), not a method/property of any other entity - so there is no cc.rowcode format. Even worse, cc.@rowcode is invalid syntax. Syntax Guide: System Generated Variables