CFFILE SAP (External file name) Structure details
Description: External file name
Structure field list including key, data, relationships and ABAP select examples
CFFILE is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "External file name" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_CFFILE TYPE CFFILE.
The CFFILE table consists of various fields, each holding specific information or linking keys about External file name data available in SAP. These include LOGNAME (Logical file name), FILESYS (File System), FILEWRK (File processing), FILETYPE (File type).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
SAP CFFILE structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
FILENAME | External file name | CFFILENAME | CHAR | 128 | LOCALFILE | ||||
LOGNAME | Logical file name | CFLOGNAME | CHAR | 60 | FILENAMECI | FILEINTERN | KCD_LOGNAME | ||
FILESYS | File System | CGSFILESYS | CHAR | 1 | XFELD | KCD_FILESYS | |||
FILEWRK | File processing | CGSFILEWRK | CHAR | 1 | XFELD | ||||
FILETYPE | File type | CGSFILETP | CHAR | 1 | XFELD | KCD_FILETP | |||
FELDN | Data transfer: Number of constant fields with MCF format | CGSFELDN | NUMC | 1 | NUMC1 | KCD_FELDN | |||
SEPER | Data transfer: Field separator with MCF format | CGSSEPER | CHAR | 1 | CHAR1 | KCD_SEPER | |||
SEP2 | Data transfer: Field separator for text file | CGSSEP2 | CHAR | 1 | CHAR1 | KCD_SEP2 | |||
PACKFMT | Formatting of numbers of type P, I or F | CGSPACKFLD | CHAR | 1 | XFELD | KCD_PACKFLD | |||
DATFMT | ASCII / EBCDIC Format | CGSDATFMT | CHAR | 1 | XFELD | KCD_DATFMT | |||
DATSFMT | Date format | CGSDATSFMT | CHAR | 1 | XFELD | KCD_DATSFMT | |||
INDXFLD | Index field | CGSINDXFLD | CHAR | 30 | Assigned to domain | FDNAME | KCD_INDXFLD | ||
REPFAC | Repetition factor | CGSREPFAC | NUMC | 3 | NUMC3 | KCD_REPFAC | |||
WIDTH | Increment of the index | CGSWIDTH | NUMC | 2 | NUMC2 | KCD_WIDTH | |||
STARTVL | Start value of the index field | CGSSTARTVL | NUMC | 3 | NUMC3 | KCD_STARTVL | |||
CMTSGN | Comment character | CGSCMTSGN | CHAR | 1 | CHAR1 | KCD_CMTSGN | |||
REPFLDS | Repeat fields | CGSREPFLDS | CHAR | 30 | Assigned to domain | FDNAME | KCD_REPFLDS | ||
TXT132 | SAP-EIS: Text of length 132 | CGSTXT132 | CHAR | 132 | TXT132 | ||||
NOREP | Data transfer: No multiple import | CGSNOREP | CHAR | 1 | XFELD | KCD_NOREP | |||
FILDL | Data Transfer: Delete File | KCD_FILDL | CHAR | 1 | XFELD | KCD_FILDL |
Key field | Non-key field |
How do I retrieve data from SAP structure CFFILE using ABAP code?
As CFFILE is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on CFFILE as there is no data to select.How to access SAP table CFFILE
Within an ECC or HANA version of SAP you can also view further information about CFFILE and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects