ALV
ALV
Order Of events:-
1. Create one Work area(WA) and internal table(IT) and additionally one work area
and internal table for field catalogue.
2. Selection Screen
3. Fetch Data
4. Fill Field Catalogue Internal table(IT)
5. Display Data (Using Function Modules)
* In ALV we don't write any WRITE statements to display the data. We use only
function modules(FM) to display the data.
Function Modules used to display the data:- 1. REUSE_ALV_LIST_DISPLAY OR
2.REUSE_ALV_GRID_DISPLAY .
* If we want to display all the fields information from a table, then not required
to use filed catalogue IT & WA.
* I_STRUCTURE_NAME:- In this we have to write the name of the structure from which
we fetch data to display the data.
This is only used or activated when we want to disaplay all the
data or complete data from a table.
The structure length and data type should be same as in the FM.
* TABLES
t_outtab :- In this we write or pass the internal table from which we fetch and
display the data.
* List display will support the write statement and grid display won't support the
write statement.'
* For grid display we use REUSE_ALV_COMMENTARY_WRITE function module.
*In REUSE_ALV_LIST_DISPLAY/REUSE_ALV_GRID_DISPLAY
I - variable.
IS - Structure/Work Area
IT - Internal Table
These are the short forms used in the above function modules.
*OAER is the transaction code for uploading the logos in the SAP system.
*In ALV if we click once or double click the USER_COMMAND event will trigger.
*While writing READ TABLE syntax we have to also write BINARY SEARCH and also sort
the Internal table.