0% found this document useful (0 votes)
115 views

WD Table Column Settings

This document describes how to initialize a table handler for a process elements table in ABAP. It explains that the table handler allows adjusting column positions and visibility as well as enabling export to Excel, sorting, and filtering. The method init_table_handler creates an object of class CL_WD_TABLE that can be used to initialize the table handler and deactivate certain functions like sorting and filtering.

Uploaded by

damodar1987
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

WD Table Column Settings

This document describes how to initialize a table handler for a process elements table in ABAP. It explains that the table handler allows adjusting column positions and visibility as well as enabling export to Excel, sorting, and filtering. The method init_table_handler creates an object of class CL_WD_TABLE that can be used to initialize the table handler and deactivate certain functions like sorting and filtering.

Uploaded by

damodar1987
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

WD Table- Settings to adjust columns position and visibility

Using this procedure we can enable below options.



1. Settings ( columns )
2. Export to excel
3. Sort
4. Filter


WD Table- Settings to adjust columns position and visibility

**********************************************************************
* First Time Initalizations (only once) *
**********************************************************************
IF first_time = abap_true.
* Initialize Table Handler
wd_this->mo_view = view.
wd_this->init_table_handler( ).
* Set Table Descriptions (from customizing)
* wd_this->set_cust_column_text( ).
ENDIF.
WD Table- Settings to adjust columns position and visibility

METHOD init_table_handler .
**********************************************************************
* Method: INIT_TABLE_HANDLER *
* ------------------------------------------------------------------ *
* Intialization of the table handler for the process elements table *
* (required for filter and settings) *
**********************************************************************


**********************************************************************
DATA:
lo_table TYPE REF TO cl_wd_table,
lo_view_ctrl TYPE REF TO if_wd_view_controller,
lo_comp TYPE REF TO if_wd_component,
WD Table- Settings to adjust columns position and visibility
ls_deactivated_func TYPE
/plmu/cl_frw_tbl_hndl=>ts_deactivated_functions.
**********************************************************************


**********************************************************************
* call init method for table handler *
**********************************************************************
lo_table ?= wd_this->mo_view->get_element( 'TABLE' ).
lo_view_ctrl = wd_this->wd_get_api( ).
lo_comp = wd_comp_controller->wd_get_api( ).
ls_deactivated_func-sort = abap_true.
ls_deactivated_func-filter = abap_true.
ls_deactivated_func-export = abap_true.

CREATE OBJECT wd_this->mo_pe_table_hndl
EXPORTING
ir_table = lo_table
ir_context = wd_context
ir_view_controller = lo_view_ctrl
ir_component = lo_comp
iv_deactivated_functions = ls_deactivated_func.
* io_appl_model = wd_assist->go_rpr_appl.


ENDMETHOD.
WD Table- Settings to adjust columns position and visibility
WD Table- Settings to adjust columns position and visibility
WD Table- Settings to adjust columns position and visibility

You might also like