Show TOC

Procedure documentationCreating Data Types Locate this document in the navigation structure

 

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.

Prerequisites

You are familiar with the basics of data types. For more information, see Data Types in Enterprise Services Repository.

Procedure

1. Define Basic Data
  1. In the context menu of software component version, namespace, or folder, choose   New   Data Type  .

  2. In the Create Data Type window, enter a name for the data type.

  3. Choose Browse to select the required namespace and folder.

  4. From the Classification drop down, select the type of data type you want to create.

  5. If you choose Core Data Types in the step 4, select the required value from the Representation Term dropdown list box.

  6. Choose Finish.

  7. In the Select Change List window, select an existing change list or choose New to create a new change list for the data type.

  8. Choose OK.

  9. If you want to associate a base type to the data type, proceed as follows:

    1. Choose Browse in the Base Type section.

      Note Note

      You cannot associate a base type to an aggregated data type.

      End of the note.
    2. Select a base type from the list of available objects, and choose OK.

    3. Depending on the base type chosen, enter the required constraints in the Constraints section.

2. Assign Values to Custom Attributes
  1. To assign values to custom attributes, in the Custom Attributes section, choose Edit.

    Note Note

    You can assign values only if at least one attribute definition is assigned to a data type.

    End of the note.
  2. Assign values for the each attribute and choose Save.

3. Define Elements
  1. To add an element to data type (or element), select the required node in the Data Types section, and choose Add Element.

  2. In the Details section, choose Browse to select a type for the element.

  3. Select a type from the list of available objects and choose OK.

  4. Enter a default value for the element.

  5. From the Min. Occurs and Max. Occurs drop-down, select the required values.

    Note Note

    If you want an element to occur unlimited number of times, select * from the Max. Occurs drop-down list box.

    End of the note.
  6. If you want to add some documentation to the element, enter the information under the Documentation section.

  7. Depending on the element type chosen, in the Constraints section, enter the required constraints.

4. Define Attributes
  1. To add an attribute under a data type (or element), select the required node in the Data Types section, and choose Add Attribute.

  2. In the Details section, choose Browse to select a type for the element.

  3. Select a type from the list of available objects and choose OK.

  4. Enter a default value for this attribute.

  5. To specify how often this attribute should occur, from the Occurrence drop-down, select the required value.

  6. If you want to add some documentation to the attribute, in the Documentation section, enter the required information.

  7. Depending on the attribute type chosen, in the Constraints section, enter the required constraints.

5. Assign Internal Documentation to Data Type
  1. If you want to add internal documentation, in the Documentation section, choose Edit Documentation link.

    Note 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.

    End of the note.
  2. In the Internal Documentation window, choose the Edit Documentation tab page.

  3. Enter the content.

  4. Choose OK.

    Note Note

    If an internal documentation exists, you can view it in Web browser, by selecting View Documentation.

    End of the note.

More Information

Data types can also be imported in Netweaver Developer Studio, see: Importing of Data Types