<?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: ALV Grid data changed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639370#M284869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i hav never tried this but wat u can do is import ER_DATA_CHANGED from event data changed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ER_DATA_CHANGED is of type CL_ALV_CHANGED_DATA_PROTOCOL .&lt;/P&gt;&lt;P&gt;CL_ALV_CHANGED_DATA_PROTOCOL has some attributes as follows:&lt;/P&gt;&lt;P&gt;MT_MOD_CELLS-Table of Modified Cells&lt;/P&gt;&lt;P&gt;MP_MOD_ROWS-Table of Modified Rows&lt;/P&gt;&lt;P&gt;MT_DELETED_ROWS-Deleted Rows &lt;/P&gt;&lt;P&gt;ans so on .&lt;/P&gt;&lt;P&gt;try using all these attributes to make where cahnges have been made .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simpler approach would be make use of two tables .&lt;/P&gt;&lt;P&gt;wat i do is whenever user makes some changes , after making all his changes he has to press enter .&lt;/P&gt;&lt;P&gt;n i register the event for pressing 'enter'  as follows ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ref_alv_grid_item-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       error      = 1&lt;/P&gt;&lt;P&gt;       OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PAI i compare the two tables to make out where changes have been made .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the ways should work .&lt;/P&gt;&lt;P&gt;if the first thing works then jst let me knw .&lt;/P&gt;&lt;P&gt;second method i hav used successfully .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this helps u the plz reward points .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2006 09:59:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-22T09:59:59Z</dc:date>
    <item>
      <title>ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639369#M284868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using fm REUSE_ALV_GRID (not OO) to display an internal table. The user wants to change the data in a certain cell. I have marked this cell as editable and it works fine. I want to learn what to check in the event of data_changed. I have added this event in table ALV_EVENTS and directed to a subroutine. What parameters should i pass to the subroutine and what should i check to read the relevant line? Is it possible to control changes in more than one line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 08:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639369#M284868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T08:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639370#M284869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i hav never tried this but wat u can do is import ER_DATA_CHANGED from event data changed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ER_DATA_CHANGED is of type CL_ALV_CHANGED_DATA_PROTOCOL .&lt;/P&gt;&lt;P&gt;CL_ALV_CHANGED_DATA_PROTOCOL has some attributes as follows:&lt;/P&gt;&lt;P&gt;MT_MOD_CELLS-Table of Modified Cells&lt;/P&gt;&lt;P&gt;MP_MOD_ROWS-Table of Modified Rows&lt;/P&gt;&lt;P&gt;MT_DELETED_ROWS-Deleted Rows &lt;/P&gt;&lt;P&gt;ans so on .&lt;/P&gt;&lt;P&gt;try using all these attributes to make where cahnges have been made .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simpler approach would be make use of two tables .&lt;/P&gt;&lt;P&gt;wat i do is whenever user makes some changes , after making all his changes he has to press enter .&lt;/P&gt;&lt;P&gt;n i register the event for pressing 'enter'  as follows ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ref_alv_grid_item-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       error      = 1&lt;/P&gt;&lt;P&gt;       OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PAI i compare the two tables to make out where changes have been made .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the ways should work .&lt;/P&gt;&lt;P&gt;if the first thing works then jst let me knw .&lt;/P&gt;&lt;P&gt;second method i hav used successfully .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this helps u the plz reward points .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 09:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639370#M284869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639371#M284870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use this method to check whether data is changed or not.&lt;/P&gt;&lt;P&gt;(where lv_check and refresh_grid is flag ie 1 char variable)&lt;/P&gt;&lt;P&gt;CALL METHOD reuse_alv_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_valid   = lv_check&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        c_refresh = refresh_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now refersh_grid and lv_check will be 1 if data is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use 2 table for checking which data is changed,&lt;/P&gt;&lt;P&gt;1st will be table you display on grid and 2nd will be its image at the time of last refresh_grid or if the grid is not yet refreshed then the grid you use for first display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the data_change event set a variable to indicate that data is changed(let this variable be gv_change)&lt;/P&gt;&lt;P&gt;now in the screen in which you are dealing.. put a module before control_display module in which you will compare two tables.&lt;/P&gt;&lt;P&gt;In this way you can even check for change in multiple lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 10:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639371#M284870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639372#M284871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u will pass only one parameter to this event  data_changed&lt;/P&gt;&lt;P&gt;it is char of length 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any data is changed that value will returm X , if no data is changed it will return space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD W_GRID-&amp;gt;CHECK_CHANGED_DATA
    IMPORTING
      E_VALID = L_VALID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 10:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639372#M284871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639373#M284872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;i&amp;gt;Is it possible to control changes in more than one line?&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for usage of the method, and editable grid please refer the sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTESTDFALV1                             .

*Data Declaration
*----------------
DATA: BEGIN OF T_EKKO,
  EBELN TYPE EKPO-EBELN,
  EBELP TYPE EKPO-EBELP,
 END OF T_EKKO.

DATA: BEGIN OF IT_EKKO OCCURS 0.
        INCLUDE STRUCTURE T_EKKO.
DATA: END OF IT_EKKO.

DATA: BEGIN OF IT_BACKUP OCCURS 0.
        INCLUDE STRUCTURE T_EKKO.
DATA: END OF IT_BACKUP.
*ALV data declarations
TYPE-POOLS: SLIS.                                 "ALV Declarations
DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
      GD_LAYOUT    TYPE SLIS_LAYOUT_ALV,
      GD_REPID     LIKE SY-REPID.


************************************************************************
*Start-of-selection.
START-OF-SELECTION.

  PERFORM DATA_RETRIEVAL.
  PERFORM BUILD_FIELDCATALOG.
  PERFORM BUILD_LAYOUT.
  IT_BACKUP[] = IT_EKKO[].
  PERFORM DISPLAY_ALV_REPORT.


*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  build_fieldcatalog
*&amp;amp;--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
FORM BUILD_FIELDCATALOG.
  REFRESH FIELDCATALOG.
  CLEAR FIELDCATALOG.
*

  FIELDCATALOG-FIELDNAME   = 'EBELN'.
  FIELDCATALOG-SELTEXT_M   = 'Purchase Order'.
  FIELDCATALOG-INPUT     = 'X'.
  FIELDCATALOG-EDIT     = 'X'.
  FIELDCATALOG-COL_POS     = 2.
  APPEND FIELDCATALOG.
  CLEAR  FIELDCATALOG.

  FIELDCATALOG-FIELDNAME   = 'EBELP'.
  FIELDCATALOG-SELTEXT_M   = 'PO Item'.
  FIELDCATALOG-COL_POS     = 3.
  APPEND FIELDCATALOG.
  CLEAR  FIELDCATALOG.

ENDFORM.                    " BUILD_FIELDCATALOG


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  BUILD_LAYOUT
*&amp;amp;---------------------------------------------------------------------*
*       Build layout for ALV grid report
*----------------------------------------------------------------------*
FORM BUILD_LAYOUT.
  "Permet d'ajuster les colonnes au text
*  gd_layout-colwidth_optimize = 'X'.
  GD_LAYOUT-TOTALS_TEXT       = 'Totals'(201).

*  gd_layout-box_fieldname = 'SELECT'.
*  gd_layout-box_tabname   = 'IT_EKKO'.

ENDFORM.                    " BUILD_LAYOUT


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  DISPLAY_ALV_REPORT
*&amp;amp;---------------------------------------------------------------------*
*       Display report using ALV grid
*----------------------------------------------------------------------*
FORM DISPLAY_ALV_REPORT.
  GD_REPID = SY-REPID.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            I_CALLBACK_PROGRAM        = GD_REPID
*            i_callback_top_of_page   = 'TOP-OF-PAGE'
            I_CALLBACK_PF_STATUS_SET  = 'SET_PF_STATUS'
            I_CALLBACK_USER_COMMAND   = 'USER_COMMAND'
*            i_grid_title             = 'My Title'
            IS_LAYOUT                 = GD_LAYOUT
            IT_FIELDCAT               = FIELDCATALOG[]
       TABLES
            T_OUTTAB                  = IT_EKKO
       EXCEPTIONS
            PROGRAM_ERROR             = 1
            OTHERS                    = 2.

  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    WRITE:/ SY-SUBRC.
  ENDIF.

ENDFORM.                    " DISPLAY_ALV_REPORT


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  DATA_RETRIEVAL
*&amp;amp;---------------------------------------------------------------------*
*       Retrieve data form EKPO table and populate itab it_ekko
*----------------------------------------------------------------------*
FORM DATA_RETRIEVAL.
  SELECT EBELN EBELP
   UP TO 10 ROWS
    FROM EKPO
    INTO CORRESPONDING FIELDS OF TABLE  IT_EKKO.
ENDFORM.                    " DATA_RETRIEVAL


*----------------------------------------------------------------------*
*                      FORM SET_PF_STATUS                              *
*----------------------------------------------------------------------*
FORM SET_PF_STATUS USING RT_EXTAB   TYPE  SLIS_T_EXTAB.
  SET PF-STATUS 'STANDARD_FULLSCREEN1' EXCLUDING RT_EXTAB.
ENDFORM.                    "set_pf_status


*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  user_command
*&amp;amp;--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM    text
*      --&amp;gt;RS_SELFIELDtext
*---------------------------------------------------------------------*
FORM USER_COMMAND  USING R_UCOMM LIKE SY-UCOMM
                         RS_SELFIELD TYPE SLIS_SELFIELD.


  &amp;lt;b&amp;gt;DATA: GD_REPID LIKE SY-REPID, "Exists
  REF_GRID TYPE REF TO CL_GUI_ALV_GRID. "new

*then insert the following code in your USER_COMMAND routine...


  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
      .
  ENDIF.&amp;lt;/b&amp;gt;

  CASE R_UCOMM.
    WHEN '&amp;amp;IC1'.
      CHECK RS_SELFIELD-TABINDEX &amp;gt; 0.
      IF RS_SELFIELD-VALUE EQ '6000000001'.
        CALL TRANSACTION 'ZDF2'.
      ENDIF.
    WHEN 'ENTER'.

      READ TABLE IT_EKKO INDEX  RS_SELFIELD-TABINDEX.
      IF SY-SUBRC = 0.
        READ TABLE IT_BACKUP INDEX RS_SELFIELD-TABINDEX.
        IF SY-SUBRC = 0.
          IF IT_EKKO &amp;lt;&amp;gt; IT_BACKUP.
*  then do your check
          ENDIF.
        ENDIF.
      ENDIF.

      PERFORM DATA_RETRIEVAL.
      RS_SELFIELD-REFRESH = 'X'.

  ENDCASE.
ENDFORM.                    "user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 10:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639373#M284872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639374#M284873</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;Thx for the answer but it does not seem to work. I have made a subroutine to check data changes. I pass the name of the subroutine in ALV events parameter table. I want to process this subroutine when the user changes a cell and presses Enter. Pressing Enter does not trigger the data changed event. What should i check? ( i don't use OO based ALV Grid!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;  CLEAR ALV_EVENTS.&lt;/P&gt;&lt;P&gt;  ALV_EVENTS-NAME = SLIS_EV_DATA_CHANGED.&lt;/P&gt;&lt;P&gt;  ALV_EVENTS-FORM = 'DATA_CHANGED'.&lt;/P&gt;&lt;P&gt;  APPEND ALV_EVENTS.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..  &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM       = ALV_REPID&lt;/P&gt;&lt;P&gt;      IS_LAYOUT                = ALV_LAYOUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = ALV_FIELDCAT[]&lt;/P&gt;&lt;P&gt;      I_SAVE                   = 'A'&lt;/P&gt;&lt;P&gt;      IT_EVENTS                = ALV_EVENTS[]&lt;/P&gt;&lt;P&gt;      IS_PRINT                 = ALV_PRINT&lt;/P&gt;&lt;P&gt;      IS_VARIANT               = ALV_VARIANT&lt;/P&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND  = USER_SCREEN&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PF_STATUS_SET = PF_STATUS&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB                 = ITAB[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR            = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DATA_CHANGED USING rr_data_changed&lt;/P&gt;&lt;P&gt;         type ref to cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ls_good type lvc_s_modi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at rr_data_changed-&amp;gt;mt_good_cells into ls_good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 12:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639374#M284873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639375#M284874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the example is working fine in my system, if you want to use the example, you need to set the pf-status and see. it is working or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 12:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639375#M284874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639376#M284875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;Any changes to your ALV, be it a cell modified, added, deleted - will come up in the internal table. mt_mod_cells / mod_rows etc, like somebody mentioend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event data_changed is called whenever the content changs. and you will have a handler method for this method, where the idea is for you to do a validation.&lt;/P&gt;&lt;P&gt;if your validation passes, another event data_changed_finished is called. again u shd have a handler for this method. here u will get a table mt_good_cells which will have all the correct entries that have passed validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 12:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639376#M284875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T12:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639377#M284876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to set the following flag&lt;/P&gt;&lt;P&gt;  g_grid_settings-EDT_CLL_CB = 'X'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR h_EVENT.&lt;/P&gt;&lt;P&gt;  h_EVENT-NAME = SLIS_EV_DATA_CHANGED.&lt;/P&gt;&lt;P&gt;  h_EVENT-FORM = 'DATA_CHANGED'.&lt;/P&gt;&lt;P&gt;  APPEND h_EVENT to g_events_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gt_layout-lights_fieldname = 'LIGHTS'.&lt;/P&gt;&lt;P&gt;  gt_layout-box_fieldname    = 'CBOX'.&lt;/P&gt;&lt;P&gt;  g_grid_settings-EDT_CLL_CB = 'X'.&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM       = g_repid&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;      I_GRID_SETTINGS          = G_GRID_SETTINGS&lt;/P&gt;&lt;P&gt;      IS_LAYOUT                = gt_layout&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = gt_fieldcat&lt;/P&gt;&lt;P&gt;      IT_EXCLUDING             = gt_excluding&lt;/P&gt;&lt;P&gt;      I_DEFAULT                = 'X'&lt;/P&gt;&lt;P&gt;      I_SAVE                   = 'A'&lt;/P&gt;&lt;P&gt;      IS_VARIANT               = gt_variant&lt;/P&gt;&lt;P&gt;      it_events                = g_events_tab[]&lt;/P&gt;&lt;P&gt;      it_event_exit            = g_event_exit_tab[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = OUTPUT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR            = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DATA_CHANGED USING rr_data_changed&lt;/P&gt;&lt;P&gt;type ref to cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ls_good type lvc_s_modi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at rr_data_changed-&amp;gt;mt_good_cells into ls_good.&lt;/P&gt;&lt;P&gt;          call method rr_data_changed-&amp;gt;get_cell_value&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_row_id    = ls_good-row_id&lt;/P&gt;&lt;P&gt;              i_fieldname = ls_good-fieldname&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              e_value     = l_value.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do your check, and if in error&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            call method rr_data_changed-&amp;gt;add_protocol_entry&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                i_msgid     = '0K'&lt;/P&gt;&lt;P&gt;                i_msgno     = '000'&lt;/P&gt;&lt;P&gt;                i_msgty     = 'E'&lt;/P&gt;&lt;P&gt;                i_msgv1     = l_value&lt;/P&gt;&lt;P&gt;                i_msgv2     = 'Error'&lt;/P&gt;&lt;P&gt;                i_fieldname = ls_good-fieldname&lt;/P&gt;&lt;P&gt;                i_row_id    = ls_good-row_id.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2006 23:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-data-changed/m-p/1639377#M284876</guid>
      <dc:creator>albert_israel2</dc:creator>
      <dc:date>2006-12-02T23:45:45Z</dc:date>
    </item>
  </channel>
</rss>

