<?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: to refresh alv output using function button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987487#M952612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;case UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '&amp;amp;IC1'. "this is for double click.&lt;/P&gt;&lt;P&gt;READ TABLE it_idoc INDEX selfield-tabindex.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'DCN' FIELD it_idoc-docnum.&lt;/P&gt;&lt;P&gt;SUBMIT RSEIDOC2 WITH DOCNUM = it_idoc-docnum&lt;/P&gt;&lt;P&gt;WITH CREDAT = It_idoc-credat AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2008 12:03:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-21T12:03:49Z</dc:date>
    <item>
      <title>to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987485#M952610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi frnds..&lt;/P&gt;&lt;P&gt;its alv ... i have added refresh button in output ... as per requirement..&lt;/P&gt;&lt;P&gt;but i am getting the exact functionality to incorate in form user-command.&lt;/P&gt;&lt;P&gt;here i am using REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just want the output to refresh while i click the refresh button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 11:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987485#M952610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987486#M952611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA REF1 TYPE REF TO CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  E_GRID = REF1.&lt;/P&gt;&lt;P&gt;   CALL METHOD REF1-&amp;gt;CHECK_CHANGED_DATA.&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;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 12:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987486#M952611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987487#M952612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;case UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '&amp;amp;IC1'. "this is for double click.&lt;/P&gt;&lt;P&gt;READ TABLE it_idoc INDEX selfield-tabindex.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'DCN' FIELD it_idoc-docnum.&lt;/P&gt;&lt;P&gt;SUBMIT RSEIDOC2 WITH DOCNUM = it_idoc-docnum&lt;/P&gt;&lt;P&gt;WITH CREDAT = It_idoc-credat AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 12:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987487#M952612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987488#M952613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kannaih&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but can u give the same in detail.&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>Sat, 21 Jun 2008 12:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987488#M952613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987489#M952614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify your code seeing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                   rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;WHEN 'REFRESH'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;       (write ur code here)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;rs_selfield-refresh = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of the statement &lt;STRONG&gt;rs_selfield-refresh = 'X'.&lt;/STRONG&gt; you will be able to Refresh ur ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nadim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 12:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987489#M952614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987490#M952615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do this in two steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your user_command subroutine just put the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SET SCREEN 0.&lt;/P&gt;&lt;P&gt;2. your logic for updating the outtab[] alv internal table&lt;/P&gt;&lt;P&gt;3. Call the REUSE_ALV_GRID_DISPLAY fm for outtab[] table again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SET SCREEN command will sort off REMOVE the previous ALV from screen sequence memory and display the latest one in step 3.&lt;/P&gt;&lt;P&gt;Hence when you click on BACK to exit, it will not run through all previous ALVs which were displayed prior to refresh button being pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 12:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987490#M952615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987491#M952616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose if you have changed any row of the ALV output or if your ALV output contains the check box and you have checked the box and the program needs to identify the same into the final internal table, in which your program fetched the data, then use the below method in the USER_COMMAND form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA REF1 TYPE REF TO CL_GUI_ALV_GRID. "Global class for the ALV&lt;/P&gt;&lt;P&gt;Calling the FM to import the ALV grid from output.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;       E_GRID = REF1.&lt;/P&gt;&lt;P&gt;"Checking the changed data.&lt;/P&gt;&lt;P&gt;CALL METHOD REF1-&amp;gt;CHECK_CHANGED_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above code and analyze the same in debugging.&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;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 12:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987491#M952616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: to refresh alv output using function button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987492#M952617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pseudo code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform read_data changing gt_alv_display_table.
perform display_alv_data usiing gt_alv_display_table.

---
FORM user_command.
...
WHEN 'REFRESH'
  selfield-refresh = 'X'.
  perform read_data changing gt_alv_display_table.
---

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 14:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-refresh-alv-output-using-function-button/m-p/3987492#M952617</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-06-21T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

