<?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: Refresh problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555316#M251555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay, no need to resubmit the program, all you need to do is set some flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.

IF R_UCOMM = '&amp;amp;REFR'.

&amp;lt;b&amp;gt;* Call the form which is getting the data into your 
* internal table which is passed to ALV GRId
* Set the flags for refresh.
      PERFORM get_data.
      rs_selfield-refresh    = 'X'.
      rs_selfield-col_stable = 'X' .
      rs_selfield-row_stable = 'X' .&amp;lt;/b&amp;gt;


ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2006 20:38:17 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-06T20:38:17Z</dc:date>
    <item>
      <title>Refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555315#M251554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read various posts on this issue, and tried different things. But I have just one issue that has I have been trying to fix for the past few hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV grid thats filled with data from different transparent tables. I have added a refresh button on the ALV toolbar and processed it with the USER_COMMAND subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to submit the program again and it worked - but the only problem is that I have initialized one of the selection screen parameters in the INITIALIZE event. When I submit the program, it refreshes the data according to the initial selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to override this?&lt;/P&gt;&lt;P&gt;&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;P&gt;            I_CALLBACK_PROGRAM       = V_CALLBACK_PROG&lt;/P&gt;&lt;P&gt;            I_CALLBACK_USER_COMMAND  = 'F_USER_COMMAND'&lt;/P&gt;&lt;P&gt;            I_CALLBACK_PF_STATUS_SET = C_PFSTATUS_FORM&lt;/P&gt;&lt;P&gt;            IT_FIELDCAT              = I_FIELDCAT&lt;/P&gt;&lt;P&gt;            I_SAVE                   = V_SAVE&lt;/P&gt;&lt;P&gt;            IS_VARIANT               = V_VARIANT&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            T_OUTTAB                 = I_XREF&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            PROGRAM_ERROR            = 1&lt;/P&gt;&lt;P&gt;            OTHERS                   = 2.&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;.&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;FORM F_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;  IF R_UCOMM = '&amp;amp;REFR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT &amp;lt;report name&amp;gt;&lt;/P&gt;&lt;P&gt;        WITH S_DATE   IN L_DATE&lt;/P&gt;&lt;P&gt;        WITH S_TPEDEL IN L_TPEDEL&lt;/P&gt;&lt;P&gt;        WITH S_SAPDEL IN L_SAPDEL.&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried SUBMIT &amp;lt;report name&amp;gt; without the selection screen parameters as well. I tried putting in a flag or something in INITIALIZE event, but since its INITIALIZE event - everything gets initialized. So there is no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone experienced this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555315#M251554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555316#M251555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay, no need to resubmit the program, all you need to do is set some flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.

IF R_UCOMM = '&amp;amp;REFR'.

&amp;lt;b&amp;gt;* Call the form which is getting the data into your 
* internal table which is passed to ALV GRId
* Set the flags for refresh.
      PERFORM get_data.
      rs_selfield-refresh    = 'X'.
      rs_selfield-col_stable = 'X' .
      rs_selfield-row_stable = 'X' .&amp;lt;/b&amp;gt;


ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555316#M251555</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-06T20:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555317#M251556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton, that did it!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I rewarded the points to you, Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 12:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem/m-p/1555317#M251556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T12:20:42Z</dc:date>
    </item>
  </channel>
</rss>

