<?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 NEED to refresh table while using REUSE_ALV_GRID _DISPLAY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918054#M381651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wee needto refresh the alv table, here depending on the button we need to refresh the display.But here the program uses a function module and not a OOPS concept. We need to dynamically add or remove lines from the table. ne guidance on how this can be done. Ne little code will also be helpful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 06:29:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T06:29:08Z</dc:date>
    <item>
      <title>NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918054#M381651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wee needto refresh the alv table, here depending on the button we need to refresh the display.But here the program uses a function module and not a OOPS concept. We need to dynamically add or remove lines from the table. ne guidance on how this can be done. Ne little code will also be helpful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918054#M381651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T06:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918055#M381652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;say SAVE is ur UCOMM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *here write code to save data&lt;/P&gt;&lt;P&gt;    SUBMIT &amp;lt;REORT NAME&amp;gt;  " to refresh ALv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918055#M381652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T06:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918056#M381653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;what u can do is, keep a button with some events declared in status.&lt;/P&gt;&lt;P&gt;like u set in set pf-status 'statusname'.&lt;/P&gt;&lt;P&gt;Then in that event capturing u can put ur refreshing of data and again refilling of data. And after refilling the data into dat table call display function again.&lt;/P&gt;&lt;P&gt;Keep display function module in some subroutine so dat u can call it ne time u need.&lt;/P&gt;&lt;P&gt;Hope it answers ur question.&lt;/P&gt;&lt;P&gt;bye.&lt;/P&gt;&lt;P&gt;Santosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918056#M381653</guid>
      <dc:creator>santosh_fhalke</dc:creator>
      <dc:date>2007-02-22T06:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918057#M381654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Referr this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.

when 'SAVE'.

Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1-&amp;gt;check_changed_data&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now your internal table will have the data that is seen in the editable alv.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918057#M381654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918058#M381655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using the function module "REUSE_ALV_GRID_DISPLAY", you have a exporting parameter called "I_CALLBACK_USER_COMMAND". This is the name of a form in your report to handle all the buttons clicked. To create your own buttons just create a GUI-Status and provide the exporting parameter "I_CALLBACK_PF_STATUS_SET" with a form in your report that sets the status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside your user_command-Form you can update all the records of your internal table. To make ALV refresh the display just provide the field st_selfield-refresh with 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE: &lt;/P&gt;&lt;P&gt;=========&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING RC_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;                        ST_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case rc_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check which button has been pressed&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Refresh internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select... into itab...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make sure, that the updated internal table itab is displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;st_selfield-refresh = 'X'. &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 PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ALV'.                 " EXCLUDING RT_EXTAB.&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;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_INTERFACE_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BUFFER_ACTIVE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      I_CALLBACK_PROGRAM                = 'ZPXYZ'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'&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;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHRIS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 11:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918058#M381655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T11:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: NEED to refresh table while using REUSE_ALV_GRID _DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918059#M381656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Judith:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for - I only wish I found it sooner!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 17:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-refresh-table-while-using-reuse-alv-grid-display/m-p/1918059#M381656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T17:41:52Z</dc:date>
    </item>
  </channel>
</rss>

