<?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 update internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049930#M88866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the following links&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="24742"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="10895"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2005 14:22:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-01T14:22:55Z</dc:date>
    <item>
      <title>ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049929#M88865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have an internal table display in a ALV GRID. Only one column is editable. When I change the field value, ALV GRID display the change, but when I click on refresh return the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked in DEBUG mode and when I click on refresh (in the PAI module), the internal table haven't data modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: the field qta have value 15. I change it in 18 and then press Refresh. In debug, the field qta still have the value 15. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049929#M88865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049930#M88866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the following links&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="24742"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="10895"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049930#M88866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049931#M88867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought we had answered to the same question in your last post.. did that not help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, did you implement the suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you calling check_changed_data in your PAI module as suggested and still its not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case can you paste your code from your PAI module? and the necessary ALV Grid code for us to analyse...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049931#M88867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049932#M88868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the sample program BCALV_EDIT_03 will point you in the right direction.  THere is also....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049932#M88868</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-01T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049933#M88869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I follow the example BCALV_EDIT_02.&lt;/P&gt;&lt;P&gt;In this report seems that internal table is automatically update when you change a value. Infact, if you see, when you switch display/change mode, it hold the right values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code of the example call only the alv_grid_first_display method and the set_ready_for_input&lt;/P&gt;&lt;P&gt; method to switch mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why my report don't work? Where is the event of the update of internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I switch from editing mode to display, ALV GRID display the initial value of the cell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049933#M88869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049934#M88870</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;Ok, then go through example BCALV_GRID_EDIT.&lt;/P&gt;&lt;P&gt;From what I can understand, you have not registered and handled data_changed event.&lt;/P&gt;&lt;P&gt;That appears to be your problem..&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;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049934#M88870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049935#M88871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I understood,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report I've written&lt;/P&gt;&lt;P&gt;  IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;   ...&lt;/P&gt;&lt;P&gt;    CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding = it_exclude&lt;/P&gt;&lt;P&gt;        i_structure_name     = 'ZST_CAT_INV'&lt;/P&gt;&lt;P&gt;        is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog      = gt_fieldcat&lt;/P&gt;&lt;P&gt;        it_outtab            = it_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is CALL METHOD go_grid-&amp;gt;refresh_table_display. right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this ALV GRID is call by a list by an at-selection screen event. If I don't use this instruction, when I back in the list and choose another ALV GRID, I display always the same ALV GRID with the same data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049935#M88871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049936#M88872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The Example prg is using Classes, then you need to use the same approach in the way i mentioned below...&lt;/P&gt;&lt;P&gt;You need to Update the ITAB with the Modifeid values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*---------------------------------------------------------------------*
*       CLASS lcl_event_handler DEFINITION
*---------------------------------------------------------------------*
CLASS LCL_EVENT_HANDLER DEFINITION .
  PUBLIC SECTION .
    METHODS:
**Handler to Check the Data Change
    HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
                         OF CL_GUI_ALV_GRID
                         IMPORTING ER_DATA_CHANGED
                                   E_ONF4
                                   E_ONF4_BEFORE
                                   E_ONF4_AFTER.

ENDCLASS.                    "lcl_event_handler&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; DEFINITION&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**Handle Data Change
  METHOD HANDLE_DATA_CHANGED.
    DATA: X_CHANGE TYPE LVC_S_MODI,
          X_FINAL TYPE T_FINAL,
          X_OCRC TYPE ZSD_OC_HOLD,
          L_FLAG.

    LOOP AT ER_DATA_CHANGED-&amp;gt;MT_GOOD_CELLS INTO X_CHANGE.
      IF X_CHANGE-FIELDNAME = 'ZZOCHOLDRC'.
        READ TABLE IT_FINAL INTO X_FINAL INDEX X_CHANGE-ROW_ID.
        IF SY-SUBRC = 0.
          READ TABLE IT_OCRC INTO X_OCRC WITH KEY
                                         ZZOCHOLDRC = X_CHANGE-VALUE
                                        TRANSPORTING ZZRCDESC.

          IF SY-SUBRC = 0.
            X_FINAL-ZZRCDESC = X_OCRC-ZZRCDESC.
            MODIFY IT_FINAL FROM X_FINAL INDEX X_CHANGE-ROW_ID
                                         TRANSPORTING ZZRCDESC.
            L_FLAG = 'X'.
          ENDIF.
        ENDIF.
      ENDIF.
      IF X_CHANGE-FIELDNAME = 'ZZPROMDT'.
        READ TABLE IT_FINAL INTO X_FINAL INDEX X_CHANGE-ROW_ID.
        IF SY-SUBRC = 0.
          X_FINAL-ZZPROMDT = X_CHANGE-VALUE.
          MODIFY IT_FINAL FROM X_FINAL INDEX X_CHANGE-ROW_ID
                                       TRANSPORTING ZZPROMDT.
          L_FLAG = 'X'.
        ENDIF.
      ENDIF.
    ENDLOOP.
    IF L_FLAG = 'X'.
      CLEAR V_DATA_CHANGE.
      V_DATA_CHANGE = 'X'.
    ENDIF.
  ENDMETHOD.                    "data_changed&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;**you need to SET the HANDLER after the method first display.

  CREATE OBJECT G_HANDLER.
  SET HANDLER G_HANDLER-&amp;gt;HANDLE_DATA_CHANGED FOR G_GRID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049936#M88872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049937#M88873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will solve your Problem,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward for helpful answers...&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>Thu, 01 Dec 2005 14:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049937#M88873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049938#M88874</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 dont think there is any problem with REFRESH_TABLE_DISPLAY call...that is fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table it_record gets updated with your changes on ALV Grid only when you call CHECK_CHANGED_DATA method or whenever event data_changed is fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you are dealing with some REFRESH button in your PAI module then have a call to CHECK_CHANGED_DATA method of your grid reference go_grid...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you put a break-point then after the CHECK_CHANGED_DATA method call you should see your changes in it_record table..&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;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049938#M88874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID update internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049939#M88875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can you Try to Give the Code,SO thatit is easy to see &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and can fix the problem...&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>Thu, 01 Dec 2005 15:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-update-internal-table/m-p/1049939#M88875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T15:03:11Z</dc:date>
    </item>
  </channel>
</rss>

