Formatting a currency field

I have a currency formatted field that completes a calculation.  Is there a way to format a field so that if the answer is $0.00, that it will not show and print?

The only way I could get it to take the validation is to type the following:  if(+event.value==0)event.value="";
But when I put that in my field - it still prints $0.00.  Is it because my formula is not addition but multiplying two fields? 
You mentioned that I may have to change some field values first?  The two fields that my original formula is figuring are formatted for a number and the second field is formatted for currency.  So the total is in a field formatted for numbers - with a $ sign and a space before the number.  I have about 30 lines figured for this, but even when I have no entry in either one of the fields, I still get a $0.00.  I really do not want anything to show up unless there is an entry in that field.

Similar Messages

  • Formating long currency field

    Hi all.
    I'm looking forward to format the output of a long currency field. I would like to display it without decimals and using the dot separator, for example: in database i have the value 1234567891011,1234 then display 1.234.567.891.011,1234 is there any function module to archieve this?
    Regards.

    Hi,
    No Need of Function Moudule you can do it with ABAP code..
    Here is the Example for this..
    data: amount(15) type c value '200,000,000.000'.
    while sy-subrc = 0.
    replace ',' with space into amount.
    endwhile.
    condense amount no-gaps.
    write:/ amount.
    Change code according to your requirements for dots and space.
    Reward Points if It is Helpful.
    Regards,
    Bohra.

  • Format Currency field with $ sign and condense

    I want to format the currency field output by appending '$' sign to it and removing the gaps so that the '$' sign occurs immediately before the amount. Can anyone tell me how to do it so that it displays like given below in ALV. Thanks.
    Before                    
       $____25.00           
      $__130.00        
    $___1000.00       
    After
    $25.00
    $130.00
    $1000.00
    Edited by: Sheetal on May 27, 2009 12:23 PM

    Hi Sheetal,
    You can try this-
    1) copy currency field to a text field.
    2) Append $ to the field. CONCATENATE can be used on text fields.
    3) Remove any spaces by using CONDENSE.
    Of course you can combine step 1 and 2 depending on the logic you choose.
    There are of course many other ways and you may have found out some yourself. The above steps can help.
    Regards,
    Nimish

  • MS Word Web Service Interface: bad format of date and currency fields

    Hi,
    I am using MS Word Web Service interface to create contract documents. However, my date and currency fields show in a strange format. Date is in"YYYY-MM-DD" format, while currencies always have "." as decimal separator (probably technical values). My user settings are "DD.MM.YYYY" for dates and "n.nnn,dd" for decimal numbers.
    My workaround is to create a Z structure for WS interface with char fields and then do conversion through CRM_WST_RT_BADI->OUTBOUND_PROCESSING method. This works, but requires a lot of custom development.
    Is there a way to "tell" the interface to use correct formats in MS Word without doing it all manually through custom fields?
    Thanks!
    KR,
    Igor

    Oh, indeed!
    We might be closer than you think - I live close to Croatian-Slovenian border so we might pop out for a drink! But we can discuss this out of forum... 
    Now work again:
    Is there any documentation on possible formatting keywords? I suppose it's possible to set up decimal places, custom date formats etc.
    Cheers,
    Igor

  • A Currency Field is Changing its Format While Loading to Internal Table?

    I download custom table data, via RFC call, to an internal table. The field in question has a data type of CURR, length 17, dec 2. 
    In debug it wants to make it [P(9)DEC2].
    table value = 2,360,895.00.
    internal table value = 202020202020323.33
    table value = 0.00
    internal table value = 303839352>30302.02
    I know these must be packed, but how do I get what I see (unpacked)?
    Any suggestions?     Thank-You.

    Are you using RFC_READ_TABLE fm. For me it is not work fine with currency fields
    Line nos in fm
    DATA: BEGIN OF WORK, BUFFER(30000), END OF WORK.
    FIELD-SYMBOLS: <WA> TYPE ANY, <COMP> TYPE ANY.
    ASSIGN WORK TO <WA> CASTING TYPE (QUERY_TABLE).
    so i changed the code as per the following
      data: dref type ref to data.
      field-symbols: <wa> type any, <comp> type any.
      create data dref type (query_table).  
      assign dref->* to <wa>.               
    May this info will help you
    Please use SE16 as suggested by Rob in you previous thread

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Using SELECT_OPTIONS in Web Dynpro with currency fields

    I have an application where I use SELECT_OPTIONS to gather search parameter values for a query which has amount and currency fields.  In my WDDOINIT, I am calling add_selection_field to add the fields that I wish to use to search.  One of the fields is a currency key and another is the amount.  The query returns the found data in an ALV and each record has its amount formatted correctly based on the currency key field in each record.  This all works as it should.
    However, the search parameter for the amount field is always formatted based on its data type and not on the other search parameter with the currency key.  The currency key field does not allow multiples so it is either present or not (using the default would be fine if the currency key is not specified).  If it is specified, I would like it to format the amount.low and amount.high input fields correctly.
    For example, if I enter 'USD' in the currency key search field and '10' and '20' in the amount from/to fields, respectively, when I press the search button or hit enter, both the amount to/from fields' display changes to '10,00000' and '20,00000', respectively which is the data type definition of CURR19,5.
    I found no documentation on how to handle formatting of currency or quantities in the search fields when using SELECT_OPTIONS.  Has anyone solved this problem?  I looked at all the parameters to the add_selection_field method and cold not find a way to associate the currency key to the amount.  Any help would be greatly appreciated.

    Hi Mark,
    I don't think, it is possible to get the currency key reference for the amount fields in selection screen by using IF_WD_SELECT_OPTIONS.
    I would suggest you the below work around option
         If you do not have the requirement of passing multiple values in either currency key field or amount field, you can go for normal input fields to design your input screen.
    Create a structure with 3 fields , CURR, AMT_LOW, AMT_HIGH
    Use currency reference field in structure with self structure name and CURR field, so that amount fields refer to the same structure's currency key
    Create a node by using this structure and design the input fields from this context node
    Now, the amount fields have the reference of currency key from the structure and it should work fine
    Hope this helps you.
    Regards,
    Rama

  • In reports, i want to display currency field out put with diff currencies

    Hi all
    in reports, i want to display currency field out put with different type of currencies like 1st record in rupees 2nd record in dolors 3rd record in       
    Euros. for this i should not use any tables and any currency fields and any functional modules. pls give replay urgently.

    Hi swamy,
    so sorry, but you have to use some of the objects you do not want to:
    Currency values in ABAP are stored in currency fields (type CURR). If they are stored in structures or database, every CURR field must be connected to a CUKY field (currency key).
    Displaying data using WRITE statement four output on a list is obsolete technique, you may use the use WRITE with the option CURRENCY c to format according to currency c in table TCURX.
    SAP recommends to use ALV technique. If you use ALV to display structure data, then create a dictionary structure with currency value and currency key. The rest goes automatically.
    Believe me: It is much easier and more reliable.
    Regards,
    Clemens

  • Currency field value in script

    Hi,
    In script i want to print  currency field value is 123.000 in this formate.
    It is possible or not.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 5:14 PM

    Hi anitha,
    Example : if the currency field length is 8 then you have to give the statement as.
    &SYMBOL(8.3)&  -   Decimal format. Length 8 decimals 3
    reward points if useful.
    thanks,
    satheesh.

  • GRC PC 10.0 business rule creation: Wildcard for Currency field

    Hi,
    Currently I am designing a business rule that has standard price as a deficiency. I am using a blank check. But the system wants me to choose a specific currency. I want it to retrieve all records with the deficiency, regardless of currency.
    I've tried using "*" in the currency field, but it retrieves nothing. I am only able to retrieve records when I add a specific currency.
    Why is that? And what can I do to fix this problem?
    Thank you.

    Hi Raphael,
    Have you defined the Currency field as a filter criteria? If yes, can you please remove the field from filter selection and try to execute the rule again.
    Just make sure it comes under output format section.
    regards,
    Rajeshwari

  • Format of currency incorrect

    Hi
    I have several smartforms which are dispaying various amount fields which are all listed in the Global Definition settings under the tab 'Currency/Quant.Fields' and referency a currency field.
    I have a problem where in one particular smartform I am doing exactly the same thing execpt the currency format is not displaying correctly as the other forms.
    In this particular case we are displaying Zambian Kwachas and the format should be 1,000 which is displaying in all forms but the trouble form is displaying 1.000 - with a fullstop instead of a comma.
    In debug the amounts between the forms are all the same and there is nothing unique which should make the formats different.
    Does anyone know why this one would print with an incorrect format?
    Thanks.
    Regards
    Lyndon

    Hi Guys
    Thank you both very much, this is a very big help. Murphey's law is that our Dev system is down so I can't test this. I think that it might be a combination of both SU01 and the SPRO settings, in SU01 the settings are correct whereas is SPRO the settings are wrong, maybe that is why some forms print correctly while others are wrong.
    Thanks!

  • How we will use date n currency fields in bdc

    how we will use date n currency fields in bdc

    Hi
    When you have to upload using BDC, always use char type fields.
    For date, use date(10) type c.
    write sy-datum to date. Date will be as per using setting, either mm/dd/yyyy or dd/mm/yyyy...
    For currency also, you need to declare as
    data1(15) type n and
    data2(15) type c.
    Now suppose you have a value 12545421.91 . As per user setting it can be 12545421,91.
    In this case, first push the value to NUMC type.
    data1 = 1254521.91 and then data2 = data1 / 100.
    This will change it in required format and can be populated in the bdc table.
    Regards
    Navneet

  • Very urgent : Problem in currency field while downloading file from excel.

    I downloaded a excel file to my ABAP program.It contains a currency field which has comma in it. When i do operations on the currency field it says unable to interpret the number.Can anybody help me on this.
    Message was edited by:
            Bharath Srinivas
    Message was edited by:
            Bharath Srinivas

    Hi,
    Try this. In ur excel right click on that column wher u have the currency, go to format cells and there uncheck the box which shows 'Show tousands (,) seperator).That shud solve the problem.
    Thanks
    Vasudha

  • Currency field in PERFORM, -- SAP Script

    Hi,
    I am calling a zperform from SAP Script and sending two currency values as input and after doing subtraction , I want the result value from the Zperform.
    When I send 1,000,000.00 as input to PERFORM. I am getting a dump when I try to assign the in_par-value to a currency field in FORM.
    The error is "Unable to interpret "1,000,000.00 " as a number." Please let me know how to handle this case. I mean is there any converstion routine to convert the external currency value to internal format?

    You must remove the commas.
    Warren

  • Reading currency field in Access database

    I am working on a Director project that will be reading from
    an MS
    Access database. Some of the fields in the DB are formatted
    as currency.
    I have tried the dmmMBD and DAO xtras and neither one seems
    to return
    any data from these fields. I just get and empty string.
    I can see the other data types (strings and integers). Am I
    missing
    something?

    Hey Dave,
    If you still have my mail, can you contact me off-list?
    "Dave C" <[email protected]> wrote in message
    news:fr3aqv$12m$[email protected]..
    >I am working on a Director project that will be reading
    from an MS Access
    >database. Some of the fields in the DB are formatted as
    currency. I have
    >tried the dmmMBD and DAO xtras and neither one seems to
    return any data
    >from these fields. I just get and empty string.
    >
    > I can see the other data types (strings and integers).
    Am I missing
    > something?

Maybe you are looking for

  • PP - Explosão de BOM Phantom em Ordem Planejada

    Olá pessoal! Tenho um cenário onde dentro do meu Produto Acabado, tenho vários componentes organizados em  Grupo de Alternates, e para cada grupo, defino um componente como Principal ( 100% de utilização ) e os outros como Opcionais ( 0% de utilizaçã

  • Advance through cash journal to vendor( through t.code F-48)

    hi SAP guru, i am getting error while makng advance payment through cash journal t. code-f-48 "payment amount is larger than cash on hand ,change amount"    though i have sufficent cash balance even it is showing this error. total available cash bala

  • Root site collection size

    hi All, I've run: stsadm -o enumsites -url <webapplication name> and that's brilliant, but I need to know find information size on the root site collection so what it holds, and all the webs etc. it has any suggestions how I achieve this? Thanks

  • Select DBASE IV data from Oracle on Linux

    Can I select DBASE IV data from Oracle on Linux

  • WebAuth on FlexConnect Local Switched SSID

    Hi All I'm working on getting internal WebAuth to work on a FlexConnect local switched SSID. From what I've been reading, it's possible but apparently not very straight forward.  FlexConnect AP - if the SSID isn't local switch, WebAuth of course work