Search this site

Tuesday, March 27, 2012

Sap grid control




DATA:
obj_Custom TYPE REF TO cl_gui_custom_container,
obj_alvGrid TYPE REF TO cl_gui_alv_grid.
*PBO
CREATE OBJECT obj_Custom
EXPORTING CONTAINER_NAME ‘GridName’.

CREATE OBJECT obj_alvGrid
EXPORTING I_PARENT = obj_Custom.
*Insert data into internal table
………………….
*Display
obj_AlvGrid->SET_TABLE_FOR_FIRST_DISPLAY( EXPORTING
I_STRUCTURE_NAME = ‘StructureName'
CHANGING IT_OUTTAB = InternalTable ).




No comments:

Post a Comment