<?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 reports using ABAP query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101685#M1183783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP query we have the output displat option as SAP List Viewer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 12:32:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T12:32:55Z</dc:date>
    <item>
      <title>Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101683#M1183781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed an ABAP query which prints the sales documents in ALV list display.&lt;/P&gt;&lt;P&gt;In that  list display I would do develop a functionality is , when ever i double click on the sales doc number it will directly go to the VA03 transaction for the corresponding VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody explain how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101683#M1183781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101684#M1183782</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; which alv function you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101684#M1183782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101685#M1183783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP query we have the output displat option as SAP List Viewer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101685#M1183783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101686#M1183784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi uoy can relate this code and tyr with your need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS: DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;    MESSAGE S400(00) WITH 'documentS' E_ROW.&lt;/P&gt;&lt;P&gt;    DATA : WA_DISPLAY LIKE LINE OF T_DISPLAY.&lt;/P&gt;&lt;P&gt;    IF E_COLUMN = 'BELNR'.&lt;/P&gt;&lt;P&gt;      READ TABLE T_DISPLAY INDEX E_ROW INTO WA_DISPLAY.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'BLN' FIELD WA_DISPLAY-BELNR.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'BUK' FIELD WA_DISPLAY-BUKRS.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'GJR' FIELD WA_DISPLAY-GJAHR.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101686#M1183784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101687#M1183785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAP query how can I add the code,as the program was generated automatically.&lt;/P&gt;&lt;P&gt;Can you please guide where exactly the code is to be added ( are any configuration is needed)  so that i can proceed further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101687#M1183785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101688#M1183786</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;Follow the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back to me if your query dosent solved&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;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101688#M1183786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101689#M1183787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 05:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101689#M1183787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T05:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive reports using ABAP query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101690#M1183788</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;When you double-click on any cell of alv, use this code to fetch the data of the line that you currently clicked, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on the ALV line, you will have sy-ucomm = &lt;STRONG&gt;'&amp;amp;IC1'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you define a &lt;STRONG&gt;i_callback_user_command&lt;/STRONG&gt; for the &lt;STRONG&gt;FM reuse_alv_list_display&lt;/STRONG&gt;,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;     i_callback_user_command           = 'COMMAND' " for User-Command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and create it as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
  DATA : ok_code TYPE sy-ucomm.
  ok_code = ucomm.
  CASE ok_code.
    WHEN '&amp;amp;IC1'. "for double click on alv line
      " your code
  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used &lt;STRONG&gt;selfield TYPE slis_selfield&lt;/STRONG&gt;, the field &lt;STRONG&gt;selfield&lt;/STRONG&gt; will hold all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know on which row you have clicked and to retain that line, use code:-&lt;/P&gt;&lt;P&gt;Suppose you are currently displaying data from internal table &lt;STRONG&gt;itab&lt;/STRONG&gt; and corresponding to it you have work area &lt;STRONG&gt;wa&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now to know the field name that you clicked, use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selfield-fieldname " will fetch you the name of field that you clicked
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE selfield-fieldname.
  WHEN 'VBELN'.
    SET PARAMETER ID 'AUN' FIELD &amp;lt;wa-vbeln&amp;gt;. "value for work area for vbeln
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&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;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 06:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reports-using-abap-query/m-p/5101690#M1183788</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-28T06:28:17Z</dc:date>
    </item>
  </channel>
</rss>

