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: 

regarding SLIS_ALV_EVENT

Former Member
0 Kudos

<b>hai all,

well i have generated an alv grid display with

material.no,desc,and its correponding long text.well now,

when i click on material.no it should call transaction MMO2 using bdc.i know i have to make use of user command using slis_alv_event.but i dont know how event biulding is done. please any help is greatly appreciated.<b></b></b>

1 ACCEPTED SOLUTION

hymavathi_oruganti
Active Contributor
0 Kudos

hi,

for user command no need to use sli_alv_event.

u can do it in grid_display itself.

in reuse_alv_grid_display.

u can find

i_callback_user_command.

pass a name there which is form.

in the form, write case sy-ucomm and handle.

4 REPLIES 4

hymavathi_oruganti
Active Contributor
0 Kudos

hi,

for user command no need to use sli_alv_event.

u can do it in grid_display itself.

in reuse_alv_grid_display.

u can find

i_callback_user_command.

pass a name there which is form.

in the form, write case sy-ucomm and handle.

0 Kudos

can u please make it more clear.u mean to write subroutine

to call transaction mm02, and then pass this sub_routine name to i_callback_user_command.please help is appreciated.

0 Kudos

Exactly,

form user_command1.

*check for the user-command,

case sy-ucomm:

when '&IC1'.

set parameter id 'MAT' value <Material number>.

call transaction 'MM03' and skip first screen.

endcase.

endform.

pass the form name to the I_Callback_user_command.

0 Kudos

CONSTANTS: formname_user_command TYPE slis_formname VALUE 'user_command'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_callback_user_command = formname_user_command

FORM formname_user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

CASE ucomm.

WHEN '&IC1'.

SELECT * FROM sflight

INTO CORRESPONDING FIELDS OF

TABLE it_sflight1

WHERE CARRID = selfield-value.