changing the header text in the alv displayed in web dynpro abap
2018-01-25 10:44
393 查看
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
DATA: lr_field TYPE REF TO cl_salv_wd_field.
lr_field = lo_value->if_salv_wd_field_settings~get_field(
'FNAME' ).
change the label of the report.
DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
CALL METHOD lo_value->if_salv_wd_column_settings~get_column
EXPORTING
id = 'FNAME'
RECEIVING
value = lr_weeknum.
SET THE LABEL OF THE COLUMN
DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
CALL METHOD lr_weeknum->get_header
RECEIVING
value = hr_weeknum.
CALL METHOD lr_weeknum->set_resizable
EXPORTING
value = abap_false.
hr_weeknum->set_prop_ddic_binding_field(
property = if_salv_wd_c_ddic_binding=>bind_prop_text
value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
set the text of the column
CALL METHOD hr_weeknum->set_text
EXPORTING
value = 'Characteristic Value'.
lo_value = lo_interfacecontroller->get_model( ).
DATA: lr_field TYPE REF TO cl_salv_wd_field.
lr_field = lo_value->if_salv_wd_field_settings~get_field(
'FNAME' ).
change the label of the report.
DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
CALL METHOD lo_value->if_salv_wd_column_settings~get_column
EXPORTING
id = 'FNAME'
RECEIVING
value = lr_weeknum.
SET THE LABEL OF THE COLUMN
DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
CALL METHOD lr_weeknum->get_header
RECEIVING
value = hr_weeknum.
CALL METHOD lr_weeknum->set_resizable
EXPORTING
value = abap_false.
hr_weeknum->set_prop_ddic_binding_field(
property = if_salv_wd_c_ddic_binding=>bind_prop_text
value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
set the text of the column
CALL METHOD hr_weeknum->set_text
EXPORTING
value = 'Characteristic Value'.
相关文章推荐
- note about studying ALV in abap webdynpro
- Programming dynamic ALV in WebDynpro for ABAP
- 个人收藏 Totals and Subtotals in ALV Web Dynpro (Web Dynpro for ABAP)
- 个人收藏 Programming dynamic ALV in WebDynpro for ABAP
- Radio button group by Key in webdynpro ABAP
- ABAP Web dynpro ALV report table
- javax.xml.ws.WebServiceException: No Content-type in the header!
- Using drop down by key in webdynpro ABAP
- 【原创】【ABAP】Opening SAP Transaction Code in SAP GUI Window from WebDynpro through URL
- ALV Select options for ABAP Web dynpro
- Creating a WebDynpro ALV Application in 30 easy steps
- ABAP Web dynpro ALV report table
- Using table UI element in webdynpro ABAP
- Can you refresh a document in the Notes client after changing a rich text field?
- WebDynpro for ABAP 简单ALV实例
- (Sharepoint 2010) Change the background and font color of text for a web part header
- Dropdown by index in ALV using in Web Dynpro
- Creating editable ALV using webdynpro for ABAP
- Changing the Output Path in your Web Applications is a bad idea
- 个人收藏 Dropdown by index in ALV using in Web Dynpro