Saturday, December 18, 2010
We do not need to pass fieldcatalog  internal table to REUSE_ALV_GRID_DISPLAY function module. Instead you can pass structure(Structure should be displayed in dictionary) of the data table.

REPORT  zvenkat_alv_without_fieldcat.
"Declaration.
DATA:
i_pa0008 TYPE STANDARD TABLE OF pa0008.

*START-OF-SELECTION.
START-OF-SELECTION.
  "Data retrieval
  SELECT * FROM pa0008 INTO TABLE i_pa0008 UP TO 20 ROWS.
  "Data display using ALV grid
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = sy-repid
      i_structure_name   = 'PA0008'
    TABLES
      t_outtab           = i_pa0008.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.