2007 Sep 10 3:55 PM
can any one explain me ALV with oops
give me one example if possible
2007 Sep 10 4:02 PM
Hi,
Here is the example codes
http://www.erpgenie.com/abap/controls/alvgrid.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=37566
Regards
Sudheer
2007 Sep 10 9:10 PM
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
2007 Sep 11 4:12 AM
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
2007 Sep 11 4:50 AM
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
2007 Sep 11 5:11 AM
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