mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 05:46:35 +08:00

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@272 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
62 lines
3.5 KiB
XML
62 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-16"?>
|
|
<CLAS CLSNAME="ZCL_EXCEL_CONVERTER_RESULT" VERSION="1" LANGU="E" DESCRIPT="Result object for table reference" UUID="4F6658A2949E0125E1008000C008015A" CATEGORY="00" EXPOSURE="2" STATE="1" RELEASE="0" AUTHOR="RTURNHEIM" CREATEDON="20120319" CHANGEDBY="RTURNHEIM" CHANGEDON="20120319" CHGDANYON="00000000" CLSABSTRCT="X" CLSCCINCL="X" FIXPT="X" UNICODE="X" R3RELEASE="700" CLSBCCAT="00" DURATION_TYPE="0 " RISK_LEVEL="0 " REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV">
|
|
<publicSection>class ZCL_EXCEL_CONVERTER_RESULT definition
|
|
public
|
|
inheriting from ZCL_EXCEL_CONVERTER_ALV
|
|
abstract
|
|
create public .
|
|
|
|
*"* public components of class ZCL_EXCEL_CONVERTER_RESULT
|
|
*"* do not include other source files here!!!
|
|
public section.</publicSection>
|
|
<protectedSection>*"* protected components of class ZCL_EXCEL_CONVERTER_RESULT
|
|
*"* do not include other source files here!!!
|
|
protected section.
|
|
|
|
methods GET_TABLE
|
|
importing
|
|
!IO_OBJECT type ref to OBJECT
|
|
returning
|
|
value(RO_DATA) type ref to DATA .</protectedSection>
|
|
<privateSection>*"* private components of class ZCL_EXCEL_CONVERTER_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_RESULT" REFCLSNAME="ZCL_EXCEL_CONVERTER_ALV" VERSION="1" STATE="1" AUTHOR="RTURNHEIM" CREATEDON="20120319" CHANGEDBY="RTURNHEIM" CHANGEDON="20120319"/>
|
|
<method CLSNAME="ZCL_EXCEL_CONVERTER_RESULT" CMPNAME="GET_TABLE" VERSION="1" LANGU="E" DESCRIPT="Get table" EXPOSURE="1" STATE="1" EDITORDER="1 " DISPID="0 " AUTHOR="RTURNHEIM" CREATEDON="20120319" CHANGEDBY="RTURNHEIM" CHANGEDON="20120319" MTDTYPE="0" MTDDECLTYP="0" R3RELEASE="700" BCMTDCAT="00" BCMTDSYN="0">
|
|
<parameter CLSNAME="ZCL_EXCEL_CONVERTER_RESULT" CMPNAME="GET_TABLE" SCONAME="IO_OBJECT" VERSION="1" LANGU="E" DESCRIPT="Data reference object" CMPTYPE="1" MTDTYPE="0" EDITORDER="1 " DISPID="0 " AUTHOR="RTURNHEIM" CREATEDON="20120319" CHANGEDON="00000000" PARDECLTYP="0" PARPASSTYP="1" TYPTYPE="3" TYPE="OBJECT"/>
|
|
<parameter CLSNAME="ZCL_EXCEL_CONVERTER_RESULT" CMPNAME="GET_TABLE" SCONAME="RO_DATA" VERSION="1" LANGU="E" DESCRIPT="Data table" CMPTYPE="1" MTDTYPE="0" EDITORDER="2 " DISPID="0 " AUTHOR="RTURNHEIM" CREATEDON="20120319" CHANGEDON="00000000" PARDECLTYP="3" PARPASSTYP="0" TYPTYPE="3" TYPE="DATA"/>
|
|
<source>METHOD get_table.
|
|
DATA: lo_object TYPE REF TO object,
|
|
ls_seoclass TYPE seoclass,
|
|
l_method TYPE string.
|
|
|
|
SELECT SINGLE * INTO ls_seoclass
|
|
FROM seoclass
|
|
WHERE clsname = 'IF_SALV_BS_DATA_SOURCE'.
|
|
|
|
IF sy-subrc = 0.
|
|
l_method = 'GET_TABLE_REF'.
|
|
lo_object ?= io_object.
|
|
CALL METHOD lo_object->(l_method)
|
|
RECEIVING
|
|
value = ro_data.
|
|
ELSE.
|
|
l_method = 'GET_REF_TO_TABLE'.
|
|
lo_object ?= io_object.
|
|
CALL METHOD lo_object->(l_method)
|
|
RECEIVING
|
|
value = ro_data.
|
|
ENDIF.
|
|
|
|
ENDMETHOD.</source>
|
|
</method>
|
|
</CLAS>
|