‎2008 Mar 31 1:44 PM
what is the meaning of all these in ALV :means purpose of all these statements.
1. REUSE_ALV_VARIANT_DEFAULT_GET
2. REUSE_ALV_VARIANT_F4
3. REUSE_ALV_VARIANT_EXISTENCE
4. REUSE_ALV_EVENTS_GET
5. REUSE_ALV_COMMENTARY_WRITE
6. REUSE_ALV_FIELDCATALOG_MERGE
7. REUSE_ALV_LIST_DISPLAY
8. REUSE_ALV_GRID_DISPLAY
9. REUSE_ALV_POPUP_TO_SELECT
‎2008 Apr 01 5:38 AM
HI,
Wednesday, June 27, 2007
ALV Function Module
(1) REUSE_ALV_LIST_DISPLAY
Display an ALV list as per parameters defined in the function call
(2) REUSE_ALV_GRID_DISPLAY
Display an ALV grid as per parameters defined in the function call
(3) REUSE_ALV_COMMENTARY_WRITE
List header information is output according to its type. The output information is put in an internal table. Output attributes are assigned to each line via the TYP field.This module outputs formatted simple header information at TOP-OF-PAGE.
(4) REUSE_ALV_HIERSEQ_LIST_DISPLAY
This module outputs two internal tables as a formated hierarchical-sequential list.
(5) REUSE_ALV_VARIANT_F4
Display variant selection dialog box.
(6) REUSE_ALV_VARIANT_EXISTENCE
Checks whether a display variant exists.
Chk out this link too..
http://www.sap-img.com/abap/what-is-alv-programming.htm
Hope this helps u,
Regards,
Arunsri
‎2008 Apr 01 6:01 AM
Hi
REUSE_ALV_VARIANT_DEFAULT_GETRead default display variant (description only, w/o field catalog)
Functionality
Provides the default variant for the list specified in the structure parameter CS_VARIANT of a program.
REUSE_ALV_VARIANT_F4Display variant selection dialog box
Functionality
Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.
REUSE_ALV_VARIANT_EXISTENCEChecks whether a display variant exists
Functionality
This function module checks the existence in the database of a display variant passed in the interface.
REUSE_ALV_EVENTS_GETReturns table of possible events for a list type
Functionality
This table can be passed to the ALV display module with the form name.
REUSE_ALV_COMMENTARY_WRITEList body comment block output
Functionality
List header information is output according to its type. The output information is put in an internal table. Output attributes are assigned to each line via the TYP field.
This module outputs formatted simple header information at TOP-OF-PAGE.
Example
List <-- Type 'H'
Currency DEM Controlling area currency <-- Type 'S'
Material FGS_TEST Test material <-- Type 'S'
Action info <-- Type 'A'
-
Column headers -
-
List -
REUSE_ALV_FIELDCATALOG_MERGE Create field catalog from dictionary structure or internal table
Functionality
Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.
The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.
The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:
Performance is affected since the code of the table definition must always be read and interpreted at runtime.
Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.
If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.
If the field catalog is passed with values, they are merged with the 'automatically' found information.
REUSE_ALV_LIST_DISPLAYOutput a simple list (single line or several lines)
Functionality
This module outputs an internal table with any structure as a formatted one-line or multiple-line list.
Principle:
Pass an internal table with the set of output information
Pass a structure with general list layout details
Pass a field catalog as an internal table
The field catalog describes the fields to be output in the list.
Notes
All actions on the list refer directly to the internal output table, e.g. sorting the list also sorts the passed internal output table (passed by reference).
An important consideration for the use of the tools and certain generic functions (totals, subtotals) is the expected amount of data to be displayed.
The application must take this consideration into account.
REUSE_ALV_GRID_DISPLAYOutput of a simple list (single-line)
Functionality
The function module outputs an internal table with whatever structure in the form of a formatted single- oder multi-line list.
Process:
Passing an internal table with the set of information to be output
Passing a structure with general layout specifications for list layout
Passing a field catalog in the form of an internal table
The field catalog describes the fields to be output in the list.
Notes
All interactions performed on the list refer directly to the internal output table. Sorting the list, for example, also involves a resorting of the internal output table passed (since it was passed by reference).
An important factor determining the usability of the tool or of various generic functions (totals, subtotals) is the expected amount of data to be displayed.
The application is responsible for critically testing this aspect and consider it when it comes to decision-making.
REUSE_ALV_POPUP_TO_SELECTList in dialog box to choose one or more entries (or display only)
Functionality
Module for displaying or selecting table entries in internal tables in a popup (single or multiple selection is possible).
Principle:
pass an internal table with the superset of information to be output
pass list layout detail flags
pass a field catalog in the form of an internal table
The field catalog describes the fields to be output in the list.
Further information
The module uses the function module 'REUSE_ALV_LIST_DISPLAY' internally. The documentation of this module contains further information about the field catalog.
‎2008 Apr 02 10:09 AM
hi,
REUSE_ALV_LIST_DISPLAY: Output a simple list (single line or several lines).Both REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY have similar parameters
Both Display the contents of an internal table passed by the parameter T_OUTTAB.
REUSE_ALV_COMMENTARY_WRITE: List body comment block output.Using REUSE_ALV_COMMENTARY_WRITE, the internal table containing the headings for top of page event can be passed to the list output. Also, any logo specific to the report can be passed to the function module.
REUSE_ALV_EVENTS_GET: Returns table of possible events for a list type.A list of possible events is populated into an event table (I_EVENTS) when this table is passed to the function module REUSE_ALV_EVENTS_GET. The return table from this function module contains all the possible events.
The function module contains following import and export parameters.
IMPORTING PARAMETERS: I_LIST_TYPE
This parameter has possible values from 0-4.
The parameter I_LIST_TYPE is of TYPE SLIS_LIST_TYPE and is DEFAULT 0 .
EXPORTING PARAMETERS: ET_EVENTS table.
This table is of TYPE SLIS_T_EVENT and returns to the program the name of all the possible events.
REUSE_ALV_FIELDCATALOG_MERGE: Create field catalog from dictionary structure or internal table.A field catalog is required for every ALV list output to add desired functionality (i.e. Key, Hotspot, Specific headings, Justify, Col. position etc) to certain fields of the output. If not mentioned specifically, then the defaults are taken. The possible values and defaults are listed below.
The field catalog for the output table is built-up in the caller's coding. The build-up can be completely or partially automated by calling the REUSE_ALV_FIELDCATALOG_MERGE module.
The minimal field catalog is documented below. This can be done in a routine using a local variable. The user can use the other optional parameters to assign output attributes to different fields in the output, which differ from the default.
A field catalog need not be built-up and passed explicitly only under the following conditions:
The internal table to be output has the same structure as a Data Dictionary structure which is referred to in the internal table declaration using LIKE or INCLUDE STRUCTURE. In this case the attributes of the different fields is taken directly from the table and the attributes (key fields, length, texts etc) need to state explicitly.all fields in this structure are to be output.
REUSE_ALV_POPUP_TO_SELECT: List in dialog box to choose one or more entries (or display only).
REUSE_ALV_VARIANT_DEFAULT_GET: The variants in the list display can be both user-specific and general. The user can programmatically set the initial (default) variant for list display.
Function Module REUSE_ALV_VARIANT_DEFAULT_GET is used to get the default variant.
Sample code:
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = variant save condition ( A=all, U = user-specific )
CHANGING
cs_variant = internal table containing the program name
EXCEPTIONS
not_found = 2.
This Function Module is used during the INITIALIZATION event.
REUSE_ALV_VARIANT_EXISTENCE: Checks whether a display variant exists.This function module checks the user entered variant name in the selection screen. It checks whether a display variant exists. This function module checks the existence in the database of a display variant passed in the interface.This Function Module is used at the event: AT SELECTION SCREEN.
REUSE_ALV_VARIANT_F4: Display variant selection dialog box.This function module REUSE_ALV_VARIANT_F4 provides the list of possible variant entries when the user presses the F4 button. It displays variant selection dialog box and gives possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.
This Function Module is used at the event: AT SELECTION-SCREEN ON VALUE-REQUEST
REUSE_ALV_GRID_DISPLAY: Output of a simple list (single-line).
REUSE_ALV_POPUP_TO_SELECT: List in dialog box to choose one or more entries (or display only).
REUSE_ALV_VARIANT_DEFAULT_GET: The variants in the list display can be both user-specific and general. The user can programmatically set the initial (default) variant for list display.
Function Module REUSE_ALV_VARIANT_DEFAULT_GET is used to get the default variant.
Sample code:
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = variant save condition ( A=all, U = user-specific )
CHANGING
cs_variant = internal table containing the program name
EXCEPTIONS
not_found = 2.
This Function Module is used during the INITIALIZATION event.
REUSE_ALV_VARIANT_EXISTENCE: Checks whether a display variant exists.This function module checks the user entered variant name in the selection screen. It checks whether a display variant exists. This function module checks the existence in the database of a display variant passed in the interface.This Function Module is used at the event: AT SELECTION SCREEN.
REUSE_ALV_GRID_DISPLAY: Output of a simple list (single-line).
Edited by: Rajyalakshmi Attili on Apr 2, 2008 2:43 PM
Edited by: Rajyalakshmi Attili on Apr 2, 2008 2:46 PM
Edited by: Rajyalakshmi Attili on Apr 2, 2008 2:47 PM
‎2008 Apr 08 12:31 PM
hi,
send me ur personal mail_id. i have docus with examples with this, so that u can understand easly. fo rdetails pls view my business card.
Regards
Fareedas