SAP COPA_VALUATION_TRACE Structure for CO-PA Valuation Log Table data and field list

COPA_VALUATION_TRACE 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 "Structure for CO-PA Valuation Log" 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_COPA_VALUATION_TRACE TYPE COPA_VALUATION_TRACE.

The COPA_VALUATION_TRACE table consists of various fields, each holding specific information or linking keys about Structure for CO-PA Valuation Log data available in SAP. These include WKOMP_TEXT (Medium Field Label), SOURCE (Valuation type), PRE_VAL (Value field before valuation), STEP_VAL (Result of valuation)... 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. .

COPA_VALUATION_TRACE structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP COPA_VALUATION_TRACE structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the COPA_VALUATION_TRACE table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
WERTKOMP Value Field Name0
WKOMP_TEXTMedium Field Label SCRTEXT_MCHAR20SCRTEXT_M
SOURCEValuation type VAL_ORIGINCHAR2VAL_ORIGIN
PRE_VALValue field before valuation COPA_PRE_VALCURR15(2) WERTV8
STEP_VALResult of valuation RESULT_VALCURR15(2) WERTV8
TOTAL_VALValue field after valuation VAL_FIELDCURR15(2) WERTV8
NOT_INITIAL Value field was not blank0
PRE_VAL_BUKRSValue field before valuation COPA_PRE_VALCURR15(2) WERTV8
STEP_VAL_BUKRSResult of valuation RESULT_VALCURR15(2) WERTV8
TOTAL_VAL_BUKRSValue field after valuation VAL_FIELDCURR15(2) WERTV8
STEP_VAL_KEPHResult of valuation RESULT_VALCURR15(2) WERTV8
E_WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
B_WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
F_WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
K_WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
KURS_E2BExchange Rate UKURS_CURRDEC9(5) EXCRTUKURS
KURS_E2FExchange Rate UKURS_CURRDEC9(5) EXCRTUKURS
KURS_E2KExchange Rate UKURS_CURRDEC9(5) EXCRTUKURS
KURS_B2FExchange Rate UKURS_CURRDEC9(5) EXCRTUKURS
KURS_B2KExchange Rate UKURS_CURRDEC9(5) EXCRTUKURS
KURSTExchange Rate Type KURSTCHAR4Assigned to domainKURSTKUT
CURRENCY_DATEPosting Date in the Document BUDATDATS8DATUM
INDIRECTCheckbox XFELDCHAR1XFELD
BSTRAValuation strategy (CO-PA) BSTRATCHAR3Assigned to domainCOBESTRAT
NUMMERSequence in costing sheet for CO-PA valuation COPALFNRNUMC2NUM2
KALSMProcedure (Pricing, Output Control, Acct. Det., Costing,...) KALSM_DCHAR6Assigned to domainKALSM
KAPPLApplication KAPPLCHAR2Assigned to domainKAPPLKAP
KSCHLCondition Type KSCHLCHAR4Assigned to domainKSCHLVKS
KALAWCO-PA: Costing key KALAWCHAR3Assigned to domainKALAWKALAW
KALAW_NRLoop Index SYINDEXINT410SYST_LONG
KLVARCosting variant COPA_KLVARCHAR4Assigned to domainKLVARKRT
TVERSCosting Version CK_TVERSNUMC2CK_VERSIONVSN
KADATCosting Date From CK_ABDATDATS8CK_KADATKDA
ERZKACost Estimate Created with Product Costing CK_ERZKACHAR1XFELD
KKZMACosts Were Entered Manually in an Additive Cost Estimate COPA_KKZMACHAR1XFELDKKM
FEH_STACosting Status CK_FEH_STACHAR2CK_STATUSFEHSTA
ELEHKCost Component Structure - CGM and Sales/Administr. Costs CK_ELESMHKCHAR2Assigned to domainCK_ELESMHKEHK
ELEMTCost Component Number CK_ELEMENTNUMC3Assigned to domainCK_ELEMENT
FVKZFixed/variable indicator RKE_FVKZCHAR1RKE_FVKZ
WERKSPlant used for reading cost estimate WERKS_PACHAR4Assigned to domainWERKS
UEXITCO-PA exit number PA_EXIT_NRCHAR3EXIT_NR
ERSCHPA transfer structure ERSCHCHAR2Assigned to domainALPHAERSCH
HKONTGeneral Ledger Account HKONTCHAR10Assigned to domainALPHASAKNR
RBELNReference document number for CO-PA line item RKERFBELNRCHAR10ALPHABELNR
RPOSNItem number from reference document (CO-PA) RKERFPOSNRCHAR6RKE_POSNR
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
QUANTITYSales quantity RKE2_ABSMGQUAN15(3) MENGV15_3
UNITCO-PA standard unit of measure COPA_STANDARD_UNITUNIT3Assigned to domainCUNITMEINS
BWTARValuation Type BWTAR_DCHAR10Assigned to domainBWTARBWT
POPERPosting period POPERNUMC3POPERPOPR
BDATJPosting Date YYYY BDATJNUMC4GJAHRGJAHRBDTJ
RUNIDNumber of Costing Runs for Material Ledger CKML_RUN_IDNUMC12Assigned to domainCKML_RUN_ID
RUN_TYPECosting Run in Actual Costing CKML_RUN_TYPECHAR8Assigned to domainCKML_RUN_TYPECKML_RUN_TYPE
VBELNSales and Distribution Document Number VBELNCHAR10Assigned to domainALPHAVBELNAUN
POSNRItem number of the SD document POSNRNUMC6Assigned to domainPOSNR
PSPNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8Assigned to domainKONPRPS_POSNR
CURTPCurrency Type and Valuation View CURTPCHAR2CURTP
CURTP_BUKRSCurrency Type and Valuation View CURTPCHAR2CURTP
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
AUFNR_2Order Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
AUFNR_3Order Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
MORE_AUFNRGeneral Flag FLAGCHAR1FLAG
SICHTCost Component View CK_SICHTNUMC2Assigned to domainCK_SICHT
SCALEFactor for Production Order Cost Estimate CKFA_SCALECHAR1CKFA_SCALE
ORDSELProduction Order Cost Estimate: Order Selection CKFA_ORDSELNUMC1CKFA_ORDSELORDSEL
LOSFXFlag: Transfer cost estimate in controlling area currency COPA_LOSFXCHAR1XFELD
KEARTIndicator: transfer auxiliary cost component split COPA_KEARTCHAR1KEART

Key field Non-key field



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

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

How to access SAP table COPA_VALUATION_TRACE

Within an ECC or HANA version of SAP you can also view further information about COPA_VALUATION_TRACE and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).