Application Development and Automation 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: 
Read only

converting report to abap object

Former Member
0 Likes
520

Hi,

Could any one of you please tell me the steps to follow while converting a report to a abap object.

Thanks in advance.

Regards,

Sooraj

Hi,

Could any one of you please tell me the steps to follow while converting a report to a abap object.

Thanks in advance.

Regards,

Sooraj

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
427

Well, in my opinion, reports do not usually make for good objects. If you are working with a regular report progam with a list diaplay, there is no reason to try to write it using classes/methods. Now if you want to convert it to an ALV grid which uses class/methods, then yes, I see a point there. Is this what you want to do? What version of SAP are you using.

Regards,

Rich Heilman

Read only

uwe_schieferstein
Active Contributor
0 Likes
427

Hello Sooraj

Recently I developed a "report" for a customer which is completely OO-based without any program. The report extracts data from the CATSDB, then aggregates the according to sending and receiving cost centers and orders and finally updates cycles (CO controlling objects).

The final application (based on a MVC architecture) consisted of the following objects:

- controller class (corresponds to the classical report and controls all other objects and user interactions)

- model class (contains the business logic)

- view instance (displays the data as three ALV lists)

- function group (contains the selection screen and the dynpros for displaying the data)

- OO-transaction which starts the report by instantiating the controller class

The dynpros are completely empty (not even a custom container). The view instance provides a reference to a splitter container that is simply linked to the dynpro in a PBO module.

How do you start to convert your report into objects?

<b>The most important step is to identify "objects" with distinct properties.</b>

In addition the classes mentioned already I needed an exception class (certain CATS data should be ignored), a cycle class (handling the CO cycles) and a cost center hierarchy class. These were my "distinct" objects needed.

Regards

Uwe