Report (502) - Create Simple ALV Grid Report

<< Click to Display Table of Contents >>

Navigation:  All About ABAP Technique > English > ABAP Report > ALV > ALV Grid >

Report (502) - Create Simple ALV Grid Report

Objective

Creating Report

Result

Source Code

Include "YPRACTICE_502_ALV"

Transaction Code

SE38 - ABAP Editor

Tables

MARA - General Material Data

MAKT - Material Descriptions

T006A - Assign Internal to Language-Dependent Unit

Support

Video

 

Creating Report

1.Open SE38

2.Copy Program "YPRACTICE_501" to "YPRACTICE_502"

3.Select All Object

ar0081

4.Click "ar0076"

5.Copy include program with name "YPRACTICE_502_ALV"

ar0082

6.Click "ar0076" and then save the program

7.Change Program "YPRACTICE_502"

8.Open Goto > Attributes, and change Title with "502 - Display List of Master Material"

9.Modified Report Declaration

Before

REPORT  ypractice_501.

 

After

REPORT  ypractice_502.

 

10.Double click "YPRACTICE_502_ALV" at this source code bellow

...

TABLES : mara, makt, t006a.

 

INCLUDE YPRACTICE_502_ALV.

*INCLUDE ypractice_501_alv.

 

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

*GLOBAL VARIABLE DECRALATION

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

TYPES: BEGIN OF ty_header,

...

 

11.Rename Function name of "REUSE_ALV_LIST_DISPLAY" to "REUSE_ALV_GRID_DISPLAY"

Before

...

  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

    EXPORTING

..

After

...

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

...

 

12.Activated all Object and run

ar0083

13.Create T-Code "YP502"

14.Finished

 

Result

Input Selection

ar0084

Output

ar0085