SAP FLTP_CHAR_CONVERSION Function Module for Format conversion: Floating point --> Character









FLTP_CHAR_CONVERSION is a standard fltp char conversion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Format conversion: Floating point --> Character processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fltp char conversion FM, simply by entering the name FLTP_CHAR_CONVERSION into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCFL
Program Name: SAPLSCFL
Main Program:
Appliation area:
Release date: 19-Nov-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FLTP_CHAR_CONVERSION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FLTP_CHAR_CONVERSION'"Format conversion: Floating point --> Character
EXPORTING
* DECIM = 15 "Places behind the decimal point fo
* EXPON = 0 "To the power of 10 for editing in
* INPUT = 0 "FLTP field for editing in CHAR fie
* IVALU = ' ' "Indicator, that FLSTR contains a v
* MASKN = ' ' "Masking character if input screen

IMPORTING
FLSTR = "CHAR field with edited floating po
.



IMPORTING Parameters details for FLTP_CHAR_CONVERSION

DECIM - Places behind the decimal point fo

Data type:
Default: 15
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPON - To the power of 10 for editing in

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPUT - FLTP field for editing in CHAR fie

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

IVALU - Indicator, that FLSTR contains a v

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MASKN - Masking character if input screen

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FLTP_CHAR_CONVERSION

FLSTR - CHAR field with edited floating po

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FLTP_CHAR_CONVERSION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_decim  TYPE STRING, "   15
lv_flstr  TYPE STRING, "   
lv_expon  TYPE STRING, "   0
lv_input  TYPE STRING, "   0
lv_ivalu  TYPE STRING, "   SPACE
lv_maskn  TYPE STRING. "   SPACE

  CALL FUNCTION 'FLTP_CHAR_CONVERSION'  "Format conversion: Floating point --> Character
    EXPORTING
         DECIM = lv_decim
         EXPON = lv_expon
         INPUT = lv_input
         IVALU = lv_ivalu
         MASKN = lv_maskn
    IMPORTING
         FLSTR = lv_flstr
. " FLTP_CHAR_CONVERSION




ABAP code using 7.40 inline data declarations to call FM FLTP_CHAR_CONVERSION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

DATA(ld_decim) = 15.
 
 
 
 
DATA(ld_ivalu) = ' '.
 
DATA(ld_maskn) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!