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.

Similar Messages

  • 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.

  • 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

  • Long currency type Output format in BSP

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

    Hi there,
    try
    <%= page->to_string( value = wa_curr format = if_bsp_page~CO_FORMAT_CURRENCY reference_value = `USD` ) %>
    Cheers
    G

  • 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

  • When using the Database Connectivity Toolset, reads and writes with long binary fields are incompatible.

    I am trying to write LabVIEW Variants to long binary fields in a .mdb file using the Database Connectivity Toolset. I get errors when trying to convert the field back to a variant after reading it back from the database.
    I next tried flattening the variant before writing it and ultimately wound up doing the following experiments:
    1) If I use DB Tools Insert Data to write an ordinary string and read it back using a DB Tools Select Data, the string is converted from ASCII to Unicode.
    2) If I use DB Tools Create Parameterized Query to do an INSERT INTO or an UPDATE operation, specifying that the data is BINARY, then read it back using a DB Tools Select Data,
    the length of the string is prepended to the string itself as a big-endian four-byte integer.
    I can't think of any way to do a parameterized read, although the mechanism exists to return data via parameters.
    Presuming that this same problem affects Variants when they are written to the database and read back, I could see why I get an error. At least with flattened strings I have the option of discarding the length bytes from the beginning of the string.
    Am I missing something here?

    David,
    You've missed the point. When a data item is flattened to a string, the first four bytes of the string are expected to be the total length of the string in big-endian binary format. What is happening here is that preceding this four-byte length code is another copy of the same four bytes. If an ordinary string, "abcdefg" is used in place of the flattened data item, it will come back as <00><00><00><07>abcdefg. Here I've used to represent a byte in hexadecimal notation. This problem has nothing to do with flattening and unflattening data items. It has only to do with the data channel consisting of writing to and reading from the database.
    I am attaching three files that you can use to demonstrate the problem. The VI file c
    ontains an explanation of the problem and instructions for installing and operating the demonstration.
    Ron Martin
    Attachments:
    TestLongBinaryFields.vi ‏132 KB
    Sample.UDL ‏1 KB
    Sample.mdb ‏120 KB

  • 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

Maybe you are looking for

  • RFC connection to source system is damaged , no Metadata uploaded

    Hello Friends, I need your help to understand and rectify why my transport is failing again and again. RFC connection to source system BT1CLNT200 is damaged ==> no Metadata upload Environment - Production Support (Dev - Quality - Testing - Production

  • Cutting a Big section from a finished project, I need to rant on this one!

    Hi all... On listening to a completed song and from others advise. The song is too long! Mainly the 2nd verse is the part that could have been cut and should have but I got caught up in the story tell So now Im looking some help on cutting entire sec

  • Clear GL account - FBL3n shows net '0'

    Hello   I have a GL posting which is seen as 500,000 and 500,000 in FBl3n. Net is 0. I want to clear that out from the system. So, I went to F-03. but it says "There are no open item managed for tthis GL'. How can I clear this GL. Please help, how ca

  • Flashresource file missing.  Mac flash pro cs5.  I have reinstalled 3 times, same message each time

    Hey guys, can't find help anywhere so I am asking here.  I work for a small tv station who recently purchased Flash Professional to learn.  They want me to learn it and create some animation for bumpers yadda yadda.  Anyways here's the problem.  Ever

  • [OT??] Adobe Reader X and the Internet

    I could not find a way to get to simply a forum on Adobe Reader available for free. Here's my problem. To get out of a bind with Acrobat Reader Pro 8 on Win 7 that stopped me from using it for reading a pdf off of the internet, I switched to X.  My p