<?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: Title for multiple container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103255#M1972855</link>
    <description>&lt;P&gt;TL;DR (excerpt of &lt;A href="https://answers.sap.com/users/451287/alhanouf94.html"&gt;Alhanouf Alolayt&lt;/A&gt; answer)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gr_display = gr_salv_table-&amp;gt;get_display_settings( ).
gr_display-&amp;gt;set_list_header( 'Balance Confirmation Comments' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;cf screenshot in &lt;A href="https://answers.sap.com/users/451287/alhanouf94.html"&gt;Alhanouf Alolayt&lt;/A&gt; answer&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 19:33:34 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-10-21T19:33:34Z</dc:date>
    <item>
      <title>Title for multiple container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103251#M1972851</link>
      <description>&lt;P&gt;I have a splitter container that generates 4 alv report &lt;/P&gt;
  &lt;P&gt;i need to add title above each alv report like attached file down (green layout)&lt;/P&gt;
  &lt;P&gt;down is my code and pic of output of my report &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739042-capture2.png" /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;MODULE status_9000 OUTPUT.

 
  SET PF-STATUS 'COLLECTION_SYSTEM'.
  SET TITLEBAR 'COLLECTION_SYSTEM'.


  CREATE OBJECT container
    EXPORTING
      container_name = 'CONTAINER'."Pass name of container created in Screen no 9000


*splitting the main container into 1 row &amp;amp; 2 coloum
  CREATE OBJECT splitter_1
    EXPORTING
      parent  = container
      rows    = 1
      columns = 2.


*getting the reference for the splited container (row 1 &amp;amp; col 1 container)
  CALL METHOD splitter_1-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = container_1.


*splitting the 1nd coloum container in to 2 rows &amp;amp; 1 coloum*
  CREATE OBJECT splitter_3
    EXPORTING
      parent  = container_1
      rows    = 2
      columns = 1.


*getting the reference for the splited container (row 1 &amp;amp; col 2 container)
  CALL METHOD splitter_3-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = container_1.

*getting the reference for the splited container (row 1 &amp;amp; col 2 container)
  CALL METHOD splitter_3-&amp;gt;get_container
    EXPORTING
      row       = 2
      column    = 1
    RECEIVING
      container = container_4.




*getting the reference for the splited container (row 1 &amp;amp; col 2 container)
  CALL METHOD splitter_1-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 2
    RECEIVING
      container = container_2.


*splitting the 2nd coloum container in to 2 rows &amp;amp; 1 coloum*
  CREATE ObJECT splitter_2
    EXPORTING
      parent  = container_2
      rows    = 2
      columns = 1.


*getting the reference for the splited container2 (row 1 &amp;amp; col 2 container)*
  CALL METHOD splitter_2-&amp;gt;get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = container_2.

*getting the reference for the splited container2 (row 2 &amp;amp; col 1 container)
  CALL METHOD splitter_2-&amp;gt;get_container
    EXPORTING
      row       = 2
      column    = 1
    RECEIVING
      container = container_3.



*POPULATING THE FIELD CATALOG.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'KUNNR'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'KUNNR'.
  wa_fcat-col_pos = 1.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'PLAN_DATE'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'PLAN_DATE'.
  wa_fcat-col_pos = 2.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'ACTUAL_DATE'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'ACTUAL_DATE'.
  wa_fcat-col_pos = 3.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'WEEK'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'WEEK'.
  wa_fcat-col_pos = 4.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'CODE'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'CODE'.
  wa_fcat-col_pos = 5.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'ZCOMMENT'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'ZCOMMENT'.
  wa_fcat-col_pos = 6.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.
  wa_fcat-fieldname = 'HOMEWORK'.
  wa_fcat-ref_table = 'ZSD_CBALANCE'.
  wa_fcat-ref_field = 'HOMEWORK'.
  wa_fcat-col_pos = 7.
  APPEND wa_fcat TO t_fcat.
  CLEAR wa_fcat.


*populating first internal table to the container
  CREATE OBJECT container
    EXPORTING
      container_name = g_container.
  CREATE OBJECT grid1
    EXPORTING
      i_parent = container_1.
  CALL METHOD grid1-&amp;gt;set_table_for_first_display
*    EXPORTING
*       it_fieldcatalog = 'ZSD_CBALANCE'
    CHANGING
       it_fieldcatalog = t_fcat
      it_outtab        = it_zsd_cbalance .

*populating second internal table
  CREATE OBJECT container
    EXPORTING
      container_name = g_container.
  CREATE OBJECT grid2
    EXPORTING
      i_parent = container_2.
  CALL METHOD grid2-&amp;gt;set_table_for_first_display
*    EXPORTING
*      i_structure_name = 'ZSD_CBALANCE'
    CHANGING
       it_fieldcatalog = t_fcat
      it_outtab        = it_zsd_cbalance .
*populating third internal table
  CREATE OBJECT container
    EXPORTING
      container_name = g_container.
  CREATE OBJECT grid3
    EXPORTING
      i_parent = container_3.
  CALL METHOD grid3-&amp;gt;set_table_for_first_display
*    EXPORTING
*      i_structure_name = 'ZSD_CBALANCE'
    CHANGING
      it_fieldcatalog = t_fcat
      it_outtab        = it_zsd_cbalance .
*populating fourth internal table
  CREATE OBJECT grid4
    EXPORTING
      i_parent = container_4.
  CALL METHOD grid4-&amp;gt;set_table_for_first_display
*    EXPORTING
*      i_structure_name = 'ZSD_CBALANCE'
    CHANGING
      it_fieldcatalog = t_fcat
      it_outtab        = it_zsd_cbalance .
endmoudle.
   &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 05:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103251#M1972851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-21T05:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Title for multiple container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103252#M1972852</link>
      <description>&lt;P&gt;this is how i'm expecting my output with header&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739044-capture.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103252#M1972852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-21T06:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Title for multiple container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103253#M1972853</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;


  CREATE OBJECT container

    EXPORTING

      container_name = 'CONTAINER'."Pass name of container created in Screen no 9000





*splitting the main container into 1 row &amp;amp; 2 coloum

  CREATE OBJECT splitter_1

    EXPORTING

      parent  = container

      rows    = 1

      columns = 2.









*getting the reference for the splited container (row 1 &amp;amp; col 1 container)

  CALL METHOD splitter_1-&amp;gt;get_container

    EXPORTING

      row       = 1

      column    = 1

    RECEIVING

      container = container_1.







*splitting the 1nd coloum container in to 2 rows &amp;amp; 1 coloum*

  CREATE OBJECT splitter_3

    EXPORTING

      parent  = container_1

      rows    = 2

      columns = 1.



*getting the reference for the splited container (row 1 &amp;amp; col 2 container)

  CALL METHOD splitter_3-&amp;gt;get_container

    EXPORTING

      row       = 1

      column    = 1

    RECEIVING

      container = container_1.





*getting the reference for the splited container (row 1 &amp;amp; col 2 container)

  CALL METHOD splitter_3-&amp;gt;get_container

    EXPORTING

      row       = 2

      column    = 1

    RECEIVING

      container = container_4.







*getting the reference for the splited container (row 1 &amp;amp; col 2 container)

  CALL METHOD splitter_1-&amp;gt;get_container

    EXPORTING

      row       = 1

      column    = 2

    RECEIVING

      container = container_2.







*splitting the 2nd coloum container in to 2 rows &amp;amp; 1 coloum*

  CREATE OBJECT splitter_2

    EXPORTING

      parent  = container_2

      rows    = 2

      columns = 1.



*getting the reference for the splited container2 (row 1 &amp;amp; col 2 container)*

  CALL METHOD splitter_2-&amp;gt;get_container

    EXPORTING

      row       = 1

      column    = 1

    RECEIVING

      container = container_2.

*getting the reference for the splited container2 (row 2 &amp;amp; col 1 container)

  CALL METHOD splitter_2-&amp;gt;get_container

    EXPORTING

      row       = 2

      column    = 1

    RECEIVING

      container = container_3.







  cl_salv_table=&amp;gt;factory(

EXPORTING

r_container = container_1

IMPORTING

r_salv_table = gr_table

CHANGING

t_table = it_zsd_cbalance

).



  cl_salv_table=&amp;gt;factory(

EXPORTING

r_container = container_2

IMPORTING

r_salv_table = gr_table1

CHANGING

t_table = it_zsd_cbalance

).



  cl_salv_table=&amp;gt;factory(

EXPORTING

r_container = container_4

IMPORTING

r_salv_table = gr_table2

CHANGING

t_table = it_ZSD_GENERAL_COMM

).



  cl_salv_table=&amp;gt;factory(

EXPORTING

r_container = container_3

IMPORTING

r_salv_table = gr_table3

CHANGING

t_table = it_zsd_cbalance

).


  "Titre 1

  gr_function = gr_table-&amp;gt;get_functions( ).

  gr_function-&amp;gt;set_all( abap_true ).

  gr_columns = gr_table-&amp;gt;get_columns( ).

  gr_columns-&amp;gt;set_optimize( c_col_x ).

  MOVE 'Balance Confirmation Comments' TO g_title.

  gr_display = gr_table-&amp;gt;get_display_settings( ).

  gr_display-&amp;gt;set_striped_pattern( if_salv_c_bool_sap=&amp;gt;true ).

  gr_display-&amp;gt;set_list_header( g_title ).

  CALL METHOD gr_table-&amp;gt;display.

  gr_function = gr_table1-&amp;gt;get_functions( ).

  gr_function-&amp;gt;set_all( abap_true ).

  gr_columns = gr_table1-&amp;gt;get_columns( ).

  gr_columns-&amp;gt;set_optimize( c_col_x ).



  "Title 2

  MOVE 'Missing Document Comments' TO g_title.

  gr_display = gr_table1-&amp;gt;get_display_settings( ).

  gr_display-&amp;gt;set_striped_pattern( if_salv_c_bool_sap=&amp;gt;true ).

  gr_display-&amp;gt;set_list_header( g_title ).

  CALL METHOD gr_table1-&amp;gt;display.

  gr_function = gr_table2-&amp;gt;get_functions( ).

  gr_function-&amp;gt;set_all( abap_true ).

  gr_columns = gr_table2-&amp;gt;get_columns( ).

  gr_columns-&amp;gt;set_optimize( c_col_x ).



  "Titre 3

  MOVE 'General Comments ' TO g_title.

  gr_display = gr_table2-&amp;gt;get_display_settings( ).

  gr_display-&amp;gt;set_striped_pattern( if_salv_c_bool_sap=&amp;gt;true ).

  gr_display-&amp;gt;set_list_header( g_title ).

  CALL METHOD gr_table2-&amp;gt;display.

  gr_function = gr_table3-&amp;gt;get_functions( ).

  gr_function-&amp;gt;set_all( abap_true ).

  gr_columns = gr_table3-&amp;gt;get_columns( ).

  gr_columns-&amp;gt;set_optimize( c_col_x ).



  "Titre



  MOVE 'Title4' TO g_title.

  gr_display = gr_table3-&amp;gt;get_display_settings( ).

  gr_display-&amp;gt;set_striped_pattern( if_salv_c_bool_sap=&amp;gt;true ).

  gr_display-&amp;gt;set_list_header( g_title ).

  CALL METHOD gr_table3-&amp;gt;display.









ENDMODULE.                 " STATUS_9000  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103253#M1972853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-21T06:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Title for multiple container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103254#M1972854</link>
      <description>&lt;P&gt;solved ,,,&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739046-capture3.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103254#M1972854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-21T06:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Title for multiple container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103255#M1972855</link>
      <description>&lt;P&gt;TL;DR (excerpt of &lt;A href="https://answers.sap.com/users/451287/alhanouf94.html"&gt;Alhanouf Alolayt&lt;/A&gt; answer)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gr_display = gr_salv_table-&amp;gt;get_display_settings( ).
gr_display-&amp;gt;set_list_header( 'Balance Confirmation Comments' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;cf screenshot in &lt;A href="https://answers.sap.com/users/451287/alhanouf94.html"&gt;Alhanouf Alolayt&lt;/A&gt; answer&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/title-for-multiple-container/m-p/12103255#M1972855</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-10-21T19:33:34Z</dc:date>
    </item>
  </channel>
</rss>

