Implementing the Key Change

Case 1

The key is not yet represented by a Globally Unique Identifier (GUID), and the length of the key does not exceed 66 characters after the extension of the key field.

  1. Extend the key field length.
  2. Implement a mapper class, or just increase the version number. For more information, look here Implementing a Mapping Class

Case 2

The key is not yet represented by a GUID, and the length of the key would exceed 66 characters after the extension of the key field.

  1. Convert the key into a GUID.
  2. Implement a mapping class, or just increase the version number.
  3. Adapt the relevant objects. For more information, look here Introducing a Technical Key (GUID)

Case 3

You already have a mapping class, and an ABAP Dictionary structure represents the current logical key.

  1. Create a copy of the structure, and extend the key field in the copied version.
  2. Adapt the mapping class:
    1. Increase the type version.
    2. Extend the conversion methods so that they are able to handle all versions.
    3. Change the GET_LOGICAL_KEY_STRUCTURE method so that it returns the name of the correct structure (depending on the value of the i_key_version parameter).