on 03-07-2016 8:20 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.