on 08-24-2011 3:25 PM
Hi friends,
I am using the below code to Rename the standard ALV button 'Delete row'.
but i am getting the error as 'Access to protected method "SET_TEXT(" is not allowed.
DATA:
lr_function_settings TYPE REF TO if_salv_wd_function_settings,
lr_function TYPE REF TO cl_salv_wd_function_std,
lv_text TYPE string.
lv_text = 'delete Line'.
lr_function_settings ?= lo_interfacecontroller->get_model( ).
lr_function = lr_function_settings->get_function_std( if_salv_wd_c_std_functions=>edit_delete_row ).
lr_function->set_text( lv_text ).
how do I rename the standard ALV button?
Regards,
Xavier.P
Hi friends,
>
> I am using the below code to Rename the standard ALV button 'Delete row'.
>
> but i am getting the error as 'Access to protected method "SET_TEXT(" is not allowed.
>
>
> DATA:
> lr_function_settings TYPE REF TO if_salv_wd_function_settings,
> lr_function TYPE REF TO cl_salv_wd_function_std,
> lv_text TYPE string.
>
> lv_text = 'delete Line'.
> lr_function_settings ?= lo_interfacecontroller->get_model( ).
> lr_function = lr_function_settings->get_function_std( if_salv_wd_c_std_functions=>edit_delete_row ).
> lr_function->set_text( lv_text ).
>
>
> how do I rename the standard ALV button?
>
>
> Regards,
> Xavier.P
Try using
lr_function->text = lv_text .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.