Show TOC

Adding and Removing Properties, and Data ObjectsLocate this document in the navigation structure

Procedure

You can edit the Properties, Data Objects, and Operations, that have already been mapped in a Data Model.

You edit these objects in the Data Model by adding, deleting or changing them in the Structure tab of the Data Model Generator tool.

If the object you want to edit is a mapped operation, then select the mapped operation you want to change in the Operations section of the Structure tab.

For information on how to edit mapped operations, see Editing the Mapping in Your Data Model.

Editing a Property or a Data Object

If the object you want to edit is a Property or a Data Object, then proceed as follows:

  1. Select Expand all in the Data Model screen of the Structure tab, to display all the Properties of Data Objects and the origin of all the Properties.

    The origin shows the operation type connecting to the Property, the original name of the operation, and the root of the original mapped attribute.

  2. Right click the node to which you want to add a new object, and choose Add Data Object or Add Property.

  3. For a new Data Object, specify the following:

    • Data Object Name

      Name of the new Data Object in the Data Model.

    • Cardinality

      Cardinality of the Data Object.

      Select the required cardinality for the new Data Object. For example, If the Data Object is a structure, the cardinality is typically 0..1. If the Data Object is a table with multiple instances, the cardinality is typically 0..n.

    • Label

      The label for the Data Object. This is stored in the metadata of the Data Model.

    For a new Property, specify the following:

    • Property Name

      Specify a name for the new Property in the Data Model to which you can map a data source attribute.

    • Data Type

      Specify the Entity Data Model (EDM) type. The following are the data types:

      • Edm.Guid

        A unique identifier value. You can map it to the predefined ABAP Types: CHAR LENGTH 32. The internal representation does not contain any '-'.

      • Edm.Double

        A floating point number with 15 digits precision. Can be mapped to the predefined ABAP Type FLOAT.

      • Edm.Single

        A floating point number with seven digits precision. You can map it to the predefined ABAP Type: FLOAT.

        The value range is between 1.18E-38 and 3.40E+38. The serialization always formats the value with 8 decimal places.

      • Edm.Int16

        A signed 16–bit integer value. You can map it to the predefined ABAP Types: INT2, INT, and also NUM.

        The value range is between -32768 and 32767. When it is mapped to NUM, leading ZEROs are removed in serialization and added in deserialization.

      • Edm.Int32

        A signed 32–bit integer value. You can map it to the predefined ABAP Type: INT, and also NUM.

        The value range is between -2147483647 to 2147483647. When it is mapped to NUM, leading ZEROs are removed in serialization and added in deserialization.

      • Edm.Int64

        A signed 64–bit integer value. You can map it to the predefined ABAP Type: PACKED LENGTH >= 8 DECIMALS 0, and also NUM.

        When it is mapped to NUM, leading ZEROs are removed in serialization and added in deserialization.

      • Edm.SByte

        A signed 8–bit integer value. You can map it to the predefined ABAP Types: INT2, INT, and NUM is also possible The value range is between -255 and 255. When it is mapped to NUM, leading ZEROs are removed in serialization and added in deserialization.

      • Edm.DateTime

        Date and time with values.

        DateTime as Timestamp can be mapped to the predefined ABAP Type: TIME. It is ignored by deserialization. In serialization, it is 00:00:00.

        DateTime as Date can be mapped to the predefined ABAP Type: DATE. It is ignored by deserialization. In serialization, it is 00-00-00.

      • Edm.Binary

        Fixed or variable length binary data. You can map it to the predefined ABAP Types: XSTRING, and HEX.

      • Edm.String

        Fixed or variable length character data. You can map it to the predefined ABAP Types: STRING, CHAR, and NUM.

        No conversion is done for Strings.

      • Edm.Decimal

        Numeric value with fixed precision and scale. You can map it to the predefined ABAP Type: PACKED, DECFLOAT16, and DECFLOAT34.

      • Edm.DateTimeOf

        Offset in minutes from GMT. You can map it to the predefined ABAP Type: PACKED LENGTH 8 DECIMALS 0 (timestamp is without fractional seconds), and PACKED LENGTH 11 DECIMALS 7 (timestamp with fractional seconds).

        Deserialzation considers an offset like +03:30 and converts it into an UTC Timestamp. The internal representation must be an UTC Timestamp. Serialzation always uses Z as Offset.

      • Edm.Boolean

        Represents the mathematical concepts of binary-valued logic. You can map it to the predefined ABAP Type CHAR LENGTH 1.

        The XML value 'true' and '1' is mapped to the ABAP value 'X'. The XML value 'false' and '0' is mapped to the ABAP value ' '.

      • Edm.Time

        Time of day with values raning from 0:00:00.x to 23.59.59

      • Edm.Byte

        Unsigned 8–bit integer value. You can map it to the predefined ABAP Types: INT1, INT, and NUM is also possible.

        The value range is between 0 and 255. When it is mapped to NUM, leading ZEROs are removed in serialization and added in deserialization.

    • Length

      Maximum characters allowed for a value of the Property. Some data types have a fixed length.

      If the length you enter is not allowed for the data type, you get a warning from the system.

    • Decimal Places

      Number of decimal places allowed for a value. Decimal places are only meaningful for the certain data types.

    • Label

      The label for the Data Object. This is stored in the metadata of the Data Model.

  4. Choose Continue.

Deleting a Property or a Data Object

To delete a Property or a Data Object, proceed as follows:

  1. Select Expand all in the Data Model screen of the Structure tab, to display all the Properties of Data Objects and the origin of all the Properties.

  2. Select the Property or the Data Object you want to delete.

  3. Choose the Delete Line icon above the Data Model screen.

Renaming a Property or a Data Object

To rename a Property or a Data Object:

  1. Select Expand all in the Data Model screen of the Structure tab, to display all the Properties of the Data Objects and the origin of all the Properties.

  2. Select the Property or the Data Object you want to rename.

  3. Choose the Rename icon above the Data Model screen.

    You can view your changes to the Data Objects and Properties in the Data Model screen at the bottom of the Structure tab.

More Information