<?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 ALV - Editable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408476#M1241998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an ALV, where one column of Amt is editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now consider i have 4 rows and I am editing 2 rows, i want to know how many rows are edited with some flag or something.&lt;/P&gt;&lt;P&gt;Can anybody help  me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Mar 2009 06:42:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-21T06:42:15Z</dc:date>
    <item>
      <title>ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408476#M1241998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an ALV, where one column of Amt is editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now consider i have 4 rows and I am editing 2 rows, i want to know how many rows are edited with some flag or something.&lt;/P&gt;&lt;P&gt;Can anybody help  me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 06:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408476#M1241998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T06:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408477#M1241999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in this cas u need to create one more internal table with the same data selected and need to compare the data from the table from ALV. Ex :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IT_MAT1[] = IT_MAT.

"in the USER_COMMAND routine use this

 DATA: GD_REPID LIKE SY-REPID,
  REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
 
  DATA: L_VALID TYPE C.
 
*Code to reflect the changes done in the internal table
 
  IF REF_GRID IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        E_GRID = REF_GRID.
  ENDIF.
 
  IF NOT REF_GRID IS INITIAL.
 
    CALL METHOD REF_GRID-&amp;gt;CHECK_CHANGED_DATA
      IMPORTING
        E_VALID = L_VALID.
 
  ENDIF.
 
LOOP AT IT_MAT."IT_MAT is the internal table from ALV

READ TABLE IT_MAT1 WITH KEY MATNR IT_MAT-MATNR.

IF SY-SUBRC = 0.

IF IT_MAT-MTAKL &amp;lt;&amp;gt; IT_MAT1-MTAKL.

"KEEP FLAG HERE ARE ANY MESSAGE

ENDIF.
. " Check for all fields and set the flag
.
.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 06:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408477#M1241999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408478#M1242000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make the whole ALV editable, call method set_ready_for_input of ALV class with parameter set to '1'&lt;/P&gt;&lt;P&gt;If you want to make some rows of the ALV editable-&amp;gt;&lt;/P&gt;&lt;P&gt;In the example program BCALV_EDIT_2 there is a subroutine named fill_celltab. In this subroutine, the internal table attached to each row of the output table is filled which shows which fields of this row is editable. If you enter a row to this internal table without a fieldname, then the edit status of the entire row is affected.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 06:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408478#M1242000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408479#M1242001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This may help u...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:   event_receiver TYPE REF TO lcl_event_receiver.

*----------------------------------------------------------------------*
*       CLASS lcl_event_receiver DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_event_receiver DEFINITION.

  PUBLIC SECTION.
    METHODS:
    handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
             IMPORTING er_data_changed sender.              "#EC NEEDED

ENDCLASS.                    "lcl_event_receiver DEFINITION

*----------------------------------------------------------------------*
*       CLASS lcl_event_receiver IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
METHOD handle_data_changed.
    DATA: ls_good TYPE lvc_s_modi.
    LOOP AT er_data_changed-&amp;gt;mt_good_cells INTO ls_good.
      CASE ls_good-fieldname.
...........
      ENDCASE.
    ENDLOOP.
ENDMETHOD.                    "handle_data_change
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD gr_alvgrid-&amp;gt;set_table_for_first_display
      EXPORTING
        i_save                        = 'A'
        i_default                     = 'X'
        is_variant                    = gs_variant
        is_layout                     = gs_layout
        it_toolbar_excluding          = lt_exclude
      CHANGING
        it_outtab                     = it_rfqi[]
        it_fieldcatalog               = gt_fieldcat[]
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.

    CALL METHOD gr_alvgrid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.

    CALL METHOD gr_alvgrid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.

SET HANDLER event_receiver-&amp;gt;handle_data_changed FOR gr_alvgrid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 08:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408479#M1242001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T08:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408480#M1242002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCATALOG-EDIT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 13:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/5408480#M1242002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T13:59:07Z</dc:date>
    </item>
  </channel>
</rss>

