‎2006 Jul 18 10:58 AM
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.
‎2006 Jul 18 11:03 AM
‎2006 Jul 18 11:18 AM
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.
‎2006 Jul 18 11:07 AM
Hi.
Can you elaborate your issue.
What exactly are you to do with user-command.
Regards,
Simran
‎2006 Jul 18 11:10 AM
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