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

Similar Messages

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

  • Whats the point of converting to a different format.

    I recently learned I can convert all my music to any format and bit rate I want with iTunes. I converted 1 song 3 times into the same format (MP3) but a different bit rate each (128, 224, 320). When I converted each one I kept all the other settings the same, only changing bit rate. I listen to each format of the song with iTunes, and they all sounded like they had the same quality. So I hooked up my head phones (since they pick up everything), and they still all sounded the same. Then I thought, maybe iTunes plays all of its music in the format that I have the converter set to. Last, I put all three of my songs on a MP3 player. When listening to each one of them through the MP3 player, they all still sound the same. What is the point of having the option to change the bit rate, if they seem to have the same quality, except for making the file take up more hard drive space.

    Thank you guys, I was wondering why what I thought, seemed to not line up with what was going on. Just so I know I understand, wheather I import a song off a cd, or buy a song digitally. What quality they are in, can not be changed, you can only change the size of it? Say I download a song that is 320kbps and convert it to 128kbps. Of course, the size drops significantly,. but there really is no difference in the listening quality?
    I have many songs that are 128 kbps and above, and they all sound good enough for me. I also have a song that is (i think) 86kbps, and not so much the quality as it is the loudness, is low. I have to turn everything up as high as I can to make it sound good. If the bitrate really only messes with the size, why is it that the 86 kbps song I have is so low with sound?
    The way it sounds, is that I should always, always get the highest quality song that I can. Then, use the converter to take the song with good quality, and make it have a lower bit rate simply for space?
    Through all the songs I've ever had, the bitrate (for me) was a good way of telling the quality of the song(I thought was the same thing). It seemed like when i get music, for the most part, the higher the bitrate was the better the quality was. Kind of like that 86kbps song, low bitrate is equaling low sound. Listening to a song can give you a good idea what the quality of the song is, compaired to another. But say i go to get the best quality of my music. and then convert them to smaller files. Is there a solid way to tell a song is good quality and not just converted to a higher bitrate except for listening to them?
    Sorry for all the questions, I'm a noob when it comes to the quality of music. Thank you for all your replies.

  • My experiences of importing different formats into IMovie...!!

    I’ve been through a lot of pain with IMovie for the last 6 months, and cracked it a couple of days ago. I therefore feel the need to write about my experiences.
    I have lots of old footage on:-
    1. DV tape
    2. HI8 tapes
    3. Sony mini-DVDs
    4. DVDs
    5. Sony standard def hard disk camcorder files.
    1. DV tape
    This was a joy to import. OK, so I had to invest a small amount of cash to buy a new cheapie DV camcorder (as my old one broke years ago), but the import itself was easy. Just connect the camcorder, the import window appears, and away to go. Events are imported with the correct date and time, and it even creates a new event for different days imported.
    2. HI8 tapes
    As I’ve only got a few of these, I decided to ‘cheat’, so I’ve recorded them onto DVDs using my domestic DVD recorder sitting under my TV. So the problem is shifted from HI8 tapes onto DVDs.
    3. Sony mini-DVDs
    I’ve been trying to crack this issue for months. Clips are imported in random order, even though they are shown in the correct order in the preview. Hopefully it will get sorted. See the following thread:-
    http://discussions.apple.com/thread.jspa?messageID=9404421&tstart=0
    4. DVDs
    Haven’t tried this yet, until the mini-DVD issue is sorted. I might go down the road of converting the VIDEO_TS folders into DV files using MPEG Streamclip from squared5.com but I’d rather wait and import them ‘properly’ as the software intended.
    5. Sony standard def hard disk camcorder files.
    Now this is the biggie…..
    I had about 1,000 MPEG2 files on my hard disk, that I’ve moved from my camcorder over the years. To my annoyance, when I switched from a PC to the Mac, I needed to buy the MPEG add-on to Quicktime. OK, so no big deal, but even then, all I could get was the video with no sound. After weeks of digging about, I found out that the reason there was no sound is because apparently Quicktime can’t handle MPEG files with AC3 dolby digital sound. As all of my files are recorded in this format, this was a major hurdle.
    I then dug around and discovered that on the Sony CD that comes with the camcorder, there is a utility to down mix the AC3 audio to stereo. But it can only do one file at a time – no good for 1,000 files.
    Even so, I tried a few files, and yes – they now played under Quicktime WITH audio.
    But when doing an import into IMovie 09, the files are greyed out and cannot be selected. So back to the drawing board...
    I then looked into various bits of software, finally deciding to get MPEG Streamclip, in order to convert the files in something more Apple friendly.
    I did lots of experiments over many weeks in converting files to different formats for import into IMovie, and even though some of them looked excellent, when exporting to different sized export files (e.g. IPod, AppleTV), some of them had artifacts and shimmering all over the place.
    Reluctantly I took the helpful advice of someone to convert them into DV files. I say ‘reluctantly’ because the files are HUGE. So much so, I then shelled out (even) more cash on a Drobo to store all the converted DV files.
    Next problem...
    Because MPEG Streamclip converts the files into DV files, the original date and time information is lost. This is a real pain and means IMovie thinks all the files are 2009.
    I then purchased the excellent ‘A better finder renamer’ and ‘A better finder attributes’, to see if I could rename the files. Unfortunately there is no easy way to say ‘change the date/time on the new DV file to be the same as the old MPEG file’ a thousand times over.
    I then approached a company about writing a bespoke automator script to do this for me. But it was going to be expensive.
    I then set about manually changing some of the dates of the files.
    Even then, IMovie was getting confused during the import, and putting some of the scenes in the wrong order. Looks like because MPEG Streamclip is so quick at doing the conversion to DV, that some of the files have the same time stamp, so IMovie gets confused.
    I then looked into software to slow my Mac down, so that MPEG Streamclip would run slower (I wanted to guarantee that each file out of the thousand that it created was created in a different MINUTE to the last file). This was proving fruitless however.
    I then had useful discussions with Appleman1958 - see thread -
    http://discussions.apple.com/thread.jspa?threadID=1979095&tstart=0
    who suggested that I could rename the files with the IMovie notation, i.e.
    clip-yyyy-mm-dd hh;mm;ss.ext
    I even worked out how to do this automatically using ‘a better finder renamer’.
    But there was still one more issue.
    When the files were imported into IMovie, the thousand files would just come in as one event (unlike importing DV tape where it splits into days).
    Being unhappy with this, I had a brain wave and decided to try something else. AppleMan1958 helpfully suggested putting the files into different folders “behind IMovie’s back”, something I was open to doing, but wanted to try something else first...
    I resurrected my old camcorder from my attic, and filmed a few minutes of footage.
    I then plugged the camcorder into my Mac. To my AMAZEMENT, the import window appeared in IMovie (just like it does for DV tapes), AND the audio played as well as the video. I was absolutely staggered.
    I then noticed an ‘archive’ button within the import window, so decided to press it. It then copied the MPEG file from the camcorder onto the hard disk. But it did so in the structure of the original camcorder (i.e. it creates a series of specially named folders, just like on the camcorder).
    I then decided to copy all 1,000 of my MPEG2 files into the new special structure that had just been created.
    All 1,000 files were then accessible using the standard import function!!!!
    (By the way – I’m sure people already know this information – and I’m in no way taking credit for any of it, as it’s probably been suggested by other people in the past).
    I’ve now happily imported all of the files.
    (Interestingly, a couple of times it said ‘Error!’ on importing some of the files. The third time I tried it, it worked. How random!!)
    What amazes me is that now the Mac CAN seemingly handle MPEG video AND ac3 audio, whereas it can’t handle it by double-clicking the files in the finder. I can’t see why this should be the case. Also, it’s really annoying that when importing the files from hard disk, the files are totally greyed out – but it CAN import them by fooling IMovie into thinking it’s a camera archive.
    Ofcourse now I’ve spent all this extra money, it’s time to dust off the old camcorder and use that for a few more years, until I pluck up the courage to go hi-def...
    Hope you enjoyed reading – thought I’d share my experiences incase there are any newbies out there with similar issues. It’s annoying that Apple make it seem like childsplay to connect your new shiny camcorder to IMovie, but seem give little help in the more technical issues.
    Now, if only they’ll fix the mini-DVD import bug too...!
    Brad

    Hi Brad,
    when you use Streamclip to convert media, use the same name for the exported file (only with different extension). Then make a shell script calling
    touch -r origFileName.mp2 newFileName.mov
    This will copy the exact time and date from origFileName.mp2 to newFileName.mov
    The script may look like this (save the file, give an exec permission to it and call it in the right directory):
    #!/bin/bash
    for i in `ls *.mp2`; do
    NEWNAME=$(ls "$i" | sed -e 's/mp2/mov/')
    touch -r $i $NEWNAME
    done
    You may need to adapt the extension names used (in the example above .mp2 is input file to get the date/time stamp from and .mov is the output file to stamp.
    Have fun and cheers

  • 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 am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.

    How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.

    Great hearing for you all! I thought I was all alone this past weekend. I did learn a lot this weekend. I really like the InDesign product.(half-the-battle) But to be helped by the prestigious “Sandee Cohen” was an honor indeed.”  I ordered the InDesign CC today.  Peter, I appreciate all the feedback on Lynda too. They are loaded with lots of good videos. Derek too honed in on one of the most important aspects!  Since I have been working with Word for most of the first portion of the book this will be a big help. I looked at the comments big help ! Thanks a ton ALL!  Have a wonder day or evening whenever you read this reply.

  • 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

  • Amount coming in a different format

    Hello Gurus,
    In my db table, have an amount field which is filled with values say 10.00, 100.00 and 1000.00. The type is curr 15 decimals 2. When i display that in a ALV, the amount is comin in a different format. It adds 2 zeroes to it. Say the corresponding values when getting on displaying theh above values are 100,000, 1000,000, 10000,000 etc. May i know the exact reasons. Have tried changing the user profiles also. But its not working. The program follows object oriented concepts.
    Rgds,
    Renjith

    hi Ranjith,
    do this way.
    replace all occurances of ',' with '.'. statement
    or
    write itab-dmbtr to v_dmbtr.
    Regards,
    Santosh

  • Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    Hello. I am trying to transfer MP3 format sound files (currently saved to my Dell PC) to itunes. These files are audio books.  Do I need to convert them to different files first?  Thank you.

    File > Add File/Folder to iTunes

  • Convert MPEG 4 file into different format

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.
    QT Pro does not "do" multiplexed compression formats. For that you would need an external, third-party, MPEG-based application. iDVD, Toast, Visual Hub, iVCD, MPEG2 Works, etc. would work here to create some of these formats. QT Pro, MPEG Streamclip, and GarageBand can all create DivX and/or XviD files if you have the appropriate QT components installed. (Not sure if you can still find DivX 3 but assume free download of DivX 5.1.1, 5.2.1, and/or Xvid are still readily available on the internet.)

  • Why has iTunes converted song to a different format?

    I have always purchased songs in AAC (M4A) format, and recently created MP3 versions as well.
    Today, when i tried to play some, they couldn't be found, and upon checking further, i found that iTunes has converted *everything* to MP3 format.
    So now i have two of everything, all in MP3 format!
    Does anyone know why/how this happens, and how it could be fixed ?

    Harry,
    Check also in the Recycle bin. If they aren't there either, get new copies by following the steps in this document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Note added:  Harry, earlier in this thread you indicated that you had 2 MP3s of each, and later added that you were looking with Windows Explorer.  I'm thinking that one of those is the AAC file.  In Explorer, they will each show with the icon of the default player, which may well be the same for both AAC and MP3, so AAC and MP3 could look the same unless you check the metadata.  Look closely, and I think your Purchased AACs will still be there.  (But if they aren't get new copies as mentioned.)

  • Working with many different formats/codecs/frame rates within one Sequence.

    Good Afternoon,
    As an editor for an ad agency I am being tasked with cutting a demo reel together. Nothing too difficult.
    The reel is to include video footage of past projects, going back a couple years or so. The footage that I will be given will undoubtably be in a variety of formats, codecs, frame sizes, frame rates, etc (all SD, though). Delivery is SD DVD.
    My question is this:
    What is the best way to set up my timeline for a barrage of clips with differing specs?
    Do I encode all the media assets FIRST to conform to my Sequence Settings? Or do I just deal with the large amounts of timeline rendering as I work with different formats and codecs? Or do I....?
    I am running FCP 5.1.4, so I don't have the Open Timeline feature going for me.
    I appreciate any advice and tips you can offer!
    Thanks!

    Your final format is NTSC SD DVD, so you're going to have to go to 720x480 at some point. This is what I would upscale to. Make sure your "client" knows that the 320x240 wmv's may not look to good in the final production.
    Personally I use MPEG Streamclip (an excellent FREE application that's part of many a pro's arsenal) for this kind of conversion and/or upscaling. It's not particularly intuitive (especially for upscaling) so read the manual.
    You may need to get hold of Flip4Mac or Episode for the wmv conversions.
    I would tend to convert to a lossless codec like Apple Uncompressed or Animation. You could try going to NTSC-DV but you're going to lose some quality initially and again when you do the final mpeg2 compression.
    Experiment.

  • How do I convert an audio CD format album in my library into MP3

    Here's my problem. I have two vehicles. The older vehicle only plays audio CDs and the newer vehicle will play MP3 songs. So I want to burn two CDs, an audio and an MP3.
    I imported my original CDs into iTunes and kept them in the original format, not as MP3. I then burned an audio CD and it plays correctly. Now I want to burn an MP3 CD but got an error that iTunes cannot burn the MP3 CD as the original songs are not in MP3 format. I don't know how to convert these songs to MP3 and in all the help info I have read there is nothing about this.
    I really don't want to delete these songs from the library and re-import them as MP3. that's a lot of music and time.
    Does anyone have any ideas?
    Thanks, George

    You can use iTunes to convert the songs from your CDs to another format. When you convert a song in iTunes it will be converted to the format that you have set to import your CDs in. Converting creates a second copy of the song in the format you have chosen which gives you the opportunity to either keep or delete the original. You can get details on these pages:
    How to convert a song to a different format
    How To Choose Import Settings

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

Maybe you are looking for

  • New AirPort Extreme will not Connect to iPhone 5

    I just upgraded my old AirPort to an AirPort Extreme.  Everything seems to be working fine, except my iPhone 5 will not connect to the new Airport.  When it is selected as the new wifi option, the connection wheel just spins and spins and it will not

  • Time machine issue, trying to recover a file

    OK, Haven't needed to use time machine but now is the case and am having trouble ;-( ! My computer is backing upto the external drive with no issues.( Just did it a minute ago) I can see the backups correctly dated on the external drive. BUT.... When

  • Adding Classes to the JAR File's Classpath

    Ques 1- Can I use the wildcard * symbol in Manifest file to add classes/othes jar files to the JAR File's Classpath.I have folder named - Lib . where there are many jar files.Now,do I have to add each jar file by- Class-Path: Lib/jar1-name Lib/jar2-n

  • Java.lang.IllegalStateException when submitting a form.

    Hi there, I'm pretty new with jsp pages & tomcat, please check the following code : <form action="validInput" method="POST"> <input name="cpyName" /> <input type="submit" value="submit" /> </form>when submitting the form I get the following error : m

  • How to send PR from backend to SRM ?

    In the backend I have customized that I want to transfer certain purchase requisitons to the srm system for the approval process. so I set up the t160ex table and t160PR table with the relevant data. I  have checked the used rfc connections but no sh