Code: Alles auswählen.
*&---------------------------------------------------------------------*
*& Report Z_FLTP_TEST
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT Z_FLTP_TEST.
data l_float type f.
parameters: P_fltp(20) default '3,141526'.
CALL FUNCTION 'CHAR_FLTP_CONVERSION'
EXPORTING
* DYFLD = ' '
* MASKN = ' '
* MAXDEC = '16'
* MAXEXP = '59+'
* MINEXP = '60-'
string = P_fltp
* MSGTYP_DECIM = 'W'
* STRICT_CHECK = ' '
IMPORTING
* DECIM =
* EXPON =
FLSTR = l_float
* IVALU =
EXCEPTIONS
EXPONENT_TOO_BIG = 1
EXPONENT_TOO_SMALL = 2
STRING_NOT_FLTP = 3
TOO_MANY_DECIM = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.