mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 13:46:17 +08:00
Correction #143; delete of ZCL_EXCEL_CONVERTER_EX_RESULT
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@273 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
This commit is contained in:
parent
3b811397d8
commit
455cb220d3
|
@ -1,93 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-16"?>
|
|
||||||
<CLAS CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" VERSION="1" LANGU="E" DESCRIPT="SALV converter" UUID="4F2FC25C1097003CE1008000C008015A" CATEGORY="00" EXPOSURE="2" STATE="1" RELEASE="0" AUTHOR="FEMIA" CREATEDON="20120319" CHANGEDBY="FEMIA" CHANGEDON="20120319" CHGDANYON="00000000" CLSFINAL="X" CLSCCINCL="X" FIXPT="X" UNICODE="X" R3RELEASE="702" CLSBCCAT="00" DURATION_TYPE="0 " RISK_LEVEL="0 " REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV">
|
|
||||||
<publicSection>class ZCL_EXCEL_CONVERTER_EX_RESULT definition
|
|
||||||
public
|
|
||||||
inheriting from ZCL_EXCEL_CONVERTER_ALV
|
|
||||||
final
|
|
||||||
create public .
|
|
||||||
|
|
||||||
public section.
|
|
||||||
*"* public components of class ZCL_EXCEL_CONVERTER_EX_RESULT
|
|
||||||
*"* do not include other source files here!!!
|
|
||||||
|
|
||||||
methods ZIF_EXCEL_CONVERTER~CREATE_FIELDCATALOG
|
|
||||||
redefinition .
|
|
||||||
methods ZIF_EXCEL_CONVERTER~CAN_CONVERT_OBJECT
|
|
||||||
redefinition .</publicSection>
|
|
||||||
<protectedSection>protected section.
|
|
||||||
*"* protected components of class ZCL_EXCEL_CONVERTER_EX_RESULT
|
|
||||||
*"* do not include other source files here!!!</protectedSection>
|
|
||||||
<privateSection>*"* private components of class ZCL_EXCEL_CONVERTER_EX_RESULT
|
|
||||||
*"* do not include other source files here!!!
|
|
||||||
private section.</privateSection>
|
|
||||||
<localImplementation>*"* local class implementation for public class
|
|
||||||
*"* use this source file for the implementation part of
|
|
||||||
*"* local helper classes</localImplementation>
|
|
||||||
<localTypes>*"* use this source file for any type declarations (class
|
|
||||||
*"* definitions, interfaces or data types) you need for method
|
|
||||||
*"* implementation or private method's signature</localTypes>
|
|
||||||
<localMacros>*"* use this source file for any macro definitions you need
|
|
||||||
*"* in the implementation part of the class</localMacros>
|
|
||||||
<inheritance CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV" VERSION="1" STATE="1" AUTHOR="FEMIA" CREATEDON="20120319" CHANGEDBY="FEMIA" CHANGEDON="20120319">
|
|
||||||
<redefinition CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV" VERSION="1" MTDNAME="ZIF_EXCEL_CONVERTER~CAN_CONVERT_OBJECT" EXPOSURE="2"/>
|
|
||||||
<redefinition CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV" VERSION="1" MTDNAME="ZIF_EXCEL_CONVERTER~CREATE_FIELDCATALOG" EXPOSURE="0"/>
|
|
||||||
</inheritance>
|
|
||||||
<interfaceMethod CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" CPDNAME="ZIF_EXCEL_CONVERTER~CAN_CONVERT_OBJECT">
|
|
||||||
<source>METHOD zif_excel_converter~can_convert_object.
|
|
||||||
DATA: lo_result TYPE REF TO cl_salv_ex_result_data_table.
|
|
||||||
|
|
||||||
TRY.
|
|
||||||
lo_result ?= io_object.
|
|
||||||
CATCH cx_sy_move_cast_error .
|
|
||||||
RAISE EXCEPTION TYPE zcx_excel.
|
|
||||||
ENDTRY.
|
|
||||||
ENDMETHOD.</source>
|
|
||||||
</interfaceMethod>
|
|
||||||
<interfaceMethod CLSNAME="ZCL_EXCEL_CONVERTER_EX_RESULT" CPDNAME="ZIF_EXCEL_CONVERTER~CREATE_FIELDCATALOG">
|
|
||||||
<source>METHOD zif_excel_converter~create_fieldcatalog.
|
|
||||||
DATA: lo_result TYPE REF TO cl_salv_ex_result_data_table,
|
|
||||||
lo_bs_data TYPE REF TO cl_salv_bs_data_table,
|
|
||||||
lo_ex_cm TYPE REF TO cl_salv_ex_cm,
|
|
||||||
lo_data TYPE REF TO data.
|
|
||||||
|
|
||||||
FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE.
|
|
||||||
|
|
||||||
TRY.
|
|
||||||
zif_excel_converter~can_convert_object( io_object = io_object ).
|
|
||||||
ENDTRY.
|
|
||||||
|
|
||||||
lo_result ?= io_object.
|
|
||||||
|
|
||||||
CLEAR: es_layout,
|
|
||||||
et_fieldcatalog.
|
|
||||||
|
|
||||||
IF lo_result IS BOUND.
|
|
||||||
lo_bs_data ?= lo_result->r_model->r_data.
|
|
||||||
lo_data = lo_bs_data->if_salv_bs_data_source~get_table_ref( ) .
|
|
||||||
ASSIGN lo_data->* TO <fs_table> .
|
|
||||||
|
|
||||||
lo_ex_cm ?= lo_result->r_model->r_model.
|
|
||||||
ws_layo = lo_ex_cm->s_layo.
|
|
||||||
* T_DRDN Instance Attribute Public Type LVC_T_DROP
|
|
||||||
wt_fcat = lo_ex_cm->t_fcat.
|
|
||||||
wt_filt = lo_ex_cm->t_filt.
|
|
||||||
* T_HYPE Instance Attribute Public Type LVC_T_HYPE
|
|
||||||
* T_SELECTED_CELLS Instance Attribute Public Type LVC_T_CELL
|
|
||||||
* T_SELECTED_COLUMNS Instance Attribute Public Type LVC_T_COL
|
|
||||||
wt_sort = lo_ex_cm->t_sort.
|
|
||||||
|
|
||||||
apply_sort( EXPORTING it_table = <fs_table>
|
|
||||||
IMPORTING eo_table = eo_table ) .
|
|
||||||
|
|
||||||
get_color( EXPORTING io_table = eo_table
|
|
||||||
IMPORTING et_colors = et_colors ) .
|
|
||||||
|
|
||||||
get_filter( EXPORTING io_table = eo_table
|
|
||||||
IMPORTING et_filter = et_filter ) .
|
|
||||||
|
|
||||||
update_catalog( CHANGING cs_layout = es_layout
|
|
||||||
ct_fieldcatalog = et_fieldcatalog ).
|
|
||||||
ENDIF.
|
|
||||||
ENDMETHOD.</source>
|
|
||||||
</interfaceMethod>
|
|
||||||
</CLAS>
|
|
Loading…
Reference in New Issue
Block a user