Current Position:Home > ALV Enevts

ALV Enevts

Update:11-30Source: network consolidation
Advertisement
Hi
I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(top or bottom).

The Best Answer

Advertisement
Hi ,
You can have an attribute(GRIDNAME) in the definition of event receiver class.
Have 2 object of the same class.In the constructor of the event receiver assign the GRIDNAME in the constructor.
events_grid1 TYPE REF TO lcl_application,
events_grid2 TYPE REF TO lcl_application,
CLASS lcl_application DEFINITION.
  PUBLIC SECTION.
*Attributes
    DATA : myname TYPE char10.
*Methods
    METHODS:
     constructor IMPORTING  myname_p TYPE char10,
ENDCLASS.                    "lcl_application DEFINITION
CLASS lcl_application IMPLEMENTATION.
CONSTRUCTOR
  METHOD constructor.
    myname = myname_p.
  ENDMETHOD.                    "constructor
*HANDLE_DOUBLE_CLICK
  METHOD handle_node_double_click.
    IF me->myname EQ 'GRID1'.
    elseif me->myname EQ 'GRID2'.
   endif.
ENDCLASS.                    "lcl_application IMPLEMENTATION
  SET HANDLER events_GRID1->handle_node_double_click FOR GRID1.
  SET HANDLER events_GRID2->handle_node_double_click FOR GRID2.
Hope this helps.
Regards
Immanuel D
  • ALV Enevts Update:11-30

    Hi I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(to

  • Open Field in ALV Report Update:10-11

    Hi all, i have to develop a ALV report. In that report i have to put a open quantity column , so that the user can enter values in that, and that value should get updated in the database. So please suggest me how to develop such report with open fiel

  • Unable to capture data in an editable dynamic ALV. Update:10-11

    Hi , I have created a dynamic editable ALV whose displayed structure can be changed at runtime based on the selection in a drop down list value selector. Im trying to capture the values entered in the ALV into an internal table before the user change

  • Total is not getting displayed in the ALV output. Update:10-11

    Hi, Total is not getting displayed in the ALV output. I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY source code: DATA: layout TYPE

  • '@' not getting displayed in the ALV report Update:10-11

    Hello, I am facing  a strange issue in the ALV report display. A string starting with '@' is not getting displayed and says "default icon " on the report. and this is varying from system to system for the same user. can anyone please help me in

  • Vendor open items wise ALV Grid Display (FBL1N) report to Excel Sheet Update:10-11

    Hi All, I need vendor wise open items and cleared items in ALV Grid format in excel sheet. I'm Trying that in T Code FBL1N, After the execution. I had select ALV Grid format like this From the menu bar->Settings-> Switch list. After that i get ALV 

  • Report for CRM-Opportunities - Open CRMD_ORDER for selected ALV row Update:10-11

    Hello, i created a report which can be used to find the relevant opportunities and list them in a ALV table. I have the requirement that by doubleclick on the table line the selected opportunity shall open in tx crmd_order. I have the GUID and the ob

  • To find total in blocked alv Update:10-11

    hi experts, i have created blocked ALV program. in the o/p , it displays list of recors for open items,then list of records for cleared items. now i want it  to display sum of both open and cleared items of particular column. in grid display it is di

  • PF STATUS IN ALV REPORT Update:10-11

    hi, How to use PF STATUS IN ALV REPORT?HI, see this code. TABLES:MARA. SELECT-OPTIONS: MATNR FOR MARA-MATNR. DATA:BEGIN OF ITAB OCCURS 0,      MATNR LIKE MARA-MATNR,      ERSDA LIKE MARA-ERSDA,      MTART LIKE MARA-MTART,      MBRSH LIKE MARA-MBRSH,

  • Menu options in ALV report Update:10-11

    Hi, Im not getting Menu options in ALV report output. Not even default menu options SYSTEM, HELP Its dispalying as <b>????????????????????????????????</b>. Can someone help me regarding this? Regards, amalHi Amal,             Check the screen