on 02-13-2014 11:39 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
Follow the below code and you can improvise as per your requirements.
Data: lo_salv_model type ref to cl_salv_wd_config_table,
lo_salv_function_settings type ref to if_salv_wd_function_settings,
lo_salv_function_std type ref to cl_salv_wd_a_function_std,
lo_salv_std_alv_funct type ref to cl_prs_std_alv_funct,
** Get reference ALV model into lo_salv_model.
lo_interfacecontroller = wd_this->wd_cpifc_alv_table_name.
lo_salv_model = lo_interfacecontroller->get_model( ).
** Pass Model reference to LO_SALV_FUNCTION_SETTINGS.
LO_SALV_FUNCTION_SETTINGS = LO_SALV_MODEL.
** Get reference of ALV standard function 'VIEW_LOAD' drop down
LO_SALV_FUNCTION_STD = LO_SALV_FUNCTION_SETTINGS->GET_FUNCTION_STD( IF_SALV_WD_C_STD_FUNCTIONS=>VIEW_LOAD ).
** Change the label of standard ALV function
LO_SAL_STD_ALV_FUNCT->CHANGE_TEXT(
EXPORTING
TEXT = 'Local Variant'
CHANGING
STD_FUNCTION = LO_SALV_FUNCTION_STD ).
In this way you can change the label of ALV standard functions.
Output of above code is been attached.
Hope this will solve your issue....
Regards
M Nair
Hi Sandesh,
I don't think we have a standard method to change the label text of VIEW.
Only thing we need to enhance the standard SALV_WD_TABLE component and change the label text as you require. But, why the user are very particular about the label text of VIEW. Hope you can convince the users.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.