SAP ABAP Class EDX_FILE_UTIL (EDX: File Manipulation)
Hierarchy
☛
SAP_FIN (Software Component) SAP_FIN
⤷
FIN-FSCM (Application Component) Financial Supply Chain Management
⤷
EDX (Package) EDX: Electronic Data Xchange
⤷
⤷
Properties
| Class | EDX_FILE_UTIL | |
| Short Description | EDX: File Manipulation | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | EDX | EDX: Electronic Data Xchange |
| Created | 20091019 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class EDX_FILE_UTIL has no forward declaration.
Interfaces
Class EDX_FILE_UTIL has no interface implemented.
Friends
Class EDX_FILE_UTIL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | STRING | 'inProcess' | Subdirectory in Processing | 20100818 | ||
| 2 | Constant | Public | Type reference (TYPE) | STRING | 'toProcess' | Subdirectory for Processing | 20100818 | ||
| 3 | Constant | Public | Type reference (TYPE) | STRING | 'toSend' | Subdirectory to be Sent | 20100818 | ||
| 4 | Constant | Public | Type reference (TYPE) | STRING | 'withError' | Subdirectory with Errors | 20100818 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Check Path Name Writing | 20091019 | |
| 2 | Instance method | Public | Method | Copy File in File System | 20091019 | |
| 3 | Instance method | Public | Method | Create a Directory and All its Subdirectories | 20091019 | |
| 4 | Instance method | Public | Method | Delete File from File System | 20091019 | |
| 5 | Instance method | Public | Method | Move File in File System | 20091019 | |
| 6 | Instance method | Public | Method | Read an Xstream from a File | 20091019 | |
| 7 | Instance method | Public | Method | Read Files Names from a Directory | 20091019 | |
| 8 | Instance method | Public | Method | Write an Xstream to a File | 20091019 |
Events
Class EDX_FILE_UTIL has no event.
Types
Class EDX_FILE_UTIL has no local type.
Method Signatures
Method CHECK_PATH_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CH_PATH_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | EDX: Verzeichnisname | 20091019 |
Method CHECK_PATH_NAME on class EDX_FILE_UTIL has no exception.
Method COPY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_LENGTH | Call by reference | Type reference (TYPE) | I | File size | 20091019 | |||
| 2 | I_CREATE_DIRECTORY | Call by reference | Type reference (TYPE) | XFELD | Create directory if not exists | 20091022 | |||
| 3 | I_DEST_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | Destination file name | 20091019 | |||
| 4 | I_DEST_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Destination-Directory | 20091019 | |||
| 5 | I_DEST_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Destination-Directory under Main | 20091019 | |||
| 6 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 7 | I_SRC_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | Source file name | 20091019 | |||
| 8 | I_SRC_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Source-Directory | 20091019 | |||
| 9 | I_SRC_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Source-Directory under Main | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann Zielverzeichnis nicht erstellen | 20091019 | ||
| 2 | Kann die Datei nicht schreiben | 20091019 | ||
| 3 | Kann die Datei nicht lesen | 20091019 | ||
| 4 | Datei ist gesperrt | 20091019 | ||
| 5 | Keine Berechtigung zum Lesen im Verzeichnis | 20101102 | ||
| 6 | Keine Berechtigung zum Schreiben im Verzeichnis | 20101102 |
Method CREATE_DIRECTORY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 2 | I_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | EDX: Verzeichnisname | 20091019 | |||
| 3 | I_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | EDX: Verzeichnisname | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann Verzeichnis nicht erstellen | 20091019 | ||
| 2 | Kommando nicht gefunden | 20091019 | ||
| 3 | Illegales Kommando | 20091019 | ||
| 4 | Keine Berechtigung zum Schreiben im Verzeichnis | 20101102 | ||
| 5 | Keine Erlaubnis zum Erstellen eines Verzeichnisses | 20091019 | ||
| 6 | Paramter sind zu lang | 20091019 | ||
| 7 | Parameter erwartet | 20091019 | ||
| 8 | Zu viele Parameter | 20091019 |
Method DELETE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | File name | 20091019 | |||
| 2 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 3 | I_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Directory | 20091019 | |||
| 4 | I_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Directory under Main | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann die Datei nicht löschen | 20091019 | ||
| 2 | Datei ist gesperrt | 20091019 | ||
| 3 | Keine Berechtigung zum Löschen im Verzeichnis | 20101102 |
Method MOVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_LENGTH | Call by reference | Type reference (TYPE) | I | File size | 20091019 | |||
| 2 | E_XSTREAM | Call by reference | Type reference (TYPE) | XSTRING | File content | 20091019 | |||
| 3 | I_CREATE_DIRECTORY | Call by reference | Type reference (TYPE) | XFELD | Create directory if not exists | 20091022 | |||
| 4 | I_DEST_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | Destination file name | 20091019 | |||
| 5 | I_DEST_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Destination-Directory | 20091019 | |||
| 6 | I_DEST_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Destination-Directory under Main | 20091019 | |||
| 7 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 8 | I_SRC_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | Source file name | 20091019 | |||
| 9 | I_SRC_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Source-Directory | 20091019 | |||
| 10 | I_SRC_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Source-Directory under Main | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann Zielverzeichnis nicht erstellen | 20091019 | ||
| 2 | Kann die Quelldatei nicht löschen | 20091019 | ||
| 3 | Kann Quelldatei zum Lesen nicht öffnen | 20091019 | ||
| 4 | Kann Datei nicht verschieben | 20091019 | ||
| 5 | Datei ist gesperrt | 20091019 | ||
| 6 | Keine Berechtigung zum Lesen im Verzeichnis | 20101102 | ||
| 7 | Keine Berechtigung zum Schreiben im Verzeichnis | 20101102 |
Method READ Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_LENGTH | Call by reference | Type reference (TYPE) | I | Length of E_XSTREAM | 20091019 | |||
| 2 | E_XSTREAM | Call by reference | Type reference (TYPE) | XSTRING | File content | 20091019 | |||
| 3 | I_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | File name | 20091019 | |||
| 4 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 5 | I_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Directory | 20091019 | |||
| 6 | I_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Directory under Main | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Datei kann zum Lesen nicht geöffnet werden | 20091019 | ||
| 2 | Datei ist gesperrt | 20091019 | ||
| 3 | Keine Berechtigung zum Lesen im Verzeichnis | 20101102 |
Method READ_FILENAMES_FROM_DIR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_FILE_LIST | Call by reference | Type reference (TYPE) | ANY TABLE | 20091019 | ||||
| 2 | E_NO_OF_FILES | Call by reference | Type reference (TYPE) | I | Anzahl gefundene Dateien | 20091019 | |||
| 3 | I_CREATE_DIRECTORY | Call by reference | Type reference (TYPE) | XFLAG | Verzeichnis erzeugen? | 20101129 | |||
| 4 | I_FILTER | Call by reference | Type reference (TYPE) | EDX_FILE_FILTER | EDX: Filter zur Dateisuche | 20091019 | |||
| 5 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 6 | I_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | EDX: Verzeichnisname | 20091019 | |||
| 7 | I_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | EDX: Verzeichnisname | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann Verzeichnis nicht erstellen | 20101129 | ||
| 2 | Kann Verzeichnis nicht auslesen | 20091019 | ||
| 3 | Kommando nicht gefunden | 20091019 | ||
| 4 | Externes Kommando mit Fehler beendet | 20091019 | ||
| 5 | Illegales Kommando | 20091019 | ||
| 6 | Keine Berechtigung zum Lesen im Verzeichnis | 20101102 | ||
| 7 | Keine Erlaubnis zum Erstellen eines Verzeichnisses | 20091019 | ||
| 8 | Paramter sind zu lang | 20091019 | ||
| 9 | Parameter erwartet | 20091019 | ||
| 10 | Zu viele Parameter | 20091019 |
Method WRITE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_CREATE_DIRECTORY | Call by reference | Type reference (TYPE) | XFELD | Create directory if not exists | 20091022 | |||
| 2 | I_FILE_NAME | Call by reference | Type reference (TYPE) | EDX_FILENAME | File name | 20091019 | |||
| 3 | I_LOG_FILE_NAME | Call by reference | Type reference (TYPE) | STRING | Check: Directory Traversal | 20101102 | |||
| 4 | I_ROOT_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Main-Directory | 20091019 | |||
| 5 | I_SUB_DIR_NAME | Call by reference | Type reference (TYPE) | EDX_DIRECTORY_NAME | Sub-Directory under Main | 20091019 | |||
| 6 | I_XSTREAM | Call by reference | Type reference (TYPE) | XSTRING | File content | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kann Zielverzeichnis nicht erstellen | 20091019 | ||
| 2 | Kann Datei nicht ins Dateisystem schreiben | 20091019 | ||
| 3 | Datei ist gesperrt | 20091019 | ||
| 4 | Keine Berechtigung zum Schreiben im Verzeichnis | 20101102 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 605 |