$*$1
METHODS:
activate_hot_spot,
handle_hot_spot
FOR EVENT cell_action OF if_salv_gui_field_display_opt
IMPORTING ev_field_name
eo_row_data.
*$*$1
*$*$2
me->activate_hot_spot( ).
*$*$2
*$*$3
METHOD activate_hot_spot.
TRY.
o_salv_ida->field_catalog( )->display_options(
)->display_as_link_to_action( 'MSGNR' ).
SET HANDLER me->handle_hot_spot
FOR o_salv_ida->field_catalog( )->display_options( ).
CATCH cx_salv_ida_unknown_name
cx_salv_call_after_1st_display.
ENDTRY.
ENDMETHOD.
METHOD handle_hot_spot.
TYPES:
BEGIN OF lty_wa.
INCLUDE TYPE t100.
INCLUDE TYPE lcl_t100_new_fields=>ty_t100_new_fields.
TYPES:
END OF lty_wa.
DATA: ls_wa TYPE lty_wa.
TRY.
eo_row_data->get_row_data(
EXPORTING iv_request_type = if_salv_gui_selection_ida=>cs_request_type-all_fields
IMPORTING es_row = ls_wa ).
cl_salv_ida_show_data_row=>display(
iv_text = `Hyper Link for ` && ev_field_name
&& ` and value ` && ls_wa-msgnr
is_data = ls_wa ).
CATCH cx_salv_ida_contract_violation
cx_salv_ida_sel_row_deleted.
ENDTRY.
ENDMETHOD.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments