on 11-06-2009 6:48 AM
Hi Experts,
I have a ALV table with column BELKZ from PRPS table. Now my column heading is coming as BELKZ using
SALV in Web Dynpro.
I want to set my column heading as Account assignment.
In other words how do i set the custom column heading in ALV table.
Please help.
Regards,
Chitrasen
* Get columns
DATA: lt_columns TYPE salv_wd_t_column_ref ,
ls_columns TYPE salv_wd_s_column_ref .
DATA: l_column_header TYPE REF TO cl_salv_wd_column_header .
lt_columns = l_column_settings->get_columns( ) .
LOOP AT lt_columns INTO ls_columns .
CASE ls_columns-id .
WHEN 'BELKZ'.
l_column_header = ls_columns-r_column->get_header( ) .
l_column_header->set_ddic_binding_field(
if_salv_wd_c_column_settings=>ddic_bind_none ) .
l_column_header->set_text( 'column Title' ) .
ENDCASE
.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the below code.
data : lo_column_setting type ref to if_salv_wd_column_settings,
LO_COLUMN TYPE REF TO CL_SALV_WD_COLUMN,
LO_HEADER TYPE ref to cl_salv_wd_column_header.
lo_column = lo_column_setting->get_column( 'USERID' ).
CALL METHOD lo_column->CREATE_HEADER
RECEIVING
VALUE = LO_HEADER.
CALL METHOD LO_HEADER->SET_TEXT
EXPORTING
VALUE = 'User Id'.
Regards,
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.