2018 Oct 16 3:23 PM
2018 Oct 17 12:21 AM
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.
2018 Oct 17 12:35 PM
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.
2018 Oct 17 9:19 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |