Name an operating concern and then define its attributes. After the attributes are defined, define the data structures for the operating concern by selecting the required value fields and characteristics for the profitability segment. Then save, activate, and generate the data structures.
During the generation process, the system creates the tables CE1XXXX through CE8XXXX, and check tables. The tables CE1 through CE4 are of particular significance for the market segments. Note that the data in costing-based Profitability Analysis (CO-PA) is stored in separate tables. The actual data for Margin Analysis is stored in the universal journal ACDOCA, the plan data in table COSP (totals) and COEJ (plan line item).
Data Tables COPA
| Tables | Structure |
|---|---|
| CE0xxxx | Logical line item structure |
| CE1xxxx | Actual line item table |
| CE2xxxx | Plan line item table |
| CE3xxxx | Segment level |
| CE4xxxx | Segment table |
| CE4xxxx_KENC | Realignments |
| CE4xxxx_ACCT | Account assignments |
| CE4xxxx_FLAG | Posted characteristics |
| CE5xxxx | Logical segment level |
| CE7xxxx | Internal help structure for assessments |
| CE8xxxx | Internal help structure for assessments |
Hint
CE4 contains the profitability segments and its characteristic values. Each profitability segment is defined by its segment number. The segment number is used to select the totals and line items. The direct selection of the line items is also possible by one or more characteristics. CE3 contains the totals for COPA costing based It contains the profit segment number, the characteristics for fiscal year and posting period and the values. The table for actual line items in COPA costing based contains all characteristics and value fields, as well as technical characteristics.

The following steps describe the process for defining data structures:
Check whether all required characteristics and value fields are available. If not, create them using transaction KEA5 (characteristics) and KEA6 (value fields).
Define attributes:
Define attributes of the operating concern and save the operating concern.
Define data structures:
Copy the required characteristics and value fields (applicable for costing-based CO-PA) to the operating concern, save them, and activate the data structures. Following activation of the data structures, all the necessary tables are created. When assigning characteristics and value fields, activation is required. Otherwise, the assignment is lost.
Reactivate the environment after you change the data structures of an operating concern. For example, reactivate the environment after you add a new characteristic or a value field.
Note
The regeneration process does not affect any existing transaction data. The regeneration process does not automatically back populate any new fields for existing transaction data either. However, this step may sometimes be performed using the CO-PA realignment or periodic valuation functions.
The regeneration process does not affect any characteristic values that have already been entered in check tables for user-defined characteristics.
CO-PA Transaction Data Structures

Costing-based CO-PA stores its transaction data in its own data tables. The system creates these tables when it activates and generates the operating concern. Because costing-based CO-PA stores its transaction data in its own data tables, it does not affect the speed at which reports are executed in other CO applications.
Margin Analysis stores its transaction data with SAP S/4HANA Enterprise Management in the following tables:
Line item actual data in the universal journal ACDOCA
Plan data in the classic tables COSP (totals) and COEJ (line items).
Note
All line items with an account assignment to a controlling object like COPA are updated in table ACDOCA and in table COEP. One reason is PRIMA NOTA which means, that a posting caused by a controlling object must be updated by a cost accounting line item. Another reason is the fact. that ACDOCA is not available for all value types. Although, the actual data in reporting in Margin Analysis are selected from COEP, such data are synchronized with ACDOCA.
The system stores the definitions of profitability segments for both CO-PA sub-modules in the same table, CE4XXXX (where XXXX is the operating concern). The system always accesses this segment definition table when posting the transaction data for costing-based or Margin Analysis.
Profitability segments represent the account assignment objects for CO-PA. These segments are a unique combinations of characteristic values that are created by the system. The characteristic values are numbered automatically by the system from the information in the originating transactions.
CO-PA Costing Based Transactions and Tables

The tables CE3XXXX and CE4XXXX work effectively together to store the summarized transaction information, both actual and plan, for costing-based CO-PA.
The CO-PA drill-down reporting tool accesses the data in the tables CE3XXXX and CE4XXXX. You can access the line item data and the information from the tables CE1XXXX and CE2XXXX through line item display features.
CO-PA Costing Based Database Structures

The data of CO-PA is divided into characteristics and value fields. The system stores the characteristics in the data division of the table CE4XXXX. The key of the table CE4XXXX consists of the profitability segment number that is used as a join field for the table CE3XXXX. The key of the table CE3XXXX consists of the profitability segment number, the posting period, and some other technical fields that are not listed. The value fields are also specified.
The table CE4XXXX represents the profitability segments that are created based on business considerations. The table CE4XXXX is created when an operating concern is created. The table CE3XXXX contains the values posted to the profitability segments, broken down into the posting period.
The typical record lengths are as follows:
- CE4XXXX = 250 bytes
- CE3XXXX = 2000 bytes



