<?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 refresh alv  grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803885#M914882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iam using a custom table to populate data in the alv grid, it is displaying&lt;/P&gt;&lt;P&gt;in the same prg iam appending some records in the custom table   &lt;/P&gt;&lt;P&gt; after appending iam coming back to the initial screen and dispalying the changed data from the custom  table in the same alv grid (custom table is the same evry where) ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom table is having appended records but the olddata is  coming in the alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saurabh on May 13, 2008 7:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 05:08:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T05:08:03Z</dc:date>
    <item>
      <title>refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803885#M914882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iam using a custom table to populate data in the alv grid, it is displaying&lt;/P&gt;&lt;P&gt;in the same prg iam appending some records in the custom table   &lt;/P&gt;&lt;P&gt; after appending iam coming back to the initial screen and dispalying the changed data from the custom  table in the same alv grid (custom table is the same evry where) ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom table is having appended records but the olddata is  coming in the alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saurabh on May 13, 2008 7:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 05:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803885#M914882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T05:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803886#M914883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this code:&lt;/P&gt;&lt;P&gt;In your USER_COMMAND routine, add a line as follows&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;FORM user_command USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'THIS'.&lt;/P&gt;&lt;P&gt;PERFORM this.&lt;/P&gt;&lt;P&gt;WHEN 'THAT'.&lt;/P&gt;&lt;P&gt;PERFORM that.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;MOVE '&amp;amp;REFRESH' TO ucomm. &amp;lt;---- This is what you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " USER_COMMAND&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 05:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803886#M914883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T05:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803887#M914884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the Object Orientated approach then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD og_alv-&amp;gt;refresh_table_display.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will do it.&lt;/P&gt;&lt;P&gt;where og_alv was used like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD og_alv-&amp;gt;set_table_for_first_display
    EXPORTING
      i_save                        = 'A'
      is_variant                    = x_variant
      is_layout                     = x_layout
    CHANGING
      it_outtab                     = it_data_1005
      it_fieldcatalog               = it_fcat
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the function module approach then &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.
....
rs_selfield-refresh = c_true.
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803887#M914884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803888#M914885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u paste the code where u have used set_table_for_first_display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803888#M914885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803889#M914886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REFRESH table  METHOD is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803889#M914886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803890#M914887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can not paste my code here but iam using exaclty the same structure as sample program by sap( which iam listing) while calling a method.&lt;/P&gt;&lt;P&gt;if need to refresh  by grid what i need to do, do io need to add export parameter or import parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE PBO OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MAIN100'.&lt;/P&gt;&lt;P&gt;  IF G_CUSTOM_CONTAINER IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT G_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;           EXPORTING CONTAINER_NAME = G_CONTAINER.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&lt;/P&gt;&lt;P&gt;    CALL METHOD GRID1-SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;         EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;         CHANGING  IT_OUTTAB        = GT_SFLIGHT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803890#M914887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: refresh alv  grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803891#M914888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there u go..&lt;/P&gt;&lt;P&gt;u have used this method inside the if condition-if container is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep this method outside the if condiotion.&lt;/P&gt;&lt;P&gt;when u keep it inside the if cond.then this method is called only once..and after u update ur itab then the updated itab is not passed in the method as this if condition is not true the second time (reference already created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solves ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-grid/m-p/3803891#M914888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:54:15Z</dc:date>
    </item>
  </channel>
</rss>

