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: 

Short dump while reading a currency field from Flat file into internal tabl

Former Member
0 Kudos

Hi,

I am getting a short dump........saying number conversion dump (while reading a currency value into field in internal table from a fixed lenght flat file).........

Do I need to use a string variable to get the value from flat file or how ??

Please suggest.

3 REPLIES 3

Former Member
0 Kudos

HI Muhammad,

Use <b>WRITE TO</b> statment while moving the currency field on to your internal table to avoid that error..

Regards,

Santosh

0 Kudos

Santosh,

Thanks for your inputs,

But my internal table type is of DEC (5,2) , I am getting that... it needs to be of type 'C'. Can you suggest.

Ex :

MOVE wa_temp-infile_string+106(8) TO wa_item-QT_PERCENT

This didnt work

so i tried moving into a seperate variable

MOVE wa_temp-infile_string+106(8) TO v_percent.

and then write to

WRITE v_percent to wa_item-QT_PERCENT.

Former Member
0 Kudos

Hi,

For currency both the field should be of same type.other wise it will go for dump.

Thanks,

Srinivas