Are there any know limits of meshes? I know, that the table-types need to be non-generic.
But can it be, that a 5-key-dbtable as base for local table-type-definition is not ok ??? (I really doubt it).
I simply have a two-level table hierarchy and want to retrieve ALL mesh-results of the second table py passing the key of the main-table. I only have forward-associations, have a look, this is, what I try to achieve (pattern found on some website):
TYPES: lty_types TYPE STANDARD TABLE OF zordertype WITH NON-UNIQUE KEY table_line,
lty_excludes TYPE STANDARD TABLE OF zexcludeorder WITH NON-UNIQUE key table_line.
DATA: lt_types TYPE lty_types,
lt_excludes TYPE lty_excludes.
TYPES:
BEGIN OF MESH ty_type_excludes,
types TYPE lty_types
ASSOCIATION to_excludes
TO excludes ON order_type = order_type,
excludes TYPE lty_excludes,
END OF MESH ty_type_excludes.
DATA: ls_mesh TYPE ty_type_excludes.
START-OF-SELECTION.
SELECT * FROM zordertype
INTO TABLE @lt_types
ORDER BY order_type.
SELECT * FROM zexcludeorder
INTO TABLE @lt_excludes
ORDER BY order_type.
ls_mesh-types = lt_types.
ls_mesh-excludes = lt_excludes.
DATA wf_check TYPE zorder_type VALUE 'CAT'.
DATA(chk) = ls_mesh-types\to_excludes[ wf_check ].
break myuser.
This dumps with "CX_ITAB_LINE_NOT_FOUND".
But I did it exactly, how it was written. And, I think, this must work, because I use this approach to get a subset from another table based on the keyentries of the first table. I tried to add additional association-params, which did not dump anymore, but anyway, just returned only one record of the second table.
I seem to overlook some basic thingy, but which one ?