<?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: Interactive Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395688#M1405470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT USER COMMAND instead of AT LINE SELECTION, you have to create a PF status &amp;amp; create a button on TOOLBAR or salect any function from menu. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR else if you have to continue with AT LINE SELECTION, before using this you have to hide the records which you want to display. &amp;amp; then later display then on double click, using AT LINE SELECTION EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer a sample code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: zreaders.
DATA: BEGIN OF itab OCCURS 1,
       readerid LIKE zreaders-readerid,
      firstname LIKE zreaders-firstname,
      lastname LIKE zreaders-lastname,
      deposit LIKE zreaders-deposit,
      END OF itab,
      itab1 LIKE zreaders OCCURS 1 WITH HEADER LINE.

SELECT * FROM zreaders INTO CORRESPONDING FIELDS OF TABLE itab.
SORT itab BY readerid.
LOOP AT itab.
WRITE:/ icon_calculation AS ICON, itab-firstname.
*--Here if i dont hide when i double click i will get the last record 
*--o/p because it will show header record
HIDE itab-readerid.
ENDLOOP.


AT LINE-SELECTION.
LOOP AT itab where readerid = itab-readerid.
WRITE:icon_calculation AS ICON, itab-firstname.
WRITE: /4 'Deposit of',itab-firstname,itab-lastname,':', itab-deposit,
'Rupees'.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly set to resolved if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 07:53:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-20T07:53:55Z</dc:date>
    <item>
      <title>Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395685#M1405467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My program is &lt;/P&gt;&lt;P&gt;Write:/9 'City', /9&lt;/P&gt;&lt;P&gt;         'Description', /9&lt;/P&gt;&lt;P&gt;         'District'.&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;     WHEN 'City'.&lt;/P&gt;&lt;P&gt;     WRITE: 'CITY'.&lt;/P&gt;&lt;P&gt;     WHEN 'Description'.&lt;/P&gt;&lt;P&gt;     WRITE: 'DESCRIPTION'.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am double clicking on city i am expecting only city to display in my secondary list&lt;/P&gt;&lt;P&gt;and when i double click on description only description has to display.&lt;/P&gt;&lt;P&gt;But when i am doble clicking on City or description it is displaying City Description.&lt;/P&gt;&lt;P&gt;How to rectify this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 07:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395685#M1405467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395686#M1405468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;insted of AT LINE SELECTION  use AT USER COMMAND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 07:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395686#M1405468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T07:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395687#M1405469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried it with At- user-command too but no use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 07:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395687#M1405469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T07:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395688#M1405470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT USER COMMAND instead of AT LINE SELECTION, you have to create a PF status &amp;amp; create a button on TOOLBAR or salect any function from menu. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR else if you have to continue with AT LINE SELECTION, before using this you have to hide the records which you want to display. &amp;amp; then later display then on double click, using AT LINE SELECTION EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer a sample code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: zreaders.
DATA: BEGIN OF itab OCCURS 1,
       readerid LIKE zreaders-readerid,
      firstname LIKE zreaders-firstname,
      lastname LIKE zreaders-lastname,
      deposit LIKE zreaders-deposit,
      END OF itab,
      itab1 LIKE zreaders OCCURS 1 WITH HEADER LINE.

SELECT * FROM zreaders INTO CORRESPONDING FIELDS OF TABLE itab.
SORT itab BY readerid.
LOOP AT itab.
WRITE:/ icon_calculation AS ICON, itab-firstname.
*--Here if i dont hide when i double click i will get the last record 
*--o/p because it will show header record
HIDE itab-readerid.
ENDLOOP.


AT LINE-SELECTION.
LOOP AT itab where readerid = itab-readerid.
WRITE:icon_calculation AS ICON, itab-firstname.
WRITE: /4 'Deposit of',itab-firstname,itab-lastname,':', itab-deposit,
'Rupees'.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly set to resolved if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 07:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395688#M1405470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T07:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395689#M1405471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use get cursor field in at line selection and then based on teh field clicked get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD fldname VALUE fldval.&lt;/P&gt;&lt;P&gt;CONDENSE fldname.&lt;/P&gt;&lt;P&gt;CONDENSE fldval.&lt;/P&gt;&lt;P&gt;WRITE : / 'You have clicked ', fldname, ' &amp;amp; its value is ', fldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR LINE l_linea.&lt;/P&gt;&lt;P&gt;READ TABLE itab_bsik_v INDEX l_linea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 08:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395689#M1405471</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-20T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395690#M1405472</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 giving the Function Codes in capitals ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;STRONG&gt;AT LINE SELECTION&lt;/STRONG&gt; is not working &lt;/P&gt;&lt;P&gt;then try using &lt;STRONG&gt;AT USER COMMAND&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 08:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395690#M1405472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395691#M1405473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all thks for your answers.&lt;/P&gt;&lt;P&gt;Issue solved and the correct one is&lt;/P&gt;&lt;P&gt;Write:/ 'City', /&lt;/P&gt;&lt;P&gt;         'Description'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT line-selection.&lt;/P&gt;&lt;P&gt;CASE syst-LISEL.&lt;/P&gt;&lt;P&gt;     WHEN city.&lt;/P&gt;&lt;P&gt;     WRITE: 'CITY'.&lt;/P&gt;&lt;P&gt;     WHEN 'Description'.&lt;/P&gt;&lt;P&gt;     WRITE: 'DESCRIPTION'.&lt;/P&gt;&lt;P&gt;ENDCASE.&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;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 09:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/6395691#M1405473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T09:55:42Z</dc:date>
    </item>
  </channel>
</rss>

