<?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: OOPs alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482566#M837282</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;there is an example for the cl_gui_splitter_container some where i had used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separation line invisible (guess in this case it is also unmovable) &lt;/P&gt;&lt;P&gt;code CALL METHOD splitter-&amp;gt;set_column_sash&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = 1&lt;/P&gt;&lt;P&gt;type = cl_gui_splitter_container=&amp;gt;TYPE_SASHVISIBLE&lt;/P&gt;&lt;P&gt;value = cl_gui_splitter_container=&amp;gt;false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;RESULT = &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.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separation line visible yet unmovable &lt;/P&gt;&lt;P&gt;code CALL METHOD splitter-&amp;gt;set_column_sash&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = 1&lt;/P&gt;&lt;P&gt;type = cl_gui_splitter_container=&amp;gt;TYPE_MOVABLE&lt;/P&gt;&lt;P&gt;value = cl_gui_splitter_container=&amp;gt;false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;RESULT = &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.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here is the example for the docking container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the docking container into two parts, buttom is the text editor, the top is our toolbar, notice the only button there is Print, if you click this this will fire an event and will write out what you have typed into the text editor control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;dock_sub_cont1 type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;dock_sub_cont2 type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;splitter type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;dockingleft type ref to cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;text_editor type ref to cl_gui_textedit,&lt;/P&gt;&lt;P&gt;gui_tb type ref to cl_gui_toolbar,&lt;/P&gt;&lt;P&gt;repid type syrepid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itext type table of tline-tdline,&lt;/P&gt;&lt;P&gt;xtext type tline-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler DEFINITION &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;class lcl_event_handler definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handle_pushbutton_click&lt;/P&gt;&lt;P&gt;for event function_selected&lt;/P&gt;&lt;P&gt;of cl_gui_toolbar importing fcode.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;class lcl_event_handler implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method handle_pushbutton_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case fcode.&lt;/P&gt;&lt;P&gt;when 'PRINT'.&lt;/P&gt;&lt;P&gt;call method text_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;table = itext&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave to list-processing.&lt;/P&gt;&lt;P&gt;loop at itext into xtext.&lt;/P&gt;&lt;P&gt;write:/ xtext.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check dockingleft is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object dockingleft&lt;/P&gt;&lt;P&gt;exporting repid = repid&lt;/P&gt;&lt;P&gt;dynnr = sy-dynnr&lt;/P&gt;&lt;P&gt;side = dockingleft-&amp;gt;dock_at_left&lt;/P&gt;&lt;P&gt;extension = 1070.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object splitter&lt;/P&gt;&lt;P&gt;exporting parent = dockingleft&lt;/P&gt;&lt;P&gt;rows = 2&lt;/P&gt;&lt;P&gt;columns = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method:&lt;/P&gt;&lt;P&gt;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 = dock_sub_cont1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;splitter-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;exporting id = 1&lt;/P&gt;&lt;P&gt;height = '3',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;exporting row = 2&lt;/P&gt;&lt;P&gt;column = 1&lt;/P&gt;&lt;P&gt;receiving container = dock_sub_cont2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object text_editor&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = dock_sub_cont2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler:&lt;/P&gt;&lt;P&gt;lcl_event_handler=&amp;gt;handle_pushbutton_click for gui_tb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_toolbar * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;form create_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: event type cntl_simple_event,&lt;/P&gt;&lt;P&gt;events type cntl_simple_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the toolbar object &lt;/P&gt;&lt;P&gt;create object gui_tb&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = dock_sub_cont1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cntl_install_error = 1&lt;/P&gt;&lt;P&gt;cntl_error = 2&lt;/P&gt;&lt;P&gt;cntb_wrong_version = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up events for toolbar &lt;/P&gt;&lt;P&gt;clear event. refresh events.&lt;/P&gt;&lt;P&gt;event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;event-eventid = gui_tb-&amp;gt;m_id_function_selected.&lt;/P&gt;&lt;P&gt;append event to events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register the events &lt;/P&gt;&lt;P&gt;call method gui_tb-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;events = events&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;illegal_event_combination = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Buttons to toolbar &lt;/P&gt;&lt;P&gt;call method gui_tb-&amp;gt;add_button&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;fcode = 'PRINT'&lt;/P&gt;&lt;P&gt;icon = icon_print&lt;/P&gt;&lt;P&gt;butn_type = '0'&lt;/P&gt;&lt;P&gt;text = ' Print'&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cntl_error = 1&lt;/P&gt;&lt;P&gt;cntb_btype_error = 2&lt;/P&gt;&lt;P&gt;cntb_error_fcode = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the refresh table display check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/0a/b5531ed30911d2b467006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/0a/b5531ed30911d2b467006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Mar 2008 08:48:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-08T08:48:58Z</dc:date>
    <item>
      <title>OOPs alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482565#M837281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;iam new in OO ABAP. Please solve my doubts.  points will be rewarded for good answers.&lt;/P&gt;&lt;P&gt;1. what is the usage of cl_gui_splitter_container, cl_gui_docking_container? how is it different from custom contianers and in which situation we opt for those 2 containers.?&lt;/P&gt;&lt;P&gt;2. what is the use of refresh_table_display in oops alv? actually in what situation we will use it?&lt;/P&gt;&lt;P&gt;3. Can we use ONE container to display different lists? ie. if iam coding an interactive oops alv report, can i use the same container to display basic list and also secondary list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;padmashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 07:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482565#M837281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T07:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482566#M837282</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;there is an example for the cl_gui_splitter_container some where i had used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separation line invisible (guess in this case it is also unmovable) &lt;/P&gt;&lt;P&gt;code CALL METHOD splitter-&amp;gt;set_column_sash&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = 1&lt;/P&gt;&lt;P&gt;type = cl_gui_splitter_container=&amp;gt;TYPE_SASHVISIBLE&lt;/P&gt;&lt;P&gt;value = cl_gui_splitter_container=&amp;gt;false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;RESULT = &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.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separation line visible yet unmovable &lt;/P&gt;&lt;P&gt;code CALL METHOD splitter-&amp;gt;set_column_sash&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = 1&lt;/P&gt;&lt;P&gt;type = cl_gui_splitter_container=&amp;gt;TYPE_MOVABLE&lt;/P&gt;&lt;P&gt;value = cl_gui_splitter_container=&amp;gt;false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;RESULT = &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.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here is the example for the docking container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the docking container into two parts, buttom is the text editor, the top is our toolbar, notice the only button there is Print, if you click this this will fire an event and will write out what you have typed into the text editor control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;dock_sub_cont1 type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;dock_sub_cont2 type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;splitter type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;dockingleft type ref to cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;text_editor type ref to cl_gui_textedit,&lt;/P&gt;&lt;P&gt;gui_tb type ref to cl_gui_toolbar,&lt;/P&gt;&lt;P&gt;repid type syrepid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itext type table of tline-tdline,&lt;/P&gt;&lt;P&gt;xtext type tline-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler DEFINITION &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;class lcl_event_handler definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handle_pushbutton_click&lt;/P&gt;&lt;P&gt;for event function_selected&lt;/P&gt;&lt;P&gt;of cl_gui_toolbar importing fcode.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;class lcl_event_handler implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method handle_pushbutton_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case fcode.&lt;/P&gt;&lt;P&gt;when 'PRINT'.&lt;/P&gt;&lt;P&gt;call method text_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;table = itext&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave to list-processing.&lt;/P&gt;&lt;P&gt;loop at itext into xtext.&lt;/P&gt;&lt;P&gt;write:/ xtext.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check dockingleft is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object dockingleft&lt;/P&gt;&lt;P&gt;exporting repid = repid&lt;/P&gt;&lt;P&gt;dynnr = sy-dynnr&lt;/P&gt;&lt;P&gt;side = dockingleft-&amp;gt;dock_at_left&lt;/P&gt;&lt;P&gt;extension = 1070.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object splitter&lt;/P&gt;&lt;P&gt;exporting parent = dockingleft&lt;/P&gt;&lt;P&gt;rows = 2&lt;/P&gt;&lt;P&gt;columns = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method:&lt;/P&gt;&lt;P&gt;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 = dock_sub_cont1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;splitter-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;exporting id = 1&lt;/P&gt;&lt;P&gt;height = '3',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;splitter-&amp;gt;get_container&lt;/P&gt;&lt;P&gt;exporting row = 2&lt;/P&gt;&lt;P&gt;column = 1&lt;/P&gt;&lt;P&gt;receiving container = dock_sub_cont2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object text_editor&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = dock_sub_cont2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler:&lt;/P&gt;&lt;P&gt;lcl_event_handler=&amp;gt;handle_pushbutton_click for gui_tb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_toolbar * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ * &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;form create_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: event type cntl_simple_event,&lt;/P&gt;&lt;P&gt;events type cntl_simple_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the toolbar object &lt;/P&gt;&lt;P&gt;create object gui_tb&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = dock_sub_cont1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cntl_install_error = 1&lt;/P&gt;&lt;P&gt;cntl_error = 2&lt;/P&gt;&lt;P&gt;cntb_wrong_version = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up events for toolbar &lt;/P&gt;&lt;P&gt;clear event. refresh events.&lt;/P&gt;&lt;P&gt;event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;event-eventid = gui_tb-&amp;gt;m_id_function_selected.&lt;/P&gt;&lt;P&gt;append event to events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register the events &lt;/P&gt;&lt;P&gt;call method gui_tb-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;events = events&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;illegal_event_combination = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Buttons to toolbar &lt;/P&gt;&lt;P&gt;call method gui_tb-&amp;gt;add_button&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;fcode = 'PRINT'&lt;/P&gt;&lt;P&gt;icon = icon_print&lt;/P&gt;&lt;P&gt;butn_type = '0'&lt;/P&gt;&lt;P&gt;text = ' Print'&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cntl_error = 1&lt;/P&gt;&lt;P&gt;cntb_btype_error = 2&lt;/P&gt;&lt;P&gt;cntb_error_fcode = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the refresh table display check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/0a/b5531ed30911d2b467006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/0a/b5531ed30911d2b467006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 08:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482566#M837282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482567#M837283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide me some theoratical explanation too.!&lt;/P&gt;&lt;P&gt;and while designing in screen, should we use the same CUSTOM CONTAINER box icon for splitter and docking container?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2008 07:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482567#M837283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-09T07:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482568#M837284</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;  The below link will give you the brief idea about the usage of Splitter, Docking and Custom Container and the supported methods. With this we can find out the difference between these also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/f5/4f6e0d9f2511d295cc00a0c930660b/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/f5/4f6e0d9f2511d295cc00a0c930660b/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2008 07:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv/m-p/3482568#M837284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-09T07:22:19Z</dc:date>
    </item>
  </channel>
</rss>

