Hi everyone,
the document http://scn.sap.com/docs/DOC-53788 describes how to display a dynamically generated table (using RTTS) as a list (class cl_salv_table). This works, but I would like to display a dynamic table as a tree (class cl_salv_tree). Unfortunately it doesn't work for me. I'm getting cx_salv_error. Does anybody know how to do this?
TRY.
cl_salv_tree=>factory(
IMPORTING
r_salv_tree = lo_salv_tree
CHANGING
t_table = <fs_table> ).
CATCH cx_salv_data_error INTO lo_data_err.
CATCH cx_salv_not_found INTO lo_not_found.
CATCH cx_salv_error INTO lo_error.
ENDTRY.
Thanks.