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 is truncating my status description column

glauco
Active Contributor
0 Kudos

Hi!

A string column is being truncated by the system. I need your help.

I created a ALV Tree report using CL_SALV_HIERSEQ_TABLE.

When I used Optimize, the columns sizes were defined automatically.
But it is requeired that I set each column size. So I commented the optmize method.

I have a column which describes a status we have here, and this description column is type string as I declared it in my HEADER internal table for the ALV Tree.

When I did this, the system is simply truncating it when I run the report.

I've tryied using lr_column->set_output_length( 20 ) but even this way, the system is truncating it to size 10 I think. But my description use up to 20 characters.

Now I'm trying to set lr_column->set_optimized( value = IF_SALV_C_BOOL_SAP=>TRUE ) just for this column but still truncating this column.

Need help.

Thanks in advance for everyone who read this.

1 ACCEPTED SOLUTION

glauco
Active Contributor

SOLVED

I changed type string to char30 in the internal table declaration.

Probably the system do not recognizes a size when it is type string.
Now it works fine.

3 REPLIES 3

glauco
Active Contributor

SOLVED

I changed type string to char30 in the internal table declaration.

Probably the system do not recognizes a size when it is type string.
Now it works fine.

Sandra_Rossi
Active Contributor

Thanks for the feedback. Maybe you can "convert comment to answer" and then you can select your answer "best answer"?

glauco
Active Contributor

SOLVED

I changed type string to char30 in the internal table declaration.

Probably the system do not recognizes a size when it is type string.
Now it works fine.