Skip to Content
author's profile photo Former Member
Former Member

ALV oops

can any one explain me ALV with oops

give me one example if possible

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 03:02 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 03:50 AM

    Hi ,

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

    http://www.sapdevelopment.co.uk/reporting/alvhome.htmhttp://www.sapdevelopment.co.uk/reporting/alvhome.htm">http://www.sapdevelopment.co.uk/reporting/alvhome.htm>

    Reward points if it is usefull ...

    Girish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.