SAP Managed Tags: ABAP Development Hello David, You could it like this: DATA: zlv_float TYPE f VALUE '2.006123100000000E+07', zlv_integer TYPE i, zlv_date TYPE d. zlv_integer = zlv_float. write zlv_integer to zlv_date. Regards, John. Reply david_fryda2 Participant In respons...
SAP Managed Tags: ABAP Development Hi All, My issue is i have to convert one float type value into %. Means i m dividing two values of int4 type and the result i sstoring in one float data type variable. I want to display the result value is with %. Ex:DATA: n1 TYPE i, n2...
SAP Managed Tags: ABAP Development i am using FM "CEVA_CONVERT_FLOAT_TO_CHAR" to convert 3.0000000000000000E+02 to 300 in my report. I am using this FM as below DATA: l_var TYPE p DECIMALS 2. DATA: l_char(25). LOOP AT i_cdpos . IF i_cdpos-fname = 'ATFLV'. CALL FUNCTION...
SAP Managed Tags: ABAP Development this should solve REPORT YCHATEST. DATA : V_FLOAT TYPE F VALUE '2456.5678912', V_CHAR(25), P10_4(10) TYPE P DECIMALS 8. CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR' EXPORTING FLOAT_IMP = V_FLOAT FORMAT_IMP = P10_4 ROUND_IMP = ' ' IMPORTING CH...
SAP ManagedTags: ABAP Development Can someonemake changes in this code : So that I can use it data :w_float type f value '3.339000000000000E+02', w_charactertype ausp-atwrt, w_numbertype f. CALL FUNCTION'CEVA_CONVERT_FLOAT_TO_CHAR' EXPORTING float_ = w_float "Feld TYPE F...
data: p type p decimals 2. p = f * 10. write:/ p. Regards, Rich Heilman Reply Former Member In response to RichHeilman 2008 Jan 07 9:34 PM 0 Kudos 485 SAP Managed Tags: ABAP Development Hi Rich, Thanks Rich. Thanks for the solution. It got solved. You are becomi...