FM for conversion of 2 decimal currency to 5 decimal currency

I specifically require a FM, for converting a 2 decimal currency value to a 5 decimal currency value for the following format.
I have a variable of type NETWR which is CURR 15 DEC 2
I need to store the same in either packed, character field or even currency will work but that should be of 5 decimal places as I need to display the value for USD5 currency.
For eg I am having a value in the variable of NETWR, 123456789.90
For this scenario i want output as 123456.78990
Write statement and move statement behaves correctly for this. ( we require this)
But main problem arises when my value of NETWR variable will be like 1.09, 21.09 or 221.09
as it stores 0.00109  0.02109 or 0.22109 which is worong and ideally that should be
1.09000, 21.09000 or 221.09000 for such cases in USD5 variable
I have checked By using various existing FM like BAPI_CURRENCY_CONV_TO_EXTERNAL, CURRENCY_AMOUNT_SAP_TO_BAPI , HR_NZ_ROUNDING_DECIMALS but these are not useful for this scenario
Kindly suggest some technique so that i can convert 2 decimal currency to 5 decimal currency.

@ JAY,
Yes, I agree with you that this is some kind of wierd requirement.
But when i checked something in SAP i was wondering why I was not getting the same in my object.
In VF03 when you open any Billing document the net amount for USD5 is displayed in 5 decimals, although when i do F1 on the net amount field I get the technical details as NETWR which is CURR 15 DEC 2, now my assumption is that there must be some routine which will overwrite the currency depending upon currency key maintained for USD5.
But in my object that is not present and hence after performing some calculations I am storing the same in a variable of type NETWR so it will covert whatever calculation is in 2 decimals. But for the customer i need to show that in 5 decimals. which should be same as displayed when i see the invoice using VF03.
Hence I want a perfect FM which will work for my case. means for larger values and smaller values it should behave as i described.

Similar Messages

  • User Logic for Conversion Type Instead of Hard coding in query.

    Hello , Good response from SDN but thats all standard which I know. Please help me to resolve the problem as stated below. SDN friends are always best help.
    Requirement: User will select the Target Currency; Will select the Exchange Rate like Monthly Avg 002M. Now there has to be a variable in Conversion which tells the logic to pick Conversion Type ZVHGR if  Exchange Rate = 002M, but if Exchange Rate = 001, then Conversion Type ZVHMR.
    <u><b>
    Approach to solve abo</b></u>ve
    1. I have created a Currency Translation Type " FiscperConversion" "ZVHGR" now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used. Standard Infoobject 0FISCPER
    which is beginning of period.
    Now all the above is done. Let go to the query and For Value of kEYFIGURE "Audit Balance" in Conversion Tab Conversion Type is specified is "FiscperConversion" ZVHGR"same as above and thats it. But the problem is here user want a variable that user can select the Conversion Type Instead of Hard coding.
    <b>Please suggest how to create this variable for Conversion Type and specify in query designer since In Conversion Tab this is not allowed to have variable.</b>
    Please help me very soon
    Thanks
    Soniya Kapoor
    null

    Hello soniya
    CTK ( currency translation key) includes
    1. Exchange rate type - variable
    2. Time base              - Variable
    3. Source abd TGT currency    - variable
    if all the things are given in variable why and what extra you need by selecting currency translation key from user input. I think you should ask business user again abt their requirement.
    I can think of inputing CTK if say you have choosen time base as static ( Fix value)...say in one key u r using fiscal period as base and in other u r using calday as base...
    Thanks
    Tripple k

  • MB5L Report Discrepacy for Material and Stock Account Currency

    I have found in the MB Report Discrepancy for Material and Stock Account Currency. Why is this happening? Why is there a variance between total price in materials and stock account? Anyone please help me. I'm abaper but now been pushed to do logistic. I need help for this issue.

    Hi,
    Here's some information from help. Variances can occur for the following reasons:
    You have entered postings to the stock account manually.
    The stock account includes not only stock postings, but also other postings. In this case, you should check the account determination in the Customizing for Valuation and Account Assignment. Make sure that the stock accounts are used solely for the transaction key BSX (stock postings).
    Check Account Determination - OMWB
    The account assignment for the stock accounts (transaction key BSX) was changed during productive operation; the respective stocks, however, were not deducted from the old account (movement type 562) and posted to the new one (movement type 561).
    Cheers !

  • Best Practice for Conversion Workflow

    Hello,
    I'm converting video files from our "home grown" virtual media reserve to iTunes U. Some of the files are in RM format, some are already compressed .mov's (not H.264) and some I have the original DV files for.
    Anyone out there have a best practice for converting these file types for posting to iTunes U? I have Final Cut Studio (Compressor), QT Pro and Squeeze available to me.
    Any experience you have with this would be helpful.
    Thanks,
    Jeana

    For converting old files to a podcast compatible video and based on the machine you have, consider elgato turbo.264. It is a fairly priced "co-processor" for video conversion. It is comprised of an application and a small USB device with a encoder chip in it. In my experience, it is the fastest way to create podcast video files. The amount of time that you will save will pay for the device quickly (about $100). Plus it does batch conversion of any video that your system currently plays through QuickTime. it has all the necessary presets and you can create your own. It has a few minor limitations such as not supporting (at this moment) enhanced podcasting features such as chapter markers and closed-captions but since you have old files for conversion, that won't matter.
    For creating new content, the workflow varies a lot. Since you mention MP3s, I guess you are also interested in audio files. I would stick with GarageBand, especially if you are a beginner plus it supports enhanced podcasts.
    In any case the most important goal is to have the simplest and fastest way to go from recording to publication. The less editing the better. To attain that, the best methods will require the largest investments. For example, for video production the best way is to produce the content live so when you finish recording it is only a matter of encoding and publishing. that will require the use of a video switcher that can ingest at least one video camera and a computer output to properly capture presentation material. That's the minimum. there are several devices that can do this for you. Some are disguised PCs and some connect to a PC for tapeless recording. You can check the Tricaster, which I like but wish it was a Mac and not a Windows Xp PC. Other routes may include video mixers from manufacturers like Edirol, Pansonic or Sony connected to a VTR or directly to a Mac for direct-ti-disc capture. I f you look at some of the content available in iTunes U, you will see what I explain here. This workflow requires preparation and sufficient live support but you will have your material ready for delivery almost immediately after the recorded event. No editing required. Finally, the most intensive workflow is to record everything separately and edit it later, which is extremely time consuming.

  • Material valuation difference in FI and MM area for P.O in foreign Currency

    Seek assistance in solving the following issues related to P.O in foreign currency. Thanks in advance
    1, For purchase orders in foreign currency, during MIGO,in the FI document, the  inventory value which include cost payable to the vendor, taxes, CHA and freight are calculated in foreign currency and the company code currency value is arrived by multiplying the total  inventory value with the exchange rate prevailing in Ob08 on the posting date of MIGO, instead of adding the values of basic price converted to local currency at the rate prevailing on MIGO, Custom duty at the rate prevailing on Customs Miro and Freight CHA etc which are inputted in local currency and converted to P.O currency in P.,O, at the exchange rate in P.O
    The value thus arrived is different from the actual value paid since the freight and CHA are in co code currency in the P.O and converted to P.O currency in P.O with exchange rate prevailing on the date of P.O and Custom duty paid in local currency is at the rate prevailing on Custom MIRO.
    2, Freight and CHA are entered as condtions in the P.O and the values entered in local currency. These are converted to P.O currency by the system at the exchange rate prevailing on the P.O date. During MIGO in the FI document the values for these are arrived by multiplying the value in P.O currency with the exchange rate prevailing on MIGO. for e.g. the CHA lumpsum entered as INR 20,000 is converted to $ 400, assuming the OB08 rate on the date of P.O is 50. if on the date of MIGO OB08 is 60, during MIGO, in the FI document entry for local currency the CHA charges become 24000. ( 400 x 60 ). While the actual amount is 20,000. the same scenario exist for freight too which is entered in local currency.
    WHAT IS HAPPENING
    1. Foreign Vendor - Foreign Currency X OB08 rate on MIGO Posting Date
    2. Freight - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on MIGO  Date
    3. CHA - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on MIGO Date
    4. Customs - Company Code Currency Converted to Foreign Currency as per OB08 rate on Actual Customs Payment Date X OB08 rate on MIGO Date
    WHAT IS REQUIRED
    1. Foreign Vendor - Foreign Currency X OB08 rate on MIGO Posting Date
    2. Freight - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on PO Date
    3. CHA - Company Code Currency Converted to Foreign Currency as per OB08 rate on PO Creation Date X OB08 rate on PO Date
    4. Customs - Actual Customs Duty paid in Company Code Currency through Customs MIRO

    Hi
    i am still waiting for someone to put a comment on this thread
    regard
    Nabil

  • I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format not supported for conversion to PDF".  They already are pdfs, what am I doing wrong?".

    I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF".  They already are pdfs, what am I doing wrong?

    Moved to Adobe PDF Pack (read only)

  • Define Clearing Accts for Payment Diff. with Altern.Currency

    Dear SAP Gurus,
    Please suggest difference between Define Clearing Accts for Payment Diff. with Altern.Currency & Define Accounts for Payment Differences with Altern. Currency.
    I am not able to understand what the use of defining Accounts for Payment Differences with Altern. Currency in two activities.
    Early reply would be appreciated.
    Regards,
    Prafful kansal

    Hi,
    For this Scenario payment clearing is based on the exchange rate currencies for that purpose we configure that 2 setup accounts.
    Briefly: If Invoice is raised as per date feb 1st  (1 us dollar = 45 rupees)and payment received on that 1 mar ( 1 us dollar=40 Rupees)for this the exchage rate values are may be different for that purpose.
    For this scenarios it will be loss or gain.
    Hope you will understand.
    Regards,
    Kanike

  • Table T000 was not relevant for conversion in BDLS log

    Hi All,
    I am getting the below message in BDLS log  while doing logical system system conversion with BDLS.
    "Table T000 was not relevant for conversion"
    Due to this I could see old logical system entry in SCC4 instead of New converted logical entry.
    (I've gone through the forums ,but didn't find solution)
    Any Idea why I am getting this message and I triggered BDLS from client 000.
    Regards,
    Srinivas Chapa.

    Already SCC4  entry for the client has old Logical system name.
    Ex:
    Client 500
    Logical System : <PRD>CLNT500
    I need this to be change to <QAS>CLNT500 after BDLS,but it is not happening after BDLs.
    Regards,
    Srinivas Chapa.

  • BDLS : Table T000 was not relevant for conversion

    Hello,
    After a system refresh ( homogeneous system copy in ECC6), we performed the post copy procedure.
    I ran the BDLS transaction, all the tables were converted fine, exept the table 000.
    I still have in transaction SCC4 the former logical systeank you in dam defined.
    I checked the BDLS job log and found the message :
    "Table T000 was not relevant for conversion"
    I don't underdtand why ? Is it the normal behaviour ?
    Table T000 is not excluded in BDLSC ...
    Thank you in advance for your help.
    Best Regards.

    I just found out that I launched the BDLS from the client 000.

  • I receive an error message when submitting a pdf file for conversion to a Word document "... an unex

    I receive an error message when submitting a pdf file for conversion to a Word document "... an unexpected error has occurred..."   - is there a way to overcome this error?

    I received your Scan.pdf sent to [email protected] and had no problem to convert it via Export PDF service. Could you try again?
    Jyh-Jiun Liou

  • Paid for conversion for one year but I am still asked to pay

    Paid for conversion for one year but I am still asked to pay?????

    Get in touch with support (by web chat on weekends). Maybe there is an issue with processing your payment.
    Mylenium

  • I have pdf files which get locked when i submit for conversion to either word or rt?

    I have pdf files which get locked when i submit for conversion to either word or rt?  Joe DeFalco

    Hi, what do you mean when you say they get "locked"?

  • Order type for conversion of planned order

    Hi gurus,
    I have configured 6 different order types for PPPI and not maintained any default order type for conversion of planned order into process order. But when I am trying to convert planned order into process order by branching out from MD04 to COR7 via the popup window, default order type PI01 gets selected which  cannot be changed. However, if I am converting the planned order into process order directly through COR7, then choice of order type is available.
    Could you please tell me how to ensure choice of order type while branching from MD04 to COR7?
    Regards,
    Abhik

    Hi Datta
    The order type is selected as below
    First it will look for any scheduling profile is maintained. If so it will select default from the profile.
    Next if the profile is not there it will look for any scheduler is assigned in material master. Through the scheduler it will select the profile and default order order type.
    Next it will look in plant parameter. With conversion from plan order to prod order  order type
    Next it will look in MRP group conversion order type,  if you have mainted it in Material master.
    This is the sequence. Please check have to maintained any of these.
    Hope this is clear
    Regards
    J . Saravan

  • Program PPBICO40 for conversion of planned orders to production order

    Hi,
    The program PPBICO40 is for conversion of planned orders to production orders in the background job.But while set up of variant it is asking me for peson who created error folder and recipient.I want to know the significance of these two fields and how these are useful.
    Please throw some light on this.
    Thanks in advance,
    Ravi

    Dear,
    PPBICO40 the non-convertible planned orders are put together in one batch input session and can be postprocessed with batch input tools. It is possible to create a separate error session for each MRP controller.
    Error folder for each MRP controller: creates a separate error folder for each MRP controller.
    Receive folder according to view: If the indicator is set, the error folder is not deleted after processing in batch input.
    Creator of the error folder: User who is entered as creator in the error folder .
    Send mail: Sends a mail to the respective MRP controllers during the creation of a batch input session. If the indicator 'Error folder per MRP controller' is not set, the mail is sent to 'Recipient (alternative)'.
    Express document: sends mail as an express document.
    Recipient (alternative): Recipient of the mail, if no recipient is specified in the material requirements planning master record of the MRP controller responsible .
    Hope clear to you.
    Regards,
    R.Brahmankar

  • How to adjust volume iPhone 4 for conversations?

    How do I adjust volume on iPhone for conversations?

    If you don't know how to adjust the iPhone volume, you REALLY need to read the iPhone User Guide:
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

Maybe you are looking for

  • Windows 8.1 install fails on new 2013 Retina MacBook

    I doubt there are many people out there who can help with this yet.  I was able to pick up my 2013 Haswell Retina MacBook Pro from my local Apple store this morning (yay!), and so far everything has been stellar.  However, I'm unable to install Windo

  • Is there anything in these ETRECHEK results I should attend to urgently?

    Hi Ran etrecheck today in case my SMC reset didn't resolve a wifi connectivity issue (after upgrade to OS 10.10.1) but it seems to have succeeded and am now wondering if these results tell any of you clever people if there is anything I should do som

  • Unable to Partition Drive - 3TB Fusion Drive

    Hi, I have been trying to create a Windows Partition using Boot Camp: I get the error message "Your disk could not be partitioned" as soon as I hit Install. I then tried to Partition the drive in Disk Utility and get the error message "Partition fail

  • Switching Backend System

    Hello everybody We've setup SRM 4.0 with SRM Server 5.0 SP08 and CCM 2.0 SP03 on a development/customizing machine called DIM. We connected it to temporary devel./customizing SAP R/3 4.7 backend system called RIS. Why a temporary devel./customizing b

  • TS3212 Help updating itunes

    Hi, I am trying to download the latest itunes and its not working.  It keeps on coming up with not installed properly and error 7 (windows error 126). Plz help.