Skip to Content

restrict decimal values for specific field based on currency key

Hi,

My query is, If currency is NOT in TCURX then the values should appear the way they are appearing with decimals. eg. for USD values there will be no value in tcurx. They will appear as 1966.200 USD or 300.000 USD etc.

KRW exists in TCURX and the field decimal has a value of zero.

So the values should appear as 124691 KRW or 29615 KRW instead of 124691.000 or 29615.000.

Please help,

Thanks a lot in advance. 😊

Message was edited by: Suhas Saha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Sep 05, 2013 at 09:21 AM

    Hi.

    If you want amount to be displayed as per decimal values, try passing value for currency field in fieldcatlog of your ALV .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 05, 2013 at 09:31 AM

    Just correct your field catalog : use an actual amount CURR field and link to a currency code CUKY field. Search/Look for online documentation like Value Display with Currency/Quantity Unit or Formatting Column Contents in ALV Grid Control documentation. For the same "price" you will also get subtotal per currency, so hurry !

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Raymond,

      I would like to seek your help in deleting the thread posted on sep 5th 2013 11:17 A.M

      Kindly help me deleting the Thread with the attached image. As, the data mentioned in the Image is confidential, which i accidentally uploaded with the wrong image.

      I apologize for the inconvenience.

      Thanks in advance

      Regards.

      Jyothi

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2013 at 09:36 AM

    Hi Reddy,

    The easiest way is to change the structure of your ALV in ABAP dictionary.

    Set each amount field type to "CURR" and give each of them a "CURK" reference field.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2013 at 11:47 PM

    Hi Jyothi,

    look at this link at Currency-specific Output Formats: http://help.sap.com/saphelp_46c/helpdata/en/9f/dba1ef35c111d1829f0000e829fbfe/content.htm

    You will find the Currency in TCURX-CURRKEY and the entry which sets the decimal places TCURX-CURRDEC. This will help to change the decimal places for your currency.

    Cheers

    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.