cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to determine display columns from WDA alv settings

SARK
Explorer
0 Kudos

Hi,

We need help in determining the display columns from personalization settings of webdynpro abap alv programmatically based on this custom export to excel will be build on.

Is there any method to get the hidden or displayed columns of the webdynpro Abap ALV settings.

Thanks

Sathish

Accepted Solutions (0)

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

HI,

In the alv configuration model class i.e. cl_salv_wd_config_table class you have column settings interface (if_wd_column_settings).

Refernce to CL_SALV_WD_CONFIG TABLE can be got using GET_MODEL method of SALV_WD_TABLE interface controller.

Using the column settings interface get the columns using GET_COLUMNS method.

Now loop at the columns and check whether the column is cisbile or not using GET_VISIBLE method. If visible add the column name to the visible columns list and use this for custom export to excel code.

Regards,

Madhu