Simple ALV table without field catalog

REPORT  ZSIMPLE_ALV_TABLE.

"Internal table declaration
DATA LT_EKKO TYPE TABLE OF EKKO.

"Data retrieval
SELECT * FROM EKKO INTO TABLE LT_EKKO.

"Displaying grid
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   I_STRUCTURE_NAME = 'EKKO'
  TABLES
    T_OUTTAB        = LT_EKKO.
 




Output 


2 comments:

  1. i think we need to use fm reuse_alv_fieldcatalog_merge instead..

    ReplyDelete
  2. How can i create alv output without fieldcatlod with multiple structure.

    ReplyDelete