Sunday, February 13, 2011

How to create ALV report

ALV Reports
ALV report is used for various functionalities. Such as sorting, filtering and retrieving data. Also used to perform functions on the data of the report. It can display up to 90 columns or more with various display options. U needs to create an ALV report when u needs to include the columns that store more than 255 characters in their field value in a report.
Features of ALV report
1.       User friendliness
2.       Ability to handle events
3.       Use of moderate code

Various module of ALV report

REUSE_ALV_GRID_DISPLAY
Display and ALV grid as per the parameters defined in the function call
REUSE_ALV_LIST_DISPLAY
Display and ALV list as per the parameters defined in the function call
REUSE_ALV_COMMENTRY_WRITE
Display the list header information
REUSE_ALV_HIERSEQ_LIST_DISPLAY
Display two internal tables that are formatted in the hierarchical-sequential list format
REUSE_ALV_GRID_VARIANT
Display a variant selection dialog box
REUSE_ALV_GRID_VARIANT_EXISTENSE
Checks the existence of the variant display


How to create ALV report

To create a ALV report follow the below steps—
1.       Open the initial screen of ABAP editor by either navigating to the SAP menu or executing the SE38 transaction code.
2.       In the initial screen of ABAP editor, enter ZALVREPORT (as example), select the source code radio button in the subobjects group box, and click the Create pushbutton to create a new program, as shown below figure


No comments:

Post a Comment

Drop Down lists in the selection parameters

PROGRAM ztest.   TYPE-POOLS : vrm.   DATA : name TYPE vrm_id,        list TYPE vrm_values,        value LIKE LINE OF list. ...