SAP FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, WF, BW, APO, Basis,  ABAP/4, Certification, Books
An ALV Related Simple Example Code

Tips by: Nitin

[TABLE NAME] = USE EXISTING TABLE.

**************start of code*********
REPORT ZNEW .
*

* Data to be displayed

DATA: GT_SFLIGHT TYPE TABLE OF [TABLE NAME].

*---------------------------------------------------------------------*

* Selection

SELECT * FROM [TABLE NAME] INTO TABLE GT_SFLIGHT.

* Call ABAP List Viewer (ALV)

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_STRUCTURE_NAME = [TABLE NAME]

TABLES

T_OUTTAB = GT_SFLIGHT.

 *****************end of code*************

Back to ABAP Menu:
ABAP Example Hints and Tips

Return to :-
SAP Hints and Tips on Configuration and ABAP/4 Programming

(c) www.sap-basis-abap.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.sap-basis-abap.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.