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 ABAP 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 C_COLUMN_SEPARATOR Static Attribute Public Type reference (TYPE) CHAR1 ';' Single-Character Indicator 20101013
2 C_QUOTATION_MARK Static Attribute Public Type reference (TYPE) CHAR1 '"' Single-Character Indicator 20101013
3 C_QUOTATION_MARK_ESCAPED Static Attribute Public Type reference (TYPE) CHAR2 '""' Version Number Components 20101013
Methods
# Method Level Visibility Method type Description Created on
1 GET_PATH_AND_FILENAME Static method Public Method Determine Default Values for Directory and File Name 20101013
2 REQUEST_FOR_READ_FROM_CSV Static method Public Method API for Reading ICF Data of CSV Format 20101013
3 REQUEST_FOR_WRITE_INTO_CSV Static method Public Method API for Writing ICF Data in CSV Format 20101013
4 _CHECK_INPUT_STRUCTURE Static method Private Method Compare of Imported Data with Target Structure 20130830
5 _CONVERT_CSV_TO_RAW Static method Private Method Converting CSV to FAW Format 20101013
6 _CONVERT_RAW_TO_CSV Static method Private Method Converting RAW to CSV Format 20101013
7 _DECODE_COLUMN_TO_VALUE Static method Private Method Decode Columns to Value 20101013
8 _ENCODE_VALUE_TO_COLUMN Static method Private Method Encode Value to Column Value 20101013
9 _FILL_ICF_T100_MESSAGE Static method Protected Method Fill T100 Messages for ICF 20101013
10 _GET_CSV_HDR_DATA Static method Private Method Determine CSV Header Information 20101013
11 _PARSE_VALUES Static method Private Method Parse CSV Lines 20101013
12 _READ_FROM_CSV Static method Private Method Read ICF Data of CSV Format 20101013
13 _REMOVE_FILESEP_FROM_DIRNAME Static method Private Method Remove File Separator from End of Directory Name 20110704
14 _WRITE_INTO_CSV 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 Exporting EV_FILE_NAME Call by reference Type reference (TYPE) STRING Name des Datenfiles 20101013
2 Exporting EV_INIT_DIR Call by reference Type reference (TYPE) STRING Initiales Verzeichnis des CSV Files 20101013
3 Importing IV_ACTION Call by reference Type reference (TYPE) CHAR1 Die Aktion für die Ermittlung des Dateinamen 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Exporting ET_DATA Call by reference Type reference (TYPE) STANDARD TABLE Generische ITAB für die CSV-Datenablage 20101013
2 Importing IV_CHECK_STRUCTURE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Prüfung der importierten Daten 20130830
3 Importing IV_FILE_NAME Call by reference Type reference (TYPE) STRING Name des Datenfiles 20101013
4 Importing IV_INIT_DIR Call by reference Type reference (TYPE) STRING Initiales Verzeichnis des CSV Files 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Importing IT_DATA Call by reference Type reference (TYPE) STANDARD TABLE Generische ITAB für die CSV-Datenablage 20101013
2 Importing IV_FILE_NAME Call by reference Type reference (TYPE) STRING Name des Datenfiles 20101013
3 Importing IV_HDR_STRUCT_NAME Call by reference Type reference (TYPE) STRING Spezifischer Zeilentyp der IT_DATA 20101013
4 Importing IV_INIT_DIR Call by reference Type reference (TYPE) STRING Initiales Verzeichnis des CSV Files 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Importing IT_CSV_DATA Call by reference Type reference (TYPE) STRING_TABLE CSV File als Tabelle 20130830
2 Importing IT_DATA Call by reference Type reference (TYPE) STANDARD TABLE Zieldatenstruktur 20130830
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Exporting ET_RAW_LINES Call by reference Type reference (TYPE) STANDARD TABLE Tabelle von Strings 20101013
2 Importing IT_CSV_LINES Call by reference Type reference (TYPE) STRING_TABLE Tabelle von Strings 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Exporting ET_CSV_LINES Call by reference Type reference (TYPE) STRING_TABLE Tabelle von Strings 20101013
2 Importing 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 Importing IV_COLUMN Call by reference Type reference (TYPE) STRING 20101013
2 Returning 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 Importing IV_VALUE Call by reference Type reference (TYPE) STRING 20101013
2 Returning 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 Exporting EV_ICF_MSG Call by reference Type reference (TYPE) STRING Errortext 20101013
2 Exporting EV_ICF_T100_MSG Call by reference Type reference (TYPE) ICF_MESSAGE T100-Nachricht für ICF 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Exporting ET_CSV_DATA Call by reference Type reference (TYPE) STRING_TABLE Tabelle von Strings 20101013
2 Importing 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 Importing IV_CSV_LINE Call by reference Type reference (TYPE) STRING CSV-Zeilen 20101013
2 Returning 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 Exporting ET_CSV_LINES Call by reference Type reference (TYPE) STRING_TABLE Tabelle von Strings 20101013
2 Importing IV_FILE_NAME Call by reference Type reference (TYPE) STRING Name des Datenfiles 20101013
3 Importing IV_INIT_DIR Call by reference Type reference (TYPE) STRING Initiales Verzeichnis des CSV Files 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR 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 Changing CV_DIRNAME Call by reference Type reference (TYPE) STRING Verzeichnisname 20110704
2 Importing 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 Importing IT_CSV_LINES Call by reference Type reference (TYPE) STRING_TABLE Tabelle von Strings 20101013
2 Importing IV_FILE_NAME Call by reference Type reference (TYPE) STRING Name des Datenfiles 20101013
3 Importing IV_INIT_DIR Call by reference Type reference (TYPE) STRING Initiales Verzeichnis des CSV Files 20101013
# Exception Resumable Description Created on
1 CX_ICF_CSV_ERROR Fehlerbehandlungsklasse für CSV-API 20101013
History
Last changed by/on SAP  20130531 
SAP Release Created in 732