Application Development and Automation 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: 
Read only

regarding alv list user command

former_member508729
Active Participant
0 Likes
524

Hi All,

i have declared user command subroutine which captures the user command events in it? and in syntax of this routine we declare one structure slis_selfield.

now suppose we double click on any field on alv list then this structure stores its value and also there is one field "sel_tab_field" which stored the field with its internal table (e.g i_elog-belnr). but in my case this field is not getting populated. but "value" field is populated. with selected index, and also table on which double click event happened.(e.g. i_elog)

can you help me out why this is happening.

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
488

Hi Ashutosh,

pls post ur code for user command

Read only

0 Likes
488

Hi ,

FORM user_command USING p_ucomm LIKE sy-ucomm

f_selfield TYPE slis_selfield.

  • capture double click event on document number created.

CASE p_ucomm.

WHEN '&IC1'.

IF f_selfield-tabname EQ 'I_DOC_CREATED'.

CHECK NOT f_selfield-value IS INITIAL.

SET PARAMETER ID 'BLN' FIELD f_selfield-value.

SET PARAMETER ID 'BUK' FIELD so_bukrs-low.

SET PARAMETER ID 'GJR' FIELD w_gjahr.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

ELSEIF f_selfield-tabname EQ 'I_ELOG'.

CHECK NOT f_selfield-value IS INITIAL.

SET PARAMETER ID 'BLN' FIELD f_selfield-value.

SET PARAMETER ID 'BUK' FIELD so_bukrs-low.

SET PARAMETER ID 'GJR' FIELD w_gjahr.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

Read only

Former Member
0 Likes
488

Hi.

Can you elaborate your issue.

What exactly are you to do with user-command.

Regards,

Simran

Read only

naimesh_patel
Active Contributor
0 Likes
488

Hello,

FORM USER_COMMAND USING RS_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE RS_UCOMM.

WHEN '&IC1'.

BREAK-POINT.

*see the rs_selfield .. you have all the fields filled when you press double click.

WRITE : 'good'.

ENDCASE.

ENDFORM. " USER_COMMAND

Regards,

Naimesh