ALV-REPORTS

Go down

ALV-REPORTS

Post  govind on Wed Mar 07, 2012 3:28 pm

ALV( ABAP List Viewer )
We use Function module to display ALV’s. While there are three different types of ALV’s possible.
1. Simple Display :-
REUSE_ALV_GRID_DISPLAY
2. Hierarchal Display
REUSE_ALV_HIERSEQ_LIST_DISPLAY
3. Block Display
REUSE_ALV_BLOCK_LIST_INIT
REUSE_ALV_BLOCK_LIST_APPEND
REUSE_ALV_BLOCK_LIST_DISPLAY
You can use fieldcatlog in three different ways.
Automatically -
Use ‘I_STRUCTURE_NAME’ parameter in function module. Pass structure name to this parameter. Remember fields should be same as internal table you are passing to the function mobule.
Semi Automatically –
Use Function module ‘REUSE_ALV_FIELDCATALOG_MERGE’ to fetch the fieldcatlog into internal table. Then pass this internal table to parameter ‘IT_FIELDCAT’ of function module ‘REUSE_ALV_GRID_DISPLAY’ or ‘REUSE_ALV_LIST_DISPLAY’.
Manually -
If you want to fill field catalog manually then declare an internal table and work area of type ‘slis_fieldcat_alv’. This is structure predefined by SAP in type group ‘SLIS’. If you want to use this in your program then you have to use ‘type-pools: slis’ statement.

govind
Admin

Posts : 54
Join date : 2012-01-31

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum