Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_SALV_TABLE settings layout saving disabled

Former Member
0 Likes
3,299

CL_SALV_TABLE settings layout saving disabled only in production

CL_SALV_TABLE settings layout saving disabled only in production

3 REPLIES 3
Read only

juan_suros
Contributor
2,551

Have you set up your ALV to work properly, or are you relying on defaults? Here is my standard setup:

  DATA:
    lv_message   TYPE REF TO cx_salv_msg,
    lo_alv       TYPE REF TO cl_salv_table,
    t_data       TYPE TABLE OF vbap.

  PARAMETERS: p_layout TYPE slis_vari.

  TRY.
      cl_salv_table=>factory(
        IMPORTING
          r_salv_table = lo_alv
        CHANGING
          t_table      = t_data ).
    CATCH cx_salv_msg INTO lv_message.
  ENDTRY.

* Set all standard functions of ALV.
  lo_alv->get_functions( )->set_all( abap_true ).

* Set up saving of layouts for this report
  lo_alv->get_layout( )->set_key( VALUE salv_s_layout_key( report = sy-repid ) ).
  lo_alv->get_layout( )->set_save_restriction( if_salv_c_layout=>restrict_none ).
  lo_alv->get_layout( )->set_default( if_salv_c_bool_sap=>true ). "Allow layout preset

* Use a layout, if supplied in selection screen
  IF p_layout IS NOT INITIAL.
    lo_alv->get_layout( )->set_initial_layout( p_layout ).
  ENDIF.

Read only

SimoneMilesi
Active Contributor
2,551

So, which is the issue? You do not know how to do it? Do you find it disabled in production despite you want it enabled?
We cannot read your mind and a big, bold statement like that doesn't look like a question raised by a professional developer.

Read only

iftah_peretz
Active Contributor
0 Likes
2,551

Hi kiran pulipaka,

Welcome to the SAP Community! Could you please provide more information, so the community members understand the context of your question? Thank you. If you need further assistance feel free to reach out to moderators(at)sap(dot)com.

Best regards,

Iftah,

SAP Community moderator