<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421495#M540643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;What is ALV programming in ABAP? When is this grid used in ABAP? &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ALV is Application List viewer.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report output can contain up to 90 columns in the display with the wide array of display options. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;The commonly used ALV functions used for this purpose are;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. REUSE_ALV_VARIANT_DEFAULT_GET &lt;/P&gt;&lt;P&gt;2. REUSE_ALV_VARIANT_F4 &lt;/P&gt;&lt;P&gt;3. REUSE_ALV_VARIANT_EXISTENCE &lt;/P&gt;&lt;P&gt;4. REUSE_ALV_EVENTS_GET &lt;/P&gt;&lt;P&gt;5. REUSE_ALV_COMMENTARY_WRITE &lt;/P&gt;&lt;P&gt;6. REUSE_ALV_FIELDCATALOG_MERGE &lt;/P&gt;&lt;P&gt;7. REUSE_ALV_LIST_DISPLAY &lt;/P&gt;&lt;P&gt;8. REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;9. REUSE_ALV_POPUP_TO_SELECT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose of the above Functions are differ not all the functions are required in all the ALV Report.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But either no.7 or No.8 is there in the Program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you call this function in your report? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use follwing function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 
       EXPORTING 
            I_CALLBACK_PROGRAM       = 'Prog.name' 
            I_STRUCTURE_NAME         = 'I_ITAB' 
            I_DEFAULT                = 'X' 
            I_SAVE                   = 'A' 
       TABLES 
            T_OUTTAB                 = I_ITAB. 
  IF SY-SUBRC &amp;lt;&amp;gt; 0. 
    WRITE: 'SY-SUBRC: ', SY-SUBRC . 
  ENDIF. 
ENDFORM.                    " GET_FINAL_DATA&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Classical Reports&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 04:38:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T04:38:33Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421491#M540639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Wat is the need for ALV reporting ? why not classical report ?&lt;/P&gt;&lt;P&gt;2. what r the FM u used in ALV reporting ?&lt;/P&gt;&lt;P&gt;3. Wat is the use of field catelog ?&lt;/P&gt;&lt;P&gt;4. How to remove search help in ALV report ?&lt;/P&gt;&lt;P&gt;5. did u worked in interactive ALV ? if so tel me the event in interactive ALV..&lt;/P&gt;&lt;P&gt;6. what is SLIS ?&lt;/P&gt;&lt;P&gt;7. tel some important field of field catelog ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 12:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421491#M540639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T12:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421492#M540640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See this link, you will get some questions answered here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to search about alv in the forum too&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/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 12:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421492#M540640</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-02T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421493#M540641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1&amp;gt; Reports require loads of formating, column size , rows, index so to reduce the amount of coding we use ALV.&lt;/P&gt;&lt;P&gt;2&amp;gt;FM used are&lt;/P&gt;&lt;P&gt;REUSE_ALV_grid_display&lt;/P&gt;&lt;P&gt;REUSE_ALV__display&lt;/P&gt;&lt;P&gt;alv_catalog_merge&lt;/P&gt;&lt;P&gt;there are many&lt;/P&gt;&lt;P&gt;3&amp;gt;field cat is used to pass data from internal table&lt;/P&gt;&lt;P&gt;4&amp;gt;&lt;/P&gt;&lt;P&gt;5&amp;gt;at user command&lt;/P&gt;&lt;P&gt;6&amp;gt;slis is a type-pool &lt;/P&gt;&lt;P&gt;thnkx&lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 12:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421493#M540641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T12:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421494#M540642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a&lt;/P&gt;&lt;P&gt;standardized format. The list data is displayed as a table on the screen.&lt;/P&gt;&lt;P&gt;The ALV Grid Control offers a range of interactive standard list functions that users need&lt;/P&gt;&lt;P&gt;frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,&lt;/P&gt;&lt;P&gt;export list (in different formats), and so on. These functions are implemented in the&lt;/P&gt;&lt;P&gt;proxy object class. You as the programmer have the possibility to turn off functions not&lt;/P&gt;&lt;P&gt;needed. In most cases the implementations of the standard functions provided by the&lt;/P&gt;&lt;P&gt;control are sufficient. However, if required, you can adjust these implementations to&lt;/P&gt;&lt;P&gt;meet application-specific needs.&lt;/P&gt;&lt;P&gt;You can add self-defined functions to the toolbar, if necessary.&lt;/P&gt;&lt;P&gt;The ALV Grid Control allows users to adjust the layout of lists to meet their individual&lt;/P&gt;&lt;P&gt;requirements (for example, they can swap columns, hide columns, set filters for the&lt;/P&gt;&lt;P&gt;data to be displayed, calculate totals, and so on). The settings (list customizing) made&lt;/P&gt;&lt;P&gt;by a specific user are called a display variant. Display variants can be saved on a userspecific&lt;/P&gt;&lt;P&gt;or on a global basis. If such display variants exist for a list, they can be offered&lt;/P&gt;&lt;P&gt;to the user for selection. If a display variant is set as the default variant, the associated&lt;/P&gt;&lt;P&gt;list is always displayed based on the settings of this variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;    REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;    REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;    REUSE_ALV_COMMENTARY_WRITE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use of Field Catalog is to determines the technical properties  &amp;amp; add formating information of the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.fieldcat-fieldname&lt;/P&gt;&lt;P&gt;  fieldcat-ref_fieldname&lt;/P&gt;&lt;P&gt;fieldcat-tabname&lt;/P&gt;&lt;P&gt;fieldcat-seltext_m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case r_ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;amp;IC1'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 12:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421494#M540642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T12:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421495#M540643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;What is ALV programming in ABAP? When is this grid used in ABAP? &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ALV is Application List viewer.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report output can contain up to 90 columns in the display with the wide array of display options. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;The commonly used ALV functions used for this purpose are;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. REUSE_ALV_VARIANT_DEFAULT_GET &lt;/P&gt;&lt;P&gt;2. REUSE_ALV_VARIANT_F4 &lt;/P&gt;&lt;P&gt;3. REUSE_ALV_VARIANT_EXISTENCE &lt;/P&gt;&lt;P&gt;4. REUSE_ALV_EVENTS_GET &lt;/P&gt;&lt;P&gt;5. REUSE_ALV_COMMENTARY_WRITE &lt;/P&gt;&lt;P&gt;6. REUSE_ALV_FIELDCATALOG_MERGE &lt;/P&gt;&lt;P&gt;7. REUSE_ALV_LIST_DISPLAY &lt;/P&gt;&lt;P&gt;8. REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;9. REUSE_ALV_POPUP_TO_SELECT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose of the above Functions are differ not all the functions are required in all the ALV Report.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But either no.7 or No.8 is there in the Program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you call this function in your report? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use follwing function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 
       EXPORTING 
            I_CALLBACK_PROGRAM       = 'Prog.name' 
            I_STRUCTURE_NAME         = 'I_ITAB' 
            I_DEFAULT                = 'X' 
            I_SAVE                   = 'A' 
       TABLES 
            T_OUTTAB                 = I_ITAB. 
  IF SY-SUBRC &amp;lt;&amp;gt; 0. 
    WRITE: 'SY-SUBRC: ', SY-SUBRC . 
  ENDIF. 
ENDFORM.                    " GET_FINAL_DATA&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Classical Reports&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 04:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2421495#M540643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T04:38:33Z</dc:date>
    </item>
  </channel>
</rss>

