Академический Документы
Профессиональный Документы
Культура Документы
ALV
•ABAP List Viewer (ALV) is a simple, user friendly
and better looking reporting tool as compared
to the usage of write statements in a
conventional / interactive report.
Advantages of ALV
•Better Looking
•User friendly
– Filtering / Sorting
– Layout Change / Save
– Summation, Download to excel, E-Mail
– Data can be open for input / change etc.
•Better Event handling
•Width of more than 256 characters possible
•Programming overhead of mentioning exact
positions in write statements not needed.
ALV Features
Change
Heading / Save
Layout
Row(s)
Sorting, Email, Excel
Selection
Additiona Filtering
l Buttons
ALV Features
Bar Charts
Change / Save /
Select Layout
Heading
Simple Programs Walkthrough
•Suppose the first 4 fields of the internal table are required in the order CARRID, FLDATE, CONNID, PRICE. Also the fields CURRENCY and PLANETYPE
are not to be displayed.
Populate the Field Catalog table appropriately
PRICE
CONNID
No CURRENCY And PLANETYPE
FLDATE
CARRID
Simple Programs Walkthrough
•Obtaining the field catalog internal table using the internal table name
•Use Function Module REUSE_ALV_FIELDCATALOG_MERGE
•Alternatively, Removal of Buttons can be done by populating the internal table IT_EXCLUDING with the relevant function codes
Result
SAVE Button
Function Code
and Button for
Other Fields &DATA_SAVE
(Non Editable)
PRICE
(Editable)
Important Information
•Use Programs Starting with BALV and BCALV
•Use Function Module Helps