<?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: problem with splitter!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365304#M523660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of a container using a splitter.  I hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ec457c4-0a01-0010-2bbc-c6e03a4a03d2" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ec457c4-0a01-0010-2bbc-c6e03a4a03d2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 19:55:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T19:55:01Z</dc:date>
    <item>
      <title>problem with splitter!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365302#M523658</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 written a program to display 2 grids on a screen using splitter. the code is shown below. it has no errors but does not show anything but 2 boxes. in one box i am displaying the contents of table 'kna1' and in the other i am not displaying anything. can someone tell me please what is wrong with the code and y it is not working ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;pushpa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables kna1.&lt;/P&gt;&lt;P&gt;data: BEGIN OF itkna1 OCCURS 0,&lt;/P&gt;&lt;P&gt;             ktokd like kna1-ktokd,&lt;/P&gt;&lt;P&gt;             kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;             name1 like kna1-name1,&lt;/P&gt;&lt;P&gt;             name2 like kna1-name2,&lt;/P&gt;&lt;P&gt;             ktokd_hdl type int4,&lt;/P&gt;&lt;P&gt;       END OF itkna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data splitter type ref to cl_gui_splitter_container.&lt;/P&gt;&lt;P&gt;data container type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;data container_1 type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;data container_2 type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;data grid_1 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;data grid_2 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;data i_layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;data i_fcat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data init.&lt;/P&gt;&lt;P&gt;data ok_code type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ktokd kunnr name1 name2 from kna1 into CORRESPONDING FIELDS OF TABLE itkna1&lt;/P&gt;&lt;P&gt;             where ktokd = 'ZCRM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;P&gt;  set pf-STATUS 'STATUS'.&lt;/P&gt;&lt;P&gt;  if init is INITIAL.&lt;/P&gt;&lt;P&gt;    create OBJECT container&lt;/P&gt;&lt;P&gt;                EXPORTING container_name = 'CUSTOM'.&lt;/P&gt;&lt;P&gt;    create OBJECT splitter&lt;/P&gt;&lt;P&gt;                EXPORTING parent = container&lt;/P&gt;&lt;P&gt;                          rows = 1&lt;/P&gt;&lt;P&gt;                          columns = 2.&lt;/P&gt;&lt;P&gt;    call METHOD splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;                EXPORTING row = 1&lt;/P&gt;&lt;P&gt;                          column = 1&lt;/P&gt;&lt;P&gt;                RECEIVING container = container_1.&lt;/P&gt;&lt;P&gt;    call METHOD splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;                EXPORTING row = 1&lt;/P&gt;&lt;P&gt;                          column = 2&lt;/P&gt;&lt;P&gt;                RECEIVING container = container_2.&lt;/P&gt;&lt;P&gt;    create OBJECT grid_1 EXPORTING i_parent = container_1.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT grid_2 EXPORTING i_parent = container_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call METHOD grid_1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          is_layout = i_layout&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          it_outtab = itkna1[]&lt;/P&gt;&lt;P&gt;          it_fieldcatalog = i_fcat&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;          others = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;module exit INPUT.&lt;/P&gt;&lt;P&gt;  call METHOD container-&amp;gt;free.&lt;/P&gt;&lt;P&gt;  leave PROGRAM.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 19:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365302#M523658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with splitter!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365303#M523659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that you are not filling your field catalog,  i_fcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 19:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365303#M523659</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with splitter!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365304#M523660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of a container using a splitter.  I hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ec457c4-0a01-0010-2bbc-c6e03a4a03d2" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ec457c4-0a01-0010-2bbc-c6e03a4a03d2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 19:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365304#M523660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with splitter!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365305#M523661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you modify your program like so, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


tables kna1.
data: begin of itkna1 occurs 0,
ktokd like kna1-ktokd,
kunnr like kna1-kunnr,
name1 like kna1-name1,
name2 like kna1-name2,
ktokd_hdl type int4,
end of itkna1.


data splitter type ref to cl_gui_splitter_container.
data container type ref to cl_gui_custom_container.
data container_1 type ref to cl_gui_container.
data container_2 type ref to cl_gui_container.
data grid_1 type ref to cl_gui_alv_grid.
data grid_2 type ref to cl_gui_alv_grid.
data i_layout type lvc_s_layo.
data i_fcat type lvc_t_fcat.

data init.
data ok_code type sy-ucomm.

select ktokd kunnr name1 name2 from kna1 into corresponding fields of
table itkna1
*where ktokd = 'ZCRM'.
  up to 100 rows.

call screen 100.

*---------------------------------------------------------------------*
*       MODULE status_0100 OUTPUT                                     *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
module status_0100 output.
  set pf-status 'STATUS'.
  if init is initial.
    create object container
    exporting container_name = 'CUSTOM'.
    create object splitter
    exporting parent = container
    rows = 1
    columns = 2.
    call method splitter-&amp;gt;get_container
    exporting row = 1
    column = 1
    receiving container = container_1.
    call method splitter-&amp;gt;get_container
    exporting row = 1
    column = 2
    receiving container = container_2.
    create object grid_1 exporting i_parent = container_1.
    create object grid_2 exporting i_parent = container_2.

    perform get_fieldcatalog..

    call method grid_1-&amp;gt;set_table_for_first_display
    exporting
    is_layout = i_layout
    changing
    it_outtab = itkna1[]
    it_fieldcatalog = i_fcat
    exceptions
    invalid_parameter_combination = 1
    others = 2.


  endif.
endmodule.
*---------------------------------------------------------------------*
*       MODULE exit INPUT                                             *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
module exit input.
  call method container-&amp;gt;free.
  leave program.
endmodule.

************************************************************************
*      Form  Get_Fieldcatalog - Set Up Columns/Headers
************************************************************************
form get_fieldcatalog.

  data: ls_fcat type lvc_s_fcat.
  refresh: i_fcat.

  clear: ls_fcat.
  ls_fcat-reptext    = 'Customer Account Group'.
  ls_fcat-fieldname  = 'KTOKD'.
  ls_fcat-ref_table  = 'ITKNA1'.
  ls_fcat-outputlen  = '4'.
  append ls_fcat to i_fcat.

  clear: ls_fcat.
  ls_fcat-reptext    = 'Customer'.
  ls_fcat-fieldname  = 'KUNNR'.
  ls_fcat-ref_table  = 'ITKNA1'.
  ls_fcat-outputlen  = '10'.
  append ls_fcat to i_fcat.

  clear: ls_fcat.
  ls_fcat-reptext    = 'Customer Name'.
  ls_fcat-fieldname  = 'NAME1'.
  ls_fcat-ref_table  = 'ITKNA1'.
  ls_fcat-outputlen  = '20'.
  append ls_fcat to i_fcat.


  clear: ls_fcat.
  ls_fcat-reptext    = 'Customer Name'.
  ls_fcat-fieldname  = 'NAME2'.
  ls_fcat-ref_table  = 'ITKNA1'.
  ls_fcat-outputlen  = '20'.
  append ls_fcat to i_fcat.

  clear: ls_fcat.
  ls_fcat-reptext    = 'Customer Account Group'.
  ls_fcat-fieldname  = 'KTOKD_HDL'.
  ls_fcat-ref_table  = 'ITKNA1'.
  ls_fcat-outputlen  = '4'.
  append ls_fcat to i_fcat.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 19:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365305#M523661</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with splitter!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365306#M523662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u Rich and April, the program is working correctly now...:)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 20:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-splitter/m-p/2365306#M523662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T20:14:22Z</dc:date>
    </item>
  </channel>
</rss>

