<?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 diff b/w ALV and Classical reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519573#M846504</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; what re the equalent events in ALV? which we have in general reports? &lt;/P&gt;&lt;P&gt;  and steps to write an ALV report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top-of-page =&lt;/P&gt;&lt;P&gt;end-of-page =&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 in advance,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 14:14:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T14:14:40Z</dc:date>
    <item>
      <title>diff b/w ALV and Classical reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519573#M846504</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; what re the equalent events in ALV? which we have in general reports? &lt;/P&gt;&lt;P&gt;  and steps to write an ALV report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top-of-page =&lt;/P&gt;&lt;P&gt;end-of-page =&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 in advance,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 14:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519573#M846504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w ALV and Classical reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519574#M846505</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;*the alv is a functionality provided within abap which can enchance reports in r/3 system.&lt;/P&gt;&lt;P&gt;(or) simple way to display the reports in orderly manner.&lt;/P&gt;&lt;P&gt;*it is a in built function.&lt;/P&gt;&lt;P&gt;*alv is a set of functional module which are added to the abap program code.&lt;/P&gt;&lt;P&gt;advantages:&lt;/P&gt;&lt;P&gt;*saves time that is spent in enchancing reports.&lt;/P&gt;&lt;P&gt;*provides uniform user interface&lt;/P&gt;&lt;P&gt;1.header of the column.&lt;/P&gt;&lt;P&gt;2.colors which correspond to indented 'key' info.&lt;/P&gt;&lt;P&gt;steps in alv:&lt;/P&gt;&lt;P&gt;1.declare data areas for list viewer(type-pools:slis)&lt;/P&gt;&lt;P&gt;2.declare internal table to store selected data.&lt;/P&gt;&lt;P&gt;3.select data into int table.&lt;/P&gt;&lt;P&gt;4.build fieldcatalog.&lt;/P&gt;&lt;P&gt;5.build sortcatlog.&lt;/P&gt;&lt;P&gt;6.build eventcatalog.&lt;/P&gt;&lt;P&gt;7.start abap list viewer (ctrl+f6)&lt;/P&gt;&lt;P&gt;8.call back events.&lt;/P&gt;&lt;P&gt;the report output can contain upto 90 columns in the display with the wide array of display options.&lt;/P&gt;&lt;P&gt;common alv functions used are&lt;/P&gt;&lt;P&gt;reuse_alv_list_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_grid_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_variant_default_get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_variant_f4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_commentary_write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_variant_existence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_fieldcatalog_merge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_popup_to_select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reuse_alv_events_get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 type of reports. They are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interactive report &lt;/P&gt;&lt;P&gt;Classic reports &lt;/P&gt;&lt;P&gt;In classic reports,we can see the output in single list where as in interactive reports we can see the output in multiple list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AnswerEdit section&lt;/P&gt;&lt;P&gt;In ABAP, there are a total of 7 types of reports. They are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical &lt;/P&gt;&lt;P&gt;Interactive &lt;/P&gt;&lt;P&gt;Logical Database &lt;/P&gt;&lt;P&gt;ABAP query &lt;/P&gt;&lt;P&gt;ALV Reports (ALV stands for ABAP List Viewer) &lt;/P&gt;&lt;P&gt;Report Writer/Report Painter &lt;/P&gt;&lt;P&gt;Views (There are different types of views also) &lt;/P&gt;&lt;P&gt;Classical ReportsEdit section&lt;/P&gt;&lt;P&gt;These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT. &lt;/P&gt;&lt;P&gt;Events In Classical Reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTIALIZATION: This event triggers before selection screen display. &lt;/P&gt;&lt;P&gt;AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode. &lt;/P&gt;&lt;P&gt;START OF SELECTION: Start of selection screen triggers after proceesing selection screen. &lt;/P&gt;&lt;P&gt;END-OF-SELECTION : It is for Logical Database Reporting. &lt;/P&gt;&lt;P&gt;Interactive ReportsEdit section&lt;/P&gt;&lt;P&gt;As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events associated with Interactive Reports are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION &lt;/P&gt;&lt;P&gt;AT USER-COMMAND &lt;/P&gt;&lt;P&gt;AT PF&amp;lt;key&amp;gt; &lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION. &lt;/P&gt;&lt;P&gt;HIDE statement holds the data to be displayed in the secondary list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-lisel : contains data of the selected line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-lsind : contains the level of report (from 0 to 21) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interactive Report Events: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist. &lt;/P&gt;&lt;P&gt;AT PFn: For predefined function keys... &lt;/P&gt;&lt;P&gt;AT USER-COMMAND : It provides user functions keys. &lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list. &lt;/P&gt;&lt;P&gt;Logical Database ReportsEdit section&lt;/P&gt;&lt;P&gt;Logical database is another tool for ABAP reports. Using LDB we can provide extra features for ABAP reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using LDB there is no need for us to declare Parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection-screen as they will be generated automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to use the statement NODES in ABAP report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are many tables the Performance will be slow as all the table data will be read from top node to bottom node . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Query ReportsEdit section&lt;/P&gt;&lt;P&gt;ABAP query is another tool for ABAP. It provides efficency for ABAP reports. These reports are very accurate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction Code : SQ01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report WriterEdit section&lt;/P&gt;&lt;P&gt;Key Concept : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Super users and end users can use Report Painter/Report Writer tools to write their own reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving them the ability to report on additional fields at their discretion shifts the report maintenance burden to them, saving SAP support groups time and effort normally spent creating and maintaining the reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using ABAP code to write a report in FI and CO, many users build a Report Painter/ Report Writer library using transaction MC27. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this workaround has some drawbacks. Little known transaction GRCT solves these problems in most cases, and eliminates the need to use transaction MC27. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Report TypesEdit section&lt;/P&gt;&lt;P&gt;ABAP report types are those ones available in some report's attributes screen, i.e. : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executable program &lt;/P&gt;&lt;P&gt;Function group (containing function modules) &lt;/P&gt;&lt;P&gt;Include &lt;/P&gt;&lt;P&gt;Interface pool &lt;/P&gt;&lt;P&gt;Class pool &lt;/P&gt;&lt;P&gt;Module pool &lt;/P&gt;&lt;P&gt;Subroutine pool &lt;/P&gt;&lt;P&gt;Also ALV means ABAP List Viewer. Most convenient way to use it is through reuse library (cf. transaction se83) available from release 4.6 of SAP R/3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV is available in two modes: list and grid. List mode is good old list processing with standard functionnalities, and grid mode is using a new OCX object displaying grids. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SIMPLE REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important function modules are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Reuse_alv_list_display&lt;/P&gt;&lt;P&gt;b. Reuse_alv_fieldcatalog_merge&lt;/P&gt;&lt;P&gt;c. Reuse_alv_events_get&lt;/P&gt;&lt;P&gt;d. Reuse_alv_commentary_write&lt;/P&gt;&lt;P&gt;e. Reuse_alv_grid_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. REUSE_ALV_LIST_DISPLAY : This is the function module which prints the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. REUSE_ALV_FIELDCATALOG_MERGE : This function module is used to populate a fieldcatalog which is essential to display the data in ALV. If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter(I_structure name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C. REUSE_ALV_EVENTS_GET : Returns table of possible events for a list type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D. REUSE_ALV_COMMENTARY_WRITE : This is used in the Top-of-page event to print the headings and other comments for the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E. REUSE_ALV_GRID_DISPLAY : A new function in 4.6 version, to display the results in grid rather than as a preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. BLOCK REPORT&lt;/P&gt;&lt;P&gt;This looks like a simple report but this report has the features of sorting and filtering only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important functions used in this report are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. REUSE_ALV_BLOCK_LIST_INIT&lt;/P&gt;&lt;P&gt;B. REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;P&gt;C. REUSE_ALV_BLOCK_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. REUSE_ALV_BLOCK_LIST_INIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is used to set the default gui status etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module adds the data to the block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C. REUSE_ALV_BLOCK_LIST_DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module display the list with data appended by the above function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the functions REUSE_ALV_FIELDCATALOG_MERGE, REUSE_ALV_EVENTS_GET, REUSE_ALV_COMMENTARY_WRITE can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hierarchical reports : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchical sequential list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 14:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519574#M846505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w ALV and Classical reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519575#M846506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; venkat thanks for ur quick replay.&lt;/P&gt;&lt;P&gt;&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;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 14:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-alv-and-classical-reports/m-p/3519575#M846506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T14:52:00Z</dc:date>
    </item>
  </channel>
</rss>

