SAP OBS INTERN SYSTEM FIELD - Guide
Get Example source ABAP code based on a different SAP table
Obsolete and Internal System Fields
ABAP_BACKGROUND
Not all system fields are designed to be used in application programs. All available system fields are components of the structure
ABAP_RULE
In application programs, do not use system fields flagged as obsolete or for internal use only in ABAP Dictionary or in the ABAP documentation.
ABAP_DETAILS
The behavior of obsolete and internal system fields is undefined. This means that ABAP application programs must not make any assumptions about the content of these system fields.
ABAP_EXAMPLE_BAD
The following source code shows how the system field
DATA type TYPE c LENGTH 1.
DATA decimal TYPE i.
DESCRIBE FIELD dobj TYPE type.
decimals = sy-fodec.>
ABAP_EXAMPLE_END
ABAP_EXAMPLE_GOOD
The following source code demonstrates how decimal places can be counted correctly using the appropriate addition of the statement
DATA type TYPE c LENGTH 1.
DATA decimals TYPE i.
DESCRIBE FIELD dobj TYPE type DECIMALS decimals.>
ABAP_EXAMPLE_END