<?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 grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618372#M1279860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem in ALV programming. I have 3 columns in my alv grid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying sum of first 2 cols in 3rd col .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After displaying alv grid  , when i change entry in 1st col. or/and  2nd col and give a tab (now the cursor is in 3rd col) ,after this tab i want alv to display changed result in 3rd col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any event for this if yes how to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 08:21:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T08:21:17Z</dc:date>
    <item>
      <title>ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618372#M1279860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem in ALV programming. I have 3 columns in my alv grid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying sum of first 2 cols in 3rd col .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After displaying alv grid  , when i change entry in 1st col. or/and  2nd col and give a tab (now the cursor is in 3rd col) ,after this tab i want alv to display changed result in 3rd col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any event for this if yes how to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618372#M1279860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618373#M1279861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try using the method REFRESH_TABLE_DISPLAY of the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618373#M1279861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618374#M1279862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check method: SAVE_DATA and then REFRESH_TABLE_DISPLAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618374#M1279862</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-19T08:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618375#M1279863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass i_callback_user_command to REUSE_ALV_GRID_DISPLAY and there write the code using rs_selfield-value.   and call the GRID again. so that it can be refreshed.&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;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618375#M1279863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618376#M1279864</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;Check this event HANDLE_DATA_CHANGED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618376#M1279864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618377#M1279865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kirty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this Function Module  &lt;STRONG&gt;RS_REFRESH_FROM_SELECTOPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618377#M1279865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618378#M1279866</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;Actually i tried refresh_table_display method in data_changed_finish event of cl_gui_alv_grid but in this case on every tab click cursor goes to initial position(bcause of refreshing of  table)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Could plz tell me where exactly to call this method i mean to say on which event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618378#M1279866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618379#M1279867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you pressing any button to calculate the total?&lt;/P&gt;&lt;P&gt;Incase yes then call REFRESH_TABLE_DISPLAY in the PBO.&lt;/P&gt;&lt;P&gt;Incase you want that the total to be displayed the moment the user moves from one cell to another then,&lt;/P&gt;&lt;P&gt;you will have to register the data changed event and in the handler method modify the cell value using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD er_data_changed-&amp;gt;modify_cell and then refresh the grid using  &lt;/P&gt;&lt;P&gt; CALL METHOD sender-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are handling the event data_changed OF cl_gui_alv_grid there is a parameter sender which is returned. This basically points to the grid which caused this event.&lt;/P&gt;&lt;P&gt;So you can make use of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;    METHODS y_m_handle_tab_movement_of cell&lt;/P&gt;&lt;P&gt;    FOR EVENT data_changed OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;    IMPORTING er_data_changed&lt;/P&gt;&lt;P&gt;              e_onf4&lt;/P&gt;&lt;P&gt;              e_onf4_before&lt;/P&gt;&lt;P&gt;              e_onf4_after&lt;/P&gt;&lt;P&gt;              e_ucomm&lt;/P&gt;&lt;P&gt;              sender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a handler method y_m_handle_tab_movement_of cell&lt;/P&gt;&lt;P&gt;which will be called whenever one moves from one cell to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this method i will make use of&lt;/P&gt;&lt;P&gt;CALL METHOD er_data_changed-&amp;gt;modify_cell to basically change the data of any other cell&lt;/P&gt;&lt;P&gt;say the sum cell and after that call&lt;/P&gt;&lt;P&gt;      CALL METHOD sender-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          finished = 1&lt;/P&gt;&lt;P&gt;          OTHERS   = 2.&lt;/P&gt;&lt;P&gt;to refresh my main grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/5618379#M1279867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:53:11Z</dc:date>
    </item>
  </channel>
</rss>

