Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Checkbox in 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

Hai Experts,

I am trying to include a check box in 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' for single coloum and after selecting the check box those rows should get processed .

I was sucessful in implementing this logic with 'Reuse_alv_grid_display' but the same is not working with 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' .

The output list is displaying only if i am commenting the exporting parameter I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND' in the 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' ,otherwise it is not displayed.

<b>Code :</b>

Step 1)

CLEAR wa_stb_fields_tb.

READ TABLE stb_fields_tb INTO wa_stb_fields_tb WITH KEY

fieldname = 'SUM'

tabname = 'G_T_PLPO'.

wa_stb_fields_tb-CHECKBOX = 'X'.

wa_stb_fields_tb-EDIT = 'X'.

wa_stb_fields_tb-col_pos = 20.

wa_stb_fields_tb-seltext_m = 'Selection f Sum'.

MODIFY stb_fields_tb FROM wa_stb_fields_tb

TRANSPORTING CHECKBOX

EDIT

seltext_m

col_pos

WHERE fieldname = 'SUM'.

Step 2)

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

i_callback_program = report_name

I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'

Step 3)

FORM F_USER_COMMAND USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

      • Some operation is being performed

ENDFORM.

Tags:
Not what you were looking for? View more on this topic or Ask a question