Get Example source ABAP code based on a different SAP table
VERSION 5 OUT • CL_CONFIGURATION_DEPRECATION ABAP_CLASS
ABAP_DDIC - Flagging of Deprecated Data in Check Tables Rows in check tables> can be flagged as deprecated or invalid. If the check on deprecated data is active, the flag modifies the input check > and input help> in dynpros or Web Dynpros. Checks on deprecated data are active by default when an ABAP_ISESS > is created. This setting can be modified and read using methods of the class CL_CONFIGURATION_DEPRECATION>>:
The parameter I_RESPECT_OBSOLETE_VALUES> of the method SET_DEPRECATION_ACTIVE> can be used to enable and disable the deprecated data check for the current ABAP_ISESS .
If the check on deprecated data is active, the return value of the method DEPRECATION_IS_ACTIVE> has the value of abap_true>. A column with the predefined name CONFIGDEPRECATIONCODE> is used to flag deprecated data in check tables. The data type of this column must be defined using the data element CONFIG_DEPRECATION_CODE>>. The following values are valid for this column: Value>Meaning> BlankThe entry is valid. WThe entry is deprecated and should no longer be used. EThe entry is invalid and must not be used. If the deprecated data check is enabled, the implicit input checks> and input helps> in dynpros and in Web Dynpro that are based on check tables evaluate the column CONFIGDEPRECATIONCODE> as follows:
Input check:
If a deprecated value is entered, a warning occurs.
If an invalid value is entered, an error message occurs.
Input help:
Valid data and the deprecated data is displayed. Invalid data is not displayed.
Latest notes:
If input helps are based on search helps> linked with check tables, the deprecated data check is active and runs as described above.
If the input check is implemented using a PAI> module, the column CONFIGDEPRECATIONCODE> must be evaluated in the PAI module itself.
SAP HANA databases> use the more universal concept of data aging>, which is applied to each access using the database interface>.
Instead of CONFIGDEPRECATIONCODE>, also the obsolete name CONFIGURATIONDEPRECATIONCODE> can still be used. ABAP_HINT_END
ABAP_EXAMPLE_ABEXA Flagging of Deprecated Data in Check Tables> ABAP_EXAMPLE_END