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: 

ALV oops

Former Member
0 Kudos

can any one explain me ALV with oops

give me one example if possible

5 REPLIES 5

Former Member

uwe_schieferstein
Active Contributor
0 Kudos

Hello

I have posted several simplified ALV reports in the ABAP forums. Simply search (from the <i>SDN homepage</i>) using <b>ZUS_SDN</b> as search term within the <b>forums</b>.

Regards

Uwe

Former Member
0 Kudos

Check all OOPS program in SE38 with BCALV * and RSDEMO * wich will show you all standard programs with diffrent functinality.

Reward points if find useful..........

Regards,

Minal

Former Member
0 Kudos

Hi ,

Please Go through the below link ,which will give you the details of the Alv ,

<a href="http://www.sapdevelopment.co.uk/reporting/alvhome.htm">http://www.sapdevelopment.co.uk/reporting/alvhome.htm</a>

Reward points if it is usefull ...

Girish

Former Member
0 Kudos

Hi

see this program youcan understand it very easyly

&----


*& Report Z_MK_ALV_OOP2

*&

&----


*&

*&

&----


REPORT z_mk_alv_oop2.

**Class lcl_event_handler Definition.

CLASS lcl_event_handler DEFINITION.

PUBLIC SECTION.

METHODS: on_double_click FOR EVENT double_click OF cl_gui_alv_grid

IMPORTING

es_row_no

e_column.

ENDCLASS. "lcl_event_handler DEFINITION

***class Implementation

CLASS lcl_event_handler IMPLEMENTATION.

METHOD on_double_click.

DATA: msg_string TYPE string,

row_string TYPE string.

row_string = es_row_no-row_id.

CONCATENATE 'Row:' row_string 'Column: ' e_column-fieldname INTO msg_string.

MESSAGE msg_string TYPE 'I'.

ENDMETHOD. "on_double_click

ENDCLASS. "lcl_event_handler IMPLEMENTATION

DATA: r_cont TYPE REF TO cl_gui_custom_container,

r_grid TYPE REF TO cl_gui_alv_grid,

itab TYPE TABLE OF spfli,

r_handler TYPE REF TO lcl_event_handler.

START-OF-SELECTION.

SELECT * FROM spfli INTO TABLE itab.

CALL SCREEN 100.

&----


*& Module create_objects OUTPUT

&----


  • text

----


MODULE create_objects OUTPUT.

CHECK r_cont IS INITIAL.

CREATE OBJECT r_cont

EXPORTING

container_name = 'MY_CONTAINER'.

CREATE OBJECT r_grid

EXPORTING

i_parent = r_cont.

CALL METHOD r_grid->set_table_for_first_display(

EXPORTING

i_structure_name = 'SPFLI'

CHANGING

it_outtab = itab ).

CREATE OBJECT r_handler.

SET HANDLER r_handler->on_double_click FOR r_grid.

ENDMODULE. " create_objects OUTPUT

reward if usefull