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: 

number conversion in SAP->EXCEL transfer

Former Member
0 Kudos

Hi. I have a problem with currency-fields. I have a FM in SAP. It returns a table which contains 2 columns with amounts (type: CURR). In SAP everything is ok.

Values in SAP are for example: 26,451.99

When I export it into EXCEL it's received as string. When I display that value using:

itab(row, col) -> I receive 26,451.99 as string and when I want to sum it up I receive 0, even if I change cell-format into currency *,XX

Val(itab(row, col)) -> I receive a number but it's shortened into 26451

what should I do to transfer data properly? That is to receive 26,451.99 as a number (currency)? Greetings. P.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

dont store as currency and please store this as character . before download the

records

Create a internal table as below

data : being of strc occurs

I_out(1024)

end of str

loop at itab (your internal table)

concenate yours internal table fieds

to struc-i_out.

append strc.

endloop.

thanks

1 REPLY 1

Former Member
0 Kudos

dont store as currency and please store this as character . before download the

records

Create a internal table as below

data : being of strc occurs

I_out(1024)

end of str

loop at itab (your internal table)

concenate yours internal table fieds

to struc-i_out.

append strc.

endloop.

thanks