Skip to Content
author's profile photo Former Member
Former Member

Write command

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 11:24 AM

    > 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 11:26 AM

    hi,

    Try something like this:

    data: test TYPE p  DECIMALS 4 VALUE '12.3456'.
    write: / test CURRENCY 'EUR'.

    Regards,

    Ville

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 11:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 11:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.