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: 

CL_SALV_HIERSEQ_TABLE CHECKBOX_HOTSPOT

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

SALV framework doesn't allow for Checkbox with HotSpot. Thus it is raising the exception.

Regards,

Naimesh Patel

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

SALV framework doesn't allow for Checkbox with HotSpot. Thus it is raising the exception.

Regards,

Naimesh Patel

0 Kudos

Hi Naimesh,

Thanks for reply.

Is there any other way to achieve the same .

Hierarchical ALV using class and checkbox in editable mode at header level .