cancel
Showing results for 
Search instead for 
Did you mean: 

ALV settings in web dynpro abap

Former Member
0 Kudos

hi,

i have disabled personalization for end users with WD_GLOBAL_SETTINGS and setting parameter for disable personalization to 'X'. This works perfect, BUT:

i have a standard web dynpro application FITV_POWL_TRIPS. There is the (ALV) button for the settings dialog, see screenshot:

The end user is able to click this button and change the layout of the ALV list, see second screenshot. Then he can save everything in an own view.

But this also has to be avoided ! The user should NOT be able to do this.

It seems that this ALV settings have nothing to do with personalization and disable personalization. So HOW can i avoid that end user can do changes there ? Can i hide the button somehow ?

btw: hopefully this is not a global setting as in other applications this has to be allowed. but not in this (and 2 other)  applications.

br, Martin

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member262988
Active Contributor
0 Kudos

Hi Martin,

Can you please try this way..

Goto SE80 select "Web Dynpro Comp. / Intf." and open your compoent, expand the Views folder. Select the view. Go to the Methods tab and select Enhance from the toolbar.Assign an name to the enhancement. Scroll left in the list of methods and create a Post-Exit method for the method INITIALIZE_ALV and code as below:

data lo_interfacecontroller  type ref to iwci_salv_wd_table.
  data lr_config_model_value   type ref to cl_salv_wd_config_table.

  lo_interfacecontroller =  wd_this->wd_cpifc*  get the interface controller instance.

  lr_config_model_value = lo_interfacecontroller->get_model( ).
  lr_config_model_value->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).

Thanks,

Shailaja Ainala.

Former Member
0 Kudos

Hi Shailaja,

thank you, il will try this tomorrow as i have no system access right now.

but anyway: when i have 10 applications where i want to hide this button i have to do 10 enhancements on 10 different places, right ?

br, Martin

Former Member
0 Kudos

hi there,

i am still stucking with this issue. now i have also from end-user side the requirement to HIDE(!) this button in EVERY ALV inside ESS. This button occurs at about 10 standard-alv's in our "new" ESS which is in test-phase.

E.g. in CATS-timesheet application, see first screensshot, or in travel management, see second screenshot.

Is there any modification-free(!) way to hide this "stupid" button for all applications ?

br Martin

Gowtham
Contributor
0 Kudos

Hi Martin,

Kindly try the following code to hide the settings button.


  DATA l_table_config            TYPE REF TO  cl_salv_wd_config_table.   " For Get model

   

  l_table_config = l_ref_interfacecontroller->get_model( ).

  l_table_config->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).

  l_table_config->if_salv_wd_std_functions~set_display_settings_allowed( abap_false ).


- Gowtham

Former Member
0 Kudos

hi,

sorry, but WHERE to put this code ? I am talking about a standard application. Is this coding modification-free ?

br Martin

Gowtham
Contributor
0 Kudos

Hi Martin,

Try to find where the ALV init method is getting called , usually it will be in WDDOINIT , add this code there.

IF you are enhancing standard application use Postexit type method.

- Gowtham

Former Member
0 Kudos

hi,

sorry, i am new to web dynpro abap   so where is this WDDOINIT ?

br Martin