SAP COPA_ACTUAL_DATA_TRACE CO-PA: Structure of Logs for Actual Data: Header Table data and field list

COPA_ACTUAL_DATA_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 "CO-PA: Structure of Logs for Actual Data: Header" 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_ACTUAL_DATA_TRACE TYPE COPA_ACTUAL_DATA_TRACE.

The COPA_ACTUAL_DATA_TRACE table consists of various fields, each holding specific information or linking keys about CO-PA: Structure of Logs for Actual Data: Header data available in SAP. These include TRACE_ADFL (Natural Number), TRACE_DERI (Natural Number), TRACE_VAAN (Natural Number), TRACE_COPC (Natural 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. .

COPA_ACTUAL_DATA_TRACE structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP COPA_ACTUAL_DATA_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_ACTUAL_DATA_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
TRACE_IDNatural Number INT4INT410INT4
TRACE_ADFLNatural Number INT4INT410INT4
TRACE_DERINatural Number INT4INT410INT4
TRACE_VAANNatural Number INT4INT410INT4
TRACE_COPCNatural Number INT4INT410INT4
TRACE_VAAN_TPNatural Number INT4INT410INT4
TRACE_COPC_TPNatural Number INT4INT410INT4
RBELNReference document number for CO-PA line item RKERFBELNRCHAR10ALPHABELNR
RPOSNItem number from reference document (CO-PA) RKERFPOSNRCHAR6RKE_POSNR
VRGARRecord Type RKE_VRGARCHAR1Assigned to domainVRGARVGA
ERKRSOperating concern ERKRSCHAR4Assigned to domainERKRSERB
BELNRDocument number of line item in Profitability Analysis RKE_BELNRCHAR10ALPHABELNR
POSNRItem no. of CO-PA line item RKE_POSNRCHAR6RKE_POSNR
PAOBJNRProfitability Segment Number (CO-PA) RKEOBJNRNUMC10RKEOBJNR
PASUBNRProfitability segment changes (CO-PA) RKESUBNRNUMC4RKESUBNR
STO_BELNRCanceled document RKE_STO_BELNRCHAR10ALPHABELNR
STO_POSNRCanceled document item RKE_STO_POSNRCHAR6RKE_POSNR
GLVORBusiness Transaction GLVORCHAR4CHAR4
FLAGCharacter Field Length 1 CHAR01CHAR1CHAR1
T_FIELDS 0
ZEILELine number MSGZEILECHAR22CHAR22
MSGTYMessage type (E, I, W, ...) MSGTY_COCHAR1MSGTY_CO
TEXTMessage Text NATXTCHAR73NATXT
ARBGBApplication Area ARBGBCHAR20Assigned to domainARBGBMAG
TXTNRMessage number MSGNRCHAR3Assigned to domainMSGNR
MSGV1Message Variable SYMSGVCHAR50SYCHAR50
MSGV2Message Variable SYMSGVCHAR50SYCHAR50
MSGV3Message Variable SYMSGVCHAR50SYCHAR50
MSGV4Message Variable SYMSGVCHAR50SYCHAR50

Key field Non-key field



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

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

How to access SAP table COPA_ACTUAL_DATA_TRACE

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