cancel
Showing results for 
Search instead for 
Did you mean: 

How to Replace text (view ) with userdefined text in webdynpro alv table tool bar

santhosh_nagavalli
Participant
0 Kudos

Hi Experts

      Can anybody tell me How to replace Standard text(view) with userdefined text in webdynpro alv table

     tool bar ,advance thanks .

Regards

Sandesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184578
Active Contributor
0 Kudos

Hi,

Could you please let us know the purpose of your requirement. If you are looking for variants in ALV check the below doc by Amy :

Then give your own text to the variant.

Regards,

Kiran

santhosh_nagavalli
Participant
0 Kudos

Hi Kiran,

              Thanks for Reply,i have to give text in place of VIEW which is user defined text,but currently it is not required .i just want to know how to do this.

Thanks & Regards

Sandesh

former_member216769
Participant
0 Kudos

Hi Santhosh,

Please close the discussion if you have already got the solution, or else please let me know I have a solution for this.

Yes we can change the standard text of 'View' in web dynpro ALV.

santhosh_nagavalli
Participant
0 Kudos

Hi  Manikandan,

          Please tell me the solution for this ,Advance Thanks.

Thanks

Santhosh

former_member216769
Participant
0 Kudos

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

ramakrishnappa
Active Contributor
0 Kudos

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

santhosh_nagavalli
Participant
0 Kudos

Hi Ramakrsihnappa,

    Thanks for reply,this requirement is not required as i spoke to concern person regarding this.

  your answer is helpful for me .

Regards

Sandesh

ramakrishnappa
Active Contributor
0 Kudos

Hi Sandesh,

Please close the discussion if your issue is resolved.

Regards,

Rama