CFFILE SAP (External file name) Structure details

Dictionary Type: Structure
Description: External file name




ABAP Code to SELECT data from CFFILE
Related tables to CFFILE
Access table CFFILE




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
FILENAMEExternal file name CFFILENAMECHAR128LOCALFILE
LOGNAMELogical file name CFLOGNAMECHAR60FILENAMECIFILEINTERNKCD_LOGNAME
FILESYSFile System CGSFILESYSCHAR1XFELDKCD_FILESYS
FILEWRKFile processing CGSFILEWRKCHAR1XFELD
FILETYPEFile type CGSFILETPCHAR1XFELDKCD_FILETP
FELDNData transfer: Number of constant fields with MCF format CGSFELDNNUMC1NUMC1KCD_FELDN
SEPERData transfer: Field separator with MCF format CGSSEPERCHAR1CHAR1KCD_SEPER
SEP2Data transfer: Field separator for text file CGSSEP2CHAR1CHAR1KCD_SEP2
PACKFMTFormatting of numbers of type P, I or F CGSPACKFLDCHAR1XFELDKCD_PACKFLD
DATFMTASCII / EBCDIC Format CGSDATFMTCHAR1XFELDKCD_DATFMT
DATSFMTDate format CGSDATSFMTCHAR1XFELDKCD_DATSFMT
INDXFLDIndex field CGSINDXFLDCHAR30Assigned to domainFDNAMEKCD_INDXFLD
REPFACRepetition factor CGSREPFACNUMC3NUMC3KCD_REPFAC
WIDTHIncrement of the index CGSWIDTHNUMC2NUMC2KCD_WIDTH
STARTVLStart value of the index field CGSSTARTVLNUMC3NUMC3KCD_STARTVL
CMTSGNComment character CGSCMTSGNCHAR1CHAR1KCD_CMTSGN
REPFLDSRepeat fields CGSREPFLDSCHAR30Assigned to domainFDNAMEKCD_REPFLDS
TXT132SAP-EIS: Text of length 132 CGSTXT132CHAR132TXT132
NOREPData transfer: No multiple import CGSNOREPCHAR1XFELDKCD_NOREP
FILDLData Transfer: Delete File KCD_FILDLCHAR1XFELDKCD_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 as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!