‎2007 Apr 11 2:51 PM
Hello all,
I am working with the CL_SALV_TREE, in which I display a tree. Now I have implemented the SALV_FUNCTION for LAYOUT.
If I click the layout button, there is no posibility to save the user spezified layout.
Also at the context menu of the layout group ist no entry for save.
I have set the buttons with the following code:
data: mr_tree type ref to cl_salv_tree.
* first I create a tree correctly.
mr_tree->set_screen_status(
pfstatus = i_pfstatus
report = sy-repid
set_functions = mr_tree->c_functions_all ).
mr_functions = mr_tree->get_functions( ).
mr_functions->set_all( abap_true ).
mr_functions->set_layout_change( abap_true ).
mr_functions->set_layout_load( abap_true ).
mr_functions->set_layout_save( abap_true ).
mr_functions->set_print_view( abap_false ).
mr_functions->set_find( abap_false ).
mr_functions->set_group_aggregation( abap_false ).I set the layout with the following function:
data: ls_key type SALV_S_LAYOUT_KEY,
ls_layout type SALV_S_LAYOUT.
if not mr_layout is bound.
mr_layout = mr_tree->get_layout( ).
ls_key-report = m_repid.
mr_layout->set_key( ls_key ).
mr_layout->set_default( abap_true ).
mr_layout->set_save_restriction( 3 ).
mr_layout->set_initial_layout( space ).
endif.Can sombody tell me, why I can't save the layout in combination with the CL_SALV_TREE class???
Yours Joerg
‎2007 Apr 11 3:04 PM
‎2007 Apr 11 3:08 PM
Hello Rich,
thanks for your answer.
I commented this three lines, but no change.
Yours Joerg
‎2007 Apr 11 3:21 PM
‎2007 Apr 11 3:28 PM
‎2007 Apr 11 3:38 PM
Dear Rich,
yes I set a status, but that does not have any effect to the tree.
Yours Joerg
‎2007 Apr 11 3:47 PM
‎2007 Apr 11 3:50 PM
Which SAP-Basis and Support-Package are you running? I am running on 700.08
Yours Joerg
‎2007 Apr 11 4:00 PM
‎2007 Apr 11 4:06 PM
So I will build SAP-Note 923792.
Maybe that works, what do you think?
‎2007 Apr 11 4:51 PM