DBERCHV SAP (Consumption History) Table details

Dictionary Type: Table
Description: Consumption History




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




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

DBERCHV is a standard SAP Table which is used to store Consumption History data and is available within R/3 SAP systems depending on the version and release level.

The DBERCHV table consists of various fields, each holding specific information or linking keys about Consumption History data available in SAP. These include BELNR (Number of a billing document), LFDNR (Sequence Number), ERCHV_ORIG (Indicator: Origin of ERCHV), AB (Date from which time slice is valid).. 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: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP DBERCHV table 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 MANDTCLNT3Assigned to domainMANDT
BELNRNumber of a billing document E_BELNRCHAR12ALPHAE_BELNRBELERCH
LFDNRSequence Number LFDNRCHAR3LFDNR
ERCHV_ORIGIndicator: Origin of ERCHV ORIG_KZCHAR1ORIG_KZ
ABDate from which time slice is valid ABZEITSCHDATS8DATUM
BISDate at Which a Time Slice Expires BISZEITSCHDATS8DATUM
LOGIKZWLogical register number LOGIKZWNUMC18LOGIKZW
TIMTYPTime category (days or months) TIMTYPCHAR1TIMTYP
PREISTYPPrice category PREISTYPCHAR1PREISTYPPRY
PREISPrice E_PREISCHAR10Assigned to domainALPHAE_PREISPRXISU_F4_PREIS
MASSBILLUnit of measurement for billing E_MASSBILLUNIT3Assigned to domainCUNITMEINS
ISTABLARTMeter reading type ISTABLARTCHAR2Assigned to domainISTABLARTIALISU_MR_ISTABLART
ISTABLARTVAMeter reading type ISTABLARTCHAR2Assigned to domainISTABLARTIALISU_MR_ISTABLART
ABLESGRMeter reading reason ABLESGRCHAR2Assigned to domainABLESGRABLGRD
ABLESGRVPrevious meter reading reason ABLESGRVCHAR2Assigned to domainABLESGR
OPERANDOperand E_OPERANDCHAR10Assigned to domainE_OPERANDOPEH_TE221
STTARIFStatistical rate STTARIFCHAR10STTARIFNR
BRENNWTACalorific value to be billed BRENNWTADEC8(6) BRENNWT
ZUSTZAHLFixed Volume Correction Factor E_ZUSZAHLDEC9(6) E_ZUSZAHL
ARTMENGEClassification of billed quantity for statistics ARTMENGECHAR1ARTMENGE
UMFAKTORGas Conversion Factor UMFAKTORDEC17(12) UMFAKTOR
NETTOBTRNet amount of billing line item NETTOBTRCURR13(2) WRTV7
TWAERSTransaction Currency TWAERSCUKY5TCURCWAERSPCU
ABLBELNRInternal ID for meter reading document ABLBELNRCHAR20Assigned to domainALPHAABLBELNREAB
BELZEILEBilling line item for billing documents BELZEILENUMC6LFDNR6
ERCHV_BW_RELNot Relevant for Consumption History in BW ERCHV_BW_RELCHAR1KENNZX
SUBINSTSecondary Installation: Key SUBINSTCHAR10Assigned to domainALPHAANLAGE
SUBABRDATSScheduled Billing Date of Secondary Installation SUBABRDATSDATS8DATUM
SUBABRVORGBilling Transaction for Secondary Installation SUBABRVORGCHAR2ABRVORG
EZ_ZWSTANDMeter Reading Recorded EZ_ZWSTANDFLTP16(16) EZ_ZWSTAND
EZ_ZWSTNDABBilled Meter Reading EZ_ZWSTNDABFLTP16(16) EZ_ZWSTNDAB
EZ_ZWSTVORPrevious Meter Reading EZ_ZWSTVORFLTP16(16) EZ_ZWSTVOR
EZ_ABRMENGEBilling Quantity EZ_ABRMENGEFLTP16(16) EZ_ABRMENGE
EZ_ZWSTDIFFMeter Reading Difference EZ_ZWSTDIFFFLTP16(16) EZ_ZWSTDIFF

Key field Non-key field



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

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

SELECT SINGLE *
FROM DBERCHV
INTO CORRESPONDING FIELDS OF WA_DBERCHV
WHERE...

How to access SAP table DBERCHV

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