<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834081#M355196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; create a new container in your screen layout.&lt;/P&gt;&lt;P&gt;arrange the two containers side by side .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer first table contents to first container &lt;/P&gt;&lt;P&gt;using set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; assign a grid object to the second container .&lt;/P&gt;&lt;P&gt; for this grid object call 'set_table_for_first_display' &lt;/P&gt;&lt;P&gt;with data from second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2007 10:39:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-18T10:39:16Z</dc:date>
    <item>
      <title>alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834075#M355190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I have a little problem and I don&amp;#146;t see it I have alv  and I wont to display on screen 2 tables on the same time . in screen 100 layout I copy the container and I call it con1 and con 2 the problem is when I run the program I see just con1 and In the screen i have con2 but a empty blue square what I doing wrong thankes &lt;/P&gt;&lt;P&gt;I do this declaration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE pbo OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MAIN100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;    EXPORTING container_name = 'CON1'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT grid1&lt;/P&gt;&lt;P&gt;    EXPORTING i_parent = g_custom_container.&lt;/P&gt;&lt;P&gt;    gs_layout-grid_title = text-001.&lt;/P&gt;&lt;P&gt;    CALL METHOD grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_structure_name = 'YHR_GET_EMP_COURSE_STR'&lt;/P&gt;&lt;P&gt;        is_layout        = gs_layout&lt;/P&gt;&lt;P&gt;        is_variant       = variant&lt;/P&gt;&lt;P&gt;        i_save           = 'A'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab        = itab_final.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_custom_container1 IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container1&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;EXPORTING container_name = 'CON2'.&amp;lt;/b&amp;gt;    CREATE OBJECT grid2&lt;/P&gt;&lt;P&gt;    EXPORTING i_parent = g_custom_container1.&lt;/P&gt;&lt;P&gt;    gs_layout-grid_title = text-002.&lt;/P&gt;&lt;P&gt;    CALL METHOD grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_structure_name = 'YHR_GET_EMP_DONT_COURSE'&lt;/P&gt;&lt;P&gt;        is_layout        = gs_layout1&lt;/P&gt;&lt;P&gt;        is_variant       = variant1&lt;/P&gt;&lt;P&gt;        i_save           = 'A'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab        = it_final.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;     con1 TYPE  REF TO cl_gui_custom_container,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    g_container scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     con2 TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  g_container1  scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT2',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    grid1  TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;    grid2  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;    g_custom_container1 TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;    gs_layout   TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;    gs_layout1   TYPE lvc_s_layo .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834075#M355190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834076#M355191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio , &lt;/P&gt;&lt;P&gt;  Insted of using two custom containers , use only one and then use splitters .&lt;/P&gt;&lt;P&gt;What splitter does is it splits your container into the number of parts you want and each one acts as a saperate container and the rest process is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834076#M355191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834077#M355192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi arun how i do that mybe u can give me example regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834077#M355192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834078#M355193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code&lt;/P&gt;&lt;P&gt;the splitter is of type CL_GUI_SPLITTER_CONTAINER&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*" Map the container on the screen
IF G_C_CONTAINER IS INITIAL.
* Create the container
  CREATE OBJECT G_C_CONTAINER
    EXPORTING
*      PARENT                      =
      CONTAINER_NAME              = 'C_CONTAINER'
*      STYLE                       =
*      LIFETIME                    = lifetime_default
*      REPID                       =
*      DYNNR                       =
*      NO_AUTODEF_PROGID_DYNNR     =
*    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.


*" Split the container into 2 parts , look at the value for parameters row and column
CREATE OBJECT G_C_SPLITTER
  EXPORTING
*    LINK_DYNNR        =
*    LINK_REPID        =
*    SHELLSTYLE        =
*    LEFT              =
*    TOP               =
*    WIDTH             =
*    HEIGHT            =
*    METRIC            = cntl_metric_dynpro
*    ALIGN             = 15
    PARENT            = G_C_CONTAINER
    ROWS              = 2
    COLUMNS           = 1
*    NO_AUTODEF_PROGID_DYNNR =
*    NAME              =
*  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 the reference to the first container 
CALL METHOD G_C_SPLITTER-&amp;gt;GET_CONTAINER
  EXPORTING
    ROW       = 1
    COLUMN    = 1
  RECEIVING
    CONTAINER = G_C_CONTAINER1  " This is of type CL_GUI_CONTAINER
    .


* " Rest of coding is the same.
CREATE OBJECT G_C_GRID
  EXPORTING
*    I_SHELLSTYLE      = 0
*    I_LIFETIME        =
    I_PARENT          =  G_C_CONTAINER1
*    I_APPL_EVENTS     = space
*    I_PARENTDBG       =
*    I_APPLOGPARENT    =
*    I_GRAPHICSPARENT  =
*    I_USE_VARIANT_CLASS = SPACE
*    I_NAME            =
*  EXCEPTIONS
*    ERROR_CNTL_CREATE = 1
*    ERROR_CNTL_INIT   = 2
*    ERROR_CNTL_LINK   = 3
*    ERROR_DP_CREATE   = 4
*    others            = 5
    .
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;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;For the other part of the container use the command&lt;/P&gt;&lt;P&gt;*" Get the reference to the first container &lt;/P&gt;&lt;P&gt;CALL METHOD G_C_SPLITTER-&amp;gt;GET_CONTAINER&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ROW       = 2&lt;/P&gt;&lt;P&gt;    COLUMN    = 1&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    CONTAINER = G_C_CONTAINER2  " This is of type CL_GUI_CONTAINER&lt;/P&gt;&lt;P&gt;and then use G_C_CONTAINER2  to display the second alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do revert back if you have any further questions&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834078#M355193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834079#M355194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_custom_container1 IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_custom_container1&lt;/P&gt;&lt;P&gt;EXPORTING container_name = 'CON2'. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CREATE OBJECT grid2&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;EXPORTING i_parent = g_custom_container1.&lt;/P&gt;&lt;P&gt;gs_layout-grid_title = text-002.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL METHOD grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'YHR_GET_EMP_DONT_COURSE'&lt;/P&gt;&lt;P&gt;is_layout = gs_layout1&lt;/P&gt;&lt;P&gt;is_variant = variant1&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = it_final.&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;change it to,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid2-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'YHR_GET_EMP_DONT_COURSE'&lt;/P&gt;&lt;P&gt;is_layout = gs_layout1&lt;/P&gt;&lt;P&gt;is_variant = variant1&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can use splitter container , that would be better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834079#M355194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834080#M355195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antanio , &lt;/P&gt;&lt;P&gt;  Was just looking through your code and saw a flaw  , in both the cases you are displying the ALV using the grid grid1 , which is created with ref to the container g_custom_container. &lt;/P&gt;&lt;P&gt;Create a new object for grid , say grid2 with the parent as g_custom_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would solve your problem , if you do not want to use splitters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834080#M355195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834081#M355196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; create a new container in your screen layout.&lt;/P&gt;&lt;P&gt;arrange the two containers side by side .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer first table contents to first container &lt;/P&gt;&lt;P&gt;using set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; assign a grid object to the second container .&lt;/P&gt;&lt;P&gt; for this grid object call 'set_table_for_first_display' &lt;/P&gt;&lt;P&gt;with data from second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834081#M355196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: alv problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834082#M355197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kasi u can give an example for that regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 11:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/1834082#M355197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T11:02:39Z</dc:date>
    </item>
  </channel>
</rss>

