Decimal in reports

Hi,
I have a column "unit price" in a table with precision (number), it is rouding 0 whenever price in 0.nn, is there any way to call the values in decimals in report or in query.
Thanks in advance
Ahon

hi Use the below function, pass a number to this function u will get what u want
FUNCTION svn_number( OLD_AMT NUMBER) RETURN char IS
new_amt varchar2(20);
BEGIN
     if condition           THEN
     NEW_AMT := to_char(OLD_AMT, 'fm99999999999999.00');
     ELSE
          NEW_AMT :=to_char(OLD_AMT, 'fm99999999999999.000');
     END IF;
     RETURN NEW_AMT;     
END;

Similar Messages

  • XL REPORTER DECIMAL PLACES

    Although may be selected for a Company 6 decimal places (e.g. prices, rates, amounts) XL returns only 2 decimal (in Report Builder and Report Composer). Is there a possibility to increase decimal places in XL? Rounding makes serious differences in results.

    Please refer SAP note no. 896207
    The following is the content of the note.
    You have to edit the registry to change this. Do the following:
    1. Go to Start->Run in Windows and enter "Regedit".
    2. Go to HKEY_Local_Machine\Software\iLytix\XLReporter\Settings and add new string value (Right-click and choose New->String Value) and enter "FloatDecimals".
    3. Press Enter and double-click to enter the decired number of decimals.
    Note: This will only affect figures in the Report Designer, and not Report Composer.
               Incorrectly editing the registry may damage your system. System registry changes should therefore only be performed by an advanced user who is prepared to both edit and restore the registry. For details about the system registry, please refer to Microsoft Registry Editors help system.
    Kindly provide Points if this has resolved your query.
    Regards:
    Vivek

  • Display 3 decimal in ALV for data element KBETR

    Hi experts,
    I've got an ALV report that reports, besides other things, the values stored in KONP-KBETR. The values from KONP-KBETR are passed across to an internal table field which is defined as type KONP-KBETR.
    The problem is that KONP-KBETR is displayed to 2 decimal places and this is what the ALV grid shows e.g. 0.05
    The users now want the field in the ALV to show the values to 3 decimal places so 0.05 should now appear as 0.053.
    Any advice of how to do it?
    Thanks all in advance....

    Hi,
    When populating the fieldcat set decimals_out to '3' for the desired field entry.
    See here: Re: decimal  values for a field in ALV
    Here's a sample program I wrote to output KBETR from KONP with three decimal places:
    report zz_test_alv.
    type-pools: slis.
    tables: konp.
    data:
          it_etab type standard table of konp,
          it_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat type slis_fieldcat_alv.
    selection-screen begin of block sel with frame title text-t01.
      select-options:
        s_knumh for konp-knumh,
        s_kopos for konp-kopos.
    selection-screen end of block sel.
    perform select.
    perform build_fcat.
    perform display.
    form build_fcat.
      wa_fieldcat-fieldname = 'KBETR'.
      wa_fieldcat-decimals_out = '3'.
      wa_fieldcat-seltext_l = wa_fieldcat-seltext_m = wa_fieldcat-seltext_s = wa_fieldcat-reptext_ddic = 'Amount'.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    endform.
    form display.
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = 'zz_test_alv'
          it_fieldcat        = it_fieldcat
        tables
          t_outtab           = it_etab.
    endform.
    form select.
      select * from konp into table it_etab
        where
          knumh in s_knumh and
          kopos in s_kopos.
    endform.

  • MSI X48C Platinum OC setting from DDR1200 to DDR1600

    I'm finally back.  I got depressed about that last attempt with my X48C Platinum setup with Corsair XMS3 1600 MHz.
    The problem was that MemTest checked it out fine, but I was getting lock-ups.  On retesting errors would only be reported on the 10th pass --- which took some time to find out.  Everything sat on the shelf and I was the butt of many jokes with my MSI board.
    I've popped for some Mushkin DDR3 1600 MHz and am just burning it in @ DDR1200.
    MemTest is reporting RAM bandwidth @ 5,211 MB/s which is acceptable, however I'd like to see a stable performance around 5,800 MB/s.
    This Mushkin is 9-9-9-24.
    What I'm having trouble with now is the OC setting to get even a single pass with this Mushkin.
    Could you guys help out with some simple, straightforward tweaks necessary for the BIOS for running this RAM @ DDR1600 ?
    Thanks a bunch. 
    Klaus.s

    I just received a hand-delivered letter from my MOM, and she says I should include some more information.
    So here goes.
    CPU = x9770 @ 3.20 GHz
    BIOS = 7.4  12082009
    RAM = 4096 or 2x 2048
    Advanced = MPS 1.4
    CPU = Virtualization Technology = Enabled (VMM can utilize additional HW caps) [I don't know what this is or if it's a good thing for stable performance]
    CPU = Execute Bit Support = Disabled (Force XD feature flag to always return 0) [I don't know what this is or if it's a good thing for stable performance]
    CPU = Set Limit CPUID MAXVAL to 3 = Disabled (Some OS's cannot handle >3) [I'm going to install Win.XP.Pro.32-bit]
    Chipset = HPET = Disabled [I don't what this is, or if it's a good thing for stable performance]
    Chipset = DRAM = Non-ECC (Options are ECC or Non-ECC) [I'm kind of onto this.  ECC is for 24x7 service such as web-servers that don't have the option for re-boots, and does a constant hot-sector swap/test thingy to ensure constant CRC checks or some-such, right ?]
    Chipset = Ative State Power Management = Disabled (PCI-E L0 & L1 Link Power state) [I don't know what this is or if it's a good thing for stable performance for my NVidia GeForce GTX 295 -- just one]
    Trusted Computing = TCG/TPM Support = NO (Enable/Disable TCG (TPM 1.1/1.2) [I'm sorry.  I don't know what this is or if it's a good thing for stable performance.  I've got about 3 other books that'd be nice to read in the sun between some gaming, but it'd be kind of nice if there was a nice little reference material in the User Manual instead of having to go to Google for every little thing that may or may not be relevant, especially in some kind of priority ---- as in is this something that is on the front burner and I should turn it on to get some water boiling, or should I just let this simmer on the back burner because it's not really all that relevant and other settings are going to demand attention now for immediate results.  I hope you can get my simple point.]
    H/W Monitor CPU = 38
    H/W Monitor System = 31
    H/W Monitor CPU fan = 1915  [seems a little fast, but maybe after I get everything else tweaked I'll come back to this & turn this down somehow]
    H/W Monitor CPU = 1.272 - 1.280v
    H/W Monitor 3.3v = 3.328
    H/W Monitor 5v = 4.961
    H/W Monitor 12v = 12.144 - 12.232
    H/W Monitor 5v SB = 4.992
    H/W Monitor Icore = 16.xxx - 29.xxx A
    H/W Monitor I 12v = 1.983 -3.320 A
    H/W Monitor 51 - 156%  [Well it seems like the voltages are nice & tight.  Where I have put the "-" is because the values flicker around.  My science teacher would love to have a fit over this, where the decimal is reported to 3 places, but the value in the 1st place would be all that is required, or worse.  Anyhow, at least there are no sparks flashing up or smoke bellowing out.]
    CELL MENU = DOT = Disabled [I'm sorry, yet another of many acronyms that I'm not familiar with.  I guess I'm going to need a link to some FAQ that wasn't available when the manual was being printed.  Sure wouldn't mind though.  It just seems that what is required on my part, isn't just the money to buy all this 'stuff' but the time to invest in sorting through a lot of reading, studying and experimenting.  Sure would be nice to just click on DRAM Frequency = 1600 MHz, and all the associated voltages and whatnot sync to match what is required. Maybe I could take this experience and start writing some comic books or something.]
    CELL MENUS = Intel EIST = Disabled (GV3 Technology) [I'm sorry, just another item in the don't know what this is, never seen it before, don't have it on the other Quad core motherboard, and have at least the modicum of a clue that it might just be relevant to know more about this.  I'm looking forward to reading the forthcoming links.]
    CELL MENU = CPU FSB = 400 (200 - 800) [Wow.  This'd be nice to crank up, but am I simply going to get a constant series of black screens, and then have to press the CLR button on the back of the board, and have to re-enter all the values in the BIOS all over again.  Now this would be some valuable information to know just the range of possibilities, instead of poking around in the dark for endless hours.  Ranges can be good, but maybe just a hint of practical ranges would be just that much better.]
    CELL MENU = CPU Ratio = 8 [Now this is one that I've fiddled around with quite a bit, and the ratio on the MoBo goes all the way to 60, but I have had the guts to save this value on an exit to boot.  With the rocking CPU, I'm sure I can get nosebleeds, but just what that ratio is, well, that would be nice to know a practical value that won't cause black screens or a lump of pins that winds up on the top of the lava-lamp for topical discussion.]
    CELL MENU = Advanced DRAM = By SPD = Enabled [This Muskin is supposed to be some honking RAM, so maybe it's best to leave the chips sort this out for now, but then maybe again, just maybe there are some practical values to insert here that are realistic and more functional than what has been pre-programmed into inert silicon & gold.  Right now I simply do not find it within the grey matter between by ears at this moment.  Not in the User Manual either.]
    CELL MENU = Advanced DRAM = MCH Read Delay (tPD) = Auto (Other choices 4 - 15) [Now I sense that this might be close to the 9-9-9-18 ratings, however I'm not brave enough to just set this to 9.  There seems just too many other settings what with the voltages etc to know just what practical options would be viable, again, without a lot of time to experiment.]
    CELL MENU = Advanced DRAM = 1N/2N = Augo (Other choices 1N & 2N) [Seems like something associated with latency, just that I don't know what is practical & viable.]
    CELL MENU = FSB/MEMORY Ratio = Auto (Other choices are 1.20, 1.60, 2.00, 1.00, 1.33) [Well I do like a short list of options.  What would be nice to understand here in chart like form, is what kind of CPU ratios, RAM speeds, FSB speeds & FSB/RAM ratios are viable.  I've seen these done nicely in review forums or magazines where people are paid by the hour or month to sit with just one motherboard, or maybe get the info from the Engineers that tested the MoBo, and actually print that practical performance chart in the User Manual.  Then I could use this handy guide to follow the edges of practical options and know that I'm going to get a viable result and start putting all this hardware to use instead of idling while I'm in the BIOS on this MoBo, while I'm using another computer to browse the Internet with a lot of my time that I'd rather see invested in actual entertainment.  It isn't that I don't like the guys that provide such valuable handy practical advice here, but seeing that crowd of animated emoticons staring back at me, I'm beginning to feel like some character out of "Waking Life" not knowing if I'm creating some sort of animated dis-reality.  If you haven't seen "Waking Life" it's a thought provoker right up there with the original "Matrix," and was my first exposure to Alex Jones -- he does a marvelous job of driving around in that convertible car that can drive through water.]
    CELL MENU = Adjusted DRAM Frequency = 1200 [this is greyed out.  at least it can run at this speed with a lame no-brainer BIOS effort.  I guess this is the experience that F1 driving teams go through.  My MOM could probably drive one of those @ 160 MPH with my dead, planted in the ground DAD as a mechanic, but to get 240 MPH requires a truck load of information, experienced techies, loads of time, trial, trial, trial, trial & more trial.  But hay, at least next year I can say when someone asks about all these BIOS settings that I can't remember what they were other than to leave them alone -- they worked to get it running -- and fiddling with them anymore isn't going to do anyone any good.  When Charlton Heston returns in the future to this planet overrun with talking apes, they too can pick this up in wonder and won't know any more that I will next year.]
    CELL MENU = Auto Disable DIMM/PCI Frequency = Enabled [This one confuses me, because I thought that the FSB has the RAM, the CPU & maybe even the video card, and managed by the 'HUB' maybe the SB, but I keep mixing the SB & the NB, but one of these.  Then the one 'HUB' communicates to the other 'HUB' which handles the PCI slots, the SATA drives, LAN, sound, PS/2 ports, USB and I guess the eSATA port.  So wouldn't it be best to just leave alone the PCI frequency because all those devices can so easily start to loose track of the triggering voltages & start mixing up the '0'-bits from the '1'-bits and lock up?  Well, I suppose that's coming up with those magical URL links.  My brain could use a bit of exercise, just that I wasn't expecting this much mental activity before the fun began.]
    ANYhoo....  I hope this exercise will drag me kicking & screaming just a little bit closer, not to the doll that wants to take me dancing, but to the games that I have waiting on the DVD's, and be able to drag some arrogant friends over to drool over the frame rate count & response, especially with the up times & lack or roar of noisy fans .... but maybe I'm projecting too much out of this digital hobby.  Maybe I'll get a hint of my future out of this experience.
    Thanks for taking the time to follow my escapade to tweak the DRAM frequency form 1200 MHz to 1600 MHz, get that FSB up a bit, and see what this Quad-Core can handle for a CPU Ratio without cooking the whole combination into non-existence.

  • Are there limitations to running queries inside of transactions?

    I'm seeing altered or no results when running under a transaction:
    context = getXmlManager().createQueryContext();
    XmlQueryExpression.execute(XmlTransaction, XmlQueryContext, XmlDocumentConfig)where:
                TransactionConfig txnConfig = new TransactionConfig();
                txnConfig.setNoWait(false);
                txnConfig.setSync(true);
                transaction = getXmlManager().createTransaction(null, txnConfig);and         XmlDocumentConfig docConfig = new XmlDocumentConfig();
            docConfig.setLockMode(LockMode.RMW);
            docConfig.setLazyDocs(false);The XmlContainer and Environment are transactional. There are node indexes on these containers.
    If I use: XmlQueryExpression.execute(XmlQueryContext, XmlDocumentConfig) all is fine.
    My test conditions are single threaded dbxml 2.2.13 on Windows 2003 Server. Later I'll need to run multi-threaded.
    Any thoughts (aside from upgrade)?
    Known, confirmed problem?
    Are there any limitations to what can be inside of a query that is run inside a transaction?
    Can the query span containers?
    Any impact from setDefaultContainer?
    Does document{ } work any differently?
    Do FLWR queries behave differently?
    Thanks in advance,
    Douglas Moore

    John,
    I'm actually pointing out a functional difference while running with a single threaded non-stressful unit test.
    The inner <report> elements do not show up when transactional api is used.
    Inlining the FLWOR expression does not change the situation.
    I now have the 6 patches applied to dbxml 2.2.13 and see the same results as an unpatched dbxml library.
    My query looks like:
    declare function local:get_ordered($max_reports as xs:decimal)
            for $reports in collection("per-system.dbxml")/reports-catalog/report
                            where $reports/@type = "ABC"
            return $reports
    document{
    <reports-catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.persistable.org/reports-catalog.xsd"
            mime-type="application/pdf" sequence="65241390550" id="ABC">
                    local:get_ordered(1)
    </reports-catalog>
    } Thanks,
    Douglas Moore

  • Decimal places in report painter

    Hi experts.  I have a financial report written in report painter.  I want to show two decimal places on a single row.  The rest of the report is in whole dollars, but this one row is a percentage, so I want to show decimal places.  I know that you can format an entire column, but I can't figure out how to format a single row.  Can anyone help?
    Thanks
    Janet

    YES U CAN
    SAME AS ABOVE PROCEDURE
    BUT SELECT ROW INSTEAD OF COLUMN
    Edited by: Anil Kumar Potnuru on Feb 10, 2009 9:02 PM

  • Issue with report Script. DECIMAL option not working properly

    Hi All,
    One of my report scripts has the option { decimal n } set. Now I am getting this to work only for account members which has a '%' symbol in the name. For all other accounts, data is being exported as a whole number even though the cube has decimal values. This is an ASO cube. Any thoughts?
    Thanks,
    N

    Here you go,
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    <sym
    {supall}{ROWREPEAT}{tabdelimit}{nameson}{noindentgen}{ SUPCOMMAS }{SUPMISSINGROWS}{ DECIMAL  9}
    <COLUMN (Period)
    July August September October November December January February March April May1 June
    <ROW(Year,Scenario,Version,Currency,Entity,Location,HSP_Rates,Stage,Business_Category,"BD_Responsible","Type_Of_Program","Client",Account)
    //{ OUTALTNAMES }
    &DCCurrFiscalYr
    &CurrScenario
    &CurrVersion
    "HSP_InputValue"
    "USD"
    <LINK(<LEV (Entity,0))
    <LINK(<LEV (Location,0))
    <LINK(<LEV (Stage,0))
    <LINK(<LEV (Business_Category,0))
    <LINK(<LEV (BD_Responsible,0))
    <LINK(<LEV (Type_Of_Program,0))
    <LINK(<LEV ("Client",0))
    "Net_Revenue"
    "552"
    "500"
    "501"
    "503"
    "Contribution"
    "Contribution %"
    "SD_Costs"
    "SD Margin"
    "SD Margin %"
    "Indirect Costs"
    "PBT"
    //"PBT %"
    "Total Tax"
    "PAT"
    //"PAT %"
    "Manpower Total"
    "Billable agents"
    "Total Seats"
    !

  • Report generation toolkit excel, decimal?

    Hello!
    I have problem with the report generation toolkit excel!
    I only gets 3 decimals in excel?
    Ex. In labview = 0.0458943 when i send it to excel = 0.046.
    I use Excel easy table.vi to transfer my array, should I use someting else?
    Ive already tryid to increase the decimal in excel but i doesent work.
    Labview 8.6
    Report generation toolkit ev 113 

    Johan1300,
    It sounds like you are writing a 2-D Array of doubles to excel.  The Excel Easy Table.vi converts numerics to strings before writing data to excel.  It is written to always use 3 decimal places.  You need to convert your 2-D array of doubles to strings before writing the info to excel.  Here are a couple of ways to make the conversion.  The top method is based on how the Excel Easy Table.vi makes the conversion.  Note that in both examples the format string constant sets the number of decimal places to 8.
    Message Edited by Wayne.C on 04-08-2009 09:12 AM
    Attachments:
    2D Doubles to 2D String.png ‏6 KB

  • Decimal point  for Price value in  ALV Report

    HI,
    I have created ALV report,
    I have 2 price fields in ALV report
    For first field i have to display  in the below format.
    If the value of the field is 3601152 then I have to display it as 36011.52 
    For second field I have to display in the below format
    if the  value is 2494 then I have to display it as 2495.00
    else if the value is 3498.73,then I need not to do anything.
    that means If there is no decimal point, then I have to keep decimal point.
    Thanks&Regards
    RamaDevi

    HI,
    you can work with search and concatenate.
    value1 = 3601152
    search value1 for '.' .
    if sy-subrc eq 0.
      concatenate value1(5) '.' value1(2)+5 into text.
    Or value1 = value1 / 100.
    endif.
    Regards
    Nicole

  • Decimal upto 3 places in ALV report output

    Hi Experts
    My requirement is that User wants to have 3 decimal places in report output.I have used type P decimal 3,also have used field catalog Decimals_o = '3' .In the report output Lets say Previously it was 123 now after the changes its coming 123.000 but its only virtual when i try to edit that it takes only upto 4 characters like 123.???I think because the datatype defined is NUMC and its limited to 4 characters only so it is not allowing to enter more than 4 characters??Please suggest me a way?sud I change   the NUMC to 6 characters as it is standard??sud I make changes in it??
    Thanks & Regards
    Shankar

    Hi
    i have tried that but still it takes 4 characters in output.pasting the code
    1)The declaration part
    DATA : gv_gjahr TYPE gjahr,
           gv_plant TYPE cciht_ial-iaplant.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-003.
    SELECT-OPTIONS: s_plant FOR gv_plant NO INTERVALS NO-EXTENSION OBLIGATORY,
                    s_gjahr FOR gv_gjahr NO INTERVALS NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    CONSTANTS : c_x          TYPE c VALUE 'X',
                c_celltab(7) TYPE c VALUE 'CELLTAB',
               c_gjahr(5)   TYPE c VALUE 'GJAHR',
                c_april(5)   TYPE c VALUE 'APRIL',
                c_may(3)     TYPE c VALUE 'MAY',
                c_june(4)    TYPE c VALUE 'JUNE',
                c_july(4)    TYPE c VALUE 'JULY',
                c_augus(5)   TYPE c VALUE 'AUGUS',
                c_septe(5)   TYPE c VALUE 'SEPTE',
                c_octob(5)   TYPE c VALUE 'OCTOB',
                c_novem(5)   TYPE c VALUE 'NOVEM',
                c_decem(5)   TYPE c VALUE 'DECEM',
                c_janua(5)   TYPE c VALUE 'JANUA',
                c_febru(5)   TYPE c VALUE 'FEBRU',
                c_march(5)   TYPE c VALUE 'MARCH',
                c_rw(2)      TYPE c VALUE 'RW',
                c_ro(2)      TYPE c VALUE 'RO'.
    TYPES : BEGIN OF ty_envtran,
              envno TYPE numc3,
              envlx TYPE zehenvlx,
              plant TYPE ccihe_iaplant,
              gjahr TYPE gjahr,
              april  TYPE numc4,
              may   TYPE numc4,
              june  TYPE numc4,
              july  TYPE numc4,
              augus TYPE numc4,
              septe TYPE numc4,
              octob TYPE numc4,
              novem TYPE numc4,
              decem TYPE numc4,
              janua TYPE numc4,
              febru TYPE numc4,
              march TYPE numc4,
            END OF ty_envtran.
    DATA: gt_envtran TYPE TABLE OF ty_envtran,
          gs_envtran TYPE ty_envtran,
          gt_envmast TYPE TABLE OF zehs_envmast,
          gs_envmast TYPE zehs_envmast.
    DATA: save_ok     LIKE sy-ucomm,
          g_container TYPE scrfname VALUE 'ZEHS_ENVIRONMENTS_CC1',
          g_grid  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container,
          gt_fieldcat TYPE lvc_t_fcat,
          gs_layout   TYPE lvc_s_layo,
          g_success   TYPE c,
          gv_success  TYPE c,
          gt_envtran3 TYPE TABLE OF ty_envtran,
          gs_envtran3 TYPE ty_envtran,                          "#EC NEEDED
          gt_envtran2 TYPE TABLE OF zehs_envtran,
          gs_envtran2 TYPE zehs_envtran.
    DATA: BEGIN OF gt_outtab OCCURS 0.     "with header line
    DATA: envlx TYPE zehenvlx,
          gjahr TYPE gjahr,
          april TYPE numc4,
          may   TYPE numc4,
          june  TYPE numc4,
          july  TYPE numc4,
          augus TYPE numc4,
          septe TYPE numc4,
          octob TYPE numc4,
          novem TYPE numc4,
          decem TYPE numc4,
          janua TYPE numc4,
          febru TYPE numc4,
          march TYPE numc4,
          plant TYPE ccihe_iaplant,
          envno TYPE numc3.
    DATA: celltab TYPE lvc_t_styl.
    DATA: END OF gt_outtab.
    DATA: gs_outtab LIKE LINE OF gt_outtab.
    2)The Field catalog part
    LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN c_APRIL.
            ls_fcat-scrtext_l = 'April'(c01).
            ls_fcat-scrtext_m = 'Apr'(c13).
            ls_fcat-scrtext_s = text-c13.
          WHEN c_MAY.
            ls_fcat-scrtext_l = 'May'(c02).
            ls_fcat-scrtext_m = 'May'(c14).
            ls_fcat-scrtext_s = text-c14.
          WHEN c_JUNE.
            ls_fcat-scrtext_l = 'June'(c03).
            ls_fcat-scrtext_m = 'Jun'(c15).
            ls_fcat-scrtext_s = text-c15.
         WHEN c_JULY.
            ls_fcat-scrtext_l = 'July'(c04).
            ls_fcat-scrtext_m = 'Jul'(c16).
            ls_fcat-scrtext_s = text-c16.
          WHEN c_AUGUS.
            ls_fcat-scrtext_l = 'August'(c05).
            ls_fcat-scrtext_m = 'Aug'(c17).
            ls_fcat-scrtext_s = text-c17.
          WHEN c_SEPTE.
            ls_fcat-scrtext_l = 'September'(c06).
            ls_fcat-scrtext_m = 'Sep'(c18).
            ls_fcat-scrtext_s = text-c18.
          WHEN c_OCTOB.
            ls_fcat-scrtext_l = 'October'(c07).
            ls_fcat-scrtext_m = 'Oct'(c19).
            ls_fcat-scrtext_s = text-c19.
          WHEN c_NOVEM.
            ls_fcat-scrtext_l = 'November'(c08).
            ls_fcat-scrtext_m = 'Nov'(c20).
          WHEN c_DECEM.
            ls_fcat-scrtext_l = 'December'(c09).
            ls_fcat-scrtext_m = 'Dec'(c21).
          WHEN c_JANUA.
            ls_fcat-scrtext_l = 'January'(c10).
            ls_fcat-scrtext_m = 'Jan'(c22).
            ls_fcat-scrtext_s = text-c22.
          WHEN c_FEBRU.
            ls_fcat-scrtext_l = 'February'(c11).
            ls_fcat-scrtext_m = 'Feb'(c23).
            ls_fcat-scrtext_s = text-c23.
          WHEN c_MARCH.
            ls_fcat-scrtext_l = 'March'(c12).
            ls_fcat-scrtext_m = 'Mar'(c24).
            ls_fcat-scrtext_s = text-c24.
    Note: I have already tried giving DECIMALS_O,OUTPUTLEN,DATATYPE,FIELDCAT-REF_FIELD ,FIELDCAT-REF_TABLE BUT but still it takes upto 4 characters in output.

  • ALV report - remove of decimal values

    Hi experts,
    In my ALV report, output table having decimal values, ex:90000.50, i want to display only 90000,
    can help any one inthis.
    Thanks in advance.
    Regards
    Rams

    Hi,
    for that particular field in Field catalog..
    <ur field cat>-decimals_out = 0.
    see this sample code.
    type-pools: slis.
    DATA: begin of itab6 occurs 0,
    chk type c,
    a type p decimals 2,
    b type p decimals 2,
    c type c,
    end of itab6.
    data: ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    wa_layout TYPE slis_layout_alv.
    itab6-a = '1.12'.
    itab6-b = '2.25'.
    itab6-c = '+'.
    append itab6.
    append itab6.
    append itab6.
    append itab6.
    ls_fieldcat-fieldname = 'A'.
    ls_fieldcat-seltext_m = 'A'.
    append ls_fieldcat.
    ls_fieldcat-fieldname = 'B'.
    ls_fieldcat-seltext_m = 'B'.
    ls_fieldcat-decimals_out = 0.  "this ll do
    append ls_fieldcat.
    ls_fieldcat-fieldname = 'C'.
    ls_fieldcat-seltext_m = 'C'.
    append ls_fieldcat.
    wa_layout-box_tabname = 'ITAB6'.
    wa_layout-box_fieldname = 'CHK'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    it_fieldcat = ls_fieldcat[]
    IS_LAYOUT = wa_layout
    TABLES
    t_outtab = itab6[].
    Cheers,
    jose.

  • BI Report showing NULL for decimal numbers

    Oracle Business Intelligence 11.1.1.7.0
    In an earlier version of BI we had an issue with our Reports where any numbers with digits after the decimal would return a blank result in the report (the correct numbers would still show up in the Data Model's sample data), but only when viewed as an Interactive report (PDF views were fine).  However, after an upgrade it happened with any report views, not just the Interactive Report view.  I found a work-around for this were I CAST each number column to Double Precision, and then it would show up fine.  That worked for a few months, only now it doesn't work at all.  After speaking with the system admin, I do no think any upgrades happened between when the CAST solution started working and when it stopped working.
    Has anyone else witnessed this issue?

    Okay, apparently the CAST solution is still working, just not when I use a SUM (have not tested other aggregates).  Creating a sub-query like below, however, works:
    SELECT CAST(result AS DOUBLE PRECISION)
    FROM
    SELECT SUM(col_1) AS result
    FROM table_1

  • Key figure, number of decimal places are not showing in report output

    Dear experts,
    At cube level PO qty value is getting 0.010 where as in bex report output of PO qty showing as 0. I have chosen decimal places as 0.000 in key figure additional properties tab. In query designer also I have chosen no of decimal places as 0.000 in display propertiesu2026please help me out. How can I get 0.010 value in report o/p.
    Thanks in advance.
    Srivalli.

    Hi,
    Try to run the query in RSRT. CHeck if you are getting the same output. Also make sure that in the reports all the filters are same as you have applied in the info -cube to see the data.
    - Jaimin

  • For currency at the time of report generation it is considering decimal

    Dear Team,
    I struck  with this issue from the long time and I really appreciate if any body help me on this,
    Des: Delivery and Billing happened, the amount is 1234/-, the dispalying the same in the documents but while generating the report from VBRK and VBRP for one country it is showing as 12.34/-
    The report is ZVF05N,
    We checked for reference WAERK is also assigned for NETWR
    Best part is in the same report for country currecy it is giving the correct info but only for 1 country it is considering it is taking decimal point,
    Please provide the some input for this

    The output should be done with a WRITE statement with CURRENCY addition specifying the currency, to avoid this issue. Ask your developer to qualify all places where the amount is output with either
    WRITE <amount> CURRENCY <3 character currency key>.
    OR
    WRITE <amount> TO <output variable> CURRENCY <3 character currency key>.

  • Decimal delimiter and excel report generation

    Hello,
    I've a problem with the "Report Generation Toolkit" while trying to generate reports in MS Excel.
    I first select data from an Access database table. Although the database table contains information
    in string-format as well as numbers, in the first instance it'll be passed as an array of strings to the
    report generation vi's (generate easy table).
    While my computer's region settings (WinXP) are always set to german standard I now get different
    results if I on the one hand try to generate a report table in Word-format (Word Easy Table)  and
    on the other hand a report in Excel-format (Excel Easy Table).
    While all numbers are displayed correctly within the Word-table, they aren't within the Excel-table.
    Thereby (Excel-table) the numbers are converted falsely as shown below:
    0,12345 -> 0,12345 (values < 1 are displayed correctly)
    1,2345   -> 12.345 (false)
    In my opinion there's a problem with the decimal delimiter. Does anybody have an idea of how to maybe
    modify this way of working only within my application without changing my computer's region settings?
    Thanks & Greets
    Michael

    On the one hand you can configure LabView to either use the localized decimal point or not (Menu Tools-->Options->Frontpanel->Use localized decimal point), on the other hand you can format singlse strings either with or without using the localized decimal point. The VI "format sting.vi" can use the format-sting %.; or %,; to define the decimal point. (Just make a double-left click on the VI to start the format-string editor for help).

Maybe you are looking for

  • WHY---------???? WHY can't I use my bluetooth for voice commands with the driods?

    I purchased a droid1 and found out very quickly that my bluetooth COULD NOT BE USED WITH THE DROID OR VOICE COMMANDS-----IT IS NOT A HANDS FREE DEVICE!! I paired my bluetoot with the droid and expected to make calls as I did with my OLDER phone but N

  • Help! I can't properly sync my 5530 music files us...

    I need help guys. I just bought a Nokia 5530 Xpress Music and tried out syncing my phone's files using Ovi Suite so I can easily retrieve them if ever they get deleted when I update my phone's firmware. When I synced my files, everything else worked

  • Not receiving some emails

    I've had my Blackberry Curve 8330 (Verizon wireless) for just over a month.  Everyday my Blackberry doesn't receive some of my emails.   Here's an example of what happens.  I get of my emails sent to my blackberry & usually look at the right way, the

  • NB520, Replaced display, only work with AC power, not work with battery

    Hi I just replaced a broken display on my 7 months old Toshiba NB520 and now it only works with AC power. The battery icon shows 52% but not charging. When I plug out the AC power, it turns off. Help

  • Configuring email alerts in Ops Center

    Hi all, I have been struggling quite a while to get email alerts working from Ops Center with no success in 11g nor 12c. In the Ops Center GUI, Administration -> EC -> Local Users -> configured user to receive all alerts and emails. I have also confi