10-05-2007 1:41 PM
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.
10-05-2007 10:14 PM
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
10-05-2007 10:14 PM
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