cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the text and the order of columns in ALV for WebDynpro

mariano_gallicchio2
Participant
0 Kudos

Hello experts, im using ALV in WebDynpro, and i have this code:

lr_column = lo_value->if_salv_wd_column_settings~get_column( 'ZNC_MONTO_LIQ' ).

lr_column_header = lr_column->get_header( )

lr_column_header->set_text( 'IMPORTE' ).

but this code, doesn't change the title of the column.

the same happens when i put the visibility in "none" or when i change the position of the column

Anyone can tell why this is happening?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

add this line also

LR_COLUMN_HEADER->set_ddic_binding_field( IF_SALV_WD_C_DDIC_BINDING=>DDIC_BIND_NONE ).

Regards

Tamil

Edited by: Tamilselvan K on Sep 2, 2008 6:32 PM

mariano_gallicchio2
Participant
0 Kudos

Thank a lot. Theproblem of the header is solved, the other problem eas a missunderstood between the team... Thanks again!.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't set the text of the generated header directly. You have to first delete the standard header and create a new one. You can then override the header text.

l_column = l_table->if_salv_wd_column_settings~get_column( 'CREATED_AT' ).
  l_column->delete_header( ).
  l_header = l_column->create_header( ).
  l_header->set_text( `Created At` ).