Skip to Content
0
Feb 23, 2011 at 05:54 PM

How to sort master-node in master-detail scenario without losing subnodes?

30 Views

Hi,

I've a master-detail scenario and want to sort my master node.

How can I sort the master node without losing the detail-subnodes?

If I take a look in class CL_WDR_TABLE_METHOD_HNDL and method IF_WD_TABLE_METHOD_HNDL~APPLY_SORTING

Sorting is done by

- unload node with context_node->get_static_attributes_table into an internal table

- keeping node state like lead_selection(s) and attribute_properties

- sort internal table

- bind internal table to node

- set lead_selection and properties

But all subnodes are gone.

How do you sort a master node?

Thanks and Regards

Carsten