ESO_S_MSEG_GR SAP (Extraction Structure for Document Segment) Structure details

Dictionary Type: Structure
Description: Extraction Structure for Document Segment




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




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

ESO_S_MSEG_GR 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 "Extraction Structure for Document Segment" 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_ESO_S_MSEG_GR TYPE ESO_S_MSEG_GR.

The ESO_S_MSEG_GR table consists of various fields, each holding specific information or linking keys about Extraction Structure for Document Segment data available in SAP. These include MJAHR (Material Document Year), ZEILE (Item in Material Document), BWART (Movement Type (Inventory Management)), MATNR (Material Number).. 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: Can Be Enhanced (Deep)


SAP ESO_S_MSEG_GR 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
MBLNRNumber of Material Document MBLNRCHAR10ALPHABELNRMBN
MJAHRMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
ZEILEItem in Material Document MBLPONUMC4MBLPOPOS
BWARTMovement Type (Inventory Management) BWARTCHAR3Assigned to domainBWARTBWA
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
LGORTStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
SOBKZSpecial Stock Indicator SOBKZCHAR1Assigned to domainSOBKZ
LIFNRVendor Account Number ELIFNCHAR10Assigned to domainALPHALIFNRLIFKRED_C
KUNNRAccount Number of Customer EKUNNCHAR10Assigned to domainALPHAKUNNRKUN
KDAUFSales Order Number KDAUFCHAR10Assigned to domainALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
SHKZGDebit/Credit Indicator SHKZGCHAR1SHKZG
MENGEQuantity MENGE_DQUAN13(3) MENG13
MEINSBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
ERFMGQuantity in Unit of Entry ERFMGQUAN13(3) MENG13
ERFMEUnit of Entry ERFMEUNIT3Assigned to domainCUNITMEINS
EBELNPurchasing Document Number EBELNCHAR10Assigned to domainALPHAEBELNBESMEKK_C
EBELPItem Number of Purchasing Document EBELPNUMC5Assigned to domainEBELPBSP
LFBJAFiscal Year of a Reference Document LFBJANUMC4GJAHRGJAHR
LFBNRDocument No. of a Reference Document LFBNRCHAR10ALPHABELNR
LFPOSItem of a Reference Document LFPOSNUMC4MBLPO
SJAHRMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
SMBLNNumber of Material Document MBLNRCHAR10ALPHABELNRMBN
SMBLPItem in Material Document MBLPONUMC4MBLPOPOS
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
BUKRSCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8Assigned to domainKONPRPS_POSNR
MAT_KDAUFSales Order Number of Valuated Sales Order Stock MAT_KDAUFCHAR10Assigned to domainALPHAVBELNAUN
MAT_KDPOSSales Order Item of Valuated Sales Order Stock MAT_KDPOSNUMC6NUM06KPO
MAT_PSPNRValuated Sales Order Stock WBS Element MAT_PSPNRNUMC8Assigned to domainKONPRPS_POSNR
TCODE2Transaction Code TCODECHAR20Assigned to domainTCODETCD

Key field Non-key field



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

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

How to access SAP table ESO_S_MSEG_GR

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