<?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 PARENT_IS_SPLITTER - GUI Control Dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466791#M1416541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pressing a custom button in the ALV output (custom program) and getting a short dump with the title 'Exception condition "PARENT_IS_SPLITTER" raised'. This error is raised in a standard constructor CL_GUI_CONTROL. Code snippet from the dump is attached below. This error we got after upgraded the system from 4.6C to ECC6.0. Any help on this is much appreciated.                                                         .           &lt;/P&gt;&lt;P&gt;                                     &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA temp type ref to cl_gui_container.                             
    temp ?= parent.                                                                                
if not temp is initial.                                             
      if temp-&amp;gt;get_container_type( ) =                                  
           cl_gui_container=&amp;gt;CONTAINER_TYPE_SPLITTER                    
           or                                                           
         temp-&amp;gt;get_container_type( ) =                                  
                   cl_gui_container=&amp;gt;CONTAINER_TYPE_EASY_SPLITTER and   
                   clsid ne 'SAPGUI.SplitterCtrl.1' and                 
                   clsid ne 'com.sap.platin.cet.GuiSplitterShell'.      
* raise parent_is_splitter.    
      endif.                         
    endif.                           
                                     
    CALL METHOD ME-&amp;gt;INIT_CONTROL     
     EXPORTING                       
       CLSID      = CLSID            
       SHELLSTYLE = temp_SHELLSTYLE  
       LIFETIME   = LIFETIME         
       PARENT     = TEMP             
       LICENSEKEY = LICENSEKEY       
       autoalign = autoalign         
     EXCEPTIONS                      
       CNTL_ERROR        = 1         
       CNTL_SYSTEM_ERROR = 2         
       CREATE_ERROR      = 3         
       LIFETIME_ERROR    = 4         
       OTHERS            = 5.        
    CASE SY-SUBRC.                   


Custom Report Code:

 CREATE OBJECT f2400_grid_success "cl_gui_alv_grid
    EXPORTING
      i_parent          = f2400_g_split_container.

  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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please use code tags around your code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 13, 2010 12:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2010 17:15:03 GMT</pubDate>
    <dc:creator>former_member790357</dc:creator>
    <dc:date>2010-01-13T17:15:03Z</dc:date>
    <item>
      <title>PARENT_IS_SPLITTER - GUI Control Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466791#M1416541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pressing a custom button in the ALV output (custom program) and getting a short dump with the title 'Exception condition "PARENT_IS_SPLITTER" raised'. This error is raised in a standard constructor CL_GUI_CONTROL. Code snippet from the dump is attached below. This error we got after upgraded the system from 4.6C to ECC6.0. Any help on this is much appreciated.                                                         .           &lt;/P&gt;&lt;P&gt;                                     &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA temp type ref to cl_gui_container.                             
    temp ?= parent.                                                                                
if not temp is initial.                                             
      if temp-&amp;gt;get_container_type( ) =                                  
           cl_gui_container=&amp;gt;CONTAINER_TYPE_SPLITTER                    
           or                                                           
         temp-&amp;gt;get_container_type( ) =                                  
                   cl_gui_container=&amp;gt;CONTAINER_TYPE_EASY_SPLITTER and   
                   clsid ne 'SAPGUI.SplitterCtrl.1' and                 
                   clsid ne 'com.sap.platin.cet.GuiSplitterShell'.      
* raise parent_is_splitter.    
      endif.                         
    endif.                           
                                     
    CALL METHOD ME-&amp;gt;INIT_CONTROL     
     EXPORTING                       
       CLSID      = CLSID            
       SHELLSTYLE = temp_SHELLSTYLE  
       LIFETIME   = LIFETIME         
       PARENT     = TEMP             
       LICENSEKEY = LICENSEKEY       
       autoalign = autoalign         
     EXCEPTIONS                      
       CNTL_ERROR        = 1         
       CNTL_SYSTEM_ERROR = 2         
       CREATE_ERROR      = 3         
       LIFETIME_ERROR    = 4         
       OTHERS            = 5.        
    CASE SY-SUBRC.                   


Custom Report Code:

 CREATE OBJECT f2400_grid_success "cl_gui_alv_grid
    EXPORTING
      i_parent          = f2400_g_split_container.

  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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please use code tags around your code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 13, 2010 12:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 17:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466791#M1416541</guid>
      <dc:creator>former_member790357</dc:creator>
      <dc:date>2010-01-13T17:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: PARENT_IS_SPLITTER - GUI Control Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466792#M1416542</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;what type is f2400_g_split_container?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 17:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466792#M1416542</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2010-01-13T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: PARENT_IS_SPLITTER - GUI Control Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466793#M1416543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a quick example of object orders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: go_0210_spl TYPE REF TO cl_gui_splitter_container,
      go_0210_con TYPE REF TO cl_gui_container,
      go_0210_alv TYPE REF TO cl_gui_alv_grid.

  IF go_0210_spl IS INITIAL.
    " Create splitter to fill screen
    CREATE OBJECT go_0210_spl
      EXPORTING
        parent  = cl_gui_container=&amp;gt;default_screen
        rows    = 1
        columns = 1
        metric  = '0001'.

    " Set container as "cell" 1,1 of splitter
    go_0210_con = go_0210_spl-&amp;gt;get_container( row = 1 column = 1 ).
  ENDIF.

  " Create ALV in container
  IF go_0210_alv IS INITIAL.
    CREATE OBJECT go_0210_alv
      EXPORTING
        i_parent = go_0210_con.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 17:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466793#M1416543</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2010-01-13T17:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: PARENT_IS_SPLITTER - GUI Control Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466794#M1416544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;f2400_g_split_container type is cl_gui_splitter_container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Asokan Rajapandian on Jan 14, 2010 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 09:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466794#M1416544</guid>
      <dc:creator>former_member790357</dc:creator>
      <dc:date>2010-01-14T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: PARENT_IS_SPLITTER - GUI Control Dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466795#M1416545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the custom report code mentioned below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT f2400_g_custom "cl_gui_custom_container
    EXPORTING
      container_name              = 'Z24_SCR1300_CONTROL'
    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.

* Assign a splitter container to the custom container.

  CREATE OBJECT f2400_g_split_container "cl_gui_splitter_container
    EXPORTING
      parent            = f2400_g_custom "cl_gui_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.

* Assign grid containers to the splitter container.
*Short dump while executing below code
  CREATE OBJECT f2400_grid_success "cl_gui_alv_grid
    EXPORTING
      i_parent          = f2400_g_split_container "cl_gui_splitter_container.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 10:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parent-is-splitter-gui-control-dump/m-p/6466795#M1416545</guid>
      <dc:creator>former_member790357</dc:creator>
      <dc:date>2010-01-14T10:13:59Z</dc:date>
    </item>
  </channel>
</rss>

