REUSE_ALV_LIST_DISPLAY- 1

light11

First List ALV using FM-REUSE_ALV_LIST_DISPLAY

 

 


The post shows how to build your first simple list ALV. The list ALV shows records from the flight table- SPFLI.

The SPFLI table contains below records.

1


Program Code Snippet:


DATA: lt_spfli TYPE TABLE OF spfli.

START-OF-SELECTION.
SELECT * FROM spfli INTO TABLE lt_spfli.

CALL FUNCTION ‘REUSE_ALV_LIST_DISPLAY’
     EXPORTING
          i_callback_program = sy-cprog
          i_structure_name = ‘SPFLI’
     TABLES
         t_outtab = lt_spfli
     EXCEPTIONS
         program_error = 1
        OTHERS = 2.
CASE sy-subrc.
     WHEN 1.
           MESSAGE ‘Program Error’ TYPE ‘I’.
     WHEN OTHERS.
ENDCASE.


2


Program Output:

3


 

Advertisements

One thought on “REUSE_ALV_LIST_DISPLAY- 1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s