Registering Database Tables with Context Data in CDE
The purpose of CDE is to extract context database tables that contain Customizing settings, master data, or metadata from the legacy system. When you extract data from a legacy system, CDE writes the registered database table to the file system. The files created by CDE belong to the generated archiving objects whose names start with the prefix SN_
(such as SN_FI
).
To evaluate the data in an archiving object, you may need some additional information not contained in the archive files, such as the content of check tables, texts for check table content, and master data.
Check the application database tables and decide whether the check tables used there are needed for your evaluations.
Note
To ensure that the assignment of check tables in DDIC (transaction SE11
) is correct, consult those who are responsible for the archiving objects as well as the relevant application expert when you run the check.
Call transaction ILM
in the SAP system. The transaction creates the Configuration
menu structure in the SAP menu.
If the existing CDE applications are insufficient for grouping database tables according to business aspects, create CDE applications as follows:
In the configuration menu, choose (transaction ILM_C_APPL
).
Enter the CDE application (with a description and display sequence).
Recommendation
We recommend creating separate CDE applications for company code-dependent CDE content. Use the following syntax for naming these CDE applications: <Application Name>-C.
In the configuration menu, choose (transaction ILM_C_OBJECTS
.
Choose the application package Information Lifecycle Management and the application.
Enter the CDE archiving object (SN_*) you want to generate.
Naming convention: If the application name has the syntax <Application Name>-C
, specify the name SN_<Application Name>C
for the archiving object.
In client 100 of the development system, create a DDIC structure corresponding to each database table. The DDIC structure is required if you want to generate data for the archiving object. Proceed as follows:
Call transaction SE11
in the SAP system.
Choose Data Type
and enter the structure name in the form TXI_<Table Name>.
Choose Create
, and then choose Structure
.
Enter the table as the component. Changes to the table now have no effect on the DDIC structure.
If you have saved information about units of currency and measurement in a separate reference table, make an according entry in the DDIC structure. Use the following syntax:
Units of currency: <Field Name>_CY
Units of Measurement: <Field Name>_QY
Save the structure under a transport request.
When you have added the entries for units of currency and measurement, proceed as follows:
Define a (generic) function module for exchanging the content of the reference fields in the table with that of the referenced DDIC structure. Enter the function module in transaction ILM_C_CON
(segment control).
Enter the unit of currency or measurement in the Customizing table TXX_C_REF
(reference for currency and quantity fields).
In the configuration menu, choose (or start transaction ILM_C_STRC
).
Add a new entry with the following data:
Segment Name
: Enter the name of the corresponding DDIC structure TXI_<Table Name>.
Description
: Enter the description of the corresponding DDIC structure.
Master Data Segment
: If you want to regard BW content as BW master data (for the generation of InfoObjects), you need to select this checkbox.
Customer-Specific
: If this segment has been defined for your company, then select this checkbox.
Type
: Choose Data Records (Transaction and Master Data
.
Application
: Select the CDE application to which you want to assign the segment.
In the configuration menu, choose (transaction ILM_C_SOEX
).
Create new entries with the following data:
Segment name
Name of the database table
Ensure that function modules are available for the following purposes:
Function module for the extraction of the table content of registered CDE database tables
You can use the function module TXILM_EXTRACT_TABLE
delivered by SAP directly or as a template. This function module extracts database content according to the Tax
audit area supplied by SAP.
Note
The function module for the extraction of table content needs to be able to process mass data and it must not be interrupted by termination messages. The function module DB_COMMIT
has to trigger the Commit Work
.
Optional segment function module for processing or formatting selected content, for example, for completing information for currency keys or units of measurement.
In the configuration menu, choose (transaction ILM_C_C_CON
).
To define how the system is to extract segment content from database tables, create an entry with the following data for each segment:
Application Package:
Choose Information Lifecycle Management
RF:
Select the next free number in the number range. The number you specify must match the number range in the audit area:
1 – 4999: Reserved for FI (Tax
audit area)
5000 – 9999: Reserved for objects from ERP processes (Product Liability
audit area)
10000 – 14999: Reserved for IS Utilities
15000 – 19999: Reserved for IS Oil
Segment Name
: Choose the segment (TXI_*)
.
Function Module
: Select the appropriate function module for the extraction of content from database tables.
Segment Function Module
: Optional: Choose the segment function module for enriching the selected content.
Active
: Select the checkbox.
You need to edit the relationship between segments in the following cases:
The content of text tables is required for evaluations, however, the content of these tables is not stored together with the archived information.
Foreign Key
relationships between tables are not defined in DDIC or contain errors.
In the configuration menu, choose (transaction ILM_C_RELA
.
Create an entry with the following data for each relationship between segment:
Relationship Name:
Enter the relationship name subject to the following naming convention: 0<Segment Name>-<Field Name> (The 0 indicated the SAP namespace)
Note
If multiple relationships are required for a field, differentiate between them by adding the appropriate suffix to the relationship name (such as consecutive numbers).
No.:
If you define segment relationships for multiple fields, use the number to specify the sequence of these fields.
Segment Name
and Field Name
. Segment and field of the table that are to form a relationship with another table.
Segment Name
and Field Name
. Segment and field of the table for which the relationship is to be defined.
Constant:
If a constant field value is required, enter it here.
In the configuration menu, choose (transaction S_E4A_94000025
) or (transaction S_E4A_94000026
) to list segments or segment fields and their respective settings.