09-02-2008 10:15 AM
Hi,
i have a class with two type definitions (protected)
t_x
and
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`?
09-02-2008 10:18 AM
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.
09-02-2008 10:18 AM
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.
09-02-2008 10:20 AM
Hi,
If you are passing the table as the passing parameter then, as the typing you will have to pass a Table type....
Example....
t_x_tab type (table type) tt_x.
This will remove the error.....
Regards,
Kunjal