<?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: ALV container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059656#M724686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the steps which are below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) declare reference variables for the ALV grid control and the container. &lt;/P&gt;&lt;P&gt;DATA: grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      G_custom_container TYPE REF TO    	cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      Gt_sflight TYPE TABLE OF sflight. (Output table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) the SAP custom container allows you to display controls in an area defined on a normal screen using the screen painter.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_CUSTOM_CONTAINER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) in the PBO module of the screen, you must now instantiate the container control and the ALV grid control. By doing this, you create a link between the container control and the screen, using the container created in the screen painter. &lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;       Exporting &lt;/P&gt;&lt;P&gt;          Container_name = 'ccontainer'.                   		(As declared on screen)&lt;/P&gt;&lt;P&gt;    Create object grid1&lt;/P&gt;&lt;P&gt;       Exporting&lt;/P&gt;&lt;P&gt;         I_PARENT = g_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) pass the output table and the structure data to the ALV grid control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;             Exporting i_structure_name = 'sflight'&lt;/P&gt;&lt;P&gt;             CHANGING IT_OUTTAB = gt_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the structure data is provided through the data dictionary. The ALV grid control gets the field information from table SFLIGHT and displays all fields of the table. GT_SFLIGHT is the output table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 09:50:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-27T09:50:15Z</dc:date>
    <item>
      <title>ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059651#M724681</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 need information regarding ALV containers.&lt;/P&gt;&lt;P&gt;Please help me if i can get material regarding this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059651#M724681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059652#M724682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are five kinds of SAP Containers:&lt;/P&gt;&lt;P&gt;1.The SAP Custom Container allows you to display controls in an area defined on a normal&lt;/P&gt;&lt;P&gt;screen using the Screen Painter.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;2. The SAP Dialog Box container allows you to display controls in an amodal dialog box or&lt;/P&gt;&lt;P&gt;fullscreen.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_DIALOGBOX_CONTAINER&lt;/P&gt;&lt;P&gt;3. The SAP Docking Container allows you to attach a control to any of the four edges of a screen as a resizable screen area. You can also detach it so that it becomes an independent amodal dialog box.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_DOCKING_CONTAINER&lt;/P&gt;&lt;P&gt;4. The SAP Splitter Container allows you to display more than one control in a given area by dividing it into cells.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_SPLITTER_CONTAINER&lt;/P&gt;&lt;P&gt;5. The SAP Easy Splitter Container allows you to divide an area into two cells with a control in each. The cells are separated by a moveable splitter bar.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_EASY_SPLITTER_CONTAINER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. DATA: alv TYPE scrfname VALUE 'ALV',&lt;/P&gt;&lt;P&gt;obj_c_container_alv TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;obj_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;CREATE OBJECT obj_c_container_alv&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;container_name = alv&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF obj_grid IS INITIAL. &lt;/P&gt;&lt;P&gt;CREATE OBJECT obj_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = obj_c_container_alv. &lt;/P&gt;&lt;P&gt;3. CREATE OBJECT w_docking_container&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ratio = 95&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;others = 6. &lt;/P&gt;&lt;P&gt;CREATE OBJECT w_alv_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = w_docking_container. &lt;/P&gt;&lt;P&gt;4. CREATE OBJECT obj_c_container_alv&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;container_name = alv&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF obj_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT v_split&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent =&lt;/P&gt;&lt;P&gt;obj_c_container_alv&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;left = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;top = 300&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;width = 400&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;height = 200&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;rows = 2&lt;/P&gt;&lt;P&gt;columns = 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ORIENTATION = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sash_position = 25&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with_border = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set row height for row 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD v_split-&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 = 40.&lt;/P&gt;&lt;P&gt;5. CREATE OBJECT obj_c_container_alv&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;container_name = alv&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF obj_grid IS INITIAL. &lt;/P&gt;&lt;P&gt;CREATE OBJECT v_split&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = obj_c_container_alv&lt;/P&gt;&lt;P&gt;ORIENTATION = 0&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sash_position = 25&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with_border = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the containers of the splitter control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_contnr_top = v_split-&amp;gt;top_left_container.&lt;/P&gt;&lt;P&gt;v_contnr_bot = v_split-&amp;gt;bottom_right_container. &lt;/P&gt;&lt;P&gt;CREATE OBJECT obj_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = obj_c_container_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/" target="test_blank"&gt;http://www.allsaplinks.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/" target="test_blank"&gt;http://www.sapgenie.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com" target="test_blank"&gt;http://www.sapgenie.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/controls/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/controls/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf" target="test_blank"&gt;http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Custom Container &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the SAP Custom Container to build a control into an area on a screen or subscreen. You define the area occupied by the control in the Screen Painter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default size of the control that you place in the Custom Container is the same as that of the container itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you can include a control in a Custom Container, you must define the area that the container will occupy. You do this in the Screen Painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/64/9e7759068011d294f000a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/64/9e7759068011d294f000a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the above link gives the procedure to create a container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Jus go thro the following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/7f/485382045211d294ed00a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/7f/485382045211d294ed00a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/83/7a1901de6e11d195460000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/83/7a1901de6e11d195460000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e9/635fa6e01e11d195490000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e9/635fa6e01e11d195490000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="47" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059652#M724682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059653#M724683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the link -&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059653#M724683</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-11-27T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059654#M724684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very simple program to understand about using containers in ALV Programs!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZND_ALVFIRST .


data: okcode like sy-ucomm,
      t_mara type standard table of mara,
      custom1 type ref to cl_gui_custom_container,
      grid1 type ref to cl_gui_alv_grid.




start-of-selection.
set screen '0100'.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.

case okcode.

when 'EXIT'.
set screen '0'.
endcase.

ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*

MODULE STATUS_0100 OUTPUT.

CREATE OBJECT CUSTOM1
  EXPORTING
    CONTAINER_NAME              = 'MYCUSTOM'.

CREATE OBJECT GRID1
  EXPORTING

    I_PARENT          = custom1.


perform loaddata.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  loaddata
*&amp;amp;---------------------------------------------------------------------*

FORM loaddata.


select * from mara into table t_mara.

CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
 EXPORTING

   I_STRUCTURE_NAME              = 'mara'

  CHANGING
    IT_OUTTAB                     = t_mara

        .
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.

ENDFORM.                    " loaddata&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Naveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059654#M724684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059655#M724685</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;&lt;/P&gt;&lt;P&gt;    Goto SE38 and give BCALV* and press F4, it will display list of all the sap stadard alv container reports.  Refer that.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059655#M724685</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-27T09:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059656#M724686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the steps which are below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) declare reference variables for the ALV grid control and the container. &lt;/P&gt;&lt;P&gt;DATA: grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      G_custom_container TYPE REF TO    	cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      Gt_sflight TYPE TABLE OF sflight. (Output table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) the SAP custom container allows you to display controls in an area defined on a normal screen using the screen painter.&lt;/P&gt;&lt;P&gt;Class: CL_GUI_CUSTOM_CONTAINER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) in the PBO module of the screen, you must now instantiate the container control and the ALV grid control. By doing this, you create a link between the container control and the screen, using the container created in the screen painter. &lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;       Exporting &lt;/P&gt;&lt;P&gt;          Container_name = 'ccontainer'.                   		(As declared on screen)&lt;/P&gt;&lt;P&gt;    Create object grid1&lt;/P&gt;&lt;P&gt;       Exporting&lt;/P&gt;&lt;P&gt;         I_PARENT = g_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) pass the output table and the structure data to the ALV grid control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;             Exporting i_structure_name = 'sflight'&lt;/P&gt;&lt;P&gt;             CHANGING IT_OUTTAB = gt_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the structure data is provided through the data dictionary. The ALV grid control gets the field information from table SFLIGHT and displays all fields of the table. GT_SFLIGHT is the output table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059656#M724686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059657#M724687</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;Check out this link&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-container/m-p/3059657#M724687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:50:33Z</dc:date>
    </item>
  </channel>
</rss>

