<?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: Split container on a SALV report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683503#M2017138</link>
    <description>&lt;P&gt;Thanks for the feedback!&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 19:32:25 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-05-24T19:32:25Z</dc:date>
    <item>
      <title>Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683498#M2017133</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have been trying to create an split container on SALV, but the second ALV does not come when i click on the hot spot. I have tried with Refresh the ALV but it didn't help me out. &lt;/P&gt;
  &lt;P&gt;Any suggestion? &lt;/P&gt;
  &lt;P&gt;Appreciate you help. Thank you&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;data: lv_vbeln type vbak-vbeln.&lt;BR /&gt;select-options:&lt;BR /&gt;  s_vbeln for lv_vbeln.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*       CLASS lcl_hotspot DEFINITION&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;class lcl_hotspot definition.&lt;BR /&gt;  public section.&lt;BR /&gt;&lt;BR /&gt;    methods display.&lt;BR /&gt;&lt;BR /&gt;    methods:&lt;BR /&gt;      on_link_click_order         for event link_click&lt;BR /&gt;                                   of cl_salv_events_table&lt;BR /&gt;                                   importing row&lt;BR /&gt;                                             column.&lt;BR /&gt;&lt;BR /&gt;    data:&lt;BR /&gt;      gt_vbak type table of vbak,&lt;BR /&gt;      go_salv    type ref to cl_salv_table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;endclass.                    "lcl_hotspot DEFINITION&lt;BR /&gt;&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*       CLASS lcl_hotspot IMPLEMENTATION&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;class lcl_hotspot implementation.&lt;BR /&gt;  method on_link_click_order.&lt;BR /&gt;    data ls_vbak type vbak.&lt;BR /&gt;    data:&lt;BR /&gt;      lt_vbap type standard table of vbap with default key.&lt;BR /&gt;    data:&lt;BR /&gt;      lo_splitter   type ref to cl_gui_splitter_container,&lt;BR /&gt;      lo_container1 type ref to cl_gui_container,&lt;BR /&gt;      lo_container2 type ref to cl_gui_container.&lt;BR /&gt;&lt;BR /&gt;    data:&lt;BR /&gt;      lo1_salv    type ref to cl_salv_table,&lt;BR /&gt;      lo1_func    type ref to cl_salv_functions_list,&lt;BR /&gt;      lo1_columns type ref to cl_salv_columns_table,&lt;BR /&gt;      lo1_column  type ref to cl_salv_column,&lt;BR /&gt;      lo1_column_set type ref to cl_salv_column_table,&lt;BR /&gt;      lo1_events  type ref to cl_salv_events_table.&lt;BR /&gt;&lt;BR /&gt;    go_salv-&amp;gt;refresh( refresh_mode = if_salv_c_refresh=&amp;gt;full ).&lt;BR /&gt;    cl_gui_cfw=&amp;gt;flush( ).&lt;BR /&gt;&lt;BR /&gt;    read table gt_vbak into ls_vbak index row.&lt;BR /&gt;&lt;BR /&gt;    select * from vbap into table lt_vbap&lt;BR /&gt;      where vbeln = ls_vbak-vbeln.&lt;BR /&gt;&lt;BR /&gt;    create object lo_splitter&lt;BR /&gt;      exporting&lt;BR /&gt;        parent  = cl_gui_container=&amp;gt;screen0&lt;BR /&gt;        rows    = 2&lt;BR /&gt;        columns = 1.&lt;BR /&gt;&lt;BR /&gt;    lo_container1 = lo_splitter-&amp;gt;get_container( row = 1 column = 1 ).&lt;BR /&gt;    lo_container2 = lo_splitter-&amp;gt;get_container( row = 2 column = 1 ).&lt;BR /&gt;&lt;BR /&gt;    try.&lt;BR /&gt;        call method cl_salv_table=&amp;gt;factory&lt;BR /&gt;          exporting&lt;BR /&gt;            r_container  = lo_container1&lt;BR /&gt;          importing&lt;BR /&gt;            r_salv_table = lo1_salv&lt;BR /&gt;          changing&lt;BR /&gt;            t_table      = lt_vbap.&lt;BR /&gt;&lt;BR /&gt;        lo1_func = lo1_salv-&amp;gt;get_functions( ).&lt;BR /&gt;        lo1_func-&amp;gt;set_all( abap_true ).&lt;BR /&gt;&lt;BR /&gt;        lo1_columns = lo1_salv-&amp;gt;get_columns( ).&lt;BR /&gt;        lo1_columns-&amp;gt;set_optimize( abap_true ).&lt;BR /&gt;&lt;BR /&gt;        "Display&lt;BR /&gt;        lo1_salv-&amp;gt;display( ).&lt;BR /&gt;      catch cx_salv_msg .&lt;BR /&gt;    endtry.&lt;BR /&gt;&lt;BR /&gt;  endmethod.                    "on_link_click_order&lt;BR /&gt;&lt;BR /&gt;  method display.&lt;BR /&gt;&lt;BR /&gt;    data:&lt;BR /&gt;      lo_func    type ref to cl_salv_functions_list,&lt;BR /&gt;      lo_columns type ref to cl_salv_columns_table,&lt;BR /&gt;      lo_column  type ref to cl_salv_column,&lt;BR /&gt;      lo_column_set type ref to cl_salv_column_table,&lt;BR /&gt;      lo_events  type ref to cl_salv_events_table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    select * from vbak into table gt_vbak&lt;BR /&gt;    where vbeln in s_vbeln.&lt;BR /&gt;&lt;BR /&gt;    try.&lt;BR /&gt;        call method cl_salv_table=&amp;gt;factory&lt;BR /&gt;          importing&lt;BR /&gt;            r_salv_table = go_salv&lt;BR /&gt;          changing&lt;BR /&gt;            t_table      = gt_vbak.&lt;BR /&gt;&lt;BR /&gt;        lo_func = go_salv-&amp;gt;get_functions( ).&lt;BR /&gt;        lo_func-&amp;gt;set_all( abap_true ).&lt;BR /&gt;&lt;BR /&gt;        lo_columns = go_salv-&amp;gt;get_columns( ).&lt;BR /&gt;        lo_columns-&amp;gt;set_optimize( abap_true ).&lt;BR /&gt;&lt;BR /&gt;        lo_column_set ?= lo_columns-&amp;gt;get_column( 'VBELN' ).&lt;BR /&gt;        lo_column_set-&amp;gt;set_cell_type( if_salv_c_cell_type=&amp;gt;hotspot ).&lt;BR /&gt;&lt;BR /&gt;        "Event- Set Handler&lt;BR /&gt;        lo_events = go_salv-&amp;gt;get_event( ).&lt;BR /&gt;&lt;BR /&gt;        set handler me-&amp;gt;on_link_click_order for lo_events.&lt;BR /&gt;&lt;BR /&gt;        "Display&lt;BR /&gt;        go_salv-&amp;gt;display( ).&lt;BR /&gt;      catch cx_salv_msg .&lt;BR /&gt;    endtry.&lt;BR /&gt;&lt;BR /&gt;    go_salv-&amp;gt;refresh(  refresh_mode = if_salv_c_refresh=&amp;gt;full ).&lt;BR /&gt;    cl_gui_cfw=&amp;gt;flush( ).&lt;BR /&gt;&lt;BR /&gt;  endmethod.                    "display&lt;BR /&gt;&lt;BR /&gt;endclass.                    "lcl_main IMPLEMENTATION&lt;BR /&gt;&lt;BR /&gt;start-of-selection.&lt;BR /&gt;&lt;BR /&gt;  data lo_hotspot type ref to lcl_hotspot.&lt;BR /&gt;  create object lo_hotspot.&lt;BR /&gt;  lo_hotspot-&amp;gt;display( ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2023 03:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683498#M2017133</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2023-05-16T03:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683499#M2017134</link>
      <description>&lt;P&gt;You have a splitter container, but you use the splitter container for the second SALV (showing VBAP) only. I guess, you want to show the VBAK-data in one part of the splitter container and the VBAP-data in the other. If this is right, you need global data for splitter-container and the container in the splitter. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683499#M2017134</guid>
      <dc:creator>jens_michaelsen</dc:creator>
      <dc:date>2023-05-16T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683500#M2017135</link>
      <description>&lt;P&gt;You are playing with cl_gui_container=&amp;gt;screen0, but that's more a trick than a good practice.&lt;/P&gt;&lt;P&gt;What happens is that two controls share the same space hence the issue you encounter (the second ALV grid is shown behind the first one).&lt;/P&gt;&lt;P&gt;If you want to use cl_gui_container=&amp;gt;screen0 for some reason (I personally use it only to go beyond the maximum dynpro size, if absolutely required), I recommend to first use call screen (or call selection-screen), and you won't have a conflict as cl_gui_container=&amp;gt;screen0 is different if you use different screens.&lt;/P&gt;&lt;P&gt;NB: if you master Control Framework, you can play with special methods like SET_VISIBLE to hide the first ALV grid so that the second ALV grid is not overwritten, and other possible solutions.&lt;/P&gt;&lt;P&gt;NB: the refresh method is only needed if you change the contents of the internal table by ABAP code.&lt;/P&gt;&lt;P&gt;NB: be careful, your code makes the internal table local, it must be defined as global or any other solution so that the variable is not be freed from memory otherwise you risk a short dump (if you scroll next rows for instance).&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 08:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683500#M2017135</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-16T08:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683501#M2017136</link>
      <description>&lt;P&gt;I am trying to display the split containers in the second screen. &lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683501#M2017136</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2023-05-24T17:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683502#M2017137</link>
      <description>&lt;P&gt;It worked with call screen. Thank you Sandra&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683502#M2017137</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2023-05-24T17:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split container on a SALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683503#M2017138</link>
      <description>&lt;P&gt;Thanks for the feedback!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-container-on-a-salv-report/m-p/12683503#M2017138</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-24T19:32:25Z</dc:date>
    </item>
  </channel>
</rss>

