I developed a report purely on Object Oriented concepts.It works really fine.
Now my requirement is that in one of my module pool program i want to retrieve some data from that report itself
and show in my Input help. I deliberately made this report OO as i had anticipated that it will be required to me in future.
Now time has come.I want to call some method of the defined class.It is at this point that i am ignorant how to do.
Methodi want to call from different program is that
Let me explain you the structure of program which i am willing to call.
include zdata_definitions. //I definitions
include zselect_lc_params. // selection screen
include zmainlc. //main logic
data : ob_get_all_lcinfo type ref to get_lc_details.
data: ob_alv_print type ref to alvprint.
create object ob_get_all_lcinfo.
create object ob_alv_print.
Let me show the zmainlc where i defined classes.
class get_lc_details definition.
class get_lc_details implementation.
select aebeln aebelp bekgrp awerks amenge ameins
bbedat amatnr atxz01 anetwr bwaers bwkurs anetpr azztest azzlcbt blifnr
from ekko as b inner join ekpo as a on
( aebeln = bebeln ) into table t_all_lcs where b~bsart like 'IM%'.
some other manipulation on this table done..............