System Class for Establishing the Properties of Characters in ABAP

Here is the System Class for Establishing the Properties of Characters in ABAP.

The class CL_ABAP_CHAR_UTILITIES provides attributes and methods that concern attributes of individual characters. The components of this class are all static and public, the attributes are write-protected and are initialized in the class constructor.

Class for Time Formats and Conversion of Time Stamps in ABAP

These are two system classes that handle Conversion of Time Stamps and time formats in ABAP programs.

  • The class CL_ABAP_TSTMP is used for calculating time stamps.
  • The class CL_ABAP_TIMEFM is available for establishing time formats and converting between different time formats.

System Class for internal tables in ABAP

The CL_ABAP_ITAB_UTILITIES class contains methods with which individual or all secondary table keys of an internal table can be explicitly updated. Otherwise the update takes place as a delayed or lazy update.System class CL_ABAP_ITAB_UTILITIES is used for speeding the internal table updation.

Mathematical Operation classes in ABAP

Here is some System classes and its methods that handle Mathematical Operations in ABAP.

Class CL_ABAP_MATH contains methods and constants for operations with floating point numbers.

Methods and operations with decimal floating point numbers

  • Method GET_SCALE returns the scaling of a decimal floating point number.
  • Method GET_NUMBER_OF_DIGITS returns the precision of a decimal floating point number.
  • Method NORMALIZE returns a normalized floating point number. That is, the scaling and precision of an input value are changed so that the mantissa does not have trailing zeros.
  • Method GET_SCALE_NORMALIZED returns the scaling of a normalized decimal floating point number. If the input value has a fractional portion, the return value is the number of decimal places without trailing zeros.
  • Method GET_MAX_DB_VALUE returns the maximum value of a number of type DF16_DEC or DF34_DEC in the database.
  • Method GET_DB_LENGTH_DECS returns the length and number of decimal places of a number of the type DF16_DEC or DF34_DEC in the database.

Class CL_ABAP_RANDOM calls the pseudo random number generator for various numeric types.

  • CL_ABAP_RANDOM_INT for type i
  • CL_ABAP_RANDOM_FLOAT for type f
  • CL_ABAP_RANDOM_PACKED for type p
  • CL_ABAP_RANDOM_PACKED_DEC1 to CL_ABAP_RANDOM_PACKED_DEC14 for type p with 1 to 14 decimal places.

Classes for Data Clusters in ABAP

Subclasses of the abstract system class CL_ABAP_EXPIMP are used for handling Data clusters in ABAP.using these classes we can access/ delete data clusters in the individual storage media.

  • CL_ABAP_EXPIMP_MEM
  • CL_ABAP_EXPIMP_SHMEM
  • CL_ABAP_EXPIMP_SHBUF
  • CL_ABAP_EXPIMP_DB
  • CL_ABAP_EXPIMP_CONV

Which class is using for file interface in ABAP ?

The static methods of the class CL_ABAP_FILE_UTILITIES provide information about files on the application server and this class is using for dealing with file interface in ABAP

Which class is using for Getting the Transaction Status in ABAP

The class CL_SYSTEM_TRANSACTION_STATE contains methods that return the status of the current SAP LUW and this class is using for Getting the Transaction Status in ABAP.