<?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: Creating a Special Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893704#M53854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program RSDEMO_TABLE_CONTROL might also be of interest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2005 22:50:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-24T22:50:40Z</dc:date>
    <item>
      <title>Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893701#M53851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to learn how to create a report just like the one&lt;/P&gt;&lt;P&gt;that appears when you display or want to change the data&lt;/P&gt;&lt;P&gt;of a particular transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create that interface (the checkboxes at front, the format of the output, looks like a table format if doesn't ring the bell, and the bottoms in the task bar). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows how to do this and can send me an example using the flight model data.... I'll appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fidel Peralta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 14:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893701#M53851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893702#M53852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want to do a table control inside of a dynpro.  The table control wizard inside of screen painter will help you a lot.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 14:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893702#M53852</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-24T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893703#M53853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a very quick &amp;amp; dirty example of a table control.  You will need to create screen 100.  Use the table control wizard to create your table control.  Name the table control as ISPFLI_TC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

tables: spfli.

data: ispfli type table of spfli with header line.

data: ok_code type sy-ucomm,
      save_ok type sy-ucomm.

* this will be generated by tc wizard
controls: ispfli_tc type tableview using screen 0100.

start-of-selection.

  select * into corresponding fields of table ispfli
                from spfli.

  check sy-subrc = 0.

  call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
module status_0100 output.
  set pf-status '0100'.
*  SET TITLEBAR 'xxx'.

endmodule.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  ispfli_tc_change_tc_attr  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* this will be generated by tc wizard
module ispfli_tc_change_tc_attr output.
  describe table ispfli lines ispfli_tc-lines.
endmodule.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*

module user_command_0100 input.

  save_ok = ok_code.
  case ok_code.
    when 'BACK'.
      leave program.
  endcase.

endmodule.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow logic in the screen should be as follows, most of this is generated by the table control wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS BEFORE OUTPUT.
*&amp;amp;spwizard: pbo flow logic for tablecontrol 'ISPFLI_TC'
  module ISPFLI_TC_change_tc_attr.
*&amp;amp;spwizard: module ISPFLI_TC_change_col_attr.
  loop at   ISPFLI
       with control ISPFLI_TC
       cursor ISPFLI_TC-current_line.
*&amp;amp;spwizard:   module ISPFLI_TC_change_field_attr
  endloop.

 MODULE STATUS_0100.

PROCESS AFTER INPUT.
*&amp;amp;spwizard: pai flow logic for tablecontrol 'ISPFLI_TC'
  loop at ISPFLI.
    chain.
      field ISPFLI-CARRID.
      field ISPFLI-CONNID.
      field ISPFLI-COUNTRYFR.
      field ISPFLI-CITYFROM.
      field ISPFLI-AIRPFROM.
    endchain.
  endloop.
*&amp;amp;spwizard: module ISPFLI_TC_change_tc_attr.
*&amp;amp;spwizard: module ISPFLI_TC_change_col_attr.

 MODULE USER_COMMAND_0100.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 14:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893703#M53853</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-24T14:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893704#M53854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program RSDEMO_TABLE_CONTROL might also be of interest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2005 22:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893704#M53854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-24T22:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893705#M53855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but actually is not a table control what I want to learn how to do. is more like a subroutine that paint the boxes&lt;/P&gt;&lt;P&gt;and created check boxes. the menu path is:&lt;/P&gt;&lt;P&gt;data dictionary(display any table) -&amp;gt; utilities -&amp;gt; table&lt;/P&gt;&lt;P&gt;contents -&amp;gt; Display (and then execute ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not so sure, but I believe that is not a table control; is more like a Interface created with different subroutines. &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;Fidel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 12:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893705#M53855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T12:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893706#M53856</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;Do you want to create a selection-screen for the user to input search criteria to query data from database? If so, please take a look at SAP documentation for keywords like Parameters and Select-Options. If I have misumderstood the question, please elaborate your requirement in bit more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 13:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893706#M53856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893707#M53857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh,  that is a standard list display which in this case was generated thru classic ALV, I believe.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 14:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893707#M53857</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-25T14:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Special Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893708#M53858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample program which will show you how to do a standard list display via ALV.  This is a very simple example.  If you the user to interact with the list, it does get more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0004
       no standard page heading.

type-pools slis.

data: fieldcat type slis_t_fieldcat_alv.

data: begin of imara occurs 0,
      matnr type mara-matnr,
      maktx type makt-maktx,
      end of imara.

* Selection Screen
selection-screen begin of block b1 with frame title text-001 .
select-options: s_matnr for imara-matnr .
selection-screen end of block b1.

start-of-selection.

  perform get_data.
  perform write_report.


************************************************************************
*  Get_Data
************************************************************************
form get_data.

  select  mara~matnr makt~maktx
            into corresponding fields of table imara
              from mara
               inner join makt
                 on mara~matnr = makt~matnr
                    where mara~matnr in s_matnr
                      and makt~spras = sy-langu.

endform.

************************************************************************
*  WRITE_REPORT
************************************************************************
form write_report.

  data: fc_tmp type slis_t_fieldcat_alv with header line.
  clear: fieldcat. refresh: fieldcat.

  clear: fc_tmp.
  fc_tmp-reptext_ddic    = 'Material Number'.
  fc_tmp-fieldname  = 'MATNR'.
  fc_tmp-tabname   = 'IMARA'.
  fc_tmp-outputlen  = '18'.
  fc_tmp-col_pos    = 2.
  append fc_tmp to fieldcat.


  clear: fc_tmp.
  fc_tmp-reptext_ddic    = 'Material'.
  fc_tmp-fieldname  = 'MAKTX'.
  fc_tmp-tabname   = 'IMARA'.
  fc_tmp-outputlen  = '40'.
  fc_tmp-col_pos    = 3.
  append fc_tmp to fieldcat.

* CALL ABAP LIST VIEWER (ALV)
  call function 'REUSE_ALV_LIST_DISPLAY'
       exporting
            it_fieldcat = fieldcat
       tables
            t_outtab    = imara.

endform.

Regards,
Rich Heilman

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 14:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-special-report/m-p/893708#M53858</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-25T14:39:09Z</dc:date>
    </item>
  </channel>
</rss>

