MDG_IDOC_DATA SAP (IDOC DATA) Structure details

Dictionary Type: Structure
Description: IDOC DATA




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




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

MDG_IDOC_DATA 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 "IDOC DATA" 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_MDG_IDOC_DATA TYPE MDG_IDOC_DATA.

The MDG_IDOC_DATA table consists of various fields, each holding specific information or linking keys about IDOC DATA data available in SAP. These include MANDT (Client), DOCNUM (IDoc number), DOCREL (SAP Release for IDoc), STATUS (Status of IDoc).. 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 MDG_IDOC_DATA 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
IDOC_CONTROL 0
MANDTClient MANDTCLNT3MANDT
DOCNUMIDoc number EDI_DOCNUMNUMC16EDI_DOCNUMDCN
DOCRELSAP Release for IDoc EDI_DOCRELCHAR4SAPRL
STATUSStatus of IDoc EDI_STATUSCHAR2EDI_STATUS
DOCTYPIDoc Type EDI_DOCTYPCHAR8EDI_DOCTYP
DIRECTDirection for IDoc EDI_DIRECTCHAR1EDI_DIRECT
RCVPORReceiver port (SAP System, EDI subsystem) EDI_RCVPORCHAR10EDI_PORT
RCVPRTPartner Type of Receiver EDI_RCVPRTCHAR2EDI_PARTYP
RCVPRNPartner Number of Receiver EDI_RCVPRNCHAR10ALPHAEDI_PARNUM
RCVSADRecipient address (SADR) EDI_RCVSADCHAR10EDI_SADNR
RCVSMNSADR client (recipient) EDI_RCVSMNCLNT3EDI_SADMDT
RCVSNASADR flag for international recipient address EDI_RCVSNACHAR1EDI_SADNA
RCVSCACommunication type (SADR) of recipient EDI_RCVSCACHAR3EDI_SADCA
RCVSDFSADR default flag for recipient address EDI_RCVSDFCHAR1EDI_SADDF
RCVSLFSequential Number of Recipient Address (SADR) EDI_RCVSLFCHAR3EDI_SADLF
RCVLADLogical address of recipient EDI_RCVLADCHAR70EDI_LOGADR
STDEDI Standard EDI_STDCHAR1EDI_STD
STDVRSVersion of EDI standard EDI_STDVRSCHAR6EDI_STDVRS
STDMESEDI message type EDI_STDMESCHAR6EDI_STDMES
MESCODLogical Message Variant EDI_MESCODCHAR3EDI_MESCOD
MESFCTLogical message function EDI_MESFCTCHAR3EDI_MESFCT
OUTMODOutput Mode EDI_OUTMODCHAR1EDI_OUTMOD
TESTTest Flag EDI_TESTCHAR1EDI_TEST
SNDPORSender port (SAP System, EDI subsystem) EDI_SNDPORCHAR10EDI_PORT
SNDPRTPartner type of sender EDI_SNDPRTCHAR2EDI_PARTYP
SNDPRNPartner Number of Sender EDI_SNDPRNCHAR10ALPHAEDI_PARNUM
SNDSADSender address (SADR) EDI_SNDSADCHAR10EDI_SADNR
SNDSMNSADR client (sender) EDI_SNDSMNCLNT3EDI_SADMDT
SNDSNASADR flag for international sender address EDI_SNDSNACHAR1EDI_SADNA
SNDSCACommunication type (SADR) of sender EDI_SNDSCACHAR3EDI_SADCA
SNDSDFSADR default flag for sender address EDI_SNDSDFCHAR1EDI_SADDF
SNDSLFSequential Number of the Sender Address (SADR) EDI_SNDSLFCHAR3EDI_SADLF
SNDLADLogical address of sender EDI_SNDLADCHAR70EDI_LOGADR
REFINTReference to interchange file IDOCCRFINTCHAR14EDI_REFNUM
REFGRPReference to message group IDOCCRFGRPCHAR14EDI_REFNUM
REFMESReference to message IDOCCRFMESCHAR14EDI_REFNUM
ARCKEYEDI archive key IDOCCARKEYCHAR70EDI_ARCKEY
CREDATIDoc Created On EDI_CCRDATDATS8DATUM
CRETIMIDoc Created at EDI_CCRTIMTIMS6UZEIT
MESTYPMessage Type EDI_MESTYPCHAR30EDI_MESTYPMES
IDOCTPBasic type EDI_IDOCTPCHAR30EDI_IDOCTPIDC
CIMTYPExtension EDI_CIMTYPCHAR30EDI_CIMTYPCIM
RCVPFCPartner Function of Receiver EDI_RCVPFCCHAR2EDIPVEDI_PARVW
SNDPFCPartner Function of Sender EDI_SNDPFCCHAR2EDIPVEDI_PARVW
SERIALSerialization field EDI_SERIALCHAR20CHAR20
EXPRSSOverriding in inbound processing EDI_EXPRSSCHAR1EDI_EXPRSS
UPDDATDate on which control record was last changed EDI_UPDDATDATS8DATUM
UPDTIMTime at which control record was last changed EDI_UPDTIMTIMS6UZEIT
MAXSEGNUMNumber of data records ANZEDIDDNUMC6EDI_NUMBER
IDOC_DATA 0

Key field Non-key field



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

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

How to access SAP table MDG_IDOC_DATA

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