<?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: Classes to split ALV in OO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298103#M1533729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use the same approach as you would work with splitter container and &lt;EM&gt;cl_gui_alv_grid&lt;/EM&gt; . For this refer [Multiple ALVs on one screen|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1437734"&gt;&lt;/A&gt;;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you change is when calling &lt;EM&gt;factory&lt;/EM&gt; method you pass one of the containers (top, middle, bottom) to parameter &lt;STRONG&gt;R_CONTAINER&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 07:05:51 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-09-21T07:05:51Z</dc:date>
    <item>
      <title>Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298102#M1533728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using OO to display my ALV, what is needed to have a split on the ALV and display some data in the top half.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TRY.

      cl_salv_table=&amp;gt;factory(
        IMPORTING r_salv_table = gr_alv
        CHANGING  t_table      = gt_rpt_details ).

      PERFORM f_set_header.
      PERFORM f_display_settings.

      gr_alv-&amp;gt;set_screen_status(
      pfstatus = 'ZSTANDARD'
      report = sy-repid
      set_functions = gr_alv-&amp;gt;c_functions_all ). "set all basic ALV funtions

      gr_events = gr_alv-&amp;gt;get_event( ).
      "create layout object
      CREATE OBJECT gr_layout.

      lr_columns = gr_alv-&amp;gt;get_columns( ).
      lr_columns-&amp;gt;set_optimize( 'X' ).
      lr_columns-&amp;gt;set_headers_visible( 'X' ).

*
*   get layout object
      lo_layout = gr_alv-&amp;gt;get_layout( ).
*
*   set Layout save restriction
*   1. Set Layout Key .. Unique key identifies the Differenet ALVs
      ls_key-report = sy-repid.
      lo_layout-&amp;gt;set_key( ls_key ).
*   2. Remove Save layout the restriction.
      lo_layout-&amp;gt;set_save_restriction( if_salv_c_layout=&amp;gt;restrict_none ).
      lo_layout-&amp;gt;set_default( abap_true ).
*
*   set initial Layout
      "lf_variant = 'Z/ZTEST'.
      "lo_layout-&amp;gt;set_initial_layout( lf_variant ).

      CREATE OBJECT event_handler.

      SET HANDLER event_handler-&amp;gt;on_user_command FOR gr_events.

      gr_functions = gr_alv-&amp;gt;get_functions( ).

      gr_functions-&amp;gt;set_all('X').

      gr_functions-&amp;gt;set_group_filter( value = if_salv_c_bool_sap=&amp;gt;false ).

*       Set print preview
      gr_functions-&amp;gt;set_print_preview( ).

      gr_alv-&amp;gt;get_display_settings( ).

      gr_alv-&amp;gt;display( ).

    CATCH cx_salv_msg.
      MESSAGE 'ALV Display Not possible'(w02) TYPE 'I' DISPLAY LIKE 'E'.
  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 20:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298102#M1533728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298103#M1533729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use the same approach as you would work with splitter container and &lt;EM&gt;cl_gui_alv_grid&lt;/EM&gt; . For this refer [Multiple ALVs on one screen|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1437734"&gt;&lt;/A&gt;;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you change is when calling &lt;EM&gt;factory&lt;/EM&gt; method you pass one of the containers (top, middle, bottom) to parameter &lt;STRONG&gt;R_CONTAINER&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 07:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298103#M1533729</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-21T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298104#M1533730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to split the ALV you can use the below code for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lr_custom_container type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;       lr_event_receiver   type ref to lcl_event_receiver,&lt;/P&gt;&lt;P&gt;       lr_splitter         type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;       lr_parent_top       type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;       lr_parent_grid      type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;       lr_dyndoc_id        type ref to cl_dd_document,&lt;/P&gt;&lt;P&gt;       lr_display          type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if lr_custom_container is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_container_name = " Container name which you defined in Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    create object lr_custom_container&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        container_name              = v_container_name&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;        create_error                = 3&lt;/P&gt;&lt;P&gt;        lifetime_error              = 4&lt;/P&gt;&lt;P&gt;        lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i081 display like c_e.&lt;/P&gt;&lt;P&gt;      "Unknown Error Occured While Displaying&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Split the container into two parts&lt;/P&gt;&lt;P&gt;    create object lr_splitter&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        parent            = lr_custom_container&lt;/P&gt;&lt;P&gt;        rows              = 2&lt;/P&gt;&lt;P&gt;        columns           = 1&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i081 display like c_e.&lt;/P&gt;&lt;P&gt;      "Unknown Error Occured While Displaying&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the upper part of the container into V_PARENT_TOP&lt;/P&gt;&lt;P&gt;    call method lr_splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        row       = 1&lt;/P&gt;&lt;P&gt;        column    = 1&lt;/P&gt;&lt;P&gt;      receiving&lt;/P&gt;&lt;P&gt;        container = lr_parent_top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the lower part of the container into V_PARENT_GRID&lt;/P&gt;&lt;P&gt;    call method lr_splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        row       = 2&lt;/P&gt;&lt;P&gt;        column    = 1&lt;/P&gt;&lt;P&gt;      receiving&lt;/P&gt;&lt;P&gt;        container = lr_parent_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Set the height of the top part of the container&lt;/P&gt;&lt;P&gt;    call method lr_splitter-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        id                = 1&lt;/P&gt;&lt;P&gt;        height            = 28&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i081 display like c_e.&lt;/P&gt;&lt;P&gt;      "Unknown Error Occured While Displaying&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Create a instance of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;    create object lr_display&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        i_parent          = lr_parent_grid&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        error_cntl_create = 1&lt;/P&gt;&lt;P&gt;        error_cntl_init   = 2&lt;/P&gt;&lt;P&gt;        error_cntl_link   = 3&lt;/P&gt;&lt;P&gt;        error_dp_create   = 4&lt;/P&gt;&lt;P&gt;        others            = 5.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i081 display like c_e.&lt;/P&gt;&lt;P&gt;      "Unknown Error Occured While Displaying&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 13:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298104#M1533730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298105#M1533731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have went and added the suggestions above but I am know getting a program Abend when I run the program, if I take the reference to the container split it does not abend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any expert help with finding the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA : lr_custom_container TYPE REF TO cl_gui_custom_container,
  "lr_event_receiver TYPE REF TO lcl_event_receiver,
  lr_splitter TYPE REF TO cl_gui_splitter_container,
  lr_parent_top TYPE REF TO cl_gui_container,
  lr_parent_grid TYPE REF TO cl_gui_container,
  lr_dyndoc_id TYPE REF TO cl_dd_document,
  lr_display TYPE REF TO cl_gui_alv_grid,
  lv_container_name TYPE c LENGTH 12 VALUE 'ZMM_RPT_CONT'.

  CREATE OBJECT lr_custom_container
    EXPORTING
      container_name              = lv_container_name
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5.

*Split the container into two parts
  CREATE OBJECT lr_splitter
    EXPORTING
      parent            = lr_custom_container
      rows              = 2
      columns           = 1
    EXCEPTIONS
      cntl_error        = 1
      cntl_system_error = 2
      OTHERS            = 3.

*Get the upper part of the container into V_PARENT_TOP
  CALL METHOD lr_splitter-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = lr_parent_top.

*Get the lower part of the container into V_PARENT_GRID
  CALL METHOD lr_splitter-&amp;gt;get_container
    EXPORTING
      row       = 2
      column    = 1
    RECEIVING
      container = lr_parent_grid.

*Set the height of the top part of the container
  CALL METHOD lr_splitter-&amp;gt;set_row_height
    EXPORTING
      id                = 1
      height            = 28
    EXCEPTIONS
      cntl_error        = 1
      cntl_system_error = 2
      OTHERS            = 3.


*Create a instance of cl_gui_alv_grid
  CREATE OBJECT lr_display
    EXPORTING
      i_parent          = lr_parent_grid
    EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      OTHERS            = 5.

  TRY.

      CALL METHOD cl_salv_table=&amp;gt;factory
        EXPORTING
          r_container    = lr_parent_top
        IMPORTING
          r_salv_table   = gr_alv
        CHANGING
          t_table        = gt_rpt_details.

      PERFORM f_display_settings.

"This is where the program abends....
      gr_alv-&amp;gt;set_screen_status(
      pfstatus = 'ZSTANDARD'
      report = sy-repid
      set_functions = gr_alv-&amp;gt;c_functions_all ). "set all basic ALV funtions

      gr_events = gr_alv-&amp;gt;get_event( ).
      "create layout object
      CREATE OBJECT gr_layout.

      lr_columns = gr_alv-&amp;gt;get_columns( ).
      lr_columns-&amp;gt;set_optimize( 'X' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error I get is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The exception 'CX_SALV_METHOD_NOT_SUPPORTED' was raised, but it was not caught&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298105#M1533731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298106#M1533732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is GR_ALV declared?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298106#M1533732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298107#M1533733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gr_alv TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298107#M1533733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298108#M1533734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any screen logic in your code. I assume this is in the PBO of some screen??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298108#M1533734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298109#M1533735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you read the exception more carefully, you would spot this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this exception is:&lt;/P&gt;&lt;P&gt;Class CL_SALV_TABLECLASS, method SET_SCREEN_STATUSMETHOD not supported for&lt;/P&gt;&lt;P&gt;CL_SALV_TABLEOBJECT For Full Screen and List OnlyKEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From the explanation it is clear to me that this methods is not supported for grid embeded in the container. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also as Rob noticed, you are missing the screen itself. Anyhow it doens't resolve your issue. Either you give up using this method or switch to full screen/list mode where splitter could not be applied to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: next time please be more descriptive so the people will not be guessing and asking to get the information they should receive at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298109#M1533735</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-21T20:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298110#M1533736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the new SALV class and not using a CALL SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have any logic in the PBO of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Either you give up using this method or switch to full screen/list mode where splitter could not be applied to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I would I not use this method? Just set the PF-Status manually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298110#M1533736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T20:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298111#M1533737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the new SALV class and not using a CALL SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Come on, do you really think we did not spot it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SALV if you use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- list -&amp;gt; you don't need a screen&lt;/P&gt;&lt;P&gt;- full screen grid -&amp;gt; you don't need it either&lt;/P&gt;&lt;P&gt;- grid -&amp;gt; you need a screen, otherwise how custom container would be recognized?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer &lt;STRONG&gt;SALV_DEMO_TABLE_SIMPLE&lt;/STRONG&gt; , all three above options are shown there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I would I not use this method? Just set the PF-Status manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you use grid mode you simply can't. The reason is one of the first lines in this method&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"if the object is a GRID you can't set status yourself
 if get_display_object( ) eq IF_SALV_C_TABLE_OBJECTS=&amp;gt;GRID.

    text = text-001.

    raise exception type CX_SALV_METHOD_NOT_SUPPORTED
        exporting class  = 'CL_SALV_TABLE'
                  method = 'SET_SCREEN_STATUS'
                  object = 'CL_SALV_TABLE'
                  key    = text.

  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So the system will set the default one and apparently you can't change this. Any complaints please direct to &lt;STRONG&gt;sap.com&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298111#M1533737</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-21T20:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Classes to split ALV in OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298112#M1533738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe I asked the wrong questions... BUT I figured it out, Here is the code to make it work it is from SAP example program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV_TEST_TABLE_DISPLAY_OR_XML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*... Top of List, End of List
  data: lr_content type ref to cl_salv_form_element.

      PERFORM create_alv_form_content_tol USING space CHANGING lr_content.
      gr_alv-&amp;gt;set_top_of_list( lr_content ).



FORM create_alv_form_content_tol                     USING i_print TYPE sap_bool
                   CHANGING cr_content TYPE REF TO cl_salv_form_element.

  DATA: lr_header TYPE REF TO cl_salv_form_header_info,
        l_text    TYPE string.

*... create header information
  CASE i_print.
    WHEN space.
      CONCATENATE 'TOP_OF_LIST' text-h01 INTO l_text SEPARATED BY space.
    WHEN abap_true.
      CONCATENATE 'TOP_OF_LIST_PRINT' text-h01 INTO l_text SEPARATED BY space.
  ENDCASE.

  CREATE OBJECT lr_header
    EXPORTING
      text    = l_text
      tooltip = l_text.

  cr_content = lr_header.
ENDFORM.                    " CREATE_ALV_FORM_CONTENT_TOL

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 20:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-to-split-alv-in-oo/m-p/7298112#M1533738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T20:43:28Z</dc:date>
    </item>
  </channel>
</rss>

