<?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: Classical Report Expand-Collapse functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393026#M814720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only part of the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2008 09:44:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-11T09:44:30Z</dc:date>
    <item>
      <title>Classical Report Expand-Collapse functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393023#M814717</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 am doing a program that displays a classical report as an output.  It has buttons on the top of the output (using Menu Painter) and it has "Expand" and "Collapse" buttons.  I do not know how to implement this expand and collapse functionality.  Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output of the report looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant: &amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant: &amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on "Expand" button, the output will look like the one above.  When I click on "Collapse" button, the output will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant: &amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;Plant: &amp;lt;data&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me achieve this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 06:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393023#M814717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T06:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Classical Report Expand-Collapse functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393024#M814718</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;Try this sample code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF itab OCCURS 0,
       state   TYPE char20,
       city    TYPE char18,
       flag,
       END   OF itab.
DATA   disptab LIKE itab OCCURS 0.
DATA   sel_lin TYPE char20.
START-OF-SELECTION.
  itab-state = 'Tamil Nadu'.
  itab-city  = 'Chennai'.
  APPEND itab.
  itab-state = 'Tamil Nadu'.
  itab-city  = 'Coimbatore'.
  APPEND itab.
  itab-state = 'West Bengal'.
  itab-city  = 'Kolkata'.
  APPEND itab.
  itab-state = 'West Bengal'.
  itab-city  = 'Durgapur'.
  APPEND itab.
END-OF-SELECTION.
  LOOP AT itab.
    AT NEW state.
      WRITE /3 itab-state COLOR 4 HOTSPOT.
    ENDAT.
  ENDLOOP.
AT LINE-SELECTION.
  MOVE sy-lisel+2(20) TO sel_lin.
  LOOP AT itab.
    AT NEW state.
      WRITE /3 itab-state COLOR 4 HOTSPOT.
    ENDAT.
    IF itab-flag &amp;lt;&amp;gt; 'X'.
      IF itab-state = sel_lin.
        itab-flag = 'X'.
      ENDIF.
    ELSE.
      IF itab-state = sel_lin.
        itab-flag = ' '.
      ENDIF.
    ENDIF.
    IF itab-flag = 'X'.
      WRITE /5 itab-city  COLOR 2.
    ENDIF.
    MODIFY itab.
    CLEAR itab.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 08:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393024#M814718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Classical Report Expand-Collapse functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393025#M814719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jose!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you provided solved the problem I encountered involving the hotspots that I will use in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I still need help regarding the "Expand" and "Collapse" pushbuttons that I created using Menu Painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functionality of the pushbuttons is that if I press "Expand", all the objects that are in collapse mode will be expanded.  If "Collapse" button is pressed, all objects in expand mode will be collapsed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me in solving this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393025#M814719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Classical Report Expand-Collapse functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393026#M814720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only part of the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393026#M814720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Classical Report Expand-Collapse functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393027#M814721</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;PRE&gt;&lt;CODE&gt;AT USER-COMMAND.
 read CURRENT LINE line value into wa.
  CASE sy-ucomm.
    WHEN 'EXPAND' .

    WHEN 'COLLAPSE'.

  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 12:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report-expand-collapse-functionality/m-p/3393027#M814721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T12:41:22Z</dc:date>
    </item>
  </channel>
</rss>

