*& Report ZG_ALV_LIST_GRID_ASSIGNMENT

*&
*&--------------------------------------------------------------------*
*&
*&
*&--------------------------------------------------------------------*
REPORT ZG_ALV_LIST_GRID_ASSIGNMENT.
* Top Include
INCLUDE ZG_ALV_LIST_GRID_ASSIGN_TOP.
* SEL Include
INCLUDE ZG_ALV_LIST_GRID_ASSIGN_SEL.
*
* Forms Include
INCLUDE ZG_ALV_LIST_GRID_ASSIGN_FORMS.
*--------------------------------------*
* I N I T I A L I Z A T I O N
*
*--------------------------------------*
INITIALIZATION.
* Clear the work areas, Variables and Refresh the Internal Tables
PERFORM F_CLEAR_REFRESH.
*--------------------------------------*
*S T A R T - O F - S E L E C T I O N
*
*--------------------------------------*
START-OF-SELECTION.
* Get the data
PERFORM F_GET_DATA.
* Populate the Field catalogue using FM->REUSE_ALV_FIELDCATALOG_MERGE
IF P_CHKBOX = 'X'.
PERFORM F_POP_FCAT.
ELSE.
PERFORM F_MAN_POP.
ENDIF.
* Populate the events
PERFORM F_POP_EVENTS.
*
*--------------------------------------*
*E N D - O F - S E L E C T I O N
*
*--------------------------------------*
END-OF-SELECTION.
* Display the data using ALV Function Modules
PERFORM F_DISPLAY_DATA.

Sign up to vote on this title
UsefulNot useful