Skip to Content

Need help to determine display columns from WDA alv settings

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 21, 2010 at 05:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded