Hello All, an urgent issue:- Currency Format

Hello All,
I created one program which download & printed the report after selecting the correspondence Radio button.
While I am downloading the file on local system it will download as .txt file format & while I select the radio button “printed report” it will do it for correspondence invoice number.
My issue is.
In output I have few currency values in diff field. Now User want those value should come in this format (1.000.000,00) every time.
So is there any function module which can convert the currency value format which user want? Or do I have to do some coding, if yes then what it should be.
Because here user want whatever system format should be but value come in that format only in both condition either downloading the file or printed one.

Sonu,
Try with below example.
Currency Conversion:
Use the function module
CONVERT_TO_LOCAL_CURRENCY
Writing currency amount to string without thousands seperator
This is usefull e.g. i connection with batch input/call transaction.
GI_OUTPUT-WRBTR: Field type Currency with amount
L_AMOUNT_STRING: Field type c with amount
PERFORM AMOUNT_TO_STRING USING GI_OUTPUT-WRBTR
CHANGING L_AMOUNT_STRING.
FORM AMOUNT_TO_STRING USING P_AMOUNT
CHANGING P_AMOUNT_STRING.
DATA L_SEP(1) TYPE C.
PERFORM GET_THOUSAND_SEPERATOR USING L_SEP.
WRITE P_AMOUNT TO P_AMOUNT_STRING.
REPLACE L_SEP WITH ' ' INTO P_AMOUNT_STRING.
CONDENSE P_AMOUNT_STRING NO-GAPS.
WRITE P_AMOUNT_STRING TO P_AMOUNT_STRING RIGHT-JUSTIFIED.
ENDFORM.
FORM GET_THOUSAND_SEPERATOR USING P_SEP.
DATA: L_AMOUNT LIKE BSEG-DMBTR,
L_AMOUNT_STRING(15) TYPE C.
Find 1000 seperator. If decimal seperator = . then
1000 seperator = , else 1000 seperator = .
L_AMOUNT = '1.00'.
WRITE L_AMOUNT TO L_AMOUNT_STRING.
IF L_AMOUNT_STRING CS ','.
P_SEP = '.'.
ELSE.
P_SEP = ','.
ENDIF.
ENDFORM.
Convert amount to/from string
CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'
EXPORTING
betrg = 3000
WAERS = 'DKK'
NEW_DECIMAL_SEPARATOR =
NEW_THOUSANDS_SEPARATOR =
IMPORTING
STRING = slam
CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'
EXPORTING
string = slam2
DECIMAL_SEPARATOR = '.'
THOUSANDS_SEPARATOR =
WAERS = 'HUF'
IMPORTING
BETRG = b2
EXCEPTIONS
CONVERT_ERROR = 1
OTHERS = 2
Language depending formatting
To format a currency amount with decimals according to the currency use
WRITE and the CURRENCY option.
Currency keys an d numbers of decimals are defined in table TCURX Decimal
Places in Currencies.
E.G.
Formatting an amount in Kuwatian Dinars:
Dmbtr = 123456.
Write dmbtr currency 'KUD'
123.456
Write dmbtr currency 'USD'
1234.56
Note that the formatting does not depend on the number of decimals in the
number in the program.
Dmbtr = '12.3456'.
Write dmbtr currency 'USD'
1234.56
To format the decimal and thousand sepearators according to the settings for
a specific country,
use the statement SET COUNTRY <country key>
Settings for countries are defined in table T005 Countries.
The country key used in the statement is field LAND1
E.g.
set country 'US'
Don't forget to reward if useful....

Similar Messages

  • Urgent issue: photo invalid format after conversion

    Hi,
    I have this urgent issue...I purchased and Ipod in USA and with camera connector I downloaded all the pictures taken (1700...). Came back to home, I connected the Ipod to my Ibook and I saw a message "optimizing ipod for mac" ... after this, only 67 photo are working. The other are all "invalid format" .... I also looked at the binaries of the image...it seems the ones invalid missed the jpeg header or information. Does anyone know what happens in this "optimization" and if there is something to come back? THank you so much!

    Hello All,
    Could anyone assist me with a fix for the problem ?
    Would appreciate it greatly.
    Thanks.

  • How to put check box in a table format at the out put ?  Urgent issue...

    Hi,
    I am working an assignment to assign multiple roles for multiplr user.
    In selection screen we have to enter mutiple EMPNO from ..to
    1)  in second screen we will get the empno, First name, last name,  Position,
        From  date, To date, Sap user ID, Email id in the table formate with first
        column  with Check box.
    2) In second screen below the table I have to place the multiple roles just like in
       the step  loop format and below this one Execute button should be there.
    If we select the multiple employees or single employee and place the multiple roles or single roles and if I click the execute button then the multiple roles will be assigned to the multiple employees. The empno and roles will come from table and step loop to internal table and the same will pass to the BDC.
    For this requirement I prepered recording for Transaction PFCG. But I can't understand how to design the second screen that table format and the step loop format. Can anybody give any idea or any coding to design  the second screen.
    and how to meet the requirement. This is urgent issue. Good SDN points will be reworded.
    Witing for kind response.
    Thanks in advance.
    Bansidhar

    Hi upendra
    There are slight changes in the sivas code.Where is the data coming into the table.If its from a Model Node then iterate each element of the source node get that value compare and set the corresponding value in the element of the node binded to table.
    Create a boolean attribute "select" in the table node and bind it to checked property of the check box.
    for(int i=0;i<wdContext.node<tablenode>()..size();i++)
    if(wdContext.node<tablenode>().get<tablenode>ElementAt(i).select())
    wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(true);
    else
    wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(false);
    See the attribute is boolean so pass true or false as a values in setter methods.
    Regards
    Kalyan

  • Currency format combined with if else issue

    Hi all,
    Basically, I need to get the value from if else statement, then use currency format to format the currency according to their currency code.
    the following is my if else statement to show the A.PAY_PROMISE_AMT or A.PROMISE_AMT
    <?xdofx:if A.PAY_PROMISE_AMT <> 0 then
    A.PAY_PROMISE_AMT
    else
    A.PROMISE_AMT
    end if?>
    <?format-currency:value_*[this value I want to use is the value from the above if else statement];*currencycode; ‘false’?>
    could anyone help me to combine those two statement to get the result I want?
    Thanks in advance

    >
    I tried your solution, but I got some error.
    >
    some?
    try change
    <>to
    !=in my sample
    what if you try IF without xdofx?
    what will be result?
    say
    <?if:A.PAY_PROMISE_AMT!=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PAY_PROMISE_AMT)?> <?end if?>
    <?if:A.PAY_PROMISE_AMT=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PROMISE_AMT)?> <?end if?>
    <?format-currency: xdoxslt:get_variable($_XDOCTX, 'LVar');CURRENCY;'true'?>plz see
    Working with xdofx:if and xdoxslt variable error

  • Hello All. I am working on a form, but I need to format the leading in a multi-line text-field.

    Hello All. I am working on a form, but I need to format the leading in a multi-line text-field. The options for the text-field only show a font size option, but no other styling options. Is there a way to format the leading? Thanks!

    Not within ID, and I'm not sure it can be done in Acrobat afterward either.

  • Hello all i am having an issue on whatsapp 2.11.14 on my iphone 5 .whenever i want to change my dp it comes in circle not in square please help

    hello all i am having an issue on whatsapp 2.11.14 on my iphone 5 .whenever i want to change my dp it comes in circle not in square please help

    Hello,
    No, it is not normal. Follow this article:
    http://support.apple.com/kb/ht1414
    If this doesnt solve the issue your iPhone will need service.
    Burcu

  • Hello all, have spent many months trying to resolve issues on my new imac 27in with no joy.Does anyone know who to complain to? thanks

    Hello all,
    Your help required please.
    Purchased a new 27 inch IMAC some months ago with nothing but problems [never run right] that technical support senior tec's cant resolve.Does anyone know where a complaint can be directed so as to get my issues resolved. Thanks , John 

    Are you in North America? If so, contact info is on this page -
    http://www.apple.com/contact/
    If you are not in North America, select your country on this page -
    http://www.apple.com/choose-your-country/
    and then go to the bottom of the resulting page and click the "Contact Us" link in the lower right corner.
    In general -
    - if you've not yet talked to Apple's Tech Support, do so. If you purchased AppleCare with the machine, be sure to mention that.
    - if you've been talking to Apple's Tech Support and not got resolution, give them one more try but ask to speak to a Level 2 person or a supervisor. If you got a job/ticket number at some point, refer to that on your call. If you got a case number while the machine was still under warranty, the case is still open - and, as I recall, repair should still be made under warranty.
    - if you've already done that, talk to Customer Service, explain the situation, firmly ask for resolution: repair or replacement.
    If there's an Apple Store near you, you can call them to set up an appointment to take your machine in. Again, if you have AppleCare be sure to mention that.
    You probably already know this, but...
    Being firm but polite works a lot better than being demanding and rude.
    You may feel like screaming at them out of frustration; please don't do it. Remember - they, the folk you talk to, didn't do whatever went wrong with the machine. Do what you need to do in order to get them to do what you want them to do.

  • HELLO ALL, I HAVE A POP UP ON ILLUSTRATOR SAYING MISSING PLUG IN SAYING MISSING PDF FILE FORMAT AND THIS IS STOPPING ME OPENING ILLUSTRATOR PLEASE HELP

    Hello all
    Trying to work on illustrator but pop up states i have a plug in missing called pdf file format cannot seem to sort problem, please help, working on mac

    Reinstall the program. This is caused by incompatible updates to Acrobat/ Adobe Reader that introduce new versions of the globally shared PDF libraries.
    Mylenium

  • Information required for all currency formats settings.

    I need information in Web Dynpro Java for currency format.
    currently I have following fields in application:-
    1.Wrbtr Amount in document currency
    2.Waers Currency Key
    In local dictionary I could see Amount type as simple type in external representation I could see #,###.00## format.
    This format has a problem with Yen currency that if ECC shows 1000.00 then Portal shows only 100.00.
    Please let me know how dictionary works about pair of keys an values of above fields.
    Please let me know solution of this problem.
    Higher points will be rewarded for immediate solution and appericated also.

    Hallo Laxmikant,
    to correctly format BigDecimal price values depending on a given currency YOU MUST apply structure binding:
    - define a dictionary structure with a currency field AND an amount field and relate the amount field to the currency field.
    - bind a context node to this structure so that the context attributes are created from the sturcture fields.
    In this way the Java Dictionary Runtime will correctly format the decimal places for the amount depending on the given currency key (see ISO 4217). For the Jordanian Dollar JOD three decimal places are rendered, for the Japan Yen (JPY) zero.
    Look at this [Table Tutorial|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%207.0/web%20dynpro%20sample%20applications%20and%20tutorials.htm#46] which applies the sctructure binding and currency-formatting technique.
    With your formatting pattern approach on simple type level you cannot adapt the formatting pattern for different currencies.
    In NW CE 7.1 you can use the new CCTS-datatype Amount.
    Regards, Bertram

  • Currency format and Right Align not working for messagetext in HGrid

    Hi
    We are dynamically enabling MessageTextinput inside HGrid region, it is Number type and when we set readonly to True it become left align, and currency format also not working, I tried the below various options but nothing is working.
    Option : 1
    OAMessageTextInputBean attribute = (OAMessageTextInputBean)webBean.findChildRecursive("Attribute"+i);
    attribute.setCurrencyCode("USD");
    Option :2
    OAWebBean amountDueBean2 = webBean.findChildRecursive("Attribute"+i);
    oracle.cabo.ui.validate.Formatter formatter2 = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    amountDueBean2.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter2);
    etc options we tried
    amountDueBean2.setAttributeValue(CURRENCY_CODE,formatter2);
    amountDueBean2.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE,"USD" );
    Please help on this issue.
    We are using Jdeveloper 10.1.3.3.0.3
    TiA
    Babu

    Anatoli,
    Hello!
    I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
    I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
    I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
    Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
    Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
    Thanks,
    Janel

  • BInput Data mismatch with currency format

    i am working with fs10 transaction
    I want to sum up the balance amount with respect to all
    companycode and post SUM to the bseg table using Batch input.
    i defined sum variable as below and coded.
    data : sum like glt0-hsl01.  (currency format)
    After all SUM operation.
    I have done like this to diplay SUM in report first(to check SUM output)
    SUM = SUM * 100.
    write : sum decimals 0.
    >>>>Now in report output i get value '17,222-'
    if u see in  fs10 screen we are getting same value.
    but when i try to post in Batch input.
    i have done like this below.(before posting i have checked
    for negative value )
    if sum < 0.
    sum = sum *100.
    compute sum = abs( sum )
    now...
    perform open_group................
    perform bdc_field using 'bseg-wrbtr'  (currency format)
                                    sum.
    when i execute this BI i get error in Amount(Sum)value
    display screen. (saying something differs in length )
    how to match the field.
    ambichan.

    Hello,
    Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
    Hope this helps you.
    Regds, Murugesh AS

  • Currency format in ExcelSheet

    Hi All..
    i am genrating my reports in Excel using :
    response.setContentType("application/vnd.ms-excel");
    and my report is also consisting of amount cloumn...
    And now the problem is,i want to get the amounts in the currency format...
    Eg :- if it is 10000 then 10,000.00
    100 then 100.00
    345.20 then 345.20..like this it shoule appear in the excel report..
    Please help me very urgent...
    And i am also trying with POI..

    Hi,
    yes, I`ve had the same behavior. As a workaround, you have to change the format of the cells.
    Go into the properties of the cells:
    -> Right mouse click
    -> format cells
    -> category
    -> number
    -> change something, e.g. the number of decimal places to show
    Then you will have to map the component again to the same cells under "Display Data".
    And now, the currency information will be shown correctly.
    Regards
    Victor

  • Problem with currency format setting

    hello experts,
    i have one currency filed FDES-WRSHB = 25706515.32.
    i want this field to be converted into currency format which user have selected.
    for ex if user setting for currency in SU01 is 1,23,456.89 then this currency should be converted to 25,706,515.32.
    or if default setting is 1.23.456,78 then it should be converted to 25.706.515,32.
    please tell me how to achieve this... any FM available?
    or tell me how to read these user default setting so i can explicitly convert currency format.
    -Shweta
    Edited by: shweta chavan on Feb 6, 2009 7:19 AM

    Hi Shweta,
    I had the same issue,we dont need to do anything,the display will come automatically in the User format(specified in SU01/SU3).We dont need to use any FM or any coding.
    If u chanegd any settings in SU01/SU3 u need to re-login to see the changes,for example the setting were like 1.23.456,78 and u changed to 1,23,456.89 then it will not reflected immediately.U need to log-off and log-in again to see the changes.
    Hope this helps.
    Thanks & Regards,
    Rock.

  • URGENT ISSUE: Line In Lag

    URGENT ISSUE: Line In Lag? Hello everyone, for Christmas I got a brand new computer with Windows 7 and a Soundblaster X-Fi card. I got this new computer to record music.
    I was horrified to find out that when I record guitar, vocals, or anything else through the Line in there is a MASSIVE lag that makes it IMPOSSIBLE to record! I have been looking for a fix for this for two months now. Some people with Realtek sound cards are saying there is a way to eliminate the lag with the Realtek control center program, others claim ASIO4ALL can eliminate the lag but I've had no?luck with that. I've tried tons of things to only find that the lag still persists
    I AM NOT THE ONLY ONE WITH THIS PROBLEM! THERE ARE HUNDREDS OF MUSICIANS EXPERIENCING THIS! I am very desperate, recording music is what I li've for, and with Windows 7 I can't do that. I am begging Creative or someone to help me. Release a patch, anything..... Musicians worldwide are in an uproar, just do a google search on this topic to see how many people are experiencing this!
    PLEASE HELP!!
    Sorry for the caps, thanks for your time

    ?Hi -XM-,
    Please don't?assume all kinds of lag issue to be the one and same problem. It's like saying every flu-like?symptom?is caused by the same?strain of virus. Which X-Fi card do you have exactly, the X-Fi Xtreme series or the?Titanium series?Are you doing a single track or multi-track recording? How massi've is the lag?
    If your Soundblaster X-Fi card came preinstalled or distributed?along with your new computer, please contact the respecti've computer vendor for assistance. Sound cards distributed in this manner are usually OEM models specially customized by the vendor, therefore any support?requests?should be directed to them.
    However if?the sound card was purchased separately in a Creative?retail box, please contact our Customer Support using this email form.

  • URGENT ISSUE!!Hope you can solve it?

    Hello,
    My question is about uploading.I have uploaded the file into the application server as xstring but afterwards iam sticked there.
    I have both    fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
                            request = request
                            id      = appended
                            name    = 'fileUpload' ).
      file_name      = fileUpload->file_name.
      file_mime_type = fileUpload->file_content_type.
      file_length    = fileUpload->file_length.
      file_content   = fileUpload->file_content.
    How should I change the xstring to its original file in the application server side.Then in order to transfer that file to a file server how should I proceed?
    I checked almost all posts about that but couldnt find any answer.Or is there a way directly transferring the xstring content to a file server in its original file content.
    or after saving it to application server should I do some settings for FTP transfer?
    Please help because its a really urgent issue.
    I will be appreciated if you can help me and I will award your helps.
    Thanks alot
    Cheers

    Which OS file are you trying to restore to your touch?
    They are deep in your folder system on the computer where you did your first update.
    I don't remember the exact name but here is part of it ???2.2.1Backup.ipsw.
    I seen the details in another thread as to the correct file name to restore.
    If you are not correctly in DFU mode iTunes will tell you that you are in *recovery mode* when it recognizes your pod

Maybe you are looking for

  • Displaying Error message in a pop-up window

    Hi, I need to validate the entry in a field on the selection screen and display the error message if the entry does not exists in the corresponding table.  <b>But the error message should be displayed in a pop-up such  that on continuing , the select

  • Email programming

    Hi folks, I have a requirement like i have to send report output as an attachment to email. I am new to this requirement. Can any body guide how to proceed... Plz do explain me the procedure clearly.. Thanks in advance. Regards, Raja.

  • Generating for Multiple forms

    Hi all, How can i generate Object list report for multiple no of forms. for individual forms i can go to file-> Administration->Object list report in any FMB. since i have to generate the same thing for multiple fmb's...how is it possible..do we need

  • Link is not visible in Z widget

    Hi , I have created z componenet with , empty view. added this in my standard wcc_ssv_home, i can see my widget in UI. But now i m trying add new z logical link for this. but it is not visible in this new widget box. Please suggest. thanks ram

  • Exporting/Importing Playlist

    Good day/evening...I have my library on an External drive (500G)...I've already organized them into several playlist...Now, I want to back-up (on my internal drive) only those songs which is on my playlist....can it be done?...thanks.