<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Enable SAVE button in SALV report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-save-button-in-salv-report/m-p/12812814#M2025704</link>
    <description>&lt;P&gt;If you want the button to be in the Application Toolbar (your screenshot), you must create a custom GUI Status (copy SALV_TABLE_STANDARD of SAPLSLVC_FULLSCREEN and edit the GUI status to add your custom button). After that you need to implement the event handler for custom buttons. Look for the solutions in the forum.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 12:54:43 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-11-02T12:54:43Z</dc:date>
    <item>
      <title>Enable SAVE button in SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-save-button-in-salv-report/m-p/12812813#M2025703</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am not able to get the SAVE button enabled in my report. Can someone help me with the code.&lt;/P&gt;
  &lt;P&gt;Attaching my code below. What else do i need to add to make it enabled. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2223877-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  DATA: lo_gr_alv       TYPE REF TO cl_salv_table,
        lo_gr_functions TYPE REF TO cl_salv_functions_list.

  DATA: lo_selections TYPE REF TO cl_salv_selections,
        lo_columns    TYPE REF TO cl_salv_columns,
        lo_column     TYPE REF TO cl_salv_column_table.

  DATA: lo_header  TYPE REF TO cl_salv_form_layout_grid,
        lo_h_label TYPE REF TO cl_salv_form_label,
        lv_text    TYPE char100.

*Create alv object.
  TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
        IMPORTING
          r_salv_table = lo_gr_alv
        CHANGING
          t_table      = gt_sel.

    CATCH cx_salv_msg.
  ENDTRY.

  lo_gr_alv-&amp;gt;set_screen_status( pfstatus      = 'STANDARD_FULLSCREEN'
                                report        = 'SAPLSLVC_FULLSCREEN'
                                set_functions = lo_gr_alv-&amp;gt;c_functions_all
                                  ).
*  DATA: lr_selections TYPE REF TO cl_salv_selections,
*        gt_rows type salv_t_row.
*  lr_selections = lo_gr_alv-&amp;gt;get_selections( ).
*  lr_selections-&amp;gt;set_selection_mode( if_salv_c_selection_mode=&amp;gt;row_column ).



* Show all alv functions.
  lo_gr_functions = lo_gr_alv-&amp;gt;get_functions( ).
  lo_gr_functions-&amp;gt;set_all( abap_true ).
*  lo_gr_functions-&amp;gt;set_aggregation_average( abap_true ).
*  lo_gr_functions-&amp;gt;set_abc_analysis( abap_true ).
  lo_gr_functions-&amp;gt;set_export_wordprocessor( abap_true ).

* Fit the columns
  lo_columns = lo_gr_alv-&amp;gt;get_columns( ).
  lo_columns-&amp;gt;set_optimize( abap_true ).


* Display alv
  lo_gr_alv-&amp;gt;display( ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2023 11:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-save-button-in-salv-report/m-p/12812813#M2025703</guid>
      <dc:creator>alex_dsouza</dc:creator>
      <dc:date>2023-11-02T11:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enable SAVE button in SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-save-button-in-salv-report/m-p/12812814#M2025704</link>
      <description>&lt;P&gt;If you want the button to be in the Application Toolbar (your screenshot), you must create a custom GUI Status (copy SALV_TABLE_STANDARD of SAPLSLVC_FULLSCREEN and edit the GUI status to add your custom button). After that you need to implement the event handler for custom buttons. Look for the solutions in the forum.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-save-button-in-salv-report/m-p/12812814#M2025704</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-11-02T12:54:43Z</dc:date>
    </item>
  </channel>
</rss>

