<?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: OOP report with Header section having Listboxs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795483#M912904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try to find this paper &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;An easy reference alv grid&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It explain all about the alv grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Jaime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 16:33:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T16:33:41Z</dc:date>
    <item>
      <title>OOP report with Header section having Listboxs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795480#M912901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create following report : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) There will be three fields on Header section of the report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Org, Distribution channel and Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Main body of the report will consist of Normal ALV grid having multiple columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) The header section (i.e Sales Org, Distribution channel and Division) should be having Listboxes for all three fields . &lt;/P&gt;&lt;P&gt;If user chooses some value from Sales Org. Listbox, main report body should change accordingly.(Similar requirement for rest of the two fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My solution is : to use OOP Splitter container which will split report horizantly in two sections :&lt;/P&gt;&lt;P&gt;1) Upper section (For Header info. Sales Org, dist channel and division) &lt;/P&gt;&lt;P&gt;2) Lower section consisting of report body (ALV Grid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how can I do this. &lt;/P&gt;&lt;P&gt;Regs &lt;/P&gt;&lt;P&gt;Tulip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 13:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795480#M912901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T13:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: OOP report with Header section having Listboxs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795481#M912902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tulip Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the following code is helpful for the spliting of the container &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CONTAINER_NAME              = CONTAINER&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.                                         "#EC NEEDED&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT SPLIT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PARENT            = CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;      ORIENTATION       = 0&lt;/P&gt;&lt;P&gt;      SASH_POSITION     = 15&lt;/P&gt;&lt;P&gt;      WITH_BORDER       = 1&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.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.                                         "#EC NEEDED&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Perform field catalog for the screen 100&lt;/P&gt;&lt;P&gt;  CREATE OBJECT GRID&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_PARENT          = CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ERROR_CNTL_CREATE = 1&lt;/P&gt;&lt;P&gt;      ERROR_CNTL_INIT   = 2&lt;/P&gt;&lt;P&gt;      ERROR_CNTL_LINK   = 3&lt;/P&gt;&lt;P&gt;      ERROR_DP_CREATE   = 4&lt;/P&gt;&lt;P&gt;      OTHERS            = 5.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.                                         "#EC NEEDED&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM F003_FIELDCAT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Create an instance of alv control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT GRID&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_PARENT = SPLIT-&amp;gt;BOTTOM_RIGHT_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Object for display of selection parameters in HTML top container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT HEADER&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      STYLE = 'ALV_GRID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add Text For Header to the Report&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_GAP&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      WIDTH = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT         = TEXT-016&lt;/P&gt;&lt;P&gt;      SAP_EMPHASIS = TEXT-017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;NEW_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_GAP&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      WIDTH = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT = TEXT-022.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE SY-DATUM DD/MM/YYYY TO TEXT01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT         = TEXT01&lt;/P&gt;&lt;P&gt;      SAP_EMPHASIS = TEXT-017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;NEW_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Number of Selected employees&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_GAP&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      WIDTH = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT = TEXT-019.&lt;/P&gt;&lt;P&gt;  COUNT = COUNT - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE COUNT  TO TEXT01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT         = TEXT01&lt;/P&gt;&lt;P&gt;      SAP_EMPHASIS = TEXT-017.&lt;/P&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;NEW_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Number of selected cost centers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF KOSTLTXT EQ 'X'.&lt;/P&gt;&lt;P&gt;    CALL METHOD HEADER-&amp;gt;ADD_GAP&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        WIDTH = 1.&lt;/P&gt;&lt;P&gt;    CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TEXT = TEXT-020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE STAT-KOSTL TO TEXT01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD HEADER-&amp;gt;ADD_TEXT&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TEXT         = TEXT01&lt;/P&gt;&lt;P&gt;        SAP_EMPHASIS = TEXT-017.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD HEADER-&amp;gt;DISPLAY_DOCUMENT&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PARENT = SPLIT-&amp;gt;TOP_LEFT_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the Lower section  of the report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First based on the input in the upper section of the body pass the respective table to the ALV. Capture the data in seperate internal tables in the code and based on selection pass to ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 04:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795481#M912902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T04:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: OOP report with Header section having Listboxs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795482#M912903</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;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you plz, give me a &lt;STRONG&gt;Working code&lt;/STRONG&gt; (may be with a simple exemple of a couple of fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be highly obliged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regs&lt;/P&gt;&lt;P&gt;Tulip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795482#M912903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: OOP report with Header section having Listboxs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795483#M912904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try to find this paper &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;An easy reference alv grid&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It explain all about the alv grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Jaime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 16:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-report-with-header-section-having-listboxs/m-p/3795483#M912904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T16:33:41Z</dc:date>
    </item>
  </channel>
</rss>

