Skip to Content
0
Former Member
Nov 30, 2011 at 06:30 AM

CL_SALV_HIERSEQ_TABLE CHECKBOX_HOTSPOT

364 Views

Hi All,

I am using below code to display hierarchical ALV

TRY.

CALL METHOD cl_salv_hierseq_table=>factory(

EXPORTING t_binding_level1_level2 = w_ibinding

IMPORTING r_hierseq = w_table

CHANGING t_table_level1 = t_vbak1

t_table_level2 = t_vbap1 ).

CATCH cx_salv_data_error .

CATCH cx_salv_not_found .

ENDTRY.

And using below code to display checkbox.

try.

w_columns = w_table->get_columns( level = 1 ).

w_column ?= w_columns->get_column( 'CBOX' ).

w_column->set_cell_type( if_salv_c_cell_type=>checkbox ). "checkbox_hotspot

w_column->set_long_text( 'Check-box' ).

catch cx_salv_not_found. "#EC NO_HANDLER

endtry.

Checkbox will appear in display mode.

I need checkbox in EDITABLE MODE.

So I tried to use

try.

w_columns = w_table->get_columns( level = 1 ).

w_column ?= w_columns->get_column( 'CBOX' ).

w_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). "checkbox_hotspot

w_column->set_long_text( 'Check-box' ).

catch cx_salv_not_found. "#EC NO_HANDLER

endtry.

But its not working and giving dump saying that we cannot assign checkboc_hotspot in salv_c_cell_type.

Need your help .

I found out below from class documentation

Does this means that we cant not use CHECKBOX_HOTSPOT in cl_salv_hierseq_table.

ALV Tool In Container Fullscreen Class.ABAP List

Simple, Two-Dim. Table TEXT TEXT TEXT

CHECKBOX CHECKBOX CHECKBOX

CHECKBOX_HOTSPOT CHECKBOX_HOTSPOT -

HOTSPOT HOTSPOT HOTSPOT

BUTTON - -

LINK LINK -

Hier.-Seq. List - - TEXT

- - CHECKBOX

- - HOTSPOT

- - -

- - -

- - -

Edited by: ASAPBAP on Nov 30, 2011 7:41 AM