<?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 Display Refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850420#M1474295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of container&lt;/P&gt;&lt;P&gt;  CREATE OBJECT c_container1&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     container_name = 'CONTAINER1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of alv&lt;/P&gt;&lt;P&gt;  CREATE OBJECT c_alv1&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      i_parent = c_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_layout1-zebra = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD c_alv1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout       = wa_layout1&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab       = &amp;lt;dyn_table3&amp;gt;&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = it_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;___________________________form free. for second grid. &lt;/P&gt;&lt;P&gt;IF c_alv1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD c_alv1-&amp;gt;free&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error        = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE c_alv1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF c_container1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD c_container1-&amp;gt;free&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error        = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE c_container1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 04:43:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-23T04:43:17Z</dc:date>
    <item>
      <title>ALV Display Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850418#M1474293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with a ALV report. I have a screen where the user will input some data, based on that data the ALV will generated once that first ALV Report is generated I have one column with the hotspot functionality if the user clicks on the hotspot another ALV will be generated based on the record they clicked on the first one, my problem comes when they hit the back button the second ALV stays with the data from the first click so I need a way of how like refresh the second alv everytime they hit BACK or click on the hotspot, the internal table that has the values is changing properly so I'm assuming is a problem with the method that generates the ALV or with the screen, any help on this will be very appreciated, have deadline on this tomorrow, thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Logic in the PBO:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD grid2-&amp;gt;set_table_for_first_display
EXPORTING
I_STRUCTURE_NAME = 'ZDM_CA_OKTOMKT_STR'
i_save = 'A'
is_layout = gv_layout 
is_variant = lw_variant
CHANGING
it_outtab = lt_ca_oktomkt_final
it_fieldcatalog = it_fctab2 " it_sort = IT_SORT
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc &amp;lt;&amp;gt; 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic when hit hotspot:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD handle_hotspot_click .
v_row = e_row_id.
v_column = e_column_id.
v_row_num = es_row_no.
clear: lt_ca_oktomkt_final, lw_ca_oktomkt.
READ TABLE lt_final_rec INTO lw_final_rec INDEX v_row.
  LOOP AT lt_ca_oktomkt INTO lw_ca_oktomkt WHERE zportion = lw_final_rec-zportion.
      APPEND lw_ca_oktomkt TO lt_ca_oktomkt_final.
  ENDLOOP.
clear: v_row.
DELETE ADJACENT DUPLICATES FROM lt_ca_oktomkt_final COMPARING zcontract.

CALL SCREEN '0200'." this is the second screen with ALV after clicked on hotspot
ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried this on the PAI when they hit the back button didn't work eaither:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD grid2-&amp;gt;refresh_table_display.
CALL METHOD cl_gui_cfw=&amp;gt;flush.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 22:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850418#M1474293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T22:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850419#M1474294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am guessing Please try in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_hotspot_click .&lt;/P&gt;&lt;P&gt;v_row = e_row_id.&lt;/P&gt;&lt;P&gt;v_column = e_column_id.&lt;/P&gt;&lt;P&gt;v_row_num = es_row_no.&lt;/P&gt;&lt;P&gt;clear: lt_ca_oktomkt_final, lw_ca_oktomkt.&lt;/P&gt;&lt;P&gt;READ TABLE lt_final_rec INTO lw_final_rec INDEX v_row.&lt;/P&gt;&lt;P&gt;  LOOP AT lt_ca_oktomkt INTO lw_ca_oktomkt WHERE zportion = lw_final_rec-zportion.&lt;/P&gt;&lt;P&gt;      APPEND lw_ca_oktomkt TO lt_ca_oktomkt_final.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;clear: v_row.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM lt_ca_oktomkt_final COMPARING zcontract.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL SCREEN '0200'." this is the second screen with ALV after clicked on hotspot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid2-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 22:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850419#M1474294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T22:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850420#M1474295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of container&lt;/P&gt;&lt;P&gt;  CREATE OBJECT c_container1&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     container_name = 'CONTAINER1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Creating object of alv&lt;/P&gt;&lt;P&gt;  CREATE OBJECT c_alv1&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      i_parent = c_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_layout1-zebra = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD c_alv1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout       = wa_layout1&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab       = &amp;lt;dyn_table3&amp;gt;&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = it_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;___________________________form free. for second grid. &lt;/P&gt;&lt;P&gt;IF c_alv1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD c_alv1-&amp;gt;free&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error        = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE c_alv1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF c_container1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD c_container1-&amp;gt;free&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error        = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      FREE c_container1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 04:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850420#M1474295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T04:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850421#M1474296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you veeeeery much, this worked perfect exactly what I needed, I really appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 15:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-refresh/m-p/6850421#M1474296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T15:33:30Z</dc:date>
    </item>
  </channel>
</rss>

