Creating Data Types 
You use this procedure to create Data types in ES Repository, which describe the structure of a message type. SAP NetWeaver Developer Studio allows you to create freestyle, core, and aggregated data types.
You are familiar with the basics of data types. For more information, see Data Types in Enterprise Services Repository.
In the context menu of software component version, namespace, or folder, choose .
In the Create Data Type window, enter a name for the data type.
Choose Browse to select the required namespace and folder.
From the Classification drop down, select the type of data type you want to create.
If you choose Core Data Types in the step 4, select the required value from the Representation Term dropdown list box.
Choose Finish.
In the Select Change List window, select an existing change list or choose New to create a new change list for the data type.
Choose OK.
If you want to associate a base type to the data type, proceed as follows:
Choose Browse in the Base Type section.
Note
You cannot associate a base type to an aggregated data type.
Select a base type from the list of available objects, and choose OK.
Depending on the base type chosen, enter the required constraints in the Constraints section.
To assign values to custom attributes, in the Custom Attributes section, choose Edit.
Note
You can assign values only if at least one attribute definition is assigned to a data type.
Assign values for the each attribute and choose Save.
To add an element to data type (or element), select the required node in the Data Types section, and choose Add Element.
In the Details section, choose Browse to select a type for the element.
Select a type from the list of available objects and choose OK.
Enter a default value for the element.
From the Min. Occurs and Max. Occurs drop-down, select the required values.
Note
If you want an element to occur unlimited number of times, select * from the Max. Occurs drop-down list box.
If you want to add some documentation to the element, enter the information under the Documentation section.
Depending on the element type chosen, in the Constraints section, enter the required constraints.
To add an attribute under a data type (or element), select the required node in the Data Types section, and choose Add Attribute.
In the Details section, choose Browse to select a type for the element.
Select a type from the list of available objects and choose OK.
Enter a default value for this attribute.
To specify how often this attribute should occur, from the Occurrence drop-down, select the required value.
If you want to add some documentation to the attribute, in the Documentation section, enter the required information.
Depending on the attribute type chosen, in the Constraints section, enter the required constraints.
If you want to add internal documentation, in the Documentation section, choose Edit Documentation link.
Note
This field is not available if you have selected the Use External Documentation check box while defining the software component version.
In case, you have selected the Use External Documentation check box, you can view the external document by selecting View. This option is useful if documentation about the object exists in SAP Solution Composer.
In the Internal Documentation window, choose the Edit Documentation tab page.
Enter the content.
Choose OK.
Note
If an internal documentation exists, you can view it in Web browser, by selecting View Documentation.
Data types can also be imported in Netweaver Developer Studio, see: Importing of Data Types