Is it possible to use format-currency() inside set_variable()?

Hi gurus,
I have a few numbers to sum up for the report, and I want to round the numbers according to the currency before they are summed up. What is the best way to achieve this?
The way I can think of is:
To around the number I can use <?format-currency:VALUE; CURRENCY; 'false'?> in the template. Then initialize a variable SUBVALUE=0 and then add each rounded numer to this variable:
<?xdoxslt:set_variable($_XDOCTX, 'SUBVALUE’, xdoxslt:get_variable($_XDOCTX, 'SUBVALUE’) + (format-currency:VALUE; CURRENCY; 'false'))?>
However, I'm getting error indicating that I can't use format-currency:VALUE inside set_variable() in this way...Am I using the function wrongly? Or is there another function that can achieve this?
Appreciate your help :)
Sophy

Hi Tim,
As you said, the reason that why I have to add after rounding is to avoid the 0.01 issue. Our PM requires the numbers shown in report to be mathematically correct, so if we add before rounding then we'll have sub-toatal and totals different by 0.01 or so.
And since I need to round the values according to the currency, I can't round it in the query...I have to use format-currency in the template to do the rounding.
Thanks :)
Sophy

Similar Messages

  • Rounding when using format-currency

    Hi all,
    We're using format-currency in several places in out reports. I.e.
    <?format-currency:ssLfBonusAmountContributing;'EUR';'true'?>
    When using this formatting we always get the value with 2 decimals.
    Is it possible to round and display without decimals?
    Regards,
    Hakan

    Hi all,
    Haven't anyone come across this issue, with currency-format and display value without decimals?
    I know that I can use number-format, but this is not then first option.
    Regards,
    Hakan

  • Possible to use Beehive tags inside Workshop for AJAX?

    All,
    Our application is built using Workshop on WLS SP2, and we were thinking of adding some AJAX features in, especially an AJAX tree control. We know of the BEA WebLogic Tree control, but it doesnt support AJAX. On the other hand, the same control has been re-worked under Apache Beehive to support AJAX. Could anyone please tell me if they have managed to get Beehive tags work inside Workshop? Any pointers/suggestions on other AJAX-enabled Tree controls are welcome too!
    Thanks ,
    Vikram.

    At this point, Beehive tags can't be used in Workshop 8.1 apps. Beehive depends on JDK 1.5 features that are not available in Workshop 8.1.
    Thanks,
    David Gorton
    Workshop Customer Centric Engineering (CCE)

  • Is it possible to use format like X12 in PI 7.0 ?

    I would like to know, does PI 7.0 supports ebXML (Electronic Business using eXtensible Markup Language) and X12 EDI?

    Hi Sonal,
    you can use third party adapter like (Seeburger EDI adapter) for ANSI X12 conversions (it's sold through SAP service marketplace).
    For EbXML you need also third party communication adapter (if you choose Seeburger it's sold directly from the company).
    See link below:
    http://www.seeburger.com/ebxml-adapter/
    Regards
    Naycho

  • Itu00B4s possible use a bapi inside a macro?

    Hello APO experts!!
    We need to create a macro that will have to get the values of the independent demand of some sku´s and check the capacity of the productive resources...if the demand is less than the capacity, more demand (independent necessities) will have to be created to fullfill it.
    There will be a lot of calculations besides the use of a bapi.
    It´s possible to use a bapi inside a macro?
    If you have any suggestions, please tell me.
    Thanks a lot!!
    Regards
    Angela

    yes, you would do it via an ABAP macro.
    be careful with how this interacts with default macro logic in the sense that a BAPI reads data that is in the database (LC) so you may end needing to hit the save key after the macro call if you want to re-run the macro.

  • Is it possible to use the Study Cards feature in iBooks without the special new .iBooks format?

    The all new iBooks 2 has been released today, with quite a compelling array of features for students. I've watched a few videos, among those the introducory video from Apple, and one of the features that appealed to me most is the Study Cards feature, which uses notes you've created to generate study cards you can practise with.
    Now, I have a bunch of .ePub books, most of which are annotated and have notes. To my surprise (and a tiny bit of frustration) however, I wasn't able to find the button to activate Study Cards.
    I've tried to make a book myself using the also newly released iBooks Author application, and found that with the new book it indeed is possible to use the notes.
    Is there any way to make Study Cards available for .ePub books as well?

    I was thinking, perhaps there's a way to import ePub files into the iBook Author software, and thus create an iBooks format that enables the use of Study Cards.
    I haven't found an easy way to do so yet, though. Perhaps some authors with more experience could share their methods of converting their published books to this new format, so we can try to do it with our own (DRM free) ebooks?

  • Is it possible to handle formatted text actions(RTF) using Clipboard?

    Hi All,
    Is it possible to handle formatted text actions(RTF) using Clipboard?
    My application requires to copy the contents from other applications like MS-Word and contents to be pasted in my Application..
    if so how?i appreciate for any piece of code or links to the same.
    Thanks and regds
    Mohan

    -Any Suggestions?

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • HT4009 I download the currency meter on my windows PC is it possible to use it on this computer? If so how do i do that?

    I downloaded the currency meter on my windows PC. Is it possible to use it on the windows PC? If so how do I do that and where do I find it because i cannot see it anywhere?

    If it's an app from the iTunes app store then no, it can only be used on iOS devices - an app's requirements should be listed on its description page in the store

  • Bought upgrade on appstore. now it says its not available for download in indian store. how is it possible to buy it using indian currency!!!!????

    Bought upgrade on appstore. now it says its not available for download in indian store. how is it possible to buy it using indian currency!!!!????
    Any solution

    HI,
    No  SOLUTION FROM HERE, but I have an unresolved issue with similar overtones.
    As a new member, having had a birthday gift from a family member in another country, I am dismayed to find out that there is an unresolved business logic issue, which will allow me to own a MacBook Air, but because I live in a different country to the place of purchase there is a big No No. Additionally, my pension provideds me with a credit card from that first origin, but I am forbidden from buying any software elswhere? Apple seem reluctant to discuss this with me, but  some solutions have been offered to get me the free downloads?
    Does this come under 'unfit for purpose' and/or 'dodgy trading'? Apple unspoken message, buying from abroad. Dont go there!
    Any help or views?
    (Limbo) Cyfrommayo

  • My I phone 4 is stolen in Vienna of Austria, unfortunately I have some very important photo inside the phone, would it be possible to use the IMEI no. to  check where is the phone now? or you can lock i

    my I phone 4 is stolen in Vienna of Austria, unfortunately I have some very important photo inside the phone, would it be possible to use the IMEI no. to  check where is the phone now? or you can lock it / delete those information in the phone?
    rachel

    "would it be possible to use the IMEI no. to  check where is the phone now?"
    No.
    "you can lock it / delete those information in the phone?"
    No.
    Apple can do nothing at all.
    If you set up find my iphone and it is on and it has not been restored, then you may be able to track it or wipe it.
    Otherwise there is nothing you can do but report it to the police and change your passwords.

  • Error When Refresh Formatted Data inside Excel Analyzer

    I have build a Excel template and load up this to the BI Publisher Server. When I call this template after the log in works fine. When I refresh the data normal it works also fine, but when I try to refresh formatted Data I get the error "Error: This report does not support HTML as an output format." I will not use html output inside Excel, I will use the original Excel template with refreshed data.

    Hi Tim,
    The Refresh Formatted Data works on MS Excel 2003.
    May need to check if its really supported on MS Office 2002.
    Btw another question, is it possible to create an excel template without using Excel Analyzer?
    Also when I used the generated excel file of Excel Analyzer as template, when the report is generated the data sheet sometimes is not filled with correct data or sometimes there is no data at all, even if the parameters used is the same as the one used in generating the original excel file using Excel Analyzer. This happens most of the time for reports with Concatenated Queries or SQL Queries using "CURSOR" to group a set of data. Note that on initial generation of excel file using Excel Analyzer, correct set of data is displayed. It is only when it is used as template and viewed/exported in Excel format that data is not properly loaded.
    Please advise.
    Thanks!
    Uniz

  • Is it possible to use my music files in both my girlfriend's and my separate Itunes libraries through our seperate user accounts?? I want to import my music into her library with out copying the files onto my hard drive a second time....

    Is it possible to use my music files in both my girlfriend's and my Itunes library's through our seperate user account?  I want to import my music into her library without copying to my hard drive a second time.....

    Would any of these help you?:
    http://www.apple.com/itunes/inside-itunes/2011/05/two-ways-to-share-media-librar ies-through-itunes.html
    http://www.apple.com/itunes/inside-itunes/2011/01/keeping-multiple-itunes-librar ies-on-a-single-computerif-you-share-your-computer-with-others-and-you.html

  • T8000 - Possible to use 80 GB HDD?

    Hi,
    I bought the T8000-Notebook with BIOS-Version 8.30. Now I want to upgrade my harddisk to a 80 GB device. Is this possible and is it afterwards possible to use the whole 80 GB or does the mainboard only detect less than the 80 GB?
    Is it only possible to build in a harddisk from Toshiba or can I also take a harddisk from an other manufacturer?
    Do I have to make a BIOS-Update?
    Sorry for my bad english!
    Greets,
    Dirk

    Oh yes I have the same problem, I bought a Hitachi Travelstar HTS726060M9AT00 7200RPM and 60GB, when I try ti Install W2k the setup stopped, sometimes by installing Windos, sometimes by formating. Where is the problem?
    Oh I have a Tecra 8100 Bios version 2.5
    is the HDD too fast, or too big?
    Sorry for my bad english?

  • Is it possible to use Mac's Bluetooth and emulate a phone ?

    Does anybody know if it is possible to use the Mac and have the Bluetooth interface emulate a phone? Doesn't matter that much which phone model/type.
    Background: I have a Nokia 6021, it has a Bluetooth interface and it pairs properly with the Mac. I can browse the phone and backup all addresses from it. No problem.
    Now I have a new car, the Toyota Prius 2006, which has a Bluetooth connecting and functions as a headset for the phone, No problems either.
    But then the Prius has it's own dictionary of addresses and phone numbers, which it can use via the fast select function, and you can fill them from the phone. No problem, except for one thing: the Nokia is only able to sent one phone number at the time and to do so the coneection has to be broken, re-established, sent it, broken, re-established, and then one number is done. I did the most urgent ones, but for more then 200 numbers in my phone.... Pwoeiwie....
    The problem is that Nokia does one at the time, I checked, no other possibility. A thought came to my mind to connect the Mac, use iSync, etc. But the Prius only accepts a device which identified itself as a phone.
    Anyone knows if this can be done, and if yes wants to tell me? Please do so, thanks in advance for heaving read this!
    Regards,
    Wim.

    Hi Julian,
    I'm not exactly sure how to interpret your question. Let me try:
    1. As a user, you set the car in receive mode. At that point you can sent an address or a bulk of addresses. But the phone only sends one at the time. I checked with Nokia, they confirmed it just cannot do it otherwise.
    2. If you ask for the message format or the technical data structure, it works when I sent the address as a "Business Card" from the phone to the car.
    3. This is not yet relevant because the car yet refuses to connect because the Mac is not seen as a phone....
    Regards,
    Wim.

Maybe you are looking for