Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reports Specification !!!!

Former Member
0 Kudos

Hi All,

I am trying to learn reports, can anyone of you please suggest me few simple simple reports to start with...I mean I don't want standard reports.. I just want you guys to give me some specification and then I will try to develop those reports on my own and then will ask you if I get stuck.

Thanksm

Rajeev !!!

5 REPLIES 5

Former Member
0 Kudos

Hi Rajeev,

I appreciate ur will to learn reports.

I am sending a sample report program which consists of all the various types of data declarations of variables. Hope this will help u a lot.

hi,

&----


*& Report Z_OOABAP18 *

*& *

&----


*& *

*& *

&----


REPORT Z_OOABAP18 .CLASS lcl_employee DEFINITION.

PUBLIC SECTION.

*----


The public section is accesible from outside

*----


TYPES:

BEGIN OF t_employee,

no TYPE i,

name TYPE string,

END OF t_employee.

METHODS:

constructor

IMPORTING im_employee_no TYPE i

im_employee_name TYPE string,

display_employee.

Class methods are global for all instances

CLASS-METHODS: display_no_of_employees.

PROTECTED SECTION.

*----


The protecetd section is accesible from the class and its subclasses

*----


Class data are global for all instances

CLASS-DATA: g_no_of_employees TYPE i.

PRIVATE SECTION.

*----


The private section is only accesible from within the classs

*----


DATA: g_employee TYPE t_employee.

ENDCLASS.

LCL Employee - Implementation

CLASS lcl_employee IMPLEMENTATION.

METHOD constructor.

g_employee-no = im_employee_no.

g_employee-name = im_employee_name.

g_no_of_employees = g_no_of_employees + 1.

ENDMETHOD.

METHOD display_employee.

WRITE:/ 'Employee', g_employee-no, g_employee-name.

ENDMETHOD.

METHOD display_no_of_employees.

WRITE: / 'Number of employees is:', g_no_of_employees.

ENDMETHOD.

ENDCLASS.

************************************************************************

R E P O R T

*********************************************************************

DATA: g_employee1 TYPE REF TO lcl_employee,

g_employee2 TYPE REF TO lcl_employee.

START-OF-SELECTION.

CREATE OBJECT g_employee1

EXPORTING im_employee_no = 1

im_employee_name = 'Vikram.C'.

CREATE OBJECT g_employee2

EXPORTING im_employee_no = 2

im_employee_name = 'Raghava.V'.

CALL METHOD g_employee1->display_employee.

CALL METHOD g_employee2->display_employee.

kindly reward if helpful.

cheers,

Hema.

Former Member
0 Kudos

Hi Rajeev,

Instead of just writing some report I better suggest you go to transaction ABAPDOCU and look for the sample code and create the programs from referrring them.

Regards,

Atish

0 Kudos

Thanks for the reply guys...actually what I want is ...if u guys can ask me to create report with some specification!!! I mean I don't want sample codes !!!!

it will be great if u can just tell me that look at these tables and retrieve this information !!!

Regrads,

Rajeev

0 Kudos

Hi Rajeev,

OK.. try below things.

1. Get all the material based on the selection screen parameters from MARA and description from MAKT and show it.

2. Get the documents from BKPF and all the line items based on this from BSEG and show in the report.

Create these two.

Regards,

Atish

0 Kudos

Hi Atish,

Thanks for this, I have already created the second report but I will work on the first one.

Thanks,

Rajeev !!!