<?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/4274902#M1019923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.&lt;/P&gt;&lt;P&gt;wa_field-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_alv.
 
TYPE-POOLS:slis.
DATA:it_fieldcat  TYPE  slis_t_fieldcat_alv,
     wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
       vbeln TYPE likp-vbeln,
      END OF it_likp.
DATA: layout TYPE slis_layout_alv.
 
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
 
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
 
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program      = sy-repid
    is_layout               = layout
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat             = it_fieldcat
  TABLES
    t_outtab                = it_likp
  EXCEPTIONS
    program_error           = 1.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_Command
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command USING ucomm TYPE sy-ucomm
                    selfield TYPE slis_selfield.
  CASE ucomm.
 
    WHEN '&amp;amp;IC1'.
 
      SET PARAMETER ID 'VL'  FIELD selfield-value.
      CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
  ENDCASE.
 
ENDFORM.                    "user_Command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 10:28:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T10:28:58Z</dc:date>
    <item>
      <title>Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274899#M1019920</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;Need your help in solving an issue, I am working on an interactive report and the output is getting displayed in the form on an ALV report.&lt;/P&gt;&lt;P&gt;I need to know how to navigate and to move to another tcode(CV03N) from the output . In the Output I am having both the feilds which are mandatory for the Tcode CV03N ( the fields are Document and Document type). In the code i used &lt;/P&gt;&lt;P&gt;IF R_UCOMM EQ '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;    CASE RS_SELFIELD-FIELDNAME.&lt;/P&gt;&lt;P&gt;      WHEN 'DOKNR'.&lt;/P&gt;&lt;P&gt;        READ TABLE IT_BATCH INDEX RS_SELFIELD-TABINDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'CV1' FIELD IT_BATCH-DOKNR. "doc number&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'CV2' FIELD IT_BATCH-DOKAR. "doc type&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'CV4' FIELD IT_BATCH-DOKTL. "doc part&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'CV3' FIELD IT_BATCH-DOKVR. "version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'CV03N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest what needs to be done so that i can navigate by clicking on the document in the report output to the Tcode CV03N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 10:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274899#M1019920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274900#M1019921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;get the parameter ids from the table TPARA for all the tcodes and set them correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/to-call-transaction-in-alv.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/to-call-transaction-in-alv.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 10:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274900#M1019921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274901#M1019922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dolly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use the syntax: get cursor field field1.&lt;/P&gt;&lt;P&gt;  if field1 = 'docnum'.&lt;/P&gt;&lt;P&gt;  set parameter id:&lt;/P&gt;&lt;P&gt;  call transaction 'TRANS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 10:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274901#M1019922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T10:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274902#M1019923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.&lt;/P&gt;&lt;P&gt;wa_field-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_alv.
 
TYPE-POOLS:slis.
DATA:it_fieldcat  TYPE  slis_t_fieldcat_alv,
     wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
       vbeln TYPE likp-vbeln,
      END OF it_likp.
DATA: layout TYPE slis_layout_alv.
 
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
 
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
 
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program      = sy-repid
    is_layout               = layout
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat             = it_fieldcat
  TABLES
    t_outtab                = it_likp
  EXCEPTIONS
    program_error           = 1.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_Command
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command USING ucomm TYPE sy-ucomm
                    selfield TYPE slis_selfield.
  CASE ucomm.
 
    WHEN '&amp;amp;IC1'.
 
      SET PARAMETER ID 'VL'  FIELD selfield-value.
      CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
  ENDCASE.
 
ENDFORM.                    "user_Command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 10:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/4274902#M1019923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T10:28:58Z</dc:date>
    </item>
  </channel>
</rss>

