Skip to Content
0
May 09, 2014 at 09:26 AM

field symbol type any conversion error

612 Views

Hello

I have a field symbol

field-symbols:<wf_file> TYPE any. ,and the table WT_file like alsmex_tabline

(data : WT_file like alsmex_tabline occurs ) the field wt_file-value is of type CHAR 50 .

Later in a code i have loop in the table wt_file moving the values to field symbol

at the moment when wt_file-value = /1.3831 I have short dump because of the conversion issue .

Bach slash is there because later is used as operand for division with 1.3831.

I am surprised because field symbol is declared as TYPE ANY .

Could i solve it if i declare field simbol as the same type as the table wt_file is ?

Thanks

Krsto


LOOP AT wt_file.


wv_cnt = wt_file-col.
CONCATENATE 'WT_FINAL-FLD' wv_cnt INTO wlv_name.
ASSIGN (wlv_name) TO <wf_file>.
MOVE : wt_file-value TO <wf_file>. " short dump when /1.3831
AT END OF row.
APPEND wt_final.
CLEAR wt_final.
CLEAR wv_cnt.
ENDAT.


ENDLOOP.