Enhancing Data Types (CCTS/Freely-Modeled)
Prerequisites
Customers or partners have to create data type enhancements in a separate software component version and a separate namespace. This software component version must be based on the SAP software component version in which the data type to be enhanced is defined.
More information: Defining Additional Software Dependencies.
Context
If necessary, SAP applications can allow customers to enhance application source code without making modifications and thus meet customer-specific requirements that are not provided for in the standard shipment. The applications can use Business Add-Ins (BAdIs)for this purpose. Furthermore, customers can define data type enhancementsfor data types for the classification freely-modeled data typeor aggregated data typein the ES Repository. If the service interfaces developed there are to be used for exchanging messages, customers can use these enhancements to transfer additional data with a message, which they can then access by using a BAdI, for example.
Procedure
Results
The enhanced data type is displayed on the Enhanced Data Typetab page.
Next Steps
Using Data Type Enhancements in ABAP
To use a data type enhancement, you must use ABAP proxy generation to create proxy objects for the data type enhancement in the application system. (Make sure you use the customer-specific software component version.) ABAP proxy generation maps data type enhancements to APPEND structuresin the ABAP Dictionary.
Using Data Type Enhancements in Java
There is no enhancement concept in Java. Nevertheless, you can regenerate proxies for service interfaces that reference data type enhancements.
The generation function recognizes the elements and attributes of the enhancement, but does not handle them separately. The generated objects do not contain any information about which classes or attributes originate from the data type enhancement. There are, therefore, no separate Java objects for enhancements.
Java proxy generation can only generate proxy objects from service interfaces. If more than one data type enhancement exists for a data type, the generation function simply creates proxy objects for all data type enhancements.
Java proxy generation is part of the SAP NetWeaver Developer Studio.