13 Replies Latest reply: Oct 27, 2010 9:34 PM by Vladimir Puello RSS

CX_SY_CONVERSION_NO_NUMBER

Praveen P
Currently Being Moderated

Hi,

 

I am getting the below dump

 

Short text

    Unable to interpret "11750.00  " as a number.

 

 

 

What happened?

    Error in the ABAP Application Program

 

    The current ABAP program "ZSUB_RFKORD10" had to be terminated because it has

    come across a statement that unfortunately cannot be executed.

 

 

 

Error analysis

    An exception occurred that is explained in detail below.

    The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was n

     caught in

    procedure "CUMMIL" "(FORM)", nor was it propagated by a RAISING clause.

    Since the caller of the procedure could not have anticipated that the

    exception would occur, the current program is terminated.

    The reason for the exception is:

    The program attempted to interpret the value "11750.00  " as a number, but

    since the value contravenes the rules for correct number formats,

    this was not possible.

Line  SourceCde

 

   86   READ TABLE input WITH KEY name = 'VAR1'.

   87   CONDENSE inval1.

   88   CONDENSE input-value.

   89

   90   DO.

   91     IF input-value CS ','.

   92       pos1 = sy-fdpos .

   93       pos2 = sy-fdpos + 1.

   94       CONCATENATE input-value0(pos1) input-valuepos2 INTO input-value.

   95     ELSE.

   96       EXIT.

   97     ENDIF.

   98   ENDDO.

   99   CLEAR: pos1, pos2.

  100   DO.

 

 

  101     IF ouput-value CS ','.

  102       pos1 = sy-fdpos .

  103       pos2 = sy-fdpos + 1.

  104       CONCATENATE ouput-value0(pos1) ouput-valuepos2 INTO ouput-value.

  105     ELSE.

  106       EXIT.

  107     ENDIF.

  108   ENDDO.

  109

  110   ouval = ouput-value.

  111   CONDENSE ouval.

  112   inval = input-value.

  113   CONDENSE inval.

  114   inval1 = v_amt.

  115   CONDENSE inval.

>>>>>   ouval = ouval + input-value + v_amt.

 

all the commas have been removed before performing the addition , so why this error is appearing

 

Actions