KV012 SAP (Variances: Costs) Structure details

Dictionary Type: Structure
Description: Variances: Costs




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




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

KV012 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 "Variances: Costs" 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_KV012 TYPE KV012.

The KV012 table consists of various fields, each holding specific information or linking keys about Variances: Costs data available in SAP. These include AWBVK (Variances: Value Type), VERSN (Version), KSTAR (Cost Element), HRKFT (Origin Group as Subdivision of Cost Element).. 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 KV012 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
OBJNRObject number J_OBJNRCHAR22ONR00J_OBJNRONR
AWBVKVariances: Value Type AWBVKCHAR1AWBVK
VERSNVersion VERSNCHAR3TKVSALPHACOVERSIKVS
KSTARCost Element KSTARCHAR10CSKAALPHAKSTARKAT
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4TKKH1HRKFT
VRGNGBusiness Transaction J_VORGANGCHAR4TJ01J_VORGANG
VBUNDCompany ID of trading partner RASSCCHAR6T880ALPHARCOMPPGS
PARGBTrading partner's business area PARGBCHAR4TGSBGSBERGSB
BEKNZDebit/credit indicator BEKNZCHAR1BEKNZBEKNZ
PAROBPartner Object PAROBCHAR22ONR00J_OBJNR
USPOBSource Object (Cost Center/Activity Type) USPOBCHAR22ONR00J_OBJNR
WERKSPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
MATNRMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
CBRKEExternal Value Added Ranking (CO-OM-ABC) CO_CBRKENUMC2CBRKCO_CBRKG
CBRKIInternal Value Added Ranking (CO-OM-ABC) CO_CBRKINUMC2CBRKCO_CBRKG
CBARTBusiness Process Attribute: Category CO_CBARTCHAR2CBARCO_CBART
DRVTPBusiness Process Attribute: Allocation Category (CO-OM-ABC) CO_DRVTPCHAR3CBDTALPHACO_DRVTP
RECINDRecovery Indicator JV_RECINDCHAR2T8JJALPHAJV_RECIND
AWPSKVariances: Primary/Secondary Cost Element AWPSKCHAR1AWPSK
AWLFXVariances: Lot-Size-Independent Quantities/Costs AWLFXCHAR1AWLFX
AWBELVariances: Debit/Credit AWBELCHAR1AWBEL
AWLOSCalculate Lot Size Variances Only AWLOSCHAR1AWLOS
AWAUSOnly Calculate Scrap AWAUSCHAR1AWAUS
MVFLGQuantity Complete/Incomplete CO_MVFLGCHAR1CO_MVFLG
MEINHUnit of Measure CO_MEINHUNIT3T006CUNITMEINS
TWAERTransaction Currency TWAERCUKY5TCURCWAERSFWS
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
PERIOPeriod CO_PERIONUMC3PERBLVPE
WKGBTRTotal Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKFBTRFixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKPBTRPlan-Independent Value in Controlling Area Currency WKPXXXCURR15(2) WERTV8
WKSBTRSender-Independent Value in Controlling Area Currency WKSXXXCURR15(2) WERTV8
PAGBTRTotal Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAFBTRFixed Price Variance in CO Area Currency PAFXXXCURR15(2) WERTV8
WOGBTRTotal Value in Object Currency WOGXXXCURR15(2) WERTV8
WOPBTRFixed Planned Value in Object Currency WOPXXXCURR15(2) WERTV8
WOSBTRSender-Independent Value in Object Currency WOSXXXCURR15(2) WERTV8
MEGBTRTotal Quantity MEGXXXQUAN15(3) MENGV8
MEFBTRFixed Quantity MEFXXXQUAN15(3) MENGV8
WKWBTRValue of Work in Process in Controlling Area Currency WKWXXXCURR15(2) WERTV8
WKXBTRFixed Value of Work in Process in Controlling Area Currency WKXXXXCURR15(2) WERTV8
WOWBTRValue of WIP in Object Currency WOWXXXCURR15(2) WERTV8
MEWBTRWork in Process Quantity MEWXXXQUAN15(3) MENGV8
WKABTRScrap Value in Controlling Area Currency WKAXXXCURR15(2) WERTV8
WKBBTRFixed Scrap Value in Controlling Area Currency WKBXXXCURR15(2) WERTV8
WOABTRValue of Scrap in Object Currency WOAXXXCURR15(2) WERTV8
MEABTRScrap Quantity MEAXXXQUAN15(3) MENGV8
SKFORTarget Cost Formula CO_SKFORCHAR1FLAG
AFTEIDistribution Rule CO_AFTEICHAR1FLAG
CKPOSNRUnit Costing Line Item Number CK_POSNRNUMC5Assigned to domainCK_POSNR
CKMATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
CKWERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
VORNROperation/Activity Number VORNRCHAR4NUMCVVORNRVGN
EXTAVOOperation Responsible for Scrap or WIP IVORNRCHAR4NUMCVVORNR
OBJNR_EXPLAINObject number for production reporting point management PZP_OBJECTCHAR22Assigned to domainJ_OBJNR
CHARGBatch Number CHARG_DCHAR10Assigned to domainCHARGCHA

Key field Non-key field



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

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

How to access SAP table KV012

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