Skip to Content
avatar image
Former Member

difference between ' reuse_alv_grid_display' and 'reuse_alv_list_display'

hi,

i want to know wat is the difference between the function modules ' reuse_alv_grid_display' and 'reuse_alv_list_display'.. what are the function in second FM that are not in first one.. what are the functions.. please help me..

thanks and regards

nikesh kumar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 12:20 PM

    HI,

    first one is for grid display and second one is for list display.

    For all practical purposes, they are the same.

    2. Some differences:

    a) from abap coding point of view,

    alv list is done with Function modules,

    alv gris can also be done with FM,

    but can also be done using OO concepts.

    b) Alv grid (using oo concept) requires

    designing the screen layout .

    Hence, in one screen, we can show more

    then one alv grid

    (we cannot show more than

    one alv list on one screen)

    c) ALV grid uses ActiveX controls

    present on the Presentation Server.

    Hence, it consumes More Memory

    on the presentation server.

    d) ALV LIST is Display Only.

    Whereas

    ALV Grid Can Be made EDITABLE for entry purpose.

    e) In alv grid, these options are possible,

    but not in alv list.

    without horizontal lines

    without vertical lines

    without cell merging during sorts

    display total lines above the entries

    ALV LIST Can be coded using only FMs

    ALV GRID Can be coded using FMs and object oriented concepts

    ALV LIST Can be displayed hieraicharlly

    ALV GRID cannot be displayed hierarichally

    Please close this thread........!!!!

    Regards

    vasu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 12:23 PM

    Hi,

    The ALV Grid display is in sort of an excel format with the data in boxes

    and the list display is not.

    'REUSE_ALV_GRID_DISPLAY' is for the SLIS type pool.

    'REUSE_ALV_GRID_DISPLAY_LVC' is for the LVC type pool which of course has a better functionality.

    1) Common in display result

    REUSE_ALV_GRID_DISPLAY_LVC and REUSE_ALV_GRID_DISPLAY have similar display view

    2) Common in usage

    REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY have very similar parameters for

    function call (types from slis)

    one rarely use fm REUSE_ALV_GRID_DISPLAY_LVC as class cl_gui_alv_grid provides more

    power and functionality.

    regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 12:24 PM

    ALV LIST DISPLAY:

    Use

    The SAP List Viewer unifies and simplifies the use of lists in the R/3 System. A uniform user interface and list format is available for all lists. This prevents redundant functions.

    The SAP List Viewer can be used to view both single-level lists and multilevel sequential lists.

    Single-level lists contain any number of lines that have no hierarchical relationship to each other.

    Multilevel sequential lists consist of any number of lines that have two hierarchical levels. Multilevel lists have header rows and item rows; the item rows are subordinate to the header rows. For each header row there can be any number of subordinate item rows.

    You can view subtotals and totals rows in both single-level lists and multilevel sequential lists.

    The SAP List Viewer is used in Controlling for reports such as the following:

    Reports from cost centers and business processes

    Actual line item reports from cost centers and business processes

    Commitment line item reports

    Plan line item reports from cost centers, orders, business processes, cost objects

    Budget reports

    Cycle reports

    Order selection (CO-PC)

    Flexible itemization (CO-PC)

    Features

    Not all lists in the SAP R/3 components use the full range of functions available in the SAP List Viewer. Some lists in the R/3 System components offer special functions that extend beyond the normal range of the SAP List Viewer.

    This documentation covers all the functions of the SAP List Viewer. The description of the lists in the applications includes all of the functions available in the SAP List Viewer as well as the additional functions.

    Navigation

    Navigating Within the List

    Detail

    Choosing Detail

    Sort

    Sorting in Ascending/Descending Order

    ABC Analysis

    Select

    Selecting and Deselecting Rows

    Defining Exceptions

    Filter

    Setting and Deleting Filters

    Totaling

    Displaying and Deleting Sums

    Creating Subtotals

    Choosing Summation Levels

    Defining the Breakdown of the Summation Levels

    Status Display

    Displaying the List Status

    Columns

    Optimizing the Column Width

    Freezing to Columns and Unfreezing Columns

    Layouts

    Choosing Layouts

    Changing Layouts

    Saving Layouts

    Layout Management

    Basic List

    Displaying the Basic List

    Find

    Finding Terms

    Print

    Printing Lists

    Sending

    Sending the List as a Document

    Exporting

    Spreadsheet

    Text Processing

    Transferring a List to a Local File

    ALV Grid Control (BC-SRV-ALV)

    Purpose

    The ALV Grid Control (ALV = SAP List Viewer) is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options. This allows you to use the ALV Grid Control in a large range of application programs.

    In SAP development projects, the ALV Grid Control is also used as a tool for changing and creating tables. However, this functionality is currently only used in pilot projects and has not yet been released for customers.

    The following graphic shows a list displayed with the ALV Grid Control in a dialog box:

    As the user sees it, the ALV Grid Control consists of a toolbar, a title and the output table displayed in a grid control. If required, the user can hide the title and the standard functions of the toolbar.

    Implementation Considerations

    ALV Object Model

    The ALV family consists of three ALV tools: the simple, two-dimensional table (including the Grid Control variant), the hierarchical-sequential list and the tree structure. For all of those you can now use thenew, unified, object-oriented API.

    The old API can still be used, however we recommend using the new, unified ALV object model for programming all of your ALV applications. So, even if you plan to use the ALV Grid Control, you can now use the simplified new API.

    ALV Grid Control

    The ALV Grid Control uses controls technology to achieve state-of-the-art on-screen display. Like all control wrappers, the ALV Grid Control offers methods through a global class in the system which can be used to affect its behavior.

    SAP does not guarantee that the methods, events and attributes of this class that are not public will remain unchanged or will be available in future releases. This is why you should not derive the class to access protected objects of the class. Using these objects makes it more difficult to upgrade to subsequent releases.

    As a result of using ABAP Objects, lists are displayed through an ALV instance, and programmers make use of the event management of ABAP Objects.

    Integration

    Controls are software components that are installed on the local PC. In order to communicate with these components, all control wrappers use methods of the Control Framework. In this context, the ALV Grid Control is a special case as it uses a control that is already wrapped: the grid control. For the programmer, this can eliminate certain steps in the process of event management for controls.

    The ALV Grid Control uses the SAP context menu to integrate standard functions. This menu can be customized to meet individual requirements.

    This documentation focuses on using the ALV Grid Control in the SAP GUI for the Windows盲Environment or the SAP GUI for the Java盲 Environment. It is also possible to display the ALV Grid Control in the Web.

    Features

    This is an overview of the functions provided by the ALV Grid Control. You can:

    路 Display non-hierarchical lists consistently with a modern design

    路 Use typical list functions - such as sorting and filtering - without extra programming effort

    路 Adapt predefined list functions and their enhancements

    路 Program responses to user actions (such as double-clicking a line) individually

    路 Connect to the report/report interface.

    For practical examples of the ALV Grid Control, see development class SLIS.

    The following features of the ALV Grid Control make it a multi-purpose tool suitable for many applications:

    Layouts allow users to adapt list output to their requirements. Application developers determine which saving options users have available for the layout of a list.

    Self-defined functions created by application developers can be added to the toolbar. In addition, developers can adapt the standard functions to their individual application or even hide them if they are not needed.

    Drag & Drop functions are programmable. The ALV Grid Control allows developers to use the Drag & Drop control for implementing application-specific functions between the ALV Grid Control and other custom controls.

    Formatting, output and control options are provided through three different structures:

    The Field Catalog

    The Layout Structure

    The Print Structure

    The most important scenarios are described in this section. For more information, see the description of methods, events, and structures.

    Add comment
    10|10000 characters needed characters exceeded