cancel
Showing results for 
Search instead for 
Did you mean: 

Disable column selection

Former Member
0 Kudos

Hi

from 7.01 Ehp1 onwards web dynpro tables and alv is having a feature to select columns and change its position.

I want to disable the functionality as i don't want user to change the column order.

Pl help me in getting this done for ALV's

Thanks

Abhi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Abhi - this is very simple.

Go to your WEB DYNPRO APPLICATIONS under your WEB DYNPRO OBJECT

Open your WEB DYNPRO APPLICATION (double click)

It will display PROPERTIES TAB with the description of your object, etc.

Navigate to the PARAMETERS TAB in the PARAMETERS column select the Search tool and search for WDDISABLEUSERPERSONALIZATION is a boolean set "X" as your default value and SAVE.

this will disable all the user personalization so the user can't move the order of the columns.

Please provide point if is helpful.

thanks!

Jason PV

abhimanyu_lagishetti7
Active Contributor
0 Kudos

I did the same thing but it is still allowing me to re-order the columns.

can you pl tell me what is the version of your system, SAP_BASIS and SAP_ABA.

Thanks

Abhi

Former Member
0 Kudos

Both in Release 701 level 5.

You change the WDDISABLEUSERPERSONALIZATION to X in the Application level? not the view nor the Window...In the application?

Also try in your VIEW to do the IF_SALV_WD_STD_FUNCTIONS->SET_DIALOG_SETTINGS_ALLOWED( ABAP_FALSE ). This will disable the SETTINGS option in your ALV so the user cant change the order of columns in the settings.

But by drag and drop WDDISABLEUSERPERSONALIZATION will take care.

it looks like the user can drag the column but actually when they drop it, is not changing.

thanks!

Jason PV

abhimanyu_lagishetti7
Active Contributor
0 Kudos

>

> it looks like the user can drag the column but actually when they drop it, is not changing.

>

true, it is bad

0 Kudos

Hi,

I have done the same and its working for Development server but when I move the transport to Production its not working,

Could you please let me know what could be the issue.

Thanks in Advance.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Try this piece of code;

  • show tab COLUMN SELECTION in Settings page

CALL METHOD wd_this->alv_conf_table->if_salv_wd_std_functions~set_column_selection_allowed

EXPORTING value = ABAP_false..

here alv_conf_table refers to CL_SALV_WD_CONFIG_TABLE.

Hope it helps you.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

set_column_selection_allowed to false will not show the column selection in the settings of ALV.

I want to disable the re-rodering of columns by drag and drop

Thanks

Abhi