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

Display currency field as blank in sap

Hello All,

My requirement is to display blank i.e nothing if someone click on do not display price on selection screen but instead of showing blank its showing 0.00.

Please help how to fix it.

Thanks !!

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 Feb 09, 2012 at 06:37 AM

    Hi,

    The iniaial value of currency field is 0.00 only not blank. That is why when you clear this it will show you 0.00 like time variable.

    Thanks.

    Aswath

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 09, 2012 at 06:38 AM

    Hi

    Curreny field is with decimals..."0.00" so it will show like that only, here you have to use char filed for the same.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 09, 2012 at 07:33 AM

    This behavior is related to the currency code associated to the currency amount field when amount is zero/null - the link comes from ddic definition of parameters, I suppose that you are using a true currency amount field (type CURR) associated to a currency code (CUCY)

    - if currency code is initial then space is displayed

    - if currency code is not initial then 0 or 0,00, 0,000 (number of decimal depends on actual currency code)

    Of course if you don't associate the amount field to a currency code, you will get your requirement for bad reason (space for 0, else two decimals.... ;-)

    PARAMETERS: dmbtr TYPE bsis-dmbtr.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2012 at 09:45 AM

    Hi ,

    You can declare a seperate variable to display on screen like char as CURR field shows initial value as 0.00.

    You can write as if value is 0.00 in CURR field you just pass blank to char field which you will show on screen.

    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.