Convert amount to XUDCPFM format in RFC

Hi experts:
  We are using a RFC to get invoices and amounts from SAP to be displyed in a web (not webdynpro, just JAVA and HTML). 
  The problem is the numeric format. In SAP amounts are stored as xxxx.yy (using dot as decimal separator) but displayed in the format in table USR01 field XUDCPFM (in our case,  ' ' as we are in Spain, which means 1.234,56).
  We want the data to be displayed in the web in the same format as in SAP, and my questiobn is: does anybody know the function or method used in SAP to convert the amount to the format in XUDCPFM field?.
Thanks in advance for your help.
Regards,
Carlos.

Hi Rajan:
  Thanks for your answer.
  This works to change the format the amounts are displayed in SAP, but not the format returned by the RFC.
   What I would like to know is how SAP changes the amount format from 1234,56 (as stored in DB) to 1.234,56 (as displayed in SAP). 
Regards,
Carlos.

Similar Messages

  • Convert Amount to different format

    Hi,
    Please help me know a the FM to convert data in the following way
    i/p:  2510.15
    o/p:+00000000251015
    i/p: -12.45
    o/p:+00000000124500
    Thanks & Regards
    ChK

    Hi Harsha,
    CURRENCY_AMOUNT_SAP_TO_IDOC - Convert currency to IDOC format
    CONVERT_TO_LOCAL_CURRENCY  - Conversion of currency
    HRCM_AMOUNT_TO_STRING_CONVERT - Convert amount to string
    HRCM_STRING_TO_AMOUNT_CONVERT - Convert amount from string
    CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all
    character fields), not right justifed as numbers normally are.
    CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
    CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
    Another as per your Requirement...
    Language Dependent Formatting of Amount and Currency
    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.
    Example 1: 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
    Regards,
    Prabhudas

  • Convert amount from flat file format to user format

    hi,
    how to convert amount from flat file format to user specific format.
    input:  1000.00
    output: 1.000,00 (user specific)
    thanks in advance

    move that value to a type WRBTR variable
    and use write statement.
    data v_wrbtr type wrbtr.
    data v_char(20).
    v_wrbtr = 1000.
    write v_wrbtr to v_char.
    v_char will contain the amount in user format.
    Prerequsite, go to SU3 transaction.
    Defaults tab, chose the decimal notation .
    Regards,
    Ravi

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

  • 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 am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    i am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    When you make a DNG that's like making another raw file, so you will need to convert the DNG file just like your original raw. Don't use the Save button in the raw converter. That's just a link to the DNG converter. Normally you would click Open instead and then save in the editor as a jpg or other image format of your choice.

  • How to upload a PDF file and convert it to OTF format

    We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.
    Can anyone please help me with the Function Modules to do so.

    Hello,
    Try the following FM:
    CONVERT_OTF Convert SAP documents (SAPScript) to other types.
    Example:
    CALL FUNCTION "CONVERT_OTF"
    EXPORTING FORMAT = "PDF"
    IMPORTING BIN_FILESIZE = FILE_LEN
    TABLES OTF = OTFDATA
    LINES = PDFDATA
    EXCEPTIONS ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    Hope this helps.
    Reward if helpful.
    Regards,
    Vasanth

  • Convert Char to Date format - Evaluate

    Hi,
    Could anyone provide us the Evaluate formula to convert Char to Date format
    2009-06-20 should be converted to 06/20/2009
    Regards,
    Vinay

    Hi,
    Refer the below threads...
    Re: How to convert string to date format?
    how to convert character string into date format????
    Regards,
    Chithra Saravanan

  • After Effects CS4 and converting to a lossless format

    I posted in the Adobe Premiere forums about an issue I was having with my renders. If you want to read it then you can check it out with the url below.
    http://forums.adobe.com/message/2622969#2622969
    What I have figured out is that After Effects does not like my AVCHD files I get from my camera. (They are h.264 in an ,m2ts file type and not mp4)
    The issue is that I get "echos" or skips when I render something in After Effects or render with Media Encoder via dynamic link and Premiere Pro CS4.
    What I am not familar with is the types of files that many of you who are more expereinced than I am use for After Effects when you need to convert to a lossless format (or one as close as you can get to being "lossless."
    I was wondering if someone could recommend the kinds of files I should be converting to and if you have a good method of converting them. Not that I want people to discuss other software here, but if you do not use Adobe programs to convert, then what kinds of files do you convert to?
    In other words, where do you recommend I begin reading or researching this because a lot of companies sell conversion programs. I currently have one that I paid for but it does not do the job I need it to do for HD. I would like to keep it as close to HD quality as possible.
    FYI I generally will do video work with some effects and green screen work in After Effects. My output is video. If you have any other questions about my process, then please do not hesitate to ask me. Other than that, I appreicate anyone's guidance.

    Yeah, AE does not like video files with interframe compression. It processes video in a completely different way than a non-linear editing program like Premiere does. My friend Dave LaRonde from the friendly forums at CreativeCOW.net explains it this way:
    If the footage you imported into AE is any kind of the following -- footage in an HDV acquisition codec, MPEG1, MPEG2, mp4, m2t, H.261 or H.264 -- you need to convert it to a different codec.
    These kinds of footage use temporal, or interframe compression. They have keyframes at regular intervals, containing complete frame information. However, the frames in between do NOT have complete information. Interframe codecs toss out duplicated information.
    In order to maintain peak rendering efficiency, AE needs complete information for each and every frame. But because these kinds of footage contain only partial information, AE freaks out, resulting in a wide variety of problems.
    You have experienced this delightful problem for yourself.
    There are several different file formats that people use. Uncompressed AVI is one as is Quicktime with the animation codec. However, lately folks seem to prefer Quicktime with the PNG codec (not a PNG sequence). It produces a significantly smaller file size, but is still effectively lossless.
    You can use the Adobe Media Encoder to export it out of Premiere to use in AE.

  • Can't convert .DV to any format in Quicktime

    Hi!
    I've recently created a movie project in iMovie and exported it to Quicktime, for it to keep it's full resolution. The problem is... the file measures about 1.09 Gb, for a 5:49 movie. I want to convert it to .avi to reduce it's size, maintain quality and play on YouTube, etc,; I've tried different specs but it always freezes! I've tried also converting it to different formats like Divx or .mp4 but with no luck at all. Any tips on how to fix this?

    First don't export to AVI there are enough horrible AVI's out there from Windows users to last until the 22nd century.
    You don't need to export it at all just open the reference file in QT and export how you like. You have said nothinga about how it doesn't work, error messages or anything at all to help so try doing that.
    DV is 13GB an hour so the size is simply a normal DV size for the duration you have there, and not a problem, and you may be happier opening it in MPEG Streamclip (free), and export to MPEG-4 with one of the iTunes presets.

  • I've uploaded 4 pdf documents. Now how do I convert them to Excel format?

    I've uploaded 4 pdf docs. Now how do I convert them to Excel format so I can manipulate the data?
    linda93790

    Hi linda93790,
    If you uploaded your files to http://cloud.acrobat.com, simply click on one of the PDF files, then click 'ExportPDF' from along the top-bar in your browser.  This will automatically load that PDF into the ExportPDF system.  From there, you can configure any options you may need and convert the file to an .xlsx file.
    Please let us know if you have any questions!
    Thanks,
    David

  • Converting String To XML Format and send as attachment

    Hi
    My requirement is to convert String into XML Format and that XML File i have to send as an attachment
    can any one one give solution for this Problem.
    Thank you
    Venkatesh.K

    hi,
    i m filling the itab first and converting to xml
    itab contaning these data
    GS_PERSON-CUST_ID   = '3'.
    GS_PERSON-FIRSTNAME = 'Bill'.
    GS_PERSON-LASTNAME  = 'Gates'.
    APPEND GS_PERSON TO GT_PERSON.
    GS_PERSON-CUST_ID   = '4'.
    GS_PERSON-FIRSTNAME = 'Frodo'.
    GS_PERSON-LASTNAME  = 'Baggins'.
    APPEND GS_PERSON TO GT_PERSON.
    after conversion data is coming like that
    #<?xml version="1.0" encoding="utf-16"?>
    <CUSTOMERS>
      <item>
        <customer_id>0003</customer_id>
        <first_name>Bill</first_name>
        <last_name>Gates</last_name>
      </item>
      <item>
        <customer_id>0004</customer_id>
        <first_name>Frodo</first_name>
        <last_name>Baggins</last_name>
      </item>
    </CUSTOMERS>
    but errors are  1) # is coming at the first
                            2)for 'encoding="utf-16"?>', it is not coming perfectly, some other data (iso-8859-1) should come here
    can anybody plz solve it.
    regards,
    viki

  • Converting string to XML format

    Hi All,
    I have a requirement to convert string to xml format and download it. Atpresent, I have a string which is a collection of xml tags. I want to convert this string to xml format like <VALUE004>20387899.437</VALUE004>
    <VALUE005>20387899.437</VALUE005>
    <VALUE006>20387899.437</VALUE006>
    Is there any function module for this.

    Chk this thread.
    Re: Regd: File Conversion to XML format

  • Convert to a date format

    Hi,
    I have a table with a date field that comes as varchar2(20byte) with a content like this:
    20/Jan/2011
    and I need it to be converted toa real date format e.g. 20.01.2011.
    Please help,
    Thanks
    Walter

    Hi, Walter,
    user457173 wrote:
    Hi,
    I have a table with a date field that comes as varchar2(20byte) with a content like this:
    20/Jan/2011
    and I need it to be converted toa real date format e.g. 20.01.2011.'20/Jan/2011' is actually just as "real" as '20.01.2011'. Neither is a real DATE; both are strings.
    Please help,
    Thanks
    WalterUse TO_DATE to convert a string into a DATE:
    TO_DATE ( column_x
            , 'DD/Mon/YYYY'
            )Use TO_CHAR to display a DATE in a given format:
    TO_CHAR ( d
            , 'DD.MM.YYYY'
            )d can be any DATE, including the DATE returned by the TO_DATE function, above.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Edited by: Frank Kulash on Oct 25, 2011 7:57 AM

  • I need to know the best, safest way to convert video for Mac.  I just had home movies converted to a DVD format a realize now that I need another step to burn them to my computer.

    I just had home movies converted to a DVD format a realize now that I need another step to burn them to my computer.  This is for a Christmas present!  Help.

    I don't think you need to use a ripper program to read a home movie DVD. Those are primarily for copy-protected commercial DVDs, right?
    I think you just need to transcode the DVD files using a utility like Handbrake, which is free and fast.
    http://handbrake.fr/details.php

Maybe you are looking for

  • Docking container

    Hello, Could you please tell me what is wrong either in the code below or in my logic:   DATA: d_container TYPE REF TO cl_gui_docking_container,         e_control TYPE REF TO cl_gui_abapedit.   CALL SCREEN 200.   CREATE OBJECT d_container     EXPORTI

  • How do I get rid of all the music on my phone?

    I want to put music on my phone, but ITunes is saying I have music already on it. How do I get rid of the blue music bar so I can put music I want on it without going over the GB limit?

  • CV03N

    Dear Friends I'm able to upload the file using CV01N & I can change using CV02N & I can search using CV04N. But CV03N is not working fine with me. Let me give  you the details too: I run the transaction CV03N. In the next screen I enter the document

  • Remotely send message and shutdown depending on users response

    Hi all I have a script that works fine on a local machine. It asks users if they want to shut down the machine. However I can't seem to get it to work remotely. $a = new-object -comobject wscript.shell $start = Get-Date $end = $start.AddMinutes(5) do

  • Bugcheck was: 0x0000003b

    https://onedrive.live.com/redir?resid=C5F71D804BFC9F64%21126 that is my mini dump link,  I have updated the driver, made sure all the components were snug, and I am a computer noob so I am totally  Lost! I seem to get this error when im flipping thro