Professional Documents
Culture Documents
(ALV) Reports
INTRODUCTION
Reuse_alv_fieldcatalog_merge.
Reuse_alv_list_display.
Reuse_alv_grid_display.
Reuse_alv_commentary_write.
BASIC SRUCTURE OF ALV REPORT…
*---------------------------------------------------------------------*
* Selection (Definition)
*---------------------------------------------------------------------*
SELECT - - - - - - - -
*---------------------------------------------------------------------*
* Call ABAP List Viewer (ALV)(Display)
*---------------------------------------------------------------------*
EXAMPLE:-
SLIS_T_FIELDCAT_ALV (internal table)
SLIS_FIELDCAT_ALV (header line)
1. Export:
a. I_program_name : report id
b. I_internal_tabname : the internal output table
c. I_inclname : the report name .
2. Changing
a. ct_fieldcat : an internal table with the type
SLIS_T_FIELDCAT_ALV
which is declared in the type pool
SLIS.
Generating the Field Catalog automatically
Generating the Field Catalog manually
REUSE_ALV_LIST_DISPLAY:
1. Export:
a. I_callback_program : report id
2. Tables:
A. REUSE_ALV_BLOCK_LIST_INIT
B. REUSE_ALV_BLOCK_LIST_APPEND
C. REUSE_ALV_BLOCK_LIST_DISPLAY
* 'REUSE_ALV_BLOCK_LIST_INIT'
I_CALLBACK_PROGRAM = SY-REPID
* 'REUSE_ALV_BLOCK_LIST_APPEND'
* 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
REUSE_ALV_BLOCK_LIST_INIT
Parameters:
a. I_CALLBACK_PROGRAM- the program which
calls this function module to generate the ALV.
b. I_CALLBACK_PF_STATUS_SET-There is a
special parameter for function module
REUSE_ALV_GRID_DISPLAY, which lets you
to define a callback function for setting pf-status.
c. I_CALLBACK_USER_COMMAND
This function module is used to set the default GUI
status etc.
contd...
C. REUSE_ALV_BLOCK_LIST_DISPLAY
This function module display the list with data appended by the
above function.
Here the functions REUSE_ALV_FIELDCATALOG_MERGE,
REUSE_ALV_EVENTS_GET, REUSE_ALV_COMMENTARY_WRITE can be
used.
HIERARCHICAL REPORTS
A. REUSE_ALV_HIERSEQ_LIST_DISPLAY
1. Export:
a. I_CALLBACK_PROGRAM
b. I_CALLBACK_PF_STATUS_SET
c. I_CALLBACK_USER_COMMAND
d. IS_LAYOUT
HIERARCHICAL REPORTS