05-31-2005 2:34 PM
Hi,
i´m working with a smartform. In this smartform i get a subtotal of an amount field.
The question is that the result is OK but the output format is wrong (i get 1,000 instead of 1).
What should i do in order to get the right output format?
Best regards.
05-31-2005 8:59 PM
You can try formating options:
&field(Z)& to suppress leading zeros
&field(x.y)& to define decimal format
&field(.0)& should work for you
05-31-2005 9:24 PM
Hi C,
you can use a text field to show the amount field with the rigth format, refered to the currency.
WRITE amount_field INTO text_field CURRENCY currency_field.
Regards,
PabloX
06-01-2005 7:35 AM
Hi,
first of all thanks fo your help.
The problem was that i hadn´t defined the variable properly.
Here´s how i solved the problem:
in gobal data tab i´ve defined my variable thus
VARIABLE NAME TYPIFICATION REF. TYPE
GS_QTY LIKE GS_IT_GEN_BATCH-DLV_QTY
GS_QUAN_UNIT LIKE GS_IT_GEN_BATCH-SALES_UNIT
and in currency/quantity fields tab i´ve written:
FIELD NAME REFERENCE FIELD DATA TYPE
GS_QTY GS_IT_GEN_BATCH-SALES_UNIT QUAN
Best regards.