<?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 screen refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652271#M611453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using class based ALV or REUSE FM's ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 02:54:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-28T02:54:12Z</dc:date>
    <item>
      <title>ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652270#M611452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV refresh screen is not happening.&lt;/P&gt;&lt;P&gt;I have 2 alv screens . from l one screen I post 2 materials , I get 2 errors on 2nd screen in terms of log.when I go back &amp;amp; post single material this time, I still get the 2 materials on the log screen, actually the internal table contains only one material when 2nd time the alv list is called.&lt;/P&gt;&lt;P&gt;It means that it is not removing from control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how can we eliminate the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 01:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652270#M611452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T01:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652271#M611453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using class based ALV or REUSE FM's ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 02:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652271#M611453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T02:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652272#M611454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using ALV class object try calling this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         CALL METHOD obj_ALV_grid-&amp;gt;refresh_table_display &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where obj_ALV_grid is an instance of class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652272#M611454</guid>
      <dc:creator>settipalli_raj</dc:creator>
      <dc:date>2007-08-28T03:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652273#M611455</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;If you are using REUSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        it_fieldcat                 = pt_grpfcat[]
        it_excluding                = p_grpexcltab2[]
        is_layout                   = pt_grplayout2
        i_callback_program          = sy-repid
        i_callback_html_top_of_page = p_header
        i_callback_pf_status_set    = v_status_set1
        i_callback_user_command     = f_user_command1
        i_screen_start_column       = 25
        i_screen_start_line         = 5
        i_screen_end_column         = 80
        i_screen_end_line           = 20
        it_events                   = i_events[]
      tables
        t_outtab                    = i_grpoutput.
  else.
    message i367(yscc) with v_plgrp..
  endif.
endform.                                 " F_f4_help_fieldname
*
*&amp;amp;---------------------------------------------------------------------*
* Form  f_user_command1                                                *
*&amp;amp;---------------------------------------------------------------------*
* This form will handle the user command from fm REUSE                 *
*----------------------------------------------------------------------*
form f_user_command1 using p_ucomm type sy-ucomm
                     rs_selfield type  slis_selfield.

  data p_ref1 type ref to cl_gui_alv_grid.
  call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    importing
      e_grid = p_ref1.
  call method p_ref1-&amp;gt;check_changed_data.
  case p_ucomm.
    when 'BACK'.
      leave to screen 0.
  endcase.
  rs_selfield-refresh = c_x.             " Grid refresh

endform.                                 " F_user_command1


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652273#M611455</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-28T03:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652274#M611456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If u r using Reuse FM's then in user_command form try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_SELFLD-REFRESH = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652274#M611456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T03:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652275#M611457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Class method , the table refresh method is also not giving any help here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 16:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652275#M611457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T16:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652276#M611458</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;Use the following in your user command PAI as first statement , system automatically fills the changed entries into your output tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  call method g_grid-&amp;gt;check_changed_data
    importing
      e_valid = v_valid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 16:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652276#M611458</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-28T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652277#M611459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to refresh the control , but ALV refresh is not working, &lt;/P&gt;&lt;P&gt;I used different referenace object &amp;amp; different container also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 16:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652277#M611459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652278#M611460</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;After the method i mentioned in my previous thread. then call method Refresh_table_display in the PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 16:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652278#M611460</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-28T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652279#M611461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody.Finally it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gv_grid_data_log is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT gv_grid_data_log&lt;/P&gt;&lt;P&gt;                EXPORTING i_parent = gv_container_d0011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM prepare_field_catalog :&lt;/P&gt;&lt;P&gt;    USING 'ZRECID'      'Record ID'(s01) space 10 0,&lt;/P&gt;&lt;P&gt;    USING 'MBLNR'       'Material Document'(s26) space 15 0,&lt;/P&gt;&lt;P&gt;    USING 'TYPE'        'Message'(s27) space 4 0,&lt;/P&gt;&lt;P&gt;    USING 'MESSAGE'     'Message Text'(s28) space 20 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gv_grid_data_log-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout          = gs_layout&lt;/P&gt;&lt;P&gt;        i_default          = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CHANGING&lt;/P&gt;&lt;P&gt;       it_outtab           = gt_error_data[]&lt;/P&gt;&lt;P&gt;       it_fieldcatalog     = gt_fldcat[].&lt;/P&gt;&lt;P&gt;  REFRESH : gt_error_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   call method gv_grid_data_log-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&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;solution is You don't have to call the set_table_for_first_display again, on 2nd time&lt;/P&gt;&lt;P&gt;just call refresh_table_display. I put the If /else condition &amp;amp; it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everybody who spent some time for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 21:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-refresh/m-p/2652279#M611461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T21:42:47Z</dc:date>
    </item>
  </channel>
</rss>

