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: 

ABAP OO REPORT

ravi_kumar221
Participant
0 Kudos

Hi

I have gen rated report using CL_GUI_CUSTOMCONTAINER and cl_gui_alv grid but i dont know how to make it intractive plese help me

6 REPLIES 6

former_member300076
Participant
0 Kudos

This message was moderated.

former_member200434
Participant
0 Kudos

Hi,

Through setting status or by line selection..

Former Member
0 Kudos

Hi Ravi kumar,

We need to use double-click event of the cl_gui_alv grid class and write the logic inside that.

Class Definition

*----------------------------------------------------------------------*

*       CLASS lcl_event_class DEFINITION

*----------------------------------------------------------------------

CLASS lcl_event_class DEFINITION FINAL.

*Handling double click

  PUBLIC SECTION.

    METHODS:  handle_double_click

      FOR EVENT double_click OF cl_gui_alv_grid

          IMPORTING e_row es_row_no.

ENDCLASS. "lcl_event_receiver DEFINITION

Class Implementation

*----------------------------------------------------------------------*

*       CLASS lcl_event_class IMPLEMENTATION

*----------------------------------------------------------------------*

CLASS lcl_event_class IMPLEMENTATION.

  METHOD handle_double_click.

    PERFORM double_click USING e_row-index es_row_no-row_id.

  ENDMETHOD.                    "handle_double_click

ENDCLASS.                    "lcl_event_class IMPLEMENTATION

Subroutine double_click

*&---------------------------------------------------------------------*

*&      Form  data_retrieval_bank

*&---------------------------------------------------------------------*

FORM double_click

                  USING p_index  TYPE lvc_index

                        p_rowid  TYPE int4.

  DATA w_success TYPE char1.

  IF p_rowid > 0.

    READ TABLE t_final INTO w_final INDEX p_index.

    IF sy-subrc = 0.

      PERFORM data_retrieval_bank CHANGING w_success.

ENDIF.

ENDIF.

ENDFORM.

Write the logic in PERFORM data_retrieval_bank to get the data based on double-click

With Regards,

Gurulakshmi

Venkat_Sesha
Advisor
Advisor
0 Kudos

Hi Ravi,

Please be specific what do you want to make Interactive.

Please mention the Exact requirement/trouble facing.

You have lot of examples in SAP System regarding ALVs.

Check the programs with naming BCALV* or SALV*

hope this clears

0 Kudos

When we click on sales order VA01 should be called but it should be inABAP OO report in normal
ALV we can do it but doubt was in ABAP OO

former_member184569
Active Contributor
0 Kudos

This message was moderated.