BAPI1240_DFT SAP (EHS: BAPI - Structure for User-Defined Texts/Documents) Structure details

Dictionary Type: Structure
Description: EHS: BAPI - Structure for User-Defined Texts/Documents




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




Structure field list including key, data, relationships and ABAP select examples

BAPI1240_DFT 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 "EHS: BAPI - Structure for User-Defined Texts/Documents" 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_BAPI1240_DFT TYPE BAPI1240_DFT.

The BAPI1240_DFT table consists of various fields, each holding specific information or linking keys about EHS: BAPI - Structure for User-Defined Texts/Documents data available in SAP. These include LOGLOCKMOD (Logical Lock Mode), EXTINFO (External Information), PRIMARYKEY (Artificial Primary Key for Specification Tables in BAPIs), FOREIGNKEY (Artificial Foreign Key in Specification Tables for BAPIs).. 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 BAPI1240_DFT 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
FUNCTIONFunction MSGFNCHAR3MSGFN
LOGLOCKMODLogical Lock Mode ESELGLCKMDCHAR1CHAR1
EXTINFOExternal Information ESEEXTINFOCHAR10CHAR10
PRIMARYKEYArtificial Primary Key for Specification Tables in BAPIs ESEPKEYNUMC20ESDPKEY
FOREIGNKEYArtificial Foreign Key in Specification Tables for BAPIs ESEFKEYNUMC20ESDPKEY
FLGPRIMKEYData Record Created with Artificial Primary Key ESEFLGPKEYCHAR1ESDFLAG
FLGFRGNKEYNew Parent Record Was Created ESEFLGFKEYCHAR1ESDFLAG
CLIENTClient MANDTCLNT3T000MANDT
RECORD_NOSequential Number of Data Record ESERECNNUMC20ALPHAESDRECN
CHNGSTATUSSequential Number of the Change State ESEACTNNUMC20ALPHAESDACTN
VALID_FROMValid-From Date ESEVALFRDATS8DATUM
VALID_TOValid-To Date ESEVALTODATS8DATUM
CHANG_NOChange Number ESEAENNRCHAR12AENRAENNRAENNRAEN
DEL_INDDeletion Indicator ESEDELFLGCHAR1ESDFLAG
PARK_INDData Record Is Inactive ESEPARKFLGCHAR1ESDFLAG
CREATED_ONCreated On ESECRDATDATS8DATUM
CREATED_BYCreated By ESECRNAMCHAR12USNAM
CHANGD_ONChanged On ESEUPDDATDATS8DATUM
CHANGD_BYLast Changed By ESEUPDNAMCHAR12USNAM
DATAORIGINSource of Data ESESRSIDCHAR10TCG56ESDSRSID
DATA_PROVData Provider ESEVENDRIDCHAR10Assigned to domainALPHAAD_ADDRNUM
RECNO_ROOTSequential Number of Data Record ESERECNNUMC20ALPHAESDRECN
MASTERTABLName of Master Table ESENAMEMSTCHAR30CHAR30
REF_RECNReference to Master Table ESERECNMSTNUMC20ALPHAESDRECN
UD_TXTTYPEUser-Defined Text Type ESETEXTCATCHAR10TCG41ESDTEXTCAT
SEQUENCESort Sequence ESEORDNUMC4NUMC4
LANGULanguage Key LANGULANG1T002ISOLASPRAS
LANGU_ISO2-Character SAP Language Code LAISOCHAR2LAISO
USRDFNDTXTStart of User-Defined Text ESEHEADERCHAR132TEXT132
LONG_TEXTLong Text ESELTXTFLGCHAR1ESDFLAG
DOC_TYPEDocument Type DOKARCHAR3Assigned to domainDOKARCV2
DOC_NUMBERDocument number DOKNRCHAR25Assigned to domainALPHADOKNRCV1
DOC_VERDocument Version DOKVRCHAR2DOKVRCV3
DOC_PARTDocument Part DOKTL_DCHAR3DOKTLCV4
REF_RECNRHReference to Reference Specification Header ESERECNREFNUMC20ALPHAESDRECN
FORMAT_FLAGFormatting Available ESEFORMATFLGCHAR1ESDFLAG

Key field Non-key field



How do I retrieve data from SAP structure BAPI1240_DFT using ABAP code?

As BAPI1240_DFT 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 BAPI1240_DFT as there is no data to select.

How to access SAP table BAPI1240_DFT

Within an ECC or HANA version of SAP you can also view further information about BAPI1240_DFT 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!