Report (701) - Simple_Class_Reporting

<< Click to Display Table of Contents >>

Navigation:  All About ABAP Technique > English > ABAP Report > Class in ALV >

Report (701) - Simple_Class_Reporting

Objective

Creating Report

Result

Source Code

Call Method "ycl_report_mm=>get_data"

Transaction Code

SE38 - ABAP Editor

Tables

MARA - General Material Data

Support

Video

Contributors

Danar Andri Prasetyo ( danaruto131@yahoo.com )

 

Creating Report

1.First, we have to create structure "YST_CLASS_MM" by t-code SE11.

  Display Steps sdasjdkl

ar0086

Click ar0087

Choose Structure

ar0088 then click ar0089

Fill Short Description with "Structure for Class Report Material"

Fill Tab "Component" like picture below

ar0090

Save and Activate

2.Second, we make table type "YTT_CLASS_MM" by t-code SE11.

Display Steps

3.Create Class "YCL_REPORT_MM" By t-code SE24.

Display Steps

4.Now Create Program "YREPORT_701" by t-code SE38

5.Fill Tittle with "Report Material Master Using Class" save at local object

6.Define Table.

TABLES : mara.

7.Define Variable

DATA : gi_data TYPE YTT_CLASS_MM WITH HEADER LINE.

8.Create input screen

SELECT-OPTIONS so_matkl FOR mara-matkl.

SELECT-OPTIONS so_matnr FOR mara-matnr.

PARAMETERS p_max TYPE i DEFAULT 100.

9.Call method using 'Pattern'ar0102

Display Steps

10.Edit 'CALL METHOD' value

Before

CALL METHOD ycl_report_mm=>get_data

  EXPORTING

    gv_matkl   =  

    gv_matnr   =  

    gv_max_row =  

  CHANGING

    data       =  

 

After

CALL METHOD ycl_report_mm=>get_data

  EXPORTING

    gv_matkl   =  '001'

    gv_matnr   =  '100-100'

    gv_max_row =  p_max

  CHANGING

    data       =  gi_data[].

 

11.Save and Activate program

 

 

 

Result

Input Selection

ar0105

Output

ar0106

 

 

Source Code Program

 

Source Code Class