Need to group digits in Indian Format

Post Author: bhagwad
CA Forum: Formula
Good afternoon to all who read this thread. I am using CR v10  I need to find a way to format a number such that it groups not in thousands, as it happens in Europe and the US, but first by three digits, and then by two digits, as we do in India. Eg: A number like 3200000 should be formatted to become: 32,00,000 (Instead of 320,000). The first three digits need to be grouped into a bunch of three, and consequently need to be grouped in pairs. It would read 3 Lakh, instead of Three hundred and Twenty thousand. I don't need to convert the number into words though. The options that are available in the custom formatting, allow grouping only in bunches of three. Turning off grouping removes the commas completely, which is not what is needed. I would appreciate any help in this matter, as I believe I have explored the options rather thoroughly before posting.Thank you in advance for your reply.

Post Author: GailPray
CA Forum: Formula
3,200,000  à  32,00,000  (Lakh)
I think youu2019ll probably have to create a formula field because I donu2019t think Crystal has any built in formatting for the way you want to display your number.  The formula should break the number into sections and then rebuild it into the format you need.
If your field is a string field try:
left(,2)
& u201C,u201D &
mid(,3,2)
& u201C,u201D &
right((,3)
If it is stored as a number convert it to text removing any decimal places:
totext(,0) 
then use this formula in place of the original database field:
left({@Formula},2)
& u201C,u201D &
mid({@Formula},3,2)
& u201C,u201D &
right({@Formula},3)
But if the length of the number changes (I would assume that if you sometimes have a number like this 32000 you would format 32,000?)  Then you wouldnu2019t be able to use my formula above.  I think you could create variables to determine the length of the number in order to determine where the commas need to be inserted.  Thatu2019s a bit more complicated.  =)

Similar Messages

  • Need logic for this output  itab  format

    hi guys
    i need the output itab in following format
    i have data in my present  itab
    itab-f1     itab-f2    itab-f3
    AAA         10    (means null,' ')
    AAA         20            
    BBB         10          
    BBB         20    A1
    BBB         30         
    and i want output in following way output itab
    itab-f1     itab-f2    itab-f3
    AAA     30          
    BBB         60      A1
    can anyone suggest me code for this

    You want the sum of f2 for a group of f1's?
    Is f3 going to be the same for that group?
    Try this
    sum = 0
    sort itab by f1.
    itab2 like itab.
    loop itab.
    sum = itab-f2 + sum.
    f3var = tab-f3.
    at end of f1.
    move itab-f1 to itab2-f1.
    move sum to itab2-f2.
    move f3var to itab2-f3.
    append itab2.
    sum = 0.
    endat.
    endloop.
    Edited by: Ramiro Escamilla on Feb 7, 2008 11:29 PM

  • How to convert standard (Western) numerical format to Indian format?

    I have been doing a lot of research and while I've repeatedly found the function module to convert numerical amounts in to words (HR_IN_CHG_INR_WRDS) I haven't found a way to convert a standard numerical format, 121,212,123 in to the Indian format of 12,12,12,123 or 505,000 to 5,05,000 for example.
    I repeatedly saw in other threads people were suggesting to change the decimal format of the currency in OY01 however the Indian format option is not listed.  We only have the following options:
    X 1,234,567.89
    Y 1 234 567,89
        1.234.567,89
    Whereas I would need 12,34,567.89.
    Is there a Function Module we can use? Is there some CIN add-on we need to import to make the additonal decimal format available?
    Thanks in advance

    Check [this link>>>|http://www.xe.com/ucc/convert.cgi?Amount=10000000&From=USD&To=INR&image.x=62&image.y=20&image=Submit]
    else.. You might have to write a conversion routine...
    DATA: curr TYPE netwr,
          c(20) TYPE c.
    curr = '1234567890'.
    WRITE:/ 'before:', curr.
    WRITE curr TO c USING EDIT MASK '__,__,___.__'.
    WRITE:/ 'after:', c.

  • How to display currency values in indian format

    hi all,
       When I am displaying Currency values as output , those are displaying in U.S. format (ie.1,234,000.00) , But I need to display those in Indian Rupee format (i.e 12,34,000.00).
    Plz any one can help me that how to display this
    thank you,
    regards
    Hanuma

    Hi Hanuma kumar, please try this code.
    REPORT ZAMOUNT_CONVERSION.
    DATA : RESULT1(20).
    PARAMETERS : NUM TYPE P DECIMALS 2.
    DATA : num2 type STRING.
    DATA :  col_amt(20) type n,"15
             col_b type i,
             num_1(20) type C,"15
             Length type i.
    num_1 = num.
    write : 'default format      :',num.
    uline.
    skip.
    IF ( num >= 999999999 ).
           write num_1 using edit mask 'RR__,__,__,__,______' to col_amt.
           CONDENSE col_amt.
           length = STRLEN( col_amt ).
           if length = 16.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
           write :/'amount indian format:',col_amt.
           endif.
    ELSEIF NUM < 999999999 AND NUM >= 9999999.
           write num_1 using edit mask 'RR__,__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           if length = 13.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
             write :/'amount indian format:',col_amt.
          endif.
    ELSEIF NUM < 9999999  AND NUM >= 99999.
           write num_1 using edit mask 'RR__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           write :/'amount indian format:',col_amt.
    ELSEIF NUM < 99999.
       data : dumy(10) type c.
       dumy = num .
       CONDENSE dumy.
       length = STRLEN( dumy ).
         if length <= 6.
           write :/'amount indian format:',num.
           else.
           write num_1 using edit mask 'RR__,______' to col_amt.
           write :/'amount indian format:',col_amt.
          endif.
       ENDIF.
       uline.

  • Amounts In Indian Formats

    Hi Gurus,
    I have Designed Some PLD's  and my clients wish to print the amount in words in indian format,
    Like if it is 125000 means it needs  to be printed like  One Lakh Twenty Five Thousands Rupees   but instead of that it is printing like one hundred and twenty five thousands.
    I need wo print in  Indian format.
    So Pls guide me in finding a  proper solution for this issue.
    Thanx in Advance.
    Regards,
    Vamsi

    Hi Parimis,
    If you need to Print a INDIAN STYLE Amount in Words.
    Try this,
    ->> Create 1 UDF in Header on Require Documents (ex. Marketing Documents).
    ->> Create 3 Function in MS SQL Server Management.
    ->> Create 1 FMS in Query Generator and save as Query Manager then Assign to UDF for Amount in Words.
    for example:
    Create UDF in Header on Marketing Documents.
    ->> Choose Tools on Top menu.
    ->> User - Defined Fields. -> User Manage Fields.
    ->> Open the User Manage Fields Window.
    ->> Marketing Documents. -> Title.
    ->> Select Title and Click Add button in Bottom on User Manage Fields Window.
    ->> Create Amount in Words UDF(Code, Description and Type - Character) and Add the UDF.
    Create Function in MS SQL Server Management.
    Check this Link, (have 3 Functions in Link).
    http://techcreeze.blogspot.com/2008/11/convert-amount-into-words-according-to_15.html
    1st Function - to Convert one Digit Number to words
    2nd Function - to convert 2 digit number to words.
    3rd Function - to convert amt in numbers to words.
    ->> Open the MS SQL Server Management Window.
    ->> Choose your Company database and Create NEW Query.
    ->> Create 3 Function Queries one by one.
    ->> Create 3 NEW Query Tab and 1st one put the 1st Function then Run the Function. and
    2nd New Query tab put the 2nd Function then Run the Function.
    3rd New Query tab put the 3rd Function then Run the Function.
    Create FMS in Query Generator and Save as Query Manager.
    ->> Administration.
    ->> Reports. -> Query Generator.
    ->> Open the Query Generator and put the below FMS query.
    for example : Purchase Order Doc. Total (IN WORDS).
    DECLARE @Doc_total numeric (19,6)
    SET @Doc_total=$[OPOR.DocTotal]
    SELECT  dbo.fNumToWords(@Doc_total)
    OR
    Try this Simple FMS
    SELECT dbo.fNumToWords($[OPOR.DocTotal])
    ->> Assign the FMS in UDF on Purchase Order.
    ->> Auto Refresh of Document Total.
    Ex.
    1. Goto the UDF and Clcik ShiftAltF2.
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query.
    4. Select the AUTO REFRESH WHEN FIELD CHANGES.
    5. Select Document Total.
    6. Check the Display Saved Values.
    CLOSE THE THREAD, IF ISSUE SOLVED
    Regards,
    Madhan.

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • How To See Numbers In Arabic Instead Of Indian Format

    I want to see numbers in Arabic format not in Indian format when i log on the Arabic Interface .
    I have EBS (12.0.6) installed on Linux centos , I have implement the below Oracle Metalink Note to solve this issue
    How To See Numbers In Arabic Instead Of Indian Format [ID 785243.1]
    I installed all the patched mentioned in the note (Apply forms version 10.1.2.2.0 with the forms patch 7488328 , Apply patch 7207440:R12.TXK.A , Apply patch 7601624 - NEW PROFILE OPTION: FORMS DIGIT SUBSTITUTION)
    These patches add the Profile option (FORMS DIGIT SUBSTITUTION) , but when i try to used it has no effect at all .
    So kindly if you have any idea about this issue please help me.
    Regards
    Fadi Lafi

    Hi,
    These patches add the Profile option (FORMS DIGIT SUBSTITUTION) , but when i try to used it has no effect at all .At what level you have set this profile option?
    So kindly if you have any idea about this issue please help me.Have you bounced the application services after setting this profile option? If not, please do so, login again and see if it works.
    Thanks,
    Hussein

  • How can i display digits in Chinese Format

    Hi,
    How can i display the digits in Chinese Format?
    Suppose i have a number 15 as a value.
    Now in Locale Chinese(Taiwan) it should display the digit as a combination of Chinese character for 10 + 5.
    So could anyone please tell me what should i do for it?
    Thanks,
    Pinakin Ariwala

    I think my question is not much clear so let me give you some more detail
    There is a special characters available for a digits like 10,20 ,30 ,100 etc so when we want to represent the number 15 it should be displayed as a combination of chinese character for 10 and chinese character for 5.
    similarly if we want to display 115 then it should 100+10+5 ..
    so please anyone suggest me the way ito go?
    Pinakin Ariwala

  • Anyone know which render format I should use, my film will be used on a video wall (12 screens) and I need super quality. My footage format is 1080p HD resolution 1920x1080. I will be running the project from a mac with a direct line to video wall. Thanks

    Anyone know which render format I should use, my film will be used on a video wall (12 screens) and I need super quality. My footage format is 1080p HD resolution 1920x1080. I will be running the project from a mac with a direct line to video wall. Thanks in advance.

    I do some VJ-type work, involving playback of QuickTime files from the computer to projections, and I get good results using ProRes 422. That's convenient, because ProRes 422 is such a great editing codec, too.
    Traditionally, VJs use PhotoJPEG codec, which also works well, but it's a bad editing codec. So you would have to export an edited master, then convert.
    If you want it to look as good as possible, definitely schedule some time to test the footage on the wall. You may want to change the color correction of your footage to match the projectors. And if you feed the video wall some flat gray, you can see if any of the projectors need to be  adjusted.
    I'm not sure what application you're using for playback, but QuickTime Player 7 works well. It has an option to play fullscreen on an external monitor (View > Present Movie…).

  • I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?

    Ok, I don't know why I am here, but!
    I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?
    The question may have been answered somewhere but I was sent here -- so her I am.
    Still I think I need my slideshow in .MP4 format to play on windows/smartTVs and the .m4v file that export offers seems to be the only option and it fails.
    I am using iPhoto v9.5.1 on a Macbook Air.
    help.

    Try changing the extension to .m4v and see if that will do the trick.  It did for me on another occasion where it wouldn't play as .MP4.  If it works it's a simple solution.
    I compared an .m4v and an .MP4 file in Qujicktime Player via the Winde ➙ Show Movie Inspector menu and both were  the same codec:
    H.264, 1280 × 720, Millions
    AAC, Stereo (L R), 44.100 kHz
    Check to see what codec the Movie Inspector window shows.
    OT

  • Need help on content server conversioning formats

    Hi,
    I need a help on content server. My requirement is to convert PDF to HTML how can i achieve that wether by using IBR or by Dynamic converter and explain how to do this ?
    Srinath am fallowing you in the forum hope you can help in this...
    Thanks,
    DSV

    Hi
    Dynamic converter is the component that will be used to do the conversion from any format to HTML . So you will have to install the following to get this working :
    1. UCM Core Update patchset 6907073 which is build 74 (latest to be released)
    2. Dynamic Converter version 8.2.0.862 - This will be available in the above patchset .
    3. ContentAccess specific to your OS . This is from patchset 6899823 .
    After installing the above 3 component , restarting UCM should get the DC up and working . Then you would need to set pdf as a format to be converted to HTML (from configuration for DC admin) and it should start working fine .
    Hope it helps .
    Thanks
    Srinath

  • Needs to be displayed in US format, instead of EU

    The tolerance limits characteristic, 0TOLERANCE, needs to be displayed in US format, instead of EU.  ie.  5.000,00  needs to be changed to 5,000.00

    These are user display settings and can vary from user to user , thats why its maintained in the user master. I guess this is the only place where you need to maintain it , probably someone else can share if there is something more specific.

  • Amount in words in F110 (sapscript -indian format)

    Hi Experts.
    I have changed the F110_PRENUM_CHCK to Z110_PRENUM_CHCK .
    I want the amount to be in word in indian format.
    say Ten Lakh ninty thousand and fifty
    But i am getting the output in "One millon .. " format
    Pls give me the coding and also suggest me how to incorporate in sapscript .
    Window CHECKSPL
    545
    Amount in words -
    &'*** 'SPELL-WORD& &' and 'SPELL-DECWORD&***
    Example for amount and decimal places in words
    &'*** 'SPELL-WORD& &REGUD-WAERS&&' and 'SPELL-DECWORD' Cents'& ***
    Example for numbers in words
    &SPELL-DIG06(6)&&SPELL-DIG05(6)&&SPELL-DIG04(6)&&SPELL-DIG03(6)&&SPELL-DIG02(6)&&SPELL-DIG01(7)&
    Pls revert back its urgent
    Thanks
    Pravesh Deshbhratar

    same code i used in smartform:
    DATA : l_spell_a TYPE pc207-betrg,
    l_local   TYPE string,
    w_len     TYPE i.
    * Internal Table Declaration
    DATA : BEGIN OF t_char OCCURS 0,
    char(80) TYPE c,
    END OF t_char.
    l_spell_a = l_amtsum.
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
    EXPORTING
    amt_in_num         = l_spell_a
    IMPORTING
    amt_in_words       = l_spell
    EXCEPTIONS
    data_type_mismatch = 1
    OTHERS             = 2.
    IF sy-subrc = 0.

  • I need to crop image in TIFF format. what product i need to buy

    i need to crop image in TIFF format. what product i need to buy

    Photoshop should be able to handle cropping your TIFF file, possibly Photoshop Elements as well which would cost less.  You should get the trial version to make sure rather than buying before trying.
    You might also want to check if you already have something on your machine that can do it.  On a PC you should be able to right click the image and choose "Open With" whereby a menu of programs should appear with programs that can open the file.  You can check to see if any of those listed provide the cropping tool.
    If you have further questions you should try posting in the Photoshop forum instead of here (http://forums.adobe.com/community/photoshop?view=discussions).  This forum is primarly for questions about downloading and installing Adobe applications.

  • Hello, I need to authorize digital adobe (ID) so I can download a book but I get the following message "the account provider you entered is not associated with the item you are trying to open. Try again." what should I do? Thank

    Hello, I need to authorize digital adobe (ID) so I can download a book but I get the following message "the account provider you entered is not associated with the item you are trying to open. Try again." what should I do?
    Thank

    This is the Adobe Reader forum; please ask in the Digital Editions forum.

Maybe you are looking for

  • Access file reside in the solution/package files on azure

    Hi All, I have one file in my solution and it will be uploaded along with package file. now one of the task is to validate file uploaded by end-user with file reside in solution. i am keeping uploaded file into the block blob. how i can access file r

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi, What is a cube? how we store data in that? how we fetch data from cube? Regards. venkat

  • Siebel app -oracle tuning options

    Hi, I was reading a document which was prepared by another siebel team which has spent some time in fine tuning the application. Here is the list of options suggested: Option # 1 Table Stats : 5% stats gathering with 'SKEWED ONLY' Columns Index Stats

  • Can I Get Help With This Perfect Photos Workflow?

    I've switched over to Photos. Set up iCloud photo library and seem to be forever uploading... After just over a week I'm still at 12k+ photos remaining to upload of around 18k total. At this rate I have over a month to wait for everything to complete

  • Tried downloading iOS 6.0.1

    Tried downloading iOS 6.0.1, when the iPod Touch Gen 4 froze; Tried restoring it through iTunes; Then tried turning it off, wouldn't show the red slide bar; Then tried pressing the on/off button and the home button, this gave the Apple icon for a sho