Formating currency variable

hi ,
i have a variable which is of type CURR 15 decimal 2. If this variable contains the value as 0 (0.00), then it should not be displayed as 0.00. Instead, a blank space should come in that place..
regards
chinnaiya

Hi,
If you are using ALV to display the report, then there is a field in fieldcat 'NO_ZERO' pass 'X' to it.
Hope this resolves your query.
Regards,
Nikhil

Similar Messages

  • 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

  • How to format a variable (file name)

    Hi,
    I'm setting up a book consisting of 34 individual files. Each filename with this structure: "1.4 - Chapter name", "2.4 - Chapter name" etc.
    On the top of the masterpage I have insert the variable file_name in a text-box. This is straight forward and works as should.
    Now my problem: how can I format the variable, so the numerical chapter No. is separated from the text part? My aim is to place the numerical on each page aligned away from spine and to place the text part centered.
    Of course it is possible to override the MP in each document, but would require 78 manual interventions (34 documents left/right),
    Has anyone a solution, or found a way to accomplish what I try to achieve?
    FYI I'm a rookie with InDesign :-)
    Erling

    As far as InDesign is concerned a variable is a single character, so it cannot be split. You can sometimes accomplish what you need to do with a Running Header (Character Style) variable by assigning various character styles to different parts of a text string (the styles can be nothing more than style names with no attributes), but I don't see a way to get the file name automatically and be able to split it.

  • To accept all date formats for variables

    Hi,
    I am getting a vadidation message on refresh of a query on entering European date format in the selection criteria "Please enter value in permitted format for variable XXXX"
    I need date to accept all date formats for variables to execute query.
    Currently US date format has been accomodated, On entering European date format i get the above validation message.
    Please suggest how do i supress this validation message or any other thoughts on the same.
    If anyone experienced the same before or applied any notes plz send the SAP Note number for the same. I am currently on BW 3.5.
    Message was edited by:
            tyson m

    tyson,
    why dont you control the date display through the user creation / user details option - then your date entries should sort themselves out.
    Arun

  • How to do Regional Setting Configuration in RDP session ( Eg Date Format, Currency, Decimal Seperator etc)

    Hi All,
    I am new to Windows Server 2008 R2 administration.
    I would like to know is there a way to  do Regional Setting Configuration in RDP session. i.e Date Format, Currency, Decimal Separator etc are based on users local machine.
    Eg If a user from UK logs in he should see date format as DD/MM/YY and if user from US logs in he should date format as MM/DD/YY.
    We are currently using citrix and we are managing this using logon script that runs based on citrix published application name.
    Is there any way we can achieve the same in RDP ?
    Thanks in Advance.
    Thanks & Regards,
    Nithin Kumar

    Hi Nithin,
    Do you need any other assistance?
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • How to decalre a currency variable

    Hi all,
    how to declare a currency variable of length 23 and 5 decimal places . please help me

    Hi,
    You can define a data element of length 23 and decimals 5 and make use of it in the program.
    we cannot declare directly in the program as p because the max length accepted by packed decimal(p) is 16.
    data: var(23) type p decimals 5. ( not possible).
    data: var type ztestcu. (possible).
    reward if useful.
    regards
    hemanth

  • Format date variable

    How can i format a variable of type date to format dd/mm/yyyy without converting it to type character.

    Oracle provides several NLS parameters to customize the database
    and client workstations to suit the native format. These parameters have
    a default value based on the database and national character set chosen to
    create the database. Specifying the NLS parameters can change the default
    values. You can customize the NLS parameters in the following ways:
    1) By specifying the initialization file, which will be used at the instance
    startup (Example: NLS_DATE_FORMAT = “YYYY-MM-DD”)
    2) By setting the parameter as an environment variable (Example on
    Unix: csh: setenv NLS_DATE_FORMAT YYYY-MM-DD or using the
    MS-Windows registry)
    3) By setting the parameter in the Oracle session using the ALTER
    SESSION command (Example: ALTER SESSION SET NLS_DATE_
    FORMAT = “YYYY-MM-DD”)
    4) By using certain SQL functions (Example: TO_CHAR (SYSDATE,
    ‘YYYY-MM-DD’, ‘NLS_DATE_LANGUAGE = AMERICAN’))
    but you have to ask your DB's administrator
    Or in Forms (registry)
    FORMS_OUTPUT_DATE_FORMAT
    FXDD/MM/RRRR
    Regards

  • 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

  • Formatting Currency Value

    hi,
    In my page i have a table that displays values from the database. To do this, i have created a VO programmatically, since the VO has to change dynamically.
    In my database one of my column is of type NUMBER and shows the value like 10000.00. What i want is when i display this value in my OAPage, i want it to be formatted to 10,000.00. I dont have any EO, i have created the VO also programmatically.
    I have a basic idea that i have to use decimalFormat for this, but i am not know where and how should i use it.
    Please help me regarding this.
    Thanking you
    ri

    Hi,
    Using OATotalRowBean, i have wrriten the following statements to format the total values displayed in each and every column of a table whose Totalling is set to true.
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("Table");
         if(tableBean != null)
              OATotalRowBean totalRowBean = (OATotalRowBean)tableBean.getColumnFooter();
    System.out.println("Formattotal : "+totalRowBean);
    if (totalRowBean != null)
    oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.00;#,##0.00","#,##0.00;#,##0.00");
    totalRowBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    In the guide its mentioned to use getColumnFooter method of a tablebean. Even the example uses like the above. But when i do a dot after the tableBean ie in its intellisense the getColumnFooter() method is found striked. Still if i use it as above to format the total value, nothing is being formatted in my page and the variable totalRowBean returns a null value. I dont know where and what is wrong with this.
    Please help me in formatting the total value of table's each and every column to currency as formatted in the column values.
    Thanking you
    ri

  • How can I display the value of the Target Currency variable in my query

    We have a query which has a key figure set to prompt for a Target Currency at runtime.  Because the user did not want the currency displayed in each cell they used the NODIM function to remove it. They do however want to display the Target Currency in a cell within the report.  Using Report Designer, I've tried to set up a Text Box to display this value, however, it is not in the list when looking at Constants, Filters or Variables or trying to display it in a Text box.  Has anyone found a way to be able to do this?

    Hi and thanks for the reply.  I should have stated that because this was a validated query, we'd like to do this without modifying the query and thus having to go through another lengthy validation process. That's why we did not go the route of adding Unit to the query but we may have to.  Another thing we can do is use a text variable in the headers that displays the currency. That works but, again, it's a query change whereas finding it in Report Designer will not require a query modification.

  • Format of Variables Change When Debugging

    When debugging in LabWindows, the format of the variables (decimal, hex, ASCII, etc.) is always set to the default under certain circumstances.  For example if you step into a function, change format of a variable, step out then back in, the format has been reset to the default.  There are other instances when you run, stop, rebuild and debug where this is done also.
    I've asked NI to explain why the variable format can't be retained, at least within one debug session (until exiting LabWindows).  The explanation is they use a stack-based system to store this information so it is lost during debug.
    I find this to be an extreme annoyance and an enormous waste of time.  For example, I deal with a lot of arrays of binary data.  Seeing these array values in ASCII is of no value.  So I'm nearly constantly setting the format back to hex during debugging.
    I'm curious whether anyone else thinks this is a problem.  NI knows about this, but it's unlikely they'll do anything unless there is a lot of feedback from us users on the value of fixing this.  Post a note and let me (and NI) know what you think, whether you think this is important or not.
    Thanks,
    Dave

    Hi Chris,
    Yes, using Format >> Preferences is exactly what I was talking about when I said "change the format of a variable".  Thanks for giving the exact details of doing this.
    I'm still using v8.1.  I'm leery of renewing my service contract because I don't feel NI is listening to me (as a customer, not just a LabWindows user) regarding the issues that affect my work and ways to greatly improve my productivity.  I have been suggesting this for a few years now, to no avail, both with tech support on the phone and through your product suggestion center.
    I can't explain all the intricacies of the issue.  Maybe what you have to do is set breakpoints and run rather than step in and out.  Here's what an engineer in NI's R&D center said:
    It's not actually rebuilding the project that causes the information to be lost. It's actually even worse than that. As variables come in and out of scope, the formatting and the expand/collapse state of each variable is lost. So, if you've hit a breakpoint in a function and re-formatted a local variable, and then continue debugging outside the function, eventually stepping back into the function, the formatting for the original variable is reset when the item is created anew in the variable display, based on the data type of the variable.
    The problem we have is that the formatting information is stored in stack-based memory which is associated with the actual items that you see in the variable display. As these items disappear and are re-created in the variable display, the formatting information is reset.
    The complexity of representing variable scope information, including arbitrary block scopes, makes it pretty hard to maintain variable information in global, non-stack-based memory. It's obviously not impossible, but unfortunately it would require a fundamental redesign of our debugging paradigm.
    Finally, we have heard this request from multiple customers, and I assure you that you are not the only customer who has asked for this feature.  The problem with this feature, as with many other feature requests is one of trade-off. It is obviously impossible to accept all the feedback that we receive, and so we are constantly having to weigh development costs of a particular feature, the risks involved in implementing it, and how widespread its benefits are.  So far, this feature has not made the cut. However, this does not mean that we're ignoring it, or any other customer feedback. Many customer-requested features have made it into previous releases, and we're confident that this will too, in the not too distant future. As a matter of fact, we can honestly say that most new features in a given CVI release originate with customer requests. I also just want to re-emphasize that each time you reiterate how important a given feature is, it drives up its priority and makes it more likely that we will implement it sooner, rather than later. With that in mind, we definitely welcome your suggestion to post a note about this request in the forum. We expect other people to second the request, and the more people that do that, the better.
    So my question wasn't posted for NI to respond.  It was to find out if anybody else using LabWindows finds this issue to be detrimental to productivity.
    Thanks,
    Dave

  • Formatting Substitution Variables in 6.2

    I am formatting some columns in my grid, but the selection criteria for those columns is a substitution variable. Problem is - each day the value of the variable changes, and my formatting goes away (if you look at the rule under "Data Formatting", it is hinged on the value of the variable, not the variable itself. Any workarounds for this??Thanks, -Mike

    Not quite sure if it is the same problem we had. We found out that in version 6.2.1, we had to create two substitution variables (one for Essbase and one for Analyzer), because Analyzer does not recognize variables with double quotes.To be more specific, we have a variable with value "2003" for Essbase and a variable with value 2003 for Analyzer.I hope that this helps.

  • Format of variable imported from FrameMaker file

    When I import my FrameMaker  files into RoboHelp, at least one of the variable formats changes. That is, a variable format containing a superscript character gets removed when imported into RoboHelp. Is there a way to fix this variable format in RoboHelp  or do I have to convert this variable format to text in FrameMaker before importing into RoboHelp.
    I am using the Technical Communicator Suite: FrameMaker 8.0 and RoboHelp 7
    Thanks

    I created a test project and imported one chapter.
    The results of the superscript were the same, that is, no superscript: C3 instead of C3. However, there is an exception to this behavior. If there is a cross reference, the cross reference retains the superscript.

  • Formatting currencies and decimal places

    I'm currently using NumberFormat.getCurrencyInstance() to format numbers as currency. However, one problem I'm having is that I'd like values with no cents to be formatted with no decimal places, and any values with cents to be formatted with the usual 2 decimal places. For example:
    17 would be formatted as $17
    17.45 would be formatted as $17.45
    17.4 would be formatted as $17.40
    The last one is the tricky part--I've tried formatter.setMinimumFractionDigits(0), and this works great for the first two cases. But for the last case, the number gets formatted as $17.4.
    Basically my problem is I want a number to be formatted with zero or two decimal places and nothing in between. Is there an easy way to do this?
    Thanks in advance.

    Otherwise you are likely to find that you are getting .00 due to errors from previous calculations. You are right. Adjusted it to Locale aware
    import java.text.FieldPosition;
    import java.text.NumberFormat;
    import java.text.ParseException;
    import java.text.ParsePosition;
    import java.util.Locale;
    public class SpecialCurrencyFormat extends NumberFormat {
        private static final long serialVersionUID = 1L;
        private final NumberFormat noDecimals;
        private final NumberFormat decimals;
        private final double maxDifference;
        private final double factor;
        public SpecialCurrencyFormat() {
         this(Locale.getDefault());
        public SpecialCurrencyFormat(Locale locale) {
         decimals = NumberFormat.getCurrencyInstance(locale);
         noDecimals = NumberFormat.getCurrencyInstance(locale);
         noDecimals.setMaximumFractionDigits(0);
         maxDifference = Math.pow(10, -decimals.getMaximumFractionDigits()) * .5;
         factor = Math.pow(10, decimals.getMaximumFractionDigits());
        @Override
        public StringBuffer format(double number, StringBuffer toAppendTo,
             FieldPosition pos) {
         double adjustedValue = (Math.round(number * factor)) / factor;
         if ((Math.abs(number - Math.round(number)) < maxDifference)) {
             return noDecimals.format(adjustedValue, toAppendTo, pos);
         } else {
             return decimals.format(adjustedValue, toAppendTo, pos);
        @Override
        public StringBuffer format(long number, StringBuffer toAppendTo,
             FieldPosition pos) {
         return noDecimals.format(number, toAppendTo, pos);
        @Override
        public Number parse(String source, ParsePosition parsePosition) {
         return decimals.parse(source, parsePosition);
        public static void main(String[] args) {
         NumberFormat nf = new SpecialCurrencyFormat(Locale.US);
         double[] values = { 10000, 1000, 100, 10, 1, 10.1, 10.01, 10.001,
              10.002, 10.003, 10.004, 10.005, 10.006, 10.007, 10.008, 10.009,
              10.010 };
         for (double value : values) {
             print(nf, value);
        private static void print(NumberFormat nf, double number) {
         String formatted = nf.format(number);
         try {
             System.out.println(number + "\tas " + formatted + "\tand back "
                  + nf.parse(formatted));
         } catch (ParseException e) {
             e.printStackTrace();
    }The value adjustedValue is needed since NumberFormat doesn't seem to round the value. It just breaks.
    Piet

  • Paragraph Format / Character Format for Variable address in SAPSCRIPT

    Dear All,
       I am trying to print variable address for ship-to-party. But the address is variable address for different vendors.
    The contents like
    /:  ADDRESS PARAGRAPH AS
    /:  TITLE    &LFA1-ANRED&
    /:  NAME     &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
    /:  STREET   &LFA1-STRAS&
    /:  POBOX    &LFA1-PFACH&  CODE &LFA1-PSTL2&
    /:  CITY     &LFA1-ORT01&, &LFA1-ORT02&
    /:  POSTCODE &LFA1-PSTLZ&
    /:  COUNTRY  &LFA1-LAND1&
    /:  REGION   &LFA1-REGIO&
    /:  FROMCOUNTRY &T001-LAND1&
    /:  ENDADDRESS
    My question is, How to assign Paragragh format or character format to the above code?
    Your reply will help alot..
    Thanks and waiting
    Regards
    Anukul

    hi,
    in ur code u already gave
    /: ADDRESS PARAGRAPH AS goto paragraph formats n define or make the required changes for the paragraph format AS.
    click on character formats n define/change the character formats as breakpoint has mentioned.

Maybe you are looking for

  • Updateable View ORA-2014

    Okay you helped me with the insert on a view with this note although you never completely answered all my questions: http://technet.oracle.com:89/ubb/Forum2/HTML/005469.html Now I need help with an update on a view. I have an instead of update trigge

  • Ichat video connection not working

    Hey guys how are you? The thing is that I have two Brand new 15" macbook pro and i'm trying to use them both with ichat, but the problem is that i can get connected but i cannot star a video chat, first computer stays in waiting for response and seco

  • Update to CC 2014, can no longer export to PDF

    Greetings, My recent update of InDesign to the CC 2014 version leaves me unable to export ID files to PDF.  I get the message:  "1 Problem (1 failure) was found with a background task:  export (filename).pdf (1).  This happens regardless of file: exi

  • ALE and IDCO message types

    Hi all, pls tel me types of message type available in ale and idocs with definition and segment types,idoc type....etc.

  • Trouble installing adobe reader

    I'm attempting to install a copy of adobe reader 9.3, which i downloaded from the adobe website, on a computer running windows xp with service pack three installed, but it fails and gives me an error, which says: "AdbeRdr930_en_US.exe has encountered