<?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: OOPS ALV Gui refreshing problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002599#M1495440</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;Are you calling the table refresh method as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GS_REFRESH-ROW = 'X'.
GS_REFRESH-COL = 'X'.

CALL METHOD GR_ALVGRID-&amp;gt;REFRESH_TABLE_DISPLAY
  EXPORTING
    IS_STABLE = GS_REFRESH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should display only the updated internal table. Please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 10:16:13 GMT</pubDate>
    <dc:creator>jayesh_gupta</dc:creator>
    <dc:date>2010-05-26T10:16:13Z</dc:date>
    <item>
      <title>OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002598#M1495439</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 a requirement in oo alv where user will enter the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the user enters a material and quantity in first row, and in the second row if he enters the &lt;STRONG&gt;SAME&lt;/STRONG&gt; material , &lt;/P&gt;&lt;P&gt;the first row should be updated with the quantity and second row should be removed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am handling this is Data_changed event . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is , manually entered material number in second row  is not getting cleared . ( I have cleared the second row in internal table  and used refresh_table_display ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the material in second row is not getting removed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl let me know if you have any idea how to do this. awarding points is for sure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002598#M1495439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T10:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002599#M1495440</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;Are you calling the table refresh method as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GS_REFRESH-ROW = 'X'.
GS_REFRESH-COL = 'X'.

CALL METHOD GR_ALVGRID-&amp;gt;REFRESH_TABLE_DISPLAY
  EXPORTING
    IS_STABLE = GS_REFRESH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should display only the updated internal table. Please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002599#M1495440</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-05-26T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002600#M1495441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep try this code for refreshing the grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE ALV_100 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*free container and object&lt;/P&gt;&lt;P&gt;  PERFORM FREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*alv grid display&lt;/P&gt;&lt;P&gt;  PERFORM DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF C_ALV IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD C_ALV-&amp;gt;FREE&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CNTL_ERROR        = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE C_ALV.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF C_CONTAINER IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD C_CONTAINER-&amp;gt;FREE&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CNTL_ERROR        = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE C_CONTAINER.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;FORM DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of container.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT C_CONTAINER&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       CONTAINER_NAME = 'CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of alv&lt;/P&gt;&lt;P&gt;  CREATE OBJECT C_ALV&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_PARENT = C_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fieldcatalog.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM ALV_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD C_ALV-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IS_LAYOUT       = WA_LAYOUT&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      IT_OUTTAB       = IT_OUTPUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCATALOG = IT_FIELDCAT.&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;Try in this way free the container and grid....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002600#M1495441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002601#M1495442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jayesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing the parameters mentioned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still it dint work !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002601#M1495442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T10:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002602#M1495443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to set the value by using method MODIFY_CELL of class CL_ALV_CHANGED_DATA_PROTOCOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example from a program from me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL METHOD er_data_changed-&amp;gt;modify_cell&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_row_id    = 2&lt;/P&gt;&lt;P&gt;              i_fieldname = 'MATNR'&lt;/P&gt;&lt;P&gt;              i_value     = ''.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002602#M1495443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: OOPS ALV Gui refreshing problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002603#M1495444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot André Witt . &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-gui-refreshing-problem/m-p/7002603#M1495444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T10:55:15Z</dc:date>
    </item>
  </channel>
</rss>

