SRV_MDRV SAP (Generated Table for View) Table View details

Dictionary Type: Table View
Description: Generated Table for View




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




Table View field list including key, data, relationships and ABAP select examples

SRV_MDRV is a standard SAP Table View which is used to store Generated Table for View data and is available within R/3 SAP systems depending on the version and release level.

The SRV_MDRV table consists of various fields, each holding specific information or linking keys about Generated Table for View data available in SAP. These include EBELN (Purchasing Document Number), EKORG (Purchasing Organization), EKGRP (Purchasing Group), LIFNR (Vendor Account 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: Not classified


SAP SRV_MDRV table view 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
MANDTClient MANDTCLNT3T000MANDT
EBELNPurchasing Document Number EBELNCHAR10ALPHAEBELNBESMEKK_C
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
EKGRPPurchasing Group BKGRPCHAR3T024EKGRPEKG
LIFNRVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
EBELPItem Number of Purchasing Document EBELPNUMC5EBELPBSP
RESWKSupplying (Issuing) Plant in Stock Transport Order RESWKCHAR4T001WWERKS
BSTYPPurchasing Document Category BSTYPCHAR1BSTYP
LOEKZDeletion Indicator in Purchasing Document ELOEKCHAR1ELOEK
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
EMATNMaterial Number EMATNRCHAR18MARAMATN1MATNRMAT
WERKSPlant EWERKCHAR4T001WWERKSWRK
LGORTStorage Location LGORT_DCHAR4T001LLGORTLAG
PLIFZPlanned Delivery Time in Days EPLIFDEC3DEC3
WEBAZGoods Receipt Processing Time in Days WEBAZDEC3DEC3
PSTYPItem Category in Purchasing Document PSTYPCHAR1T163PSTYP
KNTTPAccount Assignment Category KNTTPCHAR1T163KKNTTPKNT
KZVBRConsumption Posting KZVBRCHAR1KZVBR
SOBKZSpecial Stock Indicator SOBKZCHAR1T148SOBKZ
BSTYP_KPurchasing Document Category EBSTYPCHAR1EBSTYP
LOEKZ_KDeletion Indicator in Purchasing Document ELOEKCHAR1ELOEK
BEDATPurchasing Document Date EBDATDATS8DATUM
MATKLMaterial Group MATKLCHAR9T023MATKLMKLS_WBWG
TXZ01Short Text TXZ01CHAR40TEXT40
PACKNOPackage number PACKNONUMC10ESLHPACKNO
WAERSCurrency Key WAERSCUKY5TCURCWAERSFWS
WEPOSGoods Receipt Indicator WEPOSCHAR1XFELD
WEUNBGoods Receipt, Non-Valuated WEUNBCHAR1XFELD
WEBREIndicator: GR-Based Invoice Verification WEBRECHAR1XFELD
KDATBStart of Validity Period KDATBDATS8DATUM
KDATEEnd of Validity Period KDATEDATS8DATUM
BSARTPurchasing Document Type ESARTCHAR4T161BSARTBSA
LEBREIndicator for Service-Based Invoice Verification LEBRECHAR1XFELD
MEMORYPurchase order not yet complete MEMERCHAR1XFELD
STATUStatus of Purchasing Document ESTAKCHAR1ESTAK
MEMORYTYPECategory of Incompleteness MEMORYTYPECHAR1MM_MEMORYTYPE

Key field Non-key field



How do I retrieve data from SAP table SRV_MDRV using ABAP code

The following ABAP code Example will allow you to do a basic selection on SRV_MDRV to SELECT all data from the table
DATA: WA_SRV_MDRV TYPE SRV_MDRV.

SELECT SINGLE *
FROM SRV_MDRV
INTO CORRESPONDING FIELDS OF WA_SRV_MDRV
WHERE...

How to access SAP table SRV_MDRV

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