Remove decimal in formula

i have a date field which i extract the month and year in a formula from the date.
when i place it in the report it displays with 2 decimals at the end of the month and year
how do remove the decimals. 
month({USR_CR_ALERTHIST;1.bkdate})&" /  "&year({USR_CR_ALERTHIST;1.bkdate})
displaying as
1.00 / 2010.00
would like to see 01/2010

ToText({USR_CR_ALERTHIST;1.bkdate},"MM/yyyy");

Similar Messages

  • To Remove decimal digit in number field

    Hi experts
    any one can tell me the function in Crystal Report for removing decimal digits in a number type field. like field value is 34.00 should be 34.
    Regards
    Gorge

    Hi,
    use "round(value,dec places)" formula that is there in  functions in crystal report.
    Rgds,
    Premraj

  • Removing decimal in mapping

    Hi,
    How do I remove decimal from float (source) to unsigned integer (target) in graphical mapping?
    For eg:
    Source = 1500.23
    Target = 150023
    Reg,
    Shobhit

    If you want a quick way of just letting numbers to pass, use:
    return a.replaceAll([^0-9], "");
    in a UDF.
    Regards,
    Henrique.

  • Remove decimal points

    Hi,
    how to remove decimal points from all the columns in table in obiee
    thanks

    hi
    add one decimal point
    is this the same? or any?
    Cheers

  • To remove decimal places and round

    hi all ,
    select       (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                (((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000)   )
                 when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
             (   ((nvl(H.CLASS_V_CEMENT,0)*94)/2000)   ) 
            when F.ITEM_UOM =  'Pound' then
          CEIL(  ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
           end)*(j.opn_value/2))  SUM_MAT_ACT_TON ,--------transport
                       sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
          when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
                nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound' then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end) SUM_sload ,    ----sload
       sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
         -- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
              --  nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound'  and F.BLEND <> 'PH'then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end) BLENDING
      ,e.opn_job_desc
         FROM xxnp_opn_joblog_001 E,
              XXNP_OPN_JOBLOG_EST_002   F,
              XXNP_OPN_JOBLOG_STAGE_002 G,
              XXNP_OPN_JOBLOG_SLURRY_003 H,
        XXNP_OPN_JOBLOG_RES_005 J,
         MTL_SYSTEM_ITEMS_B P
          WHERE E.OPN_JOB_DESC   = 'K/D/SP158/SA399/1338/D/0510/1' AND
            E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
         and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
           AND p.ORGANIZATION_ID='103'
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
                                    GROUP BY E.OPN_JOB_DESC,j.opn_value
    o/p  i am getting
    SUM_MAT_ACT_TON      SUM_SLOAD                         BLENDING                                   OPN_JOB_DESC
    11587.7954154787         1957.62401925833               1454.62401925833                       K/D/SP158/SA399/1338/D/0510/1
    well can anyone guide me on  obtaining the following output (to remove decimal places and round )
    SUM_MAT_ACT_TON      SUM_SLOAD                         BLENDING                                   OPN_JOB_DESC
    11588                           1958                                      1455                                          K/D/SP158/SA399/1338/D/0510/1thanking in advance
    Edited by: makdutakdu on May 25, 2010 12:48 PM

    select      round( (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                (((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000)   )
                 when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
             (   ((nvl(H.CLASS_V_CEMENT,0)*94)/2000)   ) 
            when F.ITEM_UOM =  'Pound' then
          CEIL(  ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
           end)*(j.opn_value/2)))  SUM_MAT_ACT_TON ,--------transport
                       round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
          when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
                nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound' then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end)) SUM_sload ,    ----sload
       round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
         -- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
              --  nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound'  and F.BLEND  'PH'then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end)) BLENDING,
       e.opn_job_desc
         FROM xxnp_opn_joblog_001 E,
              XXNP_OPN_JOBLOG_EST_002   F,
              XXNP_OPN_JOBLOG_STAGE_002 G,
              XXNP_OPN_JOBLOG_SLURRY_003 H,
        XXNP_OPN_JOBLOG_RES_005 J,
         MTL_SYSTEM_ITEMS_B P
          WHERE E.OPN_JOB_DESC   = E.OPN_JOB_DESC  AND
            E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
         and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
           AND p.ORGANIZATION_ID='103'
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
                                    GROUP BY E.OPN_JOB_DESC,j.opn_value

  • Remove .0 from formula

    i created a formula
    totext({COMPONTD.CPPODT},' ',0)
    to remove the .00 from the field(the field is a number to start with)
    then i use
    left(totext,3)
    i get an error, not sure what the error is because it doesnt tell,
    is the above formula to remove the .0 correct?

    If the formula is totext({COMPONTD.CPPODT},0) this will round the number like 57.90(number) becomes 58 (string)remove everything after decimal and including decimal.
    If you use totext({COMPONTD.CPPODT},'0') then the 57.90(number) becomes 57(string).
    Try to use which ever is relavent for your requirement,

  • Query to remove decimal point

    Hi all,
    I have a table A, in which there is a column currency with integer values having decimal point, i have to just remove the decimal and keep the number as it is.
    Ex:- A number 23.45 should be 2345
    A number 17.9 should be 179
    I have to do this for all the currency values of the table A.
    Can someone kindly help me with a query.
    regards,

    Hi,
    user10243788 wrote:
    Thank you all for replying,
    The problem is that there are different rows in table A, i.e many values, so i think we would have to pass this value as variable in runtime.Sorry, I don't understand.
    What value do you think you have to pass as a variable? The decimal point character ('.' in America, ',' in Germany)? The number of decimal places? Some value, such as 175?
    select to_number(replace (1.23, '.')) from dual;
    or
    SELECT REPLACE (crncy, '.') AS crncy_w_o_dot
    FROM table_x;
    how can i use the above query like a loopAny query is like a loop; it finds each row, and does the same sort of thing to each one.
    i.e if i have many values like below in the column currency, how can i change them all.Are you saying you have different columns that need to be transformed?
    If so, the answer depends on what your data is like, what results you want, and what version of Oracle you're using..
    If what you want to do is simple, and the number of columns isn't to big, the best thing is to repeat the formula for every column.
    Other options are likely to be slower.
    You could write a user-defined fucniton to do the transformation.
    You could unpivot the table, so that all the columns to be transformed become one column. You could then pivot the results back to the original number of columns, if necessary.
    17.5
    23.456
    89.9343
    43.98121thanks again for your help,Is this your sample data? It looks like just one column. Post some sample data as CREATE TABLE and INSERT statements.
    What are the results you want from that data? If you need to pass some parameter to the query, give a couple of examples of different parameters and the different results they produce given the same sample data.
    Whenever you have a question, say what version of Oracle you're using.
    Edited by: Frank Kulash on Jul 13, 2010 11:05 AM

  • Remove decimal & zeros in variable

    Hi,
    How to remove zero & decimal point in variable
    for eg.
    insted 5.0000 it should priint 5
    Thanks

    Dear Imran,
    Please use this code and you can vary the difference.
    data: menge type MENGE_D,
          con type i,
          con1 type char5,
          con2 type p,
          con3 type n.
          menge = '100.00'.
          move menge to con.
          move menge to con1.
          move menge to con2.
          move menge to con3.
         con1 = menge.*
         con2 = menge.*
         con3 = menge.*
          write: 'i', con,
                 'char', con1,
                 'p', con2,
                 'n', con3.
    i think this will be help ful to you
    Regards,
    Kiran Kumar

  • Remove decimal out of an equation to send to a payment gateway

    i have a value that currently has shows a decimal
    @$amount = $_POST['amount'];
    i need the decimal to show until the variable $amount is sent to the payment gateway
    what is the best way to remove the decimal from the variable
    so a value of e.g
    250.59
    will be sent as 25059
    thanks

    would multiplying by 100 also work?
    $amount = "250.59";
    echo $amount*100;
    // 250.59*100 displays 25059
    $amount = str_replace(".","",$amount);
    echo $amount*100;
    // 25059*100 displays 2505900
    Your original question specifically asked how to remove a decimal, not how to multiply a variable by 100.
    best,
    Shocker

  • Remove decimal & padding 0

    using Oracle 9i
    I need to remove the decimal from a given number
    123.45 should show as 12345 i tried this
    create table tmpTBL
    as
    select 25.750 amt from dual
    union all
    select 12 from dual;
    select replace(amt,'.',null) from tmpTBL
    this works fine, but what if the col has amouts without decimals
    123 should show as 12300
    if decimal is there then remove it
    else pad the number with '00'
    how do i achieve this?
    Thanks

    Why not simply multiply by 100 ?Perhaps because that assumes no more than 2 decimal places?
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 25.750 as num from dual union all
      2             select 12 from dual union all
      3             select 123 from dual union all
      4             select 123.4 from dual union all
      5             select 123.45 from dual union all
      6             select 123.456 from dual)
      7  -- end of test data
      8  select num*100 as num_x_100
      9        ,replace(to_char(num, '999999.99'),'.') as num_stripped
    10* from t
    SQL> /
    NUM_X_100 NUM_STRIPP
          2575      2575
          1200      1200
         12300     12300
         12340     12340
         12345     12345
       12345.6     12346
    6 rows selected.
    SQL>

  • Remove Decimal Zeros

    Hello,
    I managed to remove the default Zeros in the "Net_Price" and "Quantity" field by using the "Set_attribute_null" method.
    But, after entering the value into the field and clicking on the button to execute the BAPI, it is inserting decimal zeros again after the values. I want to remove this decimal zeros. Is there any way of doing this? I would greatly appreciate your help.
    Regards,
    Gopal.

    Hi Gopal ,
    there is a pretty print option for this . u cn  set special formatting properties using the context editor or the methods GET_ATTRIBUTE_FORMAT_PROPS and SET_ATTRIBUTE_FORMAT_PROPS of IF_WD_CONTEXT_NODE_INFO.
    the attribute formatting can be :
    1 Display leading zeros
    2 Position of the leading sign
    3 Input Compression
    4 Time output format
    u wud like to see more on the SAP online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3a/2232666aeb45f4b759848a4caf9c8b/content.htm
    regards,
    amit

  • Remove decimal from displaying in prices?

    I would like to remove the decimal from my product price so it will be displayed Kr.390  or my first choice if anyone knows how to solve it is Kr. 390,-
    Costs are now presented Kr.290,00 that is not correctly.
    Hope someone has a solution to this ...

    Here's a link that contains a simple code snippet that will do this for you - http://www.twoblokeswithapostie.com/blog/2013/05/27/eliminating-decimals-product-prices-bu siness-catalyst/
    You may have to replace . with , in price = price.split("."); if your prices have a comma in them instead of a dot.
    Cheers,
    Mario

  • Removing Decimal Places from Graph labels

    One axis on my graph is showing decimal places despiting formatting the report field to show 0 places - the graph is reading decimal places directly from the database underneath the report .  Other than editing each axis label manual (or editing the original database field) does anyone know of another way I can elimate the decimal places from the graph?

    That solution only works for the x-axis but not the y-axis (or the other way round, depending on whether the chart is horizontal or vertical).
    The values of the y-Axis are formatted according to the default Number Formatting. If you can afford this, change the default number formatting to 0 decimal places.
    Another workaround would be to create a formula. Let's say amount was your database field. Then the formula would be
    ToText({AMOUNT},0)
    Put that in your chart instead of the original database field.
    Cheers,
    Florian

  • API/RAS - is it possible to remove suppress condition formula from report Section?

    I need to modify a report on the fly so that sometimes the 'Suppress (no drill down)' condition formula is completely removed from a report Section. Optionally I would like to just modify the formula to return FALSE so that the section appears.
    It seems like the code below works when the section format 'EnableSuppress' option is TRUE, but does not seem to do anything when there is a suppress formula for the section.
    Is this possible to do?
    Thanks
    Helen
    private void RemoveSuppress(CrystalDecisions.ReportAppServer.Controllers.ReportSectionController ctlSec
        , CrystalDecisions.ReportAppServer.ReportDefModel.Section sect)
        CrystalDecisions.ReportAppServer.ReportDefModel.ISCRSectionFormat
    secFmt = new CrystalDecisions.ReportAppServer.ReportDefModel.SectionFormat(); // also tried getting the current section format object
        secFmt.EnableSuppress = false;
        secFmt.ConditionFormulas.RemoveAll(); // *** Should ensure the condition formulas are removed correct?
        ctlSec.SetProperty(sect, CrystalDecisions.ReportAppServer.Controllers.CrReportSectionPropertyEnum.crReportSectionPropertyFormat, secFmt);
    private void doOutput(CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument oras)
        CrystalDecisions.ReportAppServer.Controllers.ReportSectionController
            sect = oras.ReportDefController.ReportDefinition.FindSectionByName("DetailSection1");
        RemoveSuppress(oras.ReportDefController.ReportSectionController, sect);
        CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray
            boByteArray = oras.PrintOutputController.Export(RASDefModel.CrReportExportFormatEnum.crReportExportFormatPDF, 1);
        boByteArray.Save(@"c:\temp\r.pdf", true);

    Hi Helen,
    Not sure why or how I missed this one but see this post for more info:
    http://scn.sap.com/thread/3712393
    Don

  • BEx - Editing or removal of Local Formula

    Hi
    I have a requirement to have a local calculation in one of my BEx reports. I am able to add new formula and get values successfully. But I am totally lost on how to edit the formula or remove when not needed.
    Any help is high appreciated
    Thanks
    Srivida

    It is quite simple. You just need to right click on that New Formula KF and choose to delete it.

Maybe you are looking for

  • How do i print out the keyboard viewer?

    I use different languages and need to use the different special characters so am switching among different keyboard layouts frequently.  I use the (on-screen) "Keyboard Viewer", but would like to print out the "Keyboard Viewer" for each language that

  • IPhone 4S will not charge or connect to iTunes

    For the last week or so, my iPhone has been dying very quickly, I end up having to charge it 4 to 5 times a day, and when it does charger, it always overheats. Suddenly, my iPhone has stopped charging and it will not connect to iTunes. I have tried r

  • Pages version is too old!

    I want to open a pages document.  It says my version for pages is 4. something.  And it is too old to open document.  When I go to the App store, it says it is already downloaded and purchased.  I tried putting it in trash and then downloading it aga

  • Profit Center in Process order

    Dear All, Can any one explain me how the profit center gets populated in process order assignment tab in COR3? 1. From where it is picking the profit center (Is it pick from material master)? 2. Any configuration required to get filled automatically?

  • Spell Check on iPhone

    Is there a way to adjust my spell check settings? There is one word that I type and iPhone never remembers it in the memory?