SAP ABAP Class CL_ICF_CSV (ICF Interface for CSV File)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-MID-ICF (Application Component) Internet Communication Framework
⤷
SHTTP (Package) Development Class for HTTP Communication
⤷
⤷
Properties
| Class | CL_ICF_CSV | |
| Short Description | ICF Interface for CSV File | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SHTTP | Development Class for HTTP Communication |
| Created | 20100719 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_ICF_CSV has no interface implemented.
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_ICF_SERVICE_PUBLICATION | 20101013 | Publish ICF Service |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Public | Type reference (TYPE) | CHAR1 | ';' | Single-Character Indicator | 20101013 | ||
| 2 | Static Attribute | Public | Type reference (TYPE) | CHAR1 | '"' | Single-Character Indicator | 20101013 | ||
| 3 | Static Attribute | Public | Type reference (TYPE) | CHAR2 | '""' | Version Number Components | 20101013 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Determine Default Values for Directory and File Name | 20101013 | |
| 2 | Static method | Public | Method | API for Reading ICF Data of CSV Format | 20101013 | |
| 3 | Static method | Public | Method | API for Writing ICF Data in CSV Format | 20101013 | |
| 4 | Static method | Private | Method | Compare of Imported Data with Target Structure | 20130830 | |
| 5 | Static method | Private | Method | Converting CSV to FAW Format | 20101013 | |
| 6 | Static method | Private | Method | Converting RAW to CSV Format | 20101013 | |
| 7 | Static method | Private | Method | Decode Columns to Value | 20101013 | |
| 8 | Static method | Private | Method | Encode Value to Column Value | 20101013 | |
| 9 | Static method | Protected | Method | Fill T100 Messages for ICF | 20101013 | |
| 10 | Static method | Private | Method | Determine CSV Header Information | 20101013 | |
| 11 | Static method | Private | Method | Parse CSV Lines | 20101013 | |
| 12 | Static method | Private | Method | Read ICF Data of CSV Format | 20101013 | |
| 13 | Static method | Private | Method | Remove File Separator from End of Directory Name | 20110704 | |
| 14 | Static method | Private | Method | Write ICF Data in CSF Format | 20101013 |
Events
Class CL_ICF_CSV has no event.
Types
Class CL_ICF_CSV has no local type.
Method Signatures
Method GET_PATH_AND_FILENAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Name des Datenfiles | 20101013 | |||
| 2 | EV_INIT_DIR | Call by reference | Type reference (TYPE) | STRING | Initiales Verzeichnis des CSV Files | 20101013 | |||
| 3 | IV_ACTION | Call by reference | Type reference (TYPE) | CHAR1 | Die Aktion für die Ermittlung des Dateinamen | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
Method REQUEST_FOR_READ_FROM_CSV Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_DATA | Call by reference | Type reference (TYPE) | STANDARD TABLE | Generische ITAB für die CSV-Datenablage | 20101013 | |||
| 2 | IV_CHECK_STRUCTURE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Prüfung der importierten Daten | 20130830 | ||
| 3 | IV_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Name des Datenfiles | 20101013 | |||
| 4 | IV_INIT_DIR | Call by reference | Type reference (TYPE) | STRING | Initiales Verzeichnis des CSV Files | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
Method REQUEST_FOR_WRITE_INTO_CSV Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_DATA | Call by reference | Type reference (TYPE) | STANDARD TABLE | Generische ITAB für die CSV-Datenablage | 20101013 | |||
| 2 | IV_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Name des Datenfiles | 20101013 | |||
| 3 | IV_HDR_STRUCT_NAME | Call by reference | Type reference (TYPE) | STRING | Spezifischer Zeilentyp der IT_DATA | 20101013 | |||
| 4 | IV_INIT_DIR | Call by reference | Type reference (TYPE) | STRING | Initiales Verzeichnis des CSV Files | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
Method _CHECK_INPUT_STRUCTURE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_CSV_DATA | Call by reference | Type reference (TYPE) | STRING_TABLE | CSV File als Tabelle | 20130830 | |||
| 2 | IT_DATA | Call by reference | Type reference (TYPE) | STANDARD TABLE | Zieldatenstruktur | 20130830 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20130830 |
Method _CONVERT_CSV_TO_RAW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RAW_LINES | Call by reference | Type reference (TYPE) | STANDARD TABLE | Tabelle von Strings | 20101013 | |||
| 2 | IT_CSV_LINES | Call by reference | Type reference (TYPE) | STRING_TABLE | Tabelle von Strings | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error Handling Class for CSV API | 20130117 |
Method _CONVERT_RAW_TO_CSV Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CSV_LINES | Call by reference | Type reference (TYPE) | STRING_TABLE | Tabelle von Strings | 20101013 | |||
| 2 | IT_RAW_LINES | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20101013 |
Method _CONVERT_RAW_TO_CSV on class CL_ICF_CSV has no exception.
Method _DECODE_COLUMN_TO_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COLUMN | Call by reference | Type reference (TYPE) | STRING | 20101013 | ||||
| 2 | RV_RESULT | Value transfer | Type reference (TYPE) | STRING | 20101013 |
Method _DECODE_COLUMN_TO_VALUE on class CL_ICF_CSV has no exception.
Method _ENCODE_VALUE_TO_COLUMN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_VALUE | Call by reference | Type reference (TYPE) | STRING | 20101013 | ||||
| 2 | RV_RESULT | Value transfer | Type reference (TYPE) | STRING | 20101013 |
Method _ENCODE_VALUE_TO_COLUMN on class CL_ICF_CSV has no exception.
Method _FILL_ICF_T100_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ICF_MSG | Call by reference | Type reference (TYPE) | STRING | Errortext | 20101013 | |||
| 2 | EV_ICF_T100_MSG | Call by reference | Type reference (TYPE) | ICF_MESSAGE | T100-Nachricht für ICF | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
Method _GET_CSV_HDR_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CSV_DATA | Call by reference | Type reference (TYPE) | STRING_TABLE | Tabelle von Strings | 20101013 | |||
| 2 | IV_HDR_STRUCT_NAME | Call by reference | Type reference (TYPE) | STRING | Spezifischer Zeilentyp der IT_DATA | 20101013 |
Method _GET_CSV_HDR_DATA on class CL_ICF_CSV has no exception.
Method _PARSE_VALUES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CSV_LINE | Call by reference | Type reference (TYPE) | STRING | CSV-Zeilen | 20101013 | |||
| 2 | RT_RESULT | Value transfer | Type reference (TYPE) | STRING_TABLE | geparsed CSV-Zeilen | 20101013 |
Method _PARSE_VALUES on class CL_ICF_CSV has no exception.
Method _READ_FROM_CSV Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CSV_LINES | Call by reference | Type reference (TYPE) | STRING_TABLE | Tabelle von Strings | 20101013 | |||
| 2 | IV_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Name des Datenfiles | 20101013 | |||
| 3 | IV_INIT_DIR | Call by reference | Type reference (TYPE) | STRING | Initiales Verzeichnis des CSV Files | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
Method _REMOVE_FILESEP_FROM_DIRNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_DIRNAME | Call by reference | Type reference (TYPE) | STRING | Verzeichnisname | 20110704 | |||
| 2 | IV_FILESEP | Call by reference | Type reference (TYPE) | CHAR1 | Fileseparator | 20110704 |
Method _REMOVE_FILESEP_FROM_DIRNAME on class CL_ICF_CSV has no exception.
Method _WRITE_INTO_CSV Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_CSV_LINES | Call by reference | Type reference (TYPE) | STRING_TABLE | Tabelle von Strings | 20101013 | |||
| 2 | IV_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Name des Datenfiles | 20101013 | |||
| 3 | IV_INIT_DIR | Call by reference | Type reference (TYPE) | STRING | Initiales Verzeichnis des CSV Files | 20101013 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehlerbehandlungsklasse für CSV-API | 20101013 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 732 |