<?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: Splitter Container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348755#M1231735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: g_custom_container TYPE REF TO cl_gui_custom_container, "custom container
        g_splitter_container TYPE REF TO cl_gui_splitter_container,       "splitter container
        g_top_container TYPE REF TO cl_gui_container,        "top container
        g_bottom_container TYPE REF TO cl_gui_container,   "bottom one
        g_slav_table TYPE REF TO cl_salv_table.


 "create custom container placed in CUSTOM AREA defined on screen
    CREATE OBJECT g_custom_container
      EXPORTING
        container_name              = 'CUSTOM_AREA'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.
    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.

    "now split the container into two independent containers
    CREATE OBJECT g_splitter_container
      EXPORTING
         parent            = g_custom_container
         rows              = 2   
         columns           = 1
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.
    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.

    "get top container 
    CALL METHOD g_splitter_container-&amp;gt;get_container
      EXPORTING
        row       = 1
        column    = 1
      RECEIVING
        container = g_top_container.

    "get bottom container for ALV grid
    CALL METHOD g_splitter_container-&amp;gt;get_container
      EXPORTING
        row       = 2
        column    = 1
      RECEIVING
        container = g_bottom_container.

    "create alv control instance placing it on the top container
    TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
       EXPORTING
          r_container    = g_top_container
      IMPORTING
          r_salv_table   = g_slav_table
     CHANGING
         t_table           =  "your_table_here
    .
    CATCH cx_salv_msg .
   ENDTRY.

"here you can use bottom container to place some ohter GUI control
...
&lt;/CODE&gt;&lt;/PRE&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, 10 Mar 2009 10:02:51 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-03-10T10:02:51Z</dc:date>
    <item>
      <title>Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348750#M1231730</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;Is it possible to have a splitter container using CL_SALV ?&lt;/P&gt;&lt;P&gt;If yes please explain the steps how to go about making the splitter container using this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 10:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348750#M1231730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T10:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348751#M1231731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Darpana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the splitter container which uses the class but on the contrary the class which uses the container instances of the splitter container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method CL_SALV_TABLE=&amp;gt;FACTORY has an optional IMPORTING parameter R_CONTAINER.&lt;/P&gt;&lt;P&gt;If you fetch the container instances of your splitter container and provide them when calling method FACTORY then I believe it should work the same way like for class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 10:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348751#M1231731</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-09T10:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348752#M1231732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Uwe said container is not depended on class. You can obviously use container with cl_salv_table class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is one of the optional parameters for that class.&lt;/P&gt;&lt;P&gt;Go to Patterns -&amp;gt; choose radiobutton ABAP Object Patterns -&amp;gt; Ok -&amp;gt; (Now you will see different patterns for ABAP Objects) -&amp;gt; choose radio button Call method -&amp;gt; enter Class/Interface :  CL_SALV_TABLE -&amp;gt; Method :FACTORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will see container as a optional exporting parameter of a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clear your doubts.&lt;/P&gt;&lt;P&gt;Just let me know if you are having any more queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Pratik Vora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348752#M1231732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348753#M1231733</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;I have understood what Uwe and Pratik have said.&lt;/P&gt;&lt;P&gt;I will have to pass the parameter accordingly to the CL_SALV_TABLE.&lt;/P&gt;&lt;P&gt;But the problem is that i do not know the steps of how to go about making the splitter container also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darpana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 09:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348753#M1231733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348754#M1231734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi darpana,&lt;/P&gt;&lt;P&gt;Go through follwing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a screen.&lt;/P&gt;&lt;P&gt;Make Custom Control area on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in screen PBO call method wtih cotainer as explained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setting Up Display Type in a Simple, Two-Dimensional Table&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In the CL_SALV_TABLE class, the FACTORY method gets the following parameters that are relevant for the display type:

·        LIST_DISPLAY

·        R_CONTAINER

·        CONTAINER_NAME

You determine how the table is displayed with a combination of these parameters.

Parameter Settings for the Display Type

Display type                                 In the Container
 LIST_DISPLAY                            ABAP_FALSE
 R_CONTAINER                            Reference to container; type CL_GUI_CONTAINER
 CONTAINER_NAME                    Name of the container&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;Kindly inform if more inputs required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratik Vora&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 09:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348754#M1231734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348755#M1231735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darpana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: g_custom_container TYPE REF TO cl_gui_custom_container, "custom container
        g_splitter_container TYPE REF TO cl_gui_splitter_container,       "splitter container
        g_top_container TYPE REF TO cl_gui_container,        "top container
        g_bottom_container TYPE REF TO cl_gui_container,   "bottom one
        g_slav_table TYPE REF TO cl_salv_table.


 "create custom container placed in CUSTOM AREA defined on screen
    CREATE OBJECT g_custom_container
      EXPORTING
        container_name              = 'CUSTOM_AREA'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.
    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.

    "now split the container into two independent containers
    CREATE OBJECT g_splitter_container
      EXPORTING
         parent            = g_custom_container
         rows              = 2   
         columns           = 1
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.
    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.

    "get top container 
    CALL METHOD g_splitter_container-&amp;gt;get_container
      EXPORTING
        row       = 1
        column    = 1
      RECEIVING
        container = g_top_container.

    "get bottom container for ALV grid
    CALL METHOD g_splitter_container-&amp;gt;get_container
      EXPORTING
        row       = 2
        column    = 1
      RECEIVING
        container = g_bottom_container.

    "create alv control instance placing it on the top container
    TRY.
      CALL METHOD cl_salv_table=&amp;gt;factory
       EXPORTING
          r_container    = g_top_container
      IMPORTING
          r_salv_table   = g_slav_table
     CHANGING
         t_table           =  "your_table_here
    .
    CATCH cx_salv_msg .
   ENDTRY.

"here you can use bottom container to place some ohter GUI control
...
&lt;/CODE&gt;&lt;/PRE&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, 10 Mar 2009 10:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348755#M1231735</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-03-10T10:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348756#M1231736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;I got the answer myself on what steps to follow to make the container splitter container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 10:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348756#M1231736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splitter Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348757#M1231737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Darpana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have a look at sample report &lt;STRONG&gt;ZUS_SDN_TWO_ALV_GRIDS&lt;/STRONG&gt; in thread &lt;SPAN __jive_macro_name="thread" id="384685"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;in order to see how to work with splitter containers.&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 11:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitter-container/m-p/5348757#M1231737</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-10T11:52:49Z</dc:date>
    </item>
  </channel>
</rss>

