SAP ABAP Class CL_MASS_SPSH_FILE_IMP_EXCEL (Spreadsheet import from excel files)
Hierarchy
☛
SAP_ABA (Software Component) Cross-Application Component
⤷
CA-GTF-MS (Application Component) Cross-Application Mass Maintenance
⤷
MASS (Package) Mass Maintenance Tool: Generic Part
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_MASS_SPREADSHEET_FILE_IMP | Import spreadsheet data from file (excel, text) | 20120911 |
| 2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_MASS_SPREADSHEET_FILE_IMP | Interface for importing a spreadsheet from a file | 20120911 |
Properties
| Class | CL_MASS_SPSH_FILE_IMP_EXCEL | |
| Short Description | Spreadsheet import from excel files | |
| Super Class | CL_MASS_SPREADSHEET_FILE_IMP | Import spreadsheet data from file (excel, text) |
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | MASS_SPSH | |
| Program status | ||
| Category | 0 | |
| Package | MASS | Mass Maintenance Tool: Generic Part |
| Created | 20120831 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_MASS_SPSH_FILE_IMP_EXCEL has no forward declaration.
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_MASS_SPREADSHEET_FILE_IMP | Interface for importing a spreadsheet from a file | 20120911 |
Friends
Class CL_MASS_SPSH_FILE_IMP_EXCEL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | I | 1 | Excel version '2003'. | 20121107 | ||
| 2 | Constant | Private | Type reference (TYPE) | I | 2 | Excel version '2007' | 20121107 | ||
| 3 | Constant | Private | Type reference (TYPE) | I | 256 | Maximum number of columns supported by excel 2003 | 20121107 | ||
| 4 | Constant | Private | Type reference (TYPE) | I | 16384 | Maximum number of columns that are supported by excel 2007 | 20121107 | ||
| 5 | Constant | Private | Type reference (TYPE) | I | 65536 | Maximum number of rows that are supported by excel 2003 | 20121107 | ||
| 6 | Constant | Private | Type reference (TYPE) | I | 1048576 | Maximum number of rows that are supported by excel 2007 | 20121107 | ||
| 7 | Static Attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20121029 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | 20121008 | ||
| 2 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20121029 | |
| 3 | Instance method | Private | Method | 20121005 | ||
| 4 | Instance method | Private | Method | 20121005 | ||
| 5 | Instance method | Private | Method | Get excel version | 20121107 | |
| 6 | Instance method | Private | Method | Get maximum number of columns and rows | 20121107 | |
| 7 | Instance method | Private | Method | 20121005 | ||
| 8 | Instance method | Private | Method | 20121005 | ||
| 9 | Instance method | Private | Method | 20121010 | ||
| 10 | Instance method | Private | Method | 20121008 |
Events
Class CL_MASS_SPSH_FILE_IMP_EXCEL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | RANGE_NAME | Private | Type reference (TYPE) | SOI_RANGE_ITEM-NAME | 20121008 | |
|
| 2 | TR_RANGE_NAMES | Private | See coding | 20121008 | tr_range_names type range of range_name
|
Method Signatures
Method ADD_SELECTION_AND_RANGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CTR_RANGE_NAMES | Call by reference | Type reference (TYPE) | CL_MASS_SPSH_FILE_IMP_EXCEL=>TR_RANGE_NAMES | 20121008 | ||||
| 2 | IO_SPREADSHEET | Call by reference | Object reference (TYPE REF TO) | I_OI_SPREADSHEET | 20121008 | ||||
| 3 | IV_COLUMNS | Call by reference | Type reference (TYPE) | I | 20121008 | ||||
| 4 | IV_LEFT | Call by reference | Type reference (TYPE) | I | 20121008 | ||||
| 5 | IV_RANGE | Call by reference | Type reference (TYPE) | C | 20121008 | ||||
| 6 | IV_ROWS | Call by reference | Type reference (TYPE) | I | 20121008 | ||||
| 7 | IV_TOP | Call by reference | Type reference (TYPE) | I | 20121008 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121008 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_MASS_SPSH_FILE_IMP_EXCEL has no parameter.
Method CLASS_CONSTRUCTOR on class CL_MASS_SPSH_FILE_IMP_EXCEL has no exception.
Method DETERMINE_MAX_COL_AND_HEADER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121005 | ||||
| 2 | ET_HEADER_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121005 | ||||
| 3 | EV_END_OF_FILE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121010 | ||||
| 4 | EV_NUM_COLS | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 5 | EV_ROWS_READ | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 6 | IO_SPREADSHEET | Call by reference | Object reference (TYPE REF TO) | I_OI_SPREADSHEET | 20121005 | ||||
| 7 | IO_TARGET_TAB_INFO | Call by reference | Object reference (TYPE REF TO) | CL_MASS_SPSH_TARGET_TAB_INFO | 20121005 | ||||
| 8 | IV_HAS_HEADERLINE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121005 | ||||
| 9 | IV_SHEETNAME | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>SPREADSHEET_NAME | 20121005 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121005 |
Method GET_CELLS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CELLS | Call by reference | Type reference (TYPE) | SOI_GENERIC_TABLE | 20121005 | ||||
| 2 | IO_SPREADSHEET | Call by reference | Object reference (TYPE REF TO) | I_OI_SPREADSHEET | 20121005 | ||||
| 3 | IV_COLUMNS | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 4 | IV_LEFT | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 5 | IV_RANGE | Call by reference | Type reference (TYPE) | C | 20121005 | ||||
| 6 | IV_ROWS | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 7 | IV_TOP | Call by reference | Type reference (TYPE) | I | 20121005 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121005 |
Method GET_EXCEL_VERSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_VERSION | Value transfer | Type reference (TYPE) | I | Excel version | 20121107 |
Method GET_EXCEL_VERSION on class CL_MASS_SPSH_FILE_IMP_EXCEL has no exception.
Method GET_MAX_NUM_COLS_ROWS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_MAX_NUM_COLS | Call by reference | Type reference (TYPE) | I | 20121107 | ||||
| 2 | EV_MAX_NUM_ROWS | Call by reference | Type reference (TYPE) | I | 20121107 |
Method GET_MAX_NUM_COLS_ROWS on class CL_MASS_SPSH_FILE_IMP_EXCEL has no exception.
Method IMPORT_ALL_CELLS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HEADER | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPSH_HEADER_BY_SHEETNAME | 20121010 | ||||
| 2 | CT_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121005 | ||||
| 3 | EV_NUM_COLS | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 4 | EV_NUM_ROWS | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 5 | IO_SPREADSHEET | Call by reference | Object reference (TYPE REF TO) | I_OI_SPREADSHEET | 20121005 | ||||
| 6 | IO_TARGET_TAB_INFO | Call by reference | Object reference (TYPE REF TO) | CL_MASS_SPSH_TARGET_TAB_INFO | 20121010 | ||||
| 7 | IV_HAS_HEADERLINE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121010 | ||||
| 8 | IV_SHEETNAME | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>SPREADSHEET_NAME | 20121010 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121005 |
Method IMPORT_CELLS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121005 | ||||
| 2 | EV_NUM_ROWS | Call by reference | Type reference (TYPE) | I | 20121005 | ||||
| 3 | IO_SPREADSHEET | Call by reference | Object reference (TYPE REF TO) | I_OI_SPREADSHEET | 20121005 | ||||
| 4 | IV_FROM_ROW | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 5 | IV_HEADERLINE | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 6 | IV_NUM_COLS | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 7 | IV_ROW_PACK_SIZE | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 8 | IV_SHEETNAME | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>SPREADSHEET_NAME | 20121010 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121005 |
Method MOVE_CELLS_TO_SPREADSHEET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121010 | ||||
| 2 | ET_HEADER_SPREADSHEET | Call by reference | Type reference (TYPE) | IF_MASS_SPREADSHEET_TYPES=>T_SPREADSHEET | 20121010 | ||||
| 3 | EV_COLS_READ | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 4 | EV_END_OF_FILE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121010 | ||||
| 5 | EV_ROWS_READ | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 6 | IT_CELLS | Call by reference | Type reference (TYPE) | SOI_GENERIC_TABLE | 20121010 | ||||
| 7 | IV_COL_OFFSET | Call by reference | Type reference (TYPE) | I | 20121010 | ||||
| 8 | IV_HAS_HEADERLINE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20121010 | |||
| 9 | IV_ROW_OFFSET | Call by reference | Type reference (TYPE) | I | 20121010 |
Method MOVE_CELLS_TO_SPREADSHEET on class CL_MASS_SPSH_FILE_IMP_EXCEL has no exception.
Method PROGRESS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CURRENT | Call by reference | Type reference (TYPE) | I | 20121008 | ||||
| 2 | IV_TEXT | Call by reference | Type reference (TYPE) | CSEQUENCE | 20121008 | ||||
| 3 | IV_TOTAL | Call by reference | Type reference (TYPE) | I | 20121008 |
Method PROGRESS on class CL_MASS_SPSH_FILE_IMP_EXCEL has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |