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: 

Need to restrict entry for one column only

0 Kudos
175

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

5 REPLIES 5

former_member641978
Active Participant
0 Kudos
149

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

Former Member
0 Kudos
149

Hi,

After when '&ic1' statment inculde below lines.

IF RS_SELFIELD-fieldname <> 'your filedname'.

EXIT.

ENDIF.

Thanks,

Amara.

Clemenss
Active Contributor
0 Kudos
149

Hi,

sorry, can't read unformatted code

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_SYREPID
I_CALLBACK_USER_COMMAND = 'SUB_USER_COMMAND'

Check [How to post code in SCN, and some things NOT to do..|;.

Regards,

Clemens

0 Kudos
149

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

0 Kudos
149
unformatted code