Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

QSS0_FLTP_TO_CHAR_CONVERSION working in dev but in quality shows error

0 Kudos

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

1 ACCEPTED SOLUTION

0 Kudos

hey baris

can you pls tell me how I can use this FM C14DG_CHAR_NUMBER_CONVERSION and where in details pls

11 REPLIES 11

former_member243278
Participant
0 Kudos

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

former_member207480
Participant
0 Kudos

Hi Sumit,

Please try to give same data element as CHA_CLASS_DATA-SOLLWERT for lv_spec.

Thanks and Regards

Amol Khochare

0 Kudos

thanks Bans arslan  and anmol khochre for replying me I al try ths

0 Kudos

hi amol data element for lv_spec is same as cha_class_data-sollwert

navdeep_thakur12
Explorer
0 Kudos

Hi Sumit,

have you checked the user defined setting for decimal notation?

Regards

Navdeep

0 Kudos

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...

0 Kudos

did you check in both development and quality system?

try by changing this setting in quality.

regards

0 Kudos

yes i checked both the server settings they are same

0 Kudos

hey baris

can you pls tell me how I can use this FM C14DG_CHAR_NUMBER_CONVERSION and where in details pls

0 Kudos

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

0 Kudos

thanks Baris