<?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: OOALV's refresh_table_display problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798038#M1466965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have mentioned in my code only when c_alv is not initial then only free it otherwise it will go for short dump.&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;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Apr 2010 06:38:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-22T06:38:41Z</dc:date>
    <item>
      <title>OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798024#M1466951</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 am using the event in the handle_data_changed to capture the data from the screen entered into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My logic is working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to put some logic so the when the enters the data in the 4th or 5th line and press Enter, the data which is in the 4th line should move to the 1st line and four line should get cleared. (like it happens in the ME21N)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I am capturing all the data entered using the method handle_data_changed. After I have the data in the internal table I wrote logic so that all the field values entered in the 4th line will move the 1st line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that I am using the method refresh_table_display to display the changes I have made internally in the program.&lt;/P&gt;&lt;P&gt;But for some reason this is not working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SrNo      Operation       Item          Qty&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4             Operation1     item 1      100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is &lt;/P&gt;&lt;P&gt;SrNo      Operation       Item          Qty&lt;/P&gt;&lt;P&gt;1            Operation1     item 1      100&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What actually happening in the my program&lt;/P&gt;&lt;P&gt;SrNo      Operation       Item          Qty&lt;/P&gt;&lt;P&gt;1            Operation1     item 1      100&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4            Operation1     item 1      100      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason this 4th line which is entered before is not getting cleared. I have checked my internal table before the refresh_table_display.  It has only one Line data and that to it is the 1st line. the 4th line is completely empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using cl_gui_alv_grid, and suppressed all the functions using it_toolbar_excluding and no tool bar. Right click on the row or column on the alv will not have any options available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 15:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798024#M1466951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T15:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798025#M1466952</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;Call Refresh_table_display after data_changed method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Like.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class c1 implementation.&lt;/P&gt;&lt;P&gt;    Method data_changed.&lt;/P&gt;&lt;P&gt;    Endmethod.&lt;/P&gt;&lt;P&gt;   Call grid1-&amp;gt;refresh_table_display().&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 16:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798025#M1466952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T16:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798026#M1466953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 16:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798026#M1466953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T16:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798027#M1466954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Whats is the method I should call to refresh an OO ALV after changing the corresponding internal table?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 16:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798027#M1466954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798028#M1466955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am giving a solution only after usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I done the same thing several times and alv grid refreshed sucessfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the words like Sense or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U are not paying anything for our suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 16:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798028#M1466955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798029#M1466956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No offence, it doest make sense to &lt;STRONG&gt;me&lt;/STRONG&gt; but i'm the one trying to learn here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I tried your sugestion it gave me the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;You cannot use the statement "CALL METHOD" in the current environment.		
However, you could use the similar statement "METHOD".		&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I make this properly? (i'm trying to do your sugestion inside the class implementation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 17:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798029#M1466956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798030#M1466957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can put the call method grid1-&amp;gt;refresh_table_display inside a methiod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method grid1-&amp;gt;refresh_table_display().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 20:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798030#M1466957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798031#M1466958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the same which you have suggested. see the code below which I am using. After that only I got this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD handle_data_changed.
    DATA: ls_good TYPE lvc_s_modi.
    LOOP AT er_data_changed-&amp;gt;mt_good_cells INTO ls_good.
      s_operation-heatnum = zaodheader-heatnum.
      CASE ls_good-fieldname.

        WHEN 'ITEM'.
          s_operation-item = ls_good-value.
          READ TABLE gt_outtab INTO gs_outtab INDEX ls_good-row_id.
          IF sy-subrc EQ 0.
            s_operation-srno = ls_good-row_id.
            gs_outtab-item = s_operation-item.
            gs_outtab-heatnum = s_operation-heatnum.
          ENDIF.
          MODIFY gt_outtab FROM gs_outtab INDEX ls_good-row_id TRANSPORTING srno heatnum item.
*          PERFORM update_internal_table USING ls_good-row_id.
       &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***********changes for handling Blank lines
    LOOP AT gt_outtab INTO gs_outtab.
      IF    gs_outtab-operations IS INITIAL
        AND gs_outtab-item IS INITIAL
        AND gs_outtab-quantity IS INITIAL.

        DELETE gt_outtab INDEX sy-tabix.
      ENDIF.
    ENDLOOP.

    DESCRIBE TABLE gt_outtab LINES v_fill_lines.

    DATA: v_times TYPE int1,
          v_sr_counter TYPE num2.

    v_times = 99 - v_fill_lines.
    v_count = v_fill_lines + 1.
    DO v_times TIMES.
      gs_outtab-srno = v_count.
      APPEND gs_outtab TO gt_outtab.
      v_count = v_count + 1.
    ENDDO.


    LOOP AT gt_outtab INTO gs_outtab.
      IF sy-tabix = 1.
        gs_outtab-srno  = 1.
        MODIFY gt_outtab FROM gs_outtab TRANSPORTING srno.
        v_sr_counter = 1.
        CONTINUE.
      ENDIF.
      v_sr_counter =  v_sr_counter + 1.
      gs_outtab-srno =  v_sr_counter.
      MODIFY gt_outtab FROM gs_outtab TRANSPORTING srno.
    ENDLOOP.

    CALL METHOD g_grid-&amp;gt;refresh_table_display
      .
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  ENDMETHOD.                    "handle_data_changed
ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION.
..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked my internal table and it definitely has only the data which I want to display. But after this refresh table display the data which is already existing is not getting cleared like I told in my example. Please suggest me if there any way I can resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 04:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798031#M1466958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T04:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798032#M1466959</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; free the container by using  method free and also grid&lt;/P&gt;&lt;P&gt; and then again call method set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let me know wat happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 05:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798032#M1466959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T05:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798033#M1466960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have commented the refresh table display and did what you said, Program is going to dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 05:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798033#M1466960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T05:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798034#M1466961</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;jst post ur set_table_for_first_display method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me see then i will suggest wat to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 05:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798034#M1466961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T05:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798035#M1466962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the code below. It is commented &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
***********changes for handling Blank lines
    LOOP AT gt_outtab INTO gs_outtab.
      IF    gs_outtab-operations IS INITIAL
        AND gs_outtab-item IS INITIAL
        AND gs_outtab-quantity IS INITIAL.

        DELETE gt_outtab INDEX sy-tabix.
      ENDIF.
    ENDLOOP.

    DESCRIBE TABLE gt_outtab LINES v_fill_lines.

    DATA: v_times TYPE int1,
          v_sr_counter TYPE num2.

    v_times = 99 - v_fill_lines.
    v_count = v_fill_lines + 1.
    DO v_times TIMES.
      gs_outtab-srno = v_count.
      APPEND gs_outtab TO gt_outtab.
      v_count = v_count + 1.
    ENDDO.


    LOOP AT gt_outtab INTO gs_outtab.
      IF sy-tabix = 1.
        gs_outtab-srno  = 1.
        MODIFY gt_outtab FROM gs_outtab TRANSPORTING srno.
        v_sr_counter = 1.
        CONTINUE.
      ENDIF.
      v_sr_counter =  v_sr_counter + 1.
      gs_outtab-srno =  v_sr_counter.
      MODIFY gt_outtab FROM gs_outtab TRANSPORTING srno.
    ENDLOOP.

*************************
*    CALL METHOD g_custom_container-&amp;gt;free.
*
*    CALL METHOD g_grid-&amp;gt;free.
*
*    CALL METHOD g_grid-&amp;gt;set_table_for_first_display
*    EXPORTING
*      is_layout            = gs_layout
*      it_toolbar_excluding = gt_exclude
*    CHANGING
*      it_fieldcatalog      = gt_fieldcat
*      it_outtab            = gt_outtab[].


************************
    CALL METHOD g_grid-&amp;gt;refresh_table_display
      .
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 06:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798035#M1466962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798036#M1466963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that u have to  again create object of container and grid.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;use as i have done in my code  it will surely work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use and let me now output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 06:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798036#M1466963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T06:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798037#M1466964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the Code below. Still going to dump. Is because I doing this in the Method handle_data_changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception condition "CNTL_ERROR" raised. Dump Message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD g_custom_container-&amp;gt;free.

    CALL METHOD g_grid-&amp;gt;free.

 IF g_custom_container IS INITIAL.
    PERFORM create_and_init_alv. " CHANGING gt_outtab
    "       gt_fieldcat
    "      gs_layout.
  ENDIF.

FORM create_and_init_alv . "CHANGING pt_outtab LIKE gt_outtab[]
  "       pt_fieldcat TYPE lvc_t_fcat
  "      ps_layout TYPE lvc_s_layo.


  CREATE OBJECT g_custom_container
    EXPORTING
      container_name = g_container.

  CREATE OBJECT g_grid
    EXPORTING
      i_parent = g_custom_container.


  PERFORM build_fieldcat CHANGING gt_fieldcat.

  PERFORM exclude_tb_functions CHANGING gt_exclude.

  IF sy-tcode &amp;lt;&amp;gt; 'ZQMAOD4'.
    IF sy-tcode = 'ZQMAOD2'.
      PERFORM set_display_property.
    ENDIF.
  ENDIF.

  PERFORM build_layout USING gs_layout.

  PERFORM fill_outtab.

  CALL METHOD g_grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = gs_layout
      it_toolbar_excluding = gt_exclude
    CHANGING
      it_fieldcatalog      = gt_fieldcat
      it_outtab            = gt_outtab[].

* set editable cells to ready for input
  CALL METHOD g_grid-&amp;gt;set_ready_for_input
    EXPORTING
      i_ready_for_input = 1.


  CALL METHOD g_grid-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.

  CREATE OBJECT cl_er.
  SET HANDLER cl_er-&amp;gt;handle_data_changed FOR g_grid.

  IF sy-tcode = 'ZQMAOD3'.
    CALL METHOD g_grid-&amp;gt;refresh_table_display
      .
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
ENDFORM.                    " CREATE_AND_INIT_ALV
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 06:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798037#M1466964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T06:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798038#M1466965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have mentioned in my code only when c_alv is not initial then only free it otherwise it will go for short dump.&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;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 06:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798038#M1466965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798039#M1466966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've also tried that, and also get a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the strange thing is that my program does the free's and re-does de alv again using CALL METHOD alv-&amp;gt;set_table_for_first_display but then when it finishes processing my handling_data_change method it gives a dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 10:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798039#M1466966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798040#M1466967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone as other suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 09:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798040#M1466967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T09:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: OOALV's refresh_table_display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798041#M1466968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am supposed to use the Event DATA_CHANGED_FINISHED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am modifying the data of the internal table and using the refresh table display in the event. That should done in the  event DATA_CHANGED_FINISHED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added this even and wrote what ever logic I want in the implementation this Method in my program and the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Gaurav for all your suggestions and the rest as well.&lt;/P&gt;&lt;P&gt;I have never used OOPS before and now I am more comfortable using them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 13:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ooalv-s-refresh-table-display-problem/m-p/6798041#M1466968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T13:31:35Z</dc:date>
    </item>
  </channel>
</rss>

