06-13-2015 8:18 AM
error.
Category ABAP Programming Error
Runtime Errors CONVT_NO_NUMBER
Except. CX_SY_CONVERSION_NO_NUMBER
Unable to interpret " 1,000" as a numbe
******************************************************************
its working good in development but when i m exporting this to quality there its show error pls help
data: lv_spec type cha_class_view-sollwert,
lv_spec16 type cha_class_view-sollwert,
lv_conc(4) type c,
lv_result type qamr-original_input,
lv_prueflos type qals-prueflos,
lv_werks type qals-werk.
select prueflos
vorglfnr
merknr
kurztext
toleranzob
toleranzun
zaehl
masseinhsw
from qamv into corresponding fields of table it_qamv
where prueflos eq p_prue and
qmtb_werks eq p_werk.
loop at it_qamv into wa_qamv.
select single original_input from qamr into lv_result where prueflos eq wa_qamv-prueflos and
vorglfnr eq wa_qamv-vorglfnr and
merknr eq wa_qamv-merknr.
call function 'QSS0_FLTP_TO_CHAR_CONVERSION'
exporting
i_number_of_digits = 3
i_fltp_value = wa_qamv-toleranzun
i_value_not_initial_flag = 'X'
i_screen_fieldlength = 16
importing
e_char_field = lv_spec16. "Lower limit
call function 'QSS0_FLTP_TO_CHAR_CONVERSION'
exporting
i_number_of_digits = 3
i_fltp_value = wa_qamv-toleranzob
i_value_not_initial_flag = 'X'
i_screen_fieldlength = 16
importing
e_char_field = lv_spec.
wa_qamv-result_qc = lv_result.
--> wa_qamv-spec2 = lv_spec. (error Unable to interpret " 1,000" as a numbe)
lv_conc = wa_qamv-spec2.
wa_qamv-spec3 = lv_spec16.
modify it_qamv from wa_qamv transporting spec2 spec3 result_qc where zaehl eq wa_qamv-zaehl.
endloop.
in debugging i dont understand what happening expert pls help
06-16-2015 11:52 AM
hey baris
can you pls tell me how I can use this FM C14DG_CHAR_NUMBER_CONVERSION and where in details pls
06-14-2015 8:11 AM
Hello Sumit,
ABAP programs catch the numbers' seperator with ".". Therefore, your value seems like "1,000". You should convert it to "1.000" with dot.
I suggest you to use convertion function for this.
Function Modue that you can use; C14DG_CHAR_NUMBER_CONVERSION
When you use it, function will convert your value to number.
Regards,
Barış Arslan
06-16-2015 5:46 AM
Hi Sumit,
Please try to give same data element as CHA_CLASS_DATA-SOLLWERT for lv_spec.
Thanks and Regards
Amol Khochare
06-16-2015 11:04 AM
thanks Bans arslan and anmol khochre for replying me I al try ths
06-16-2015 11:09 AM
hi amol data element for lv_spec is same as cha_class_data-sollwert
06-16-2015 11:20 AM
Hi Sumit,
have you checked the user defined setting for decimal notation?
Regards
Navdeep
06-16-2015 11:41 AM
hi navdeep my user setting is ok 1,234,567.89 my program run good in development but in quality its shows me dumps conversion_no_number and in production company code not define...
06-16-2015 12:24 PM
did you check in both development and quality system?
try by changing this setting in quality.
regards
06-19-2015 10:43 AM
yes i checked both the server settings they are same
06-16-2015 11:52 AM
hey baris
can you pls tell me how I can use this FM C14DG_CHAR_NUMBER_CONVERSION and where in details pls
06-19-2015 2:36 PM
Hello Sumit,
Here is the example use of the function;
CALL FUNCTION 'C14DG_CHAR_NUMBER_CONVERSION'
EXPORTING
i_string = iv_value " [It is your number value but type is string/char]
IMPORTING
e_dec = rv_value. " [This is the return parameter that is your value type is numeric.]
ABAP programs catch the numbers' seperator with ".". Therefore, your value seems like "1,000". You should convert it to "1.000" with dot.
I suggest you to use convertion function for this.
Function Modue that you can use; C14DG_CHAR_NUMBER_CONVERSION
When you use it, function will convert your value to number.
Regards,
Barış Arslan
07-09-2015 6:07 AM