Hi to everyone,
how do I access to the content of a representation node?
I've created a representation node referencing another existing custom business object (I have followed the instructions found in Thea Hillebrand's document Defining Associations with Business Object Builder eXpert and I can retrieve correctly the data of the representation node when testing it with the BOBT transaction, so I guess I got the configuration right). I'm trying to retrieve the node data using io_read->retrieve_by_association from inside an action defined in the root node of the host business object but I'm getting an unhandled exception.
io_read->retrieve_by_association( exporting
iv_node = is_ctx-node_key
it_key = it_key
iv_association = zhost_bobj=>sc_association-host_root-repr_node
iv_fill_data = abap_true
importing
et_data = lt_repr_node_data ).
Where lt_repr_node_data's type is the combined tabletype of the node referenced in the representation node.
I also found Aiko Schmalle's approach (Accessing a delegated object in BOPF), which it's actually related to delegated nodes and not to representation nodes but anyway I tried it... with no success either.
Sorry if this has been already answered, but I really have searched for it and haven't found anything.
Regards,
A.