Returning paramter must be fully specified
i have a class with two type definitions (protected)
t_x_tab type standard table of t_x
In Addition i have a protected method with a returning parameter of the type t_x_tab, but the compiler gives me the error:
The type of returning parameter must be fully specified.
I do not really understand this error. method and typ definitions are only used inside the class, thats why they are protected.
Why i'm getting this error`?
Matthew Billingham replied
You've not actually fully specified the parameter - the type is still in a generic form.
t_x_tab type standard table of t_x with non-unique key table_line
is the full specification. You get the same trouble when you try to construct deep tables. You must specify the key, otherwise it's not a fully specified type.
Note, for importing/changing/exporting parameters, generic types are permitted. Just not for returning.