Age: 46 Joined: 05 Nov 2007 Posts: 725 Location: КраснАдар
Posted: Fri Sep 23, 2011 11:13 am Post subject:
Есть ощущение, что в reuse никак - ничего подходящего в событиях SLIS не находится.
Если нет желания все перересовывать на ООП, то как вариант - получить инстанцию грида через GET_GLOBALS_FROM_SLVC_FULLSCR и по ней уже отлавливать ONF4.
Code:
TYPE-POOLS: slis.
CLASS lcl_events DEFINITION DEFERRED.
CLASS lcl_events DEFINITION.
PUBLIC SECTION.
METHODS:
onf4 FOR EVENT onf4
OF cl_gui_alv_grid
IMPORTING e_fieldname
e_fieldvalue
es_row_no
er_event_data
et_bad_cells
e_display.
*&---------------------------------------------------------------------*
*& Form caller_exit
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM caller_exit USING data.
DATA: grid TYPE REF TO cl_gui_alv_grid,
tab_f4 TYPE lvc_t_f4,
wa_f4 TYPE lvc_s_f4.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = grid.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.