CL_ABAP_EXCEPTIONAL_VALUES - Returns Min, Max... Values of Predefined Types

RFUMSV00 - Advance Return for Tax on Sales/Purchases   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Functionality

The function of this class returns extraordinary values (such as minimum or maximum value) of predefined types.

Predefined types are fixed length types, such as ABAP type I or ABAP type F, but also types with variable length, such as ABAP type C or STRING.

The function will not work with user-defined types if they cannot be represented by predefined types.

Therefore the function will, for example, work with the following type:

  TYPES my_type(16) type p decimals 14.

It will not, however, work with the following example of a user-defined type:

TYPES: BEGIN OF my_type,
             a type d,
             b type t,
         END OF my_type.

List of all supported types:

C : Characters ( variable length )
D : Date ( 8 characters )
DECFLOAT34: Decimal floating point number ( 34 significant places )
DECFLOAT16: Decimal floating point number ( 16 significant places )
F : Binary floating point number ( 8 Byte )
I : Integer ( 4 Byte )
INT2 : Integer ( 2 Byte )
INT1 : Integer ( 1 Byte )
N : Numerical characters ( variable length )
P : Packed numbers ( variable length )
STRING : Strings ( variable length )
T : Time ( 6 characters )
X : Hexadecimal value ( variable length )
XSTRING : Hexadecimal strings ( variable length )

If the input variable is type DF34_DEC or DF16_DEC, the maximum value in the database is smaller thanthe maximum value in the ABAP runtime. The method GET_MAX_VALUE only returns the maximum value in theABAP runtime. To get the maximum value from the database, call the method GET_MAX_DB_VALUE of the classCL_ABAP_MATH. The class CL_ABAP_MATH provides a method GET_DB_LENGTH_DECS that returns the length defined in DDIC and number of decimal places defined in DDIC.

Relationships

Example

Notes

Further information



CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.


Length: 2457 Date: 20120526 Time: 081334     triton ( 99 ms )