
Need a custom field to display a value differently from the way it is stored? In classic ABAP, a conversion routine can handle the difference between the internal and external formats. But the approach depends on how the field was created.
Classic ABAP fields
- Use SE11 to check the data element and domain of the field.
- Check whether the domain already has a suitable conversion routine. A conversion routine normally has an INPUT function for the internal format and an OUTPUT function for the display format.
- If custom development is required, work with the ABAP team to implement and test both directions in a development system. Check leading zeros, blank values, maximum field length and invalid input.
- Before transporting any domain change, use the where-used list to identify other fields that share the domain. Test the affected screens, reports and interfaces.
Fields created using the Custom Fields app
Do not assume the classic SE11 approach applies to a field generated by key-user extensibility. In S/4HANA Cloud Public Edition, use the supported extensibility options for the business context. Check whether a suitable field type, value help or released extension point is available instead of modifying generated objects.
Reference
SAP Note: 3794017
SAP Help: Input and Output Conversions
SAP Help: Creating Custom Fields


