<?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 Not Refreshing Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475152#M1651725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Adity,&lt;/P&gt;&lt;P&gt;Thanks for replay i did as per you told but result is same see below is my code plz help me through this code , Its really thanks for helping .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : CONT type ref to cl_gui_alv_grid.    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This All Process&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'WCNT'.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE status_0101 OUTPUT.

  DATA: fd TYPE string.
  DATA: variant TYPE  disvariant.
  DATA: repid TYPE sy-repid.
    repid = sy-repid.
      variant-report = sy-repid.
  variant-username = sy-uname.  layout-zebra = 'X'.
  layout-edit_mode = 'X'.  CHECK alv_container IS INITIAL.
CREATE OBJECT alv_container
              EXPORTING repid     = repid
                        dynnr     = sy-dynnr
                        side      = alv_container-&amp;gt;dock_at_left
                        extension = 1500.
  CREATE OBJECT alv_grid
    EXPORTING
      i_parent = alv_container.

*  append 'PRIN' to current_scr-excl.
*  ALV Specific. Data selection.
*  Populate Field Catalog
  PERFORM get_fieldcatalog.

  CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
    EXPORTING
 is_layout        = layout
      is_variant       = variant
*      i_save           = 'U'
      i_structure_name = 'I_ALV2'

    CHANGING

      it_outtab        = i_alv2[]
      it_fieldcatalog  = fieldcat[].
*  PERFORM get_data.

*  ztecerti-jobno = jobno.
*  ztecerti-rating = pono.
ENDMODULE. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE USER_COMMAND_0101 INPUT.

If sy-ucomm = 'BACK'.
    IF CONT IS INITIAL.
CALL METHOD CONT-&amp;gt;FREE.
CLEAR: CONT.
ENDIF.
call screen 100.
endif.

ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE USER_COMMAND_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'DISPLAY'.
      DATA wa  TYPE ztecerti.
      "Insert new row to transparant table.
      wa-jobno = jobno.
      wa-pono  = pono .
*      wa-ZTESTDEAQw = ZTESTDEAQw.
      WHEN 'BACK'.
      LEAVE.
  ENDCASE.
  if pono &amp;gt;= jobno.
        MESSAGE s000(38) WITH 'Check Date Entries.!'.
  Leave screen.
endif.
  PERFORM get_data.
  clear sy-ucomm.  
ENDIF.
  CALL SCREEN 101.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2011 05:04:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-19T05:04:24Z</dc:date>
    <item>
      <title>ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475149#M1651722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hellow freinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also have same issue i make one GUI status , the process of screen as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 100 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;  this User Slection screen, Here user start to make input and one Push button 'Display" when user click this Display the Programme Goes to Screen--101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 101------&amp;gt; this is the result screen here ALV grid Display shows the result,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now user click the Back Button (Standard Tool Bar) , then he see the first screen means screen 100 (Input screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now user changes the value and again click Display for result ,so the problem is User can not see the correct result after pressing back , ALV shows the old result below is my code where i exporting the filed catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 PERFORM get_fieldcatalog.

  CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout        = layout
      is_variant       = variant
      i_save           = 'U'
      i_structure_name = 'I_ALV2'

    CHANGING

      it_outtab        = i_alv2[]
      it_fieldcatalog  = fieldcat[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz give me some suggestion how to solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 04:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475149#M1651722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T04:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475150#M1651723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In screen 101 at PBO maintain MODULE STATUS_0001.&lt;/P&gt;&lt;P&gt;In that create a status  starting with Z in SET PF-STATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;Double click on it Zstatus in Function Keys toolbar give any name on pressing back button Eg: BACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI write the code as follows.&lt;/P&gt;&lt;P&gt;If sy-ucomm = 'BACK'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to refresh the ALV container use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : CONT type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT CONT IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD CONT-&amp;gt;FREE.&lt;/P&gt;&lt;P&gt;    CLEAR: CONT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT CONT&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;    CREATE OBJECT GRID&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;    I_PARENT          = CONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;    IT_OUTTAB                     = IT_KNA1&lt;/P&gt;&lt;P&gt;    IT_FIELDCATALOG               = IT_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the above code  before calling the screen 101 from 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;G.Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya.G on Dec 19, 2011 10:03 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya.G on Dec 19, 2011 10:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 04:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475150#M1651723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475151#M1651724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free the container by using the method Cont_name-&amp;gt;free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that create the new container as you are doing for the first time and then display the contents. Because what the problem is that the new container is having the values but the old container values are not refreshed so it still in the memory and over rides the new container values. Its because of this issue only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this also in back use this code &lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      SET SCREEN 0.&lt;/P&gt;&lt;P&gt;      LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which removes the screen entirely from the process so the screen will also be loaded again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still the problem exists revert to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 04:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475151#M1651724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T04:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475152#M1651725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Adity,&lt;/P&gt;&lt;P&gt;Thanks for replay i did as per you told but result is same see below is my code plz help me through this code , Its really thanks for helping .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : CONT type ref to cl_gui_alv_grid.    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This All Process&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'WCNT'.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE status_0101 OUTPUT.

  DATA: fd TYPE string.
  DATA: variant TYPE  disvariant.
  DATA: repid TYPE sy-repid.
    repid = sy-repid.
      variant-report = sy-repid.
  variant-username = sy-uname.  layout-zebra = 'X'.
  layout-edit_mode = 'X'.  CHECK alv_container IS INITIAL.
CREATE OBJECT alv_container
              EXPORTING repid     = repid
                        dynnr     = sy-dynnr
                        side      = alv_container-&amp;gt;dock_at_left
                        extension = 1500.
  CREATE OBJECT alv_grid
    EXPORTING
      i_parent = alv_container.

*  append 'PRIN' to current_scr-excl.
*  ALV Specific. Data selection.
*  Populate Field Catalog
  PERFORM get_fieldcatalog.

  CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
    EXPORTING
 is_layout        = layout
      is_variant       = variant
*      i_save           = 'U'
      i_structure_name = 'I_ALV2'

    CHANGING

      it_outtab        = i_alv2[]
      it_fieldcatalog  = fieldcat[].
*  PERFORM get_data.

*  ztecerti-jobno = jobno.
*  ztecerti-rating = pono.
ENDMODULE. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE USER_COMMAND_0101 INPUT.

If sy-ucomm = 'BACK'.
    IF CONT IS INITIAL.
CALL METHOD CONT-&amp;gt;FREE.
CLEAR: CONT.
ENDIF.
call screen 100.
endif.

ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE USER_COMMAND_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'DISPLAY'.
      DATA wa  TYPE ztecerti.
      "Insert new row to transparant table.
      wa-jobno = jobno.
      wa-pono  = pono .
*      wa-ZTESTDEAQw = ZTESTDEAQw.
      WHEN 'BACK'.
      LEAVE.
  ENDCASE.
  if pono &amp;gt;= jobno.
        MESSAGE s000(38) WITH 'Check Date Entries.!'.
  Leave screen.
endif.
  PERFORM get_data.
  clear sy-ucomm.  
ENDIF.
  CALL SCREEN 101.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 05:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475152#M1651725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475153#M1651726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONTAINER_NAME does not exist if i create the CONT object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE OBJECT alv_container
              EXPORTING repid     = repid
                        dynnr     = sy-dynnr
                        side      = alv_container-&amp;gt;dock_at_left
                        extension = 1500.
IF NOT CONT IS INITIAL.
CALL METHOD CONT-&amp;gt;FREE.
CLEAR: CONT.
ENDIF.

CREATE OBJECT CONT
EXPORTING
CONTAINER_NAME = 'CONTAINER'.


  CREATE OBJECT alv_grid
    EXPORTING
      i_parent = alv_container.
*     i_parent = CONT.
*  append 'PRIN' to current_scr-excl.
*  ALV Specific. Data selection.
*  Populate Field Catalog
  PERFORM get_fieldcatalog.

  CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
    EXPORTING
 is_layout        = layout
      is_variant       = variant
*      i_save           = 'U'
      i_structure_name = 'I_ALV2'

    CHANGING

      it_outtab        = i_alv2[]
      it_fieldcatalog  = fieldcat[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 05:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475153#M1651726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T05:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475154#M1651727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grid-&amp;gt;refresh_table_display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 05:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475154#M1651727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475155#M1651728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunatha  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it already but resualt is same plz see my above programme code ,Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 06:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475155#M1651728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T06:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475156#M1651729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somethin is missing in refreshing data. Check example programs provided BCALV_EDIT_01, 02 ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First check after editing the data in ALV whether it is updated in Internal table or not  in debug mode.&lt;/P&gt;&lt;P&gt;Then when returnig back to the screen check data of internal table.&lt;/P&gt;&lt;P&gt;Then check your PBO Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE pbo OUTPUT.&lt;/P&gt;&lt;P&gt;  IF g_container IS INITIAL.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT ..&lt;/P&gt;&lt;P&gt;...CREATE OBJECT g_grid&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;    call method g_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 07:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475156#M1651729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T07:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475157#M1651730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here am sending the code which I did and working properly place the same code in your editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In top include place the below code.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_KNA1,&lt;/P&gt;&lt;P&gt;        KUNNR TYPE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;        NAME1 TYPE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;        ORT01 TYPE KNA1-ORT01,&lt;/P&gt;&lt;P&gt;      END OF TY_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_KNA1 TYPE TABLE OF TY_KNA1." WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : CONT TYPE REF TO CL_GUI_CUSTOM_CONTAINER,&lt;/P&gt;&lt;P&gt;       GRID TYPE REF TO CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In layout editor create an input field  and place submit button  . Here submit button FTCODE is 'SUBMIT' and a custom container with name 'CONTAINER'.&lt;/P&gt;&lt;P&gt;By passing value and pressing submit button below code will trigger .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the code as it is  with your customized table or standard table in place of tables which i used in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FETCH.&lt;/P&gt;&lt;P&gt;MODULE FIELD.&lt;/P&gt;&lt;P&gt;MODULE READ. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FETCH OUTPUT.&lt;/P&gt;&lt;P&gt;  IF SY-UCOMM = 'SUBMIT'.&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE IT_KNA1 WHERE KUNNR = KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FIELD OUTPUT.&lt;/P&gt;&lt;P&gt;CLEAR: WA_FCAT,IT_FCAT.&lt;/P&gt;&lt;P&gt;  WA_FCAT-FIELDNAME = 'KUNNR'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-TABNAME   = 'KNA1'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-COL_POS   = '1'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-REPTEXT   = 'CUSTOMER NUMBER'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-OUTPUTLEN = '16'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND WA_FCAT TO IT_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR WA_FCAT.&lt;/P&gt;&lt;P&gt;  WA_FCAT-FIELDNAME = 'NAME1'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-TABNAME   = 'KNA1'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-COL_POS   = '2'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-REPTEXT   = 'CUSTOMER NAME'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-OUTPUTLEN = '36'.&lt;/P&gt;&lt;P&gt;  APPEND WA_FCAT TO IT_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR WA_FCAT.&lt;/P&gt;&lt;P&gt;  WA_FCAT-FIELDNAME = 'ORT01'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-TABNAME   = 'KNA1'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-COL_POS   = '3'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-REPTEXT   = 'CITY'.&lt;/P&gt;&lt;P&gt;  WA_FCAT-OUTPUTLEN = '36'.&lt;/P&gt;&lt;P&gt;  APPEND WA_FCAT TO IT_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR WA_FCAT.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " FIELD  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE READ OUTPUT.&lt;/P&gt;&lt;P&gt;IF IT_KNA1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT CONT IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD CONT-&amp;gt;FREE.&lt;/P&gt;&lt;P&gt;    CLEAR: CONT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT CONT&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CONTAINER_NAME              = 'CONTAINER'.(Name of the container which is created in Layout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;    I_PARENT          = CONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;    IT_OUTTAB                     = IT_KNA1&lt;/P&gt;&lt;P&gt;    IT_FIELDCATALOG               = IT_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " READ  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope with the above code your problem will be resolved if not yet all working revert me back with your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;G.Aditya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya.G on Dec 19, 2011 3:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 09:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475157#M1651730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-19T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Not Refreshing Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475158#M1651731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 04:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-not-refreshing-data/m-p/8475158#M1651731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-20T04:17:33Z</dc:date>
    </item>
  </channel>
</rss>

