<?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/5005701#M1165429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I assume that you want to restrict the interaction to a particular field or particular line.&lt;/P&gt;&lt;P&gt;If I'm right, then&lt;/P&gt;&lt;P&gt;Here assume that the filed you want to click is of a wor area 'wa_tab' and field name id 'field1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT LINE-SELECTION.
 GET CURSOR FIELD w_field. "A variable
 CASE w_field.
     WHEN 'WA_TAB-FIELD1'.
     "Take to the next report
 ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2009 08:37:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-07T08:37:03Z</dc:date>
    <item>
      <title>Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005700#M1165428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;I have developed one interactive report .In my basic list when I click  any line(not any field) it is taking to next level report.But it should not go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In between each record I put one line in my basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to control this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aany tips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 08:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005700#M1165428</guid>
      <dc:creator>jaheer_hussain</dc:creator>
      <dc:date>2009-01-07T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005701#M1165429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I assume that you want to restrict the interaction to a particular field or particular line.&lt;/P&gt;&lt;P&gt;If I'm right, then&lt;/P&gt;&lt;P&gt;Here assume that the filed you want to click is of a wor area 'wa_tab' and field name id 'field1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT LINE-SELECTION.
 GET CURSOR FIELD w_field. "A variable
 CASE w_field.
     WHEN 'WA_TAB-FIELD1'.
     "Take to the next report
 ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 08:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005701#M1165429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T08:37: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/5005702#M1165430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in your User Command for the value that is returned when the User double clicks.&lt;/P&gt;&lt;P&gt;You could validate it. You will also have the type of line clicked. Check the parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 08:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005702#M1165430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T08:39: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/5005703#M1165431</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;Check the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: int TYPE i,
      rspar LIKE rsparams OCCURS 10 WITH HEADER LINE.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
/ '--------------------'.
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2',
/ 'Selection 3',
/ 'Selection 4'.

AT LINE-SELECTION.
  CASE sy-lilli.
    WHEN 4.
      CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
    WHEN 5.
      CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
    WHEN6.
      CALL TRANSACTION 'MM01' AND SKIP FIRST SCREEN.
      ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 08:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005703#M1165431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005704#M1165432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code:-&lt;/P&gt;&lt;P&gt;Declare:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA :  FLDNAME(25),
        FLDVALUE(25).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;'AT LINE-SELECTION'&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT LINE-SELECTION.

  GET CURSOR FIELD FLDNAME VALUE FLDVALUE.

  CASE FLDNAME.
    WHEN &amp;lt;field1_name&amp;gt; or &amp;lt;field2_name&amp;gt;.
      "process further list

    WHEN OTHERS.
      "display error message

  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you click on any line GET CURSOR will retail the values of field_name and field_value in the used variables and the case the field_name, so that only valid entry by-pass to the next level of information.&lt;/P&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>Wed, 07 Jan 2009 08:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005704#M1165432</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-07T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005705#M1165433</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;    u r problem is when u click on a particular field it should go to next level,for that one better option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is  to display report output using  'REUSE_ALV_GRID_DISPLAY'  put hotspot option for the field for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which u want to provide interactive&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;USE &lt;STRONG&gt;HIDE fIELD1&lt;/STRONG&gt; OPTION AFTER WRITE statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sateesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 08:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005705#M1165433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005706#M1165434</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;Let me explain my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             Report title&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;404000&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;405000&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my basic list.  When I click 404000, it should go to next  report. But I click report title, it is going to next level report.But my requirement is it should not go next level report when I click report title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clears...&lt;/P&gt;&lt;P&gt;Jaheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005706#M1165434</guid>
      <dc:creator>jaheer_hussain</dc:creator>
      <dc:date>2009-01-07T09:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005707#M1165435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;refer to this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA :val(18) TYPE c.

DATA: BEGIN OF i_mara OCCURS 0,
      matnr(18) TYPE c,
      ernam LIKE mara-ernam,
      mtart LIKE mara-mtart,
      meins LIKE mara-meins,
      END OF i_mara.

DATA : BEGIN OF i_makt OCCURS 0,
       matnr(18) TYPE c,
       maktx LIKE makt-maktx,
       END OF i_makt.

DATA: BEGIN OF i_marc OCCURS 0,
      matnr(18) TYPE c,
      werks LIKE marc-werks,
      ekgrp LIKE marc-ekgrp,
      END OF i_marc.

DATA v1 LIKE i_mara-matnr.
*selection screen layout.

SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS s_matnr FOR mara-matnr.
SELECTION-SCREEN END OF BLOCK blk1.

START-OF-SELECTION.

  SELECT matnr ernam mtart meins
  FROM mara
  INTO CORRESPONDING FIELDS OF i_mara
  WHERE matnr IN s_matnr.
    APPEND i_mara.
    CLEAR  i_mara.
  ENDSELECT.

  LOOP AT i_mara.

    SELECT matnr maktx
    FROM makt
    INTO CORRESPONDING FIELDS OF i_makt
    WHERE matnr = i_mara-matnr.
      APPEND i_makt.
      CLEAR i_makt.

    ENDSELECT.
  ENDLOOP.

  WRITE:/1'Material Number',
         20 'Name',
         45 'Material type',
         73 'Unit'.

  LOOP AT i_mara.
    WRITE:/1 i_mara-matnr,
           20 i_mara-ernam,
           45 i_mara-mtart,
           73 i_mara-meins.
  ENDLOOP.
 CLEAR : i_mara, i_makt.

AT LINE-SELECTION.

if sy-lsind = 1.

GET CURSOR VALUE val.
      LOOP AT i_makt WHERE matnr = val.
        WRITE:/ i_makt-matnr,
                i_makt-maktx.

      ENDLOOP.
else.
........
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/5005707#M1165435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:42:40Z</dc:date>
    </item>
  </channel>
</rss>

