<?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 GRID REFRESH ISSUE!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769008#M38060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to call reuse again within your callback routine. &lt;/P&gt;&lt;P&gt;Just change the field refresh of structure Structure RS_SELFIELD as described in the online help. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_SELFIELD contains the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabname  : Name of the internal output table&lt;/P&gt;&lt;P&gt;tabindex : Index of the internal output table&lt;/P&gt;&lt;P&gt;fieldname: Field name&lt;/P&gt;&lt;P&gt;endsum   : Cursor is located on the totals line&lt;/P&gt;&lt;P&gt;sumindex : If &amp;gt;0, the cursor is located on a subtotals line&lt;/P&gt;&lt;P&gt;value    : Value of the field on the list&lt;/P&gt;&lt;P&gt;refresh  : (Exporting) List should be set up again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2004 13:13:38 GMT</pubDate>
    <dc:creator>ChristianFi</dc:creator>
    <dc:date>2004-11-24T13:13:38Z</dc:date>
    <item>
      <title>ALV GRID REFRESH ISSUE!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769006#M38058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a refresh button on my ALV display List.&lt;/P&gt;&lt;P&gt;It should bring the latest sales data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how it was handled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List Header for Top-Of-Page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM comment_build.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the Field Catlog details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM fieldcat_init USING 'IT_ALV_HBOM'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the Field Catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM modify_fieldcat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the necessary events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM eventtab_build USING gt_events.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort Fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM sort.&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_buffer_active          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         i_callback_program       = g_repid&lt;/P&gt;&lt;P&gt;         i_callback_pf_status_set = gc_status&lt;/P&gt;&lt;P&gt;         i_callback_user_command  = gt_user_command&lt;/P&gt;&lt;P&gt;         is_layout                = gs_layout&lt;/P&gt;&lt;P&gt;         it_fieldcat              = v_fieldcat[]&lt;/P&gt;&lt;P&gt;         i_save                   = g_save&lt;/P&gt;&lt;P&gt;         is_variant               = gs_variant&lt;/P&gt;&lt;P&gt;         it_events                = gt_events[]&lt;/P&gt;&lt;P&gt;         it_sort                  = it_sort&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     e_exit_caused_by_caller = g_exit_caused_by_caller&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     es_exit_caused_by_user  = gs_exit_caused_by_user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         t_outtab = p_table&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;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 sy-ucomm.&lt;/P&gt;&lt;P&gt;when refresh.&lt;/P&gt;&lt;P&gt;select latest data from database.&lt;/P&gt;&lt;P&gt;and all call the ALv display again.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List Header for Top-Of-Page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM comment_build.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the Field Catlog details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM fieldcat_init USING 'IT_ALV_HBOM'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the Field Catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM modify_fieldcat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the necessary events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM eventtab_build USING gt_events.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort Fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM sort.&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_buffer_active          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         i_callback_program       = g_repid&lt;/P&gt;&lt;P&gt;         i_callback_pf_status_set = gc_status&lt;/P&gt;&lt;P&gt;         i_callback_user_command  = gt_user_command&lt;/P&gt;&lt;P&gt;         is_layout                = gs_layout&lt;/P&gt;&lt;P&gt;         it_fieldcat              = v_fieldcat[]&lt;/P&gt;&lt;P&gt;         i_save                   = g_save&lt;/P&gt;&lt;P&gt;         is_variant               = gs_variant&lt;/P&gt;&lt;P&gt;         it_events                = gt_events[]&lt;/P&gt;&lt;P&gt;         it_sort                  = it_sort&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     e_exit_caused_by_caller = g_exit_caused_by_caller&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     es_exit_caused_by_user  = gs_exit_caused_by_user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         t_outtab = p_table&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;endcase.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROBLEM I AM FACING IS ..&lt;/P&gt;&lt;P&gt;I get a display of ALV, but when i say BACK or CANCEL it goes to the previous list of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i over come this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manohar E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2004 12:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769006#M38058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-24T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REFRESH ISSUE!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769007#M38059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manohar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not call FM 'REUSE_ALV_GRID_DISPLAY' for the second time. In the callback routine USER_COMMAND you should just set the field REFRESH of structure rs_selfield.&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2004 13:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769007#M38059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-24T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REFRESH ISSUE!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769008#M38060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to call reuse again within your callback routine. &lt;/P&gt;&lt;P&gt;Just change the field refresh of structure Structure RS_SELFIELD as described in the online help. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_SELFIELD contains the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabname  : Name of the internal output table&lt;/P&gt;&lt;P&gt;tabindex : Index of the internal output table&lt;/P&gt;&lt;P&gt;fieldname: Field name&lt;/P&gt;&lt;P&gt;endsum   : Cursor is located on the totals line&lt;/P&gt;&lt;P&gt;sumindex : If &amp;gt;0, the cursor is located on a subtotals line&lt;/P&gt;&lt;P&gt;value    : Value of the field on the list&lt;/P&gt;&lt;P&gt;refresh  : (Exporting) List should be set up again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2004 13:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769008#M38060</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2004-11-24T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REFRESH ISSUE!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769009#M38061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damn!!! that was easy isnt it:).&lt;/P&gt;&lt;P&gt;Thnx i got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2004 13:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-issue/m-p/769009#M38061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-24T13:35:05Z</dc:date>
    </item>
  </channel>
</rss>

