07-30-2009 12:41 PM
hi,
I have an issue in displaying the amount field in alv grid .
the amount fields in my output table are results of curency conversion from JPY to USD.
the conversion is done and amount is stored in the field as 19456.70 -
>with decimals
But when i see the output it appears without decimals 1,945,670
The target field type is Currency field with decimals 2.
Could you please suggest as to how to get decimals in output.
Thanks & Regards,
Prema
07-30-2009 12:56 PM
07-30-2009 12:46 PM
Hai,
Did you use the Modify statement on work area / itab after the Conversion is made?
Best Regards,
rama
07-30-2009 12:49 PM
Do you know the Fieldcatalog option "decimals_out"
Use that inorder to get the required number of decimals.
07-30-2009 1:35 PM
hi
if i set decimals_out = 2
then the output is coming as 1,945,670.00
it should display as 19,456.70
07-30-2009 1:44 PM
07-30-2009 12:55 PM
>
> hi,
> I have an issue in displaying the amount field in alv grid .
> the amount fields in my output table are results of curency conversion from JPY to USD.
> the conversion is done and amount is stored in the field as 19456.70 -
>with decimals
> But when i see the output it appears without decimals 1,945,670
>
> The target field type is Currency field with decimals 2.
>
> Could you please suggest as to how to get decimals in output.
>
> Thanks & Regards,
> Prema
hi ,
You can define the fieldcatalog with the option
decimals_out ( type c length 6) .
OR
You can also define that field in the ALV list of character type.
but , in that case, you wont be able to sort that field with standard functionality.
Regards,
Rajesh
07-30-2009 12:56 PM
07-30-2009 1:49 PM