<?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 Log in Custom Container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513699#M2004269</link>
    <description>&lt;P&gt;Indeed, it looks very much similar to a &lt;A href="https://answers.sap.com/comments/13478237/view.html" target="_blank"&gt;recent issue&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 11:06:55 GMT</pubDate>
    <dc:creator>abo</dc:creator>
    <dc:date>2021-10-12T11:06:55Z</dc:date>
    <item>
      <title>Refresh Log in Custom Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513697#M2004267</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;Currentyl I am displaying my log in a cl_gui_custom_container on my dynpro. The problem is, that when I a want to show a brand new log in my custom control, it is not refreshing and therfore shows the old log. Is there any possibility I can refresh the custom container to show the new log?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;
"Custom Control defined in Top-Include:
go_dependency_log_container TYPE REF TO cl_gui_custom_container.

FORM show_log .
  DATA: ls_log_header      TYPE bal_s_lfil,
        ls_log_handle      TYPE bal_s_logh,
        ls_display_profile TYPE bal_s_prof,
        lt_log_header      TYPE balhdr_t,
        lt_log_handle      TYPE bal_t_logh,
        lv_control_handle  TYPE balcnthndl.

  ls_log_handle-sign = 'I'.
  ls_log_handle-option = 'EQ'.
  ls_log_handle-low = gv_log_handle.

  APPEND ls_log_handle TO ls_log_header-log_handle.

  IF go_dependency_log_container IS NOT INITIAL.
    CLEAR go_dependency_log_container.
  ENDIF.

  "search log, which needs to be displayed
  CALL FUNCTION 'BAL_DB_SEARCH'
    EXPORTING
      i_client       = sy-mandt
      i_s_log_filter = ls_log_header
    IMPORTING
      e_t_log_header = lt_log_header
    EXCEPTIONS
      OTHERS         = 1.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i057(/dematic/dep_check) DISPLAY LIKE 'E'.
    RETURN.
  ENDIF.

  "load log
  CALL FUNCTION 'BAL_DB_LOAD'
    EXPORTING
      i_t_log_header = lt_log_header
      i_client       = sy-mandt
    IMPORTING
      e_t_log_handle = lt_log_handle
    EXCEPTIONS
      OTHERS         = 1.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e058(/dematic/dep_check) DISPLAY LIKE 'E'.
    RETURN.
  ENDIF.

  IF go_dependency_log_container IS INITIAL.
    go_dependency_log_container = NEW cl_gui_custom_container( container_name = 'GO_DEPENDENCY_LOG_CONTAINER' ).
  ENDIF.

  "get display profile
  CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET'
    IMPORTING
      e_s_display_profile = ls_display_profile.

  "create control
  CALL FUNCTION 'BAL_CNTL_CREATE'
    EXPORTING
      i_container         = go_dependency_log_container
      i_s_display_profile = ls_display_profile
      i_t_log_handle      = lt_log_handle
    IMPORTING
      e_control_handle    = lv_control_handle
    EXCEPTIONS
      OTHERS              = 1.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i059(/dematic/dep_check) DISPLAY LIKE 'E'.
    RETURN.
  ENDIF.


  CALL METHOD cl_gui_cfw=&amp;gt;flush.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513697#M2004267</guid>
      <dc:creator>former_member806113</dc:creator>
      <dc:date>2021-10-12T10:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Log in Custom Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513698#M2004268</link>
      <description>&lt;P&gt;I have solved it. Just call the free method of &lt;EM&gt;cl_gui_custom_container&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;In this case:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF go_dependency_log_container IS NOT INITIAL.
    go_dependency_log_container-&amp;gt;free( ).
  ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513698#M2004268</guid>
      <dc:creator>former_member806113</dc:creator>
      <dc:date>2021-10-12T10:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Log in Custom Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513699#M2004269</link>
      <description>&lt;P&gt;Indeed, it looks very much similar to a &lt;A href="https://answers.sap.com/comments/13478237/view.html" target="_blank"&gt;recent issue&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-log-in-custom-container/m-p/12513699#M2004269</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-10-12T11:06:55Z</dc:date>
    </item>
  </channel>
</rss>

