Application Development and Automation 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: 
Read only

Problem in Hierarchical Sequential List

Former Member
0 Likes
709

Hi All,

I am developing an Hierarchical ALV List using OOABAP. In the output list, I have a checkbox to be displayed. I have taken the cell type as "CHECKBOX", it is displaying as disabled. I searched some sites for the resolution, it is mentioned if we take cell type as "CHECKBOX_HOTSPOT" then it will be disabled.

So I tried that as well. When I used that program is giving me a dump. Please find the dump below. Request you all to provide a faster solution for this.

Thanks.

Error analysis

An exception occurred which is explained in detail below.

The exception, which is assigned to class 'CX_SALV_METHOD_NOT_SUPPORTED', was

not caught and

therefore caused a runtime error.

The reason for the exception is:

Class COLUMNCLASS, method SET_CELL_TYPEMETHOD not supported for

CL_SALV_HIERSEQ_TABLEOBJECT KEY

Information on where terminated

Termination occurred in the ABAP program "CL_SALV_COLUMN================CP" -

in "RAISE_METHOD_ONLY_VALID_FOR".

The main program was "ZZSMB004_FSE_FILLUP_TEST ".

In the source code you have the termination point in line 95

of the (Include) program "CL_SALV_COLUMN================CM01Q".

SourceCde

read table t_valid

with key model = if_salv_c_model=>table

object = if_salv_c_table_objects=>list

transporting no fields.

if sy-subrc ne 0.

l_exit = abap_false.

endif.

l_key = text-k03.

endcase.

when if_salv_c_model=>hierseq.

read table t_valid with key model = if_salv_c_model=>hierseq

transporting no fields.

if sy-subrc ne 0.

l_exit = abap_false.

endif.

l_object = text-o03.

when if_salv_c_model=>tree.

read table t_valid with key model = if_salv_c_model=>table

transporting no fields.

if sy-subrc ne 0.

l_exit = abap_false.

endif.

l_object = text-o04.

endcase.

check l_exit eq abap_false.

raise exception type cx_salv_method_not_supported

exporting

class = l_class

method = l_method

object = l_object

key = l_key.

5 REPLIES 5
Read only

franois_henrotte
Active Contributor
0 Likes
645

you cannot use that cell type with hierarchical list display

instead try to put EDIT = 'X' in the corresponding entry of field catalog

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
645

Hi Smitha ,

After the Cell Style (you mean CELLTAB) that you have taken as checkbox.

Now pass this while editing the cell styles.

X_CELL-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.

hope this helps.

Read only

Former Member
0 Likes
645

Hi,

check program SALV_DEMO_HIERSEQ_COLUMN, hope this may help you..

Regards,

Ravi.

Read only

0 Likes
645

I resolved it myself. Thanks for your responses.

Read only

0 Likes
645

Hi Smitha,

How did you resolve this. Kindly elaborate.

I am facing same problem.