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.
- Extend the key field length.
- 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.
- Convert the key into a GUID.
- Implement a mapping class, or just increase the version number.
- 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.
- Create a copy of the structure, and extend the key field in the copied version.
- Adapt the mapping class:
- Increase the type version.
- Extend the conversion methods so that they are able to handle all versions.
- 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).