cancel
Showing results for 
Search instead for 
Did you mean: 

Use field description as column header

Former Member
0 Kudos

Hey,

I added a ALV to my WD and the column headers are named by the associated fieldname, like 'art_nr'.

But I want to use the description of the field which is called 'Artikelnummer'.

Is there a way to tell the ALV to use the description of the field and not the name? Or do I have to do that "manually" with a loop through my table?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Szczerbowski
Active Participant
0 Kudos

Hi,

You can reference DDIC like so:

ir_column->get_header( )->set_prop_ddic_binding_element( property = if_salv_wd_c_ddic_binding=>bind_prop_text value    = iv_name ).  
ir_column->get_header( )->set_prop_ddic_binding_field( property = if_salv_wd_c_ddic_binding=>bind_prop_text value    = if_salv_wd_c_ddic_binding=>ddic_bind_medium ).

IV_NAME is your Data element, eg PS_POSID

Former Member
0 Kudos

Hi,

You need to loop the table and set the column header.

lr_column-r_column->r_header->set_text(<required description> ).

lr_column-r_column->r_header->set_tooltip( <required description> ).

Thanks

KH