01-14-2022 10:59 AM
Hello,
I am using Alv cl_salv_table and I want to use my text elements as columns names:
data: lv_col_l(40),
lv_col_m(20),
lv_col_s(10)
write TEXT-t01 to lv_col_s.
write TEXT-t01 to lv_col_m.
write TEXT-t01 to lv_col_l.
column = columns->get_column( 'MENGE' ).
column->set_short_text( lv_col_s ).
column->set_medium_text( lv_col_m ).
column->set_long_text( lv_col_l ).
I have tried everything lv_col_s are empty,and I dont know how to fill them.Please help!
01-14-2022 12:36 PM
01-14-2022 12:39 PM
Could you try :
column = columns->get_column( 'MENGE' ).
column->set_short_text( conv #( text-t01 ) ).
01-14-2022 12:51 PM
Have you defined the text symbol t01? What's its value? You may check the following first:
data: lv_col_l(40),
lv_col_m(20),
lv_col_s(10)
write 'TEXT-t01' to lv_col_s.
write 'TEXT-t01' to lv_col_m.
write 'TEXT-t01' to lv_col_l.<br>
01-14-2022 1:09 PM
Hi frdric.girod in text-t01 is a text:"this column",I tried with conv #( text-t01 ) it does not work.please try it yourself can you populate the variables with the text?
01-14-2022 1:11 PM