10-21-2005 12:18 PM
Hi all,
I am printing a variable in the list with Write command but then the variable is off Type Currency It gives me a warning that
Use addition CURRENCY when outputting I_AP_VENDOR-WRBTR
Now i am writing it as
Write:/ I_AP_VENDOR-WRBTR currency. but it is still giving me error.
Help me out in this
Thanx in advance.
10-21-2005 12:24 PM
> Hi all,
> I am printing a variable in the list with Write
> te command but then the variable is off Type Currency
> It gives me a warning that
> Use addition CURRENCY when outputting
> I_AP_VENDOR-WRBTR
> Now i am writing it as
> Write:/ I_AP_VENDOR-WRBTR currency. but it is still
> giving me error.
> Help me out in this
>
> Thanx in advance.
Hi,
Is there any field in I_AP_VENDOR that contains the currency???
you should use
Write:/ I_AP_VENDOR-WRBTR currency I_AP_VENDOR-Waers
for example or
Write:/ I_AP_VENDOR-WRBTR currency 'EUR' for always euro
this is use for the formatting
don't forget the reward if you were helped
10-21-2005 12:26 PM
hi,
Try something like this:
data: test TYPE p DECIMALS 4 VALUE '12.3456'.
write: / test CURRENCY 'EUR'.
Regards,
Ville
10-21-2005 12:28 PM
read this documentation...
... CURRENCY cur
This addition cannot be used together with the addition TIME ZONE.
Effect
This addition defines currency-dependent decimal places for the output of data objects of data types i or p. For all other data types, except for f, the addition is ignored. For cur, a three-digit, character-type field is expected that contains a currency key from the column CURRKEY of the database table TCURX in uppercase letters. The system determines the number of decimal places from the column CURRDEC of the respective row in the database table TCURX. If the content of cur is not found in TCURX, two decimal places are used. The following applies for numeric data types:
In the case of data types of type i, a decimal separator is inserted at the position determined by cur and the thousands separators are moved accordingly.
In the case of data objects of type p, the decimal places defined in the definition of the data type are ignored completely. Irrespective of the actual value and without rounding actions, the decimal separators and the thousand separators are inserted at the positions in the numbers determined by cur.
In the case of data objects of type f, the addition CURRENCY has the same effect as the addition DECIMALS (see below). Here, the number of decimal places is determined by cur.
If the addition CURRENCY with length specification * or ** is used after AT, it is used first and the output length is determined from the result.
rgds,
PJ
10-21-2005 12:28 PM
Hi Sanjay,
I am not confident but you may try this one
Write:/ I_AP_VENDOR-WRBTR NO-GROUPING CURRENCY 'EUR'.
Hope it works you may change EUR if you want.
regards
Amit