<?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 Interactive Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921949#M1148467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my output screen i have 10 fields with 100 entries.&lt;/P&gt;&lt;P&gt;When user click on first field it should go to one transaction and if user click on second field thenit should go on some other t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to read to entire row on which user click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is how to identify on which field the user has clicked and how to read that complete row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Sachin yadav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Dec 2008 08:02:08 GMT</pubDate>
    <dc:creator>sachin_yadav3</dc:creator>
    <dc:date>2008-12-13T08:02:08Z</dc:date>
    <item>
      <title>Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921949#M1148467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my output screen i have 10 fields with 100 entries.&lt;/P&gt;&lt;P&gt;When user click on first field it should go to one transaction and if user click on second field thenit should go on some other t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to read to entire row on which user click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is how to identify on which field the user has clicked and how to read that complete row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Sachin yadav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2008 08:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921949#M1148467</guid>
      <dc:creator>sachin_yadav3</dc:creator>
      <dc:date>2008-12-13T08:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921950#M1148468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; my problem is how to identify on which field the user has clicked and how to read that complete row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read with System Field:&lt;/P&gt;&lt;P&gt;SYLISEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for Calling the transaction from Selected line data. just search in SCN with terms Set parameter ID,and call transaction skip first screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2008 08:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921950#M1148468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-13T08:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921951#M1148469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin Yadav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, use the code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : fieldnam(25),
       fieldval(25).

START-OF-SELECTION.
"select query into the internal table

AT LINE-SELECTION.
 GET CURSOR FIELD fieldnam VALUE fieldval. " these fields will retain values for the field name and value
 CASE fieldnam.
   WHEN 'FIELD1'. "when user clicks at column1
     "code
   WHEN 'FIELD2'. "when user clicks at column2 
     "code
   WHEN OTHERS.
     "error message say invalid field name or invalid command
 ENDCASE.

END-OF-SELECTION.
 loop at itab. "internal table
  "write records on to screen.
   hide : itab-field1. "say if you want this field to perform some further actions
   "this value will be retained when ever you use this field in program after double-click on any row
 endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to read a complete line when user double clicks at any row, you can use system field &lt;STRONG&gt;'SY-LISEL'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT LINE-SELECTION.
 WINDOW STARTING AT 10 4
        ENDING   AT 77 12.
 WRITE : / SY-LISEL. "this will write the contents of line double clicked by the user
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2008 08:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921951#M1148469</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-13T08:23: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/4921952#M1148470</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;&lt;/P&gt;&lt;P&gt;Refer to this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If want to read entire row on which user click.You need to give the check box to fetch the selected record. Please check the above link for this. Check the system field too SY-LISEL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calling different tcode depending on the value selected..please check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZKA51151 .&lt;/P&gt;&lt;P&gt;TABLES : SCARR.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_CARRID FOR SCARR-CARRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_SCARR LIKE SCARR OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       IT_SPFLI LIKE SPFLI OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : CF1(15),&lt;/P&gt;&lt;P&gt;L_CARRID LIKE SCARR-CARRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD CF1 VALUE L_CARRID.&lt;/P&gt;&lt;P&gt;  SY-LSIND = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call Transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF CF1 EQ 'IT_SCARR-CARRID'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Call Transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ELSEIF CF1 EQ 'IT_SCARR-CURRCODE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Call Transaction&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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT * FROM SCARR&lt;/P&gt;&lt;P&gt;  INTO TABLE IT_SCARR&lt;/P&gt;&lt;P&gt;  WHERE CARRID IN S_CARRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT IT_SCARR[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT * FROM SPFLI&lt;/P&gt;&lt;P&gt;    INTO TABLE IT_SPFLI&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN IT_SCARR&lt;/P&gt;&lt;P&gt;    WHERE CARRID EQ IT_SCARR-CARRID.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT IT_SPFLI BY CARRID.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_SCARR.&lt;/P&gt;&lt;P&gt;    HIDE : IT_SCARR-CARRID,IT_SCARR-CARRNAME,IT_SCARR-CURRCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE : / IT_SCARR-CARRID, IT_SCARR-CARRNAME, IT_SCARR-CURRCODE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2008 08:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4921952#M1148470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-13T08:30:52Z</dc:date>
    </item>
  </channel>
</rss>

