2010 Dec 22 2:04 PM
i am using Function moduel REUSE_ALV_HIERSEQ_LIST_DISPLAY for displaying records
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_SYREPID
I_CALLBACK_USER_COMMAND = 'SUB_USER_COMMAND'
FORM SUB_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD
CASE R_UCOMM
WHEN '&IC1'
READ TABLE I_FINAL INTO W_FINAL INDEX RS_SELFIELD-TABINDEX
IF SY-SUBRC = 0
SET PARAMETER ID 'BLN' FIELD W_FINAL-BELNR
SET PARAMETER ID 'BUK' FIELD C_xyz
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN
ENDIF
WHEN OTHERS
ENDCASE
ENDFORM.
The output is :
column1 column2 column3
i want to restrict the double click only for first column as..which column i am selecting it is navigating to transaction FB03
what i need to do that
THanks
satish G
2010 Dec 22 2:11 PM
Hi
The RS_SELFIELD should have the field name you double-clicked.
Make simple IF based on it only on your field to process your logic on DCK.
Best Regards
Yossi
2010 Dec 22 10:17 PM
Hi,
After when '&ic1' statment inculde below lines.
IF RS_SELFIELD-fieldname <> 'your filedname'.
EXIT.
ENDIF.
Thanks,
Amara.
2010 Dec 23 12:15 AM
2010 Dec 28 6:37 AM
FORM SUB_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
IF RS_SELFIELD-FIELDNAME EQ C_FLD_NAME1.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE I_FINAL INTO W_FINAL INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
CLEAR:V_GJAHR.
V_GJAHR = W_FINAL-BUDAT+0(4).
SET PARAMETER ID 'BLN' FIELD W_FINAL-BELNR.
SET PARAMETER ID 'BUK' FIELD C_BUKRS.
SET PARAMETER ID 'GJR' FIELD V_GJAHR.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN .
ENDIF.
CLEAR :W_FINAL.
WHEN OTHERS.
ENDCASE.
ENDIF.
ENDFORM. "SUB_USER_COMMAND
2010 Dec 28 11:59 AM