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: 

function codes

Former Member
0 Kudos

in which table are the function codes stored? how to find the function codes for double click in alv reporting?wht are &IC1 and &ETA function codes?

3 REPLIES 3

kathryn_mcgallicher
Active Participant
0 Kudos

Hello,

&IC1 can be used to check for a double-click in a "hotspot" field in an ALV grid. It will show up in sy-ucomm and you would check it in a user_command form that was defined as an event in the original ALV call.

For example (using SAP Utilities):

FORM v_user_command USING r_ucomm TYPE sy-ucomm

ls_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'. "hotspot

read table t_error_log index ls_selfield-tabindex.

if ls_selfield-sel_tab_field = 'T_ERROR_LOG-REFOBJTYPE'.

if t_error_log-refobjtype = 'INSTLN'.

set parameter id 'ANL' field t_error_log-refobjkey.

call transaction 'EC85'.

elseif t_error_log-refobjtype = 'DEVICE'.

f_equnr = t_error_log-refobjkey.

perform get_device_number using f_equnr

f_device.

set parameter id 'GER' field f_device.

call transaction 'EC85'.

endif.

elseif ls_selfield-sel_tab_field = 'T_ERROR_LOG-REFOBJKEY'.

if t_error_log-refobjtype = 'INSTLN'.

set parameter id 'ANL' field t_error_log-refobjkey.

call transaction 'EL29'.

elseif t_error_log-refobjtype = 'DEVICE'.

f_equnr = t_error_log-refobjkey.

perform get_device_number using f_equnr

f_device.

set parameter id 'GER' field f_device.

call transaction 'EL29'.

endif.

elseif ls_selfield-sel_tab_field = 'T_ERROR_LOG-DISCNO'.

set parameter id 'EDN' field t_error_log-discno.

call transaction 'EC86' and skip first screen.

endif.

ENDCASE.

endform.

K---

former_member150733
Contributor
0 Kudos

THe function codes are specified in the GUI status / PF status of that program. YOu can see the GUI Status/PF status of a program by the T.Code SE41.

Once you give the prorgram name & Status, you can see the list of function codes that are available.

Regards,

Anish Thomas

<i>Pls mark all useful answers</i>

Former Member
0 Kudos

Hi,

Function Codes are stored in TSTC table.

Regards,

Bhaskar