Skip to Content
0
Former Member
Apr 20, 2011 at 01:03 AM

CX_SY_CONVERSION_NO_NUMBER dump.

2060 Views

Hi all,

I have an issue while i move a string field to WRBTR field.

I have a form in which an int table is passed. It has a field of Char255 length.

This is moved to string field. All the commas and periods are replaced with spaces.

Later this is moved to WRBTR field. It gives dump here as

Unable to interpret "000 " as a number.

It seems there is an extra space at the end of the number in the string field.

I have tried CONDENSE WITH NO GAPS the string field and the same with the char255 field too with no success.

Eg code :

DATA : tt_inp TYPE STANDARD TABLE OF itcsy,

ls_intab TYPE itcsy,

lv_wrbtr TYPE wrbtr,

lv_wrbtr_char TYPE string.

FORM zztest TABLES itab TYPE tt_inp.

READ TABLE in_tab INTO ls_intab WITH KEY name = 'BSIK-WRBTR'.

IF sy-subrc EQ 0.

lv_wrbtr_char = ls_intab-value.

ENDIF.

CONDENSE lv_wrbtr_char.

REPLACE ALL OCCURRENCES OF '.' IN lv_wrbtr_char WITH ''.

REPLACE ALL OCCURRENCES OF ',' IN lv_wrbtr_char WITH ''.

lv_wrbtr = lv_wrbtr_char. (giving dump in this statement)

ENDFORM.

Please find above the code which is resulting in error. when passing the data from ls_intab-value to lv_wrbtr_Char an extra blank is getting appended at the end. Tried all options as CONDENSE WITH NO GAPS, SHIFT, PACK etc.

Please help me in this regard.

Thanks,

Prasad