Remove decimals in smartforms

Hello all,
How can we suppress decimals in smartform. Because I do not want it for a Quantity field.
Thanks.

Hi
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Regards
Pavan

Similar Messages

  • Remove Decimals in smartform for QUAN Field

    Hi,
    I want to display the Quantity field in smartform by Suppressing Decimals,
    if i give &field(13.0)& it is showing Error : Incorrect formatting option.
    The Same will work with CURR Field. Then what i have to give for QUAN Field.
    Thanks & Regards
    Praveen.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Mar 24, 2009 10:42 AM

    Hi Praveen,
    Maybe you can try it with &field(.0)& ,
    But it is possible that it is concerning a field which formatting is customized with transaction CUNI.
    Hope this will help.
    Gr.,Frank

  • Remove Decimals in Smartform not working

    Hi,
    I use
    &struc-field(C)&
    to hide decimals in a SF.
    The type of this field is LGMNG.
    This code works for all instances, except when the UOM is type ROL (Role). I have put a break-point in the SF just before the value is output and they are identical.
    But the output would be, for example say five units:
    a) 5 SH (Correct)
    b) 5,000 ROL (incorrect)
    Anyone seen this before?
    Thanks.

    Nick,
    thanks for the reply. I tried both of these already:
    &struc-field(.0)&
    &struc-field(C.0)&
    And, for both, I am told at runtime that (.0) is not a correct "formatting option for the field struc-field".
    I'm going to put a code block in to convert to an integer and display that. It will work - I just thought that (C) or (.0) would work too?
    Thanks.

  • How to remove Decimals in Quantity Objects in SAP BO Explorer View created on top SAP Bex Query?

    Hi,
    I created SAP BO Explorer report on top of SAP BEx Query.
    In SAP BEx Query, Decimals were hided but when i created OLAP Universe on top that SAP BEx Query and Created Index on top of Information Space in SAP BO Explorer and then created Exploration Views. But i'm getting Decimals in my Exploration Views where as SAP BEx Query in RSRT, no decimals were appearing.
    Can anyone suggest me how to remove decimals in SAP BO Exploration Views.

    Hi Ramana,
    I am not use how you connect to SAP BEx query (Via universe or BWA or HANA)
    What I could say is BWA and HANA, you cannot adjust this
    For universe, you could try in universe layer, there is note about this
    For BWA and HANA, this function might be enhanced but you 'd better raise OSS to SAP to check with them
    Best regards
    Alex yang

  • How to remove decimals in ALV

    How to remove displaying decimals in ALV report(using FM) ?

    HI Sri,
       Pass the values into a variable of type i.
    data : var type i,
             var1 type f value '2.111'.
        var = var1.
    or else
    change the field catalog this way ..
    <b>lv_cat-decimals_out = '0'.</b>
    Regards,
    Santosh

  • Blank page getting displayed how to remove it from smartform?

    I am using COMMAND line in smartform to display the second page on particular condition only. But because of it in display I am getting one blank page(extra page) at the end. Which should not appear. How to remove it?

    I guess there you must be using window/table/template there. If so try to decrease height of it and check .
    just drag up the window/template or table what u r using at last of the form. Only because of it extra space is generated and its taking you to next blank page.
    Edited by: Swetha on Jul 18, 2008 12:11 PM

  • Remove .00 in smartform display

    How to remove trailing zeroes in msartform display.
    I have a variable of type curr. Suppose the value is 23.00, then i want to display it as 23 only. What formatting option to give.

    Hi Priti,
    Try this...
    Declare a new field of type P with decimals 0.
    data: v_Curr like VBAP-ZWERT,
            v_newCurr type P decimals 0.
    v_newqunat = v_quant.
    Regards,
    Sachin M M
    Edited by: Sachin Mathapati on Jun 18, 2008 11:11 AM

  • Remove decimals when equal to 0 SAPSCRIPT

    Hello all,
    When printing a quantity field in a sapscript form, I would like to remove the decimals if they are all 0, but retain them if at least one is non zero.  For example:
    Quantity    -   Value to print
    1000.000   - 1000
    1000.020   - 1000.020
    1000.200   - 1000.200
    1000.002   - 1000.002
    I have tried many different things including formatting options C and Z (i.e. kwmeng(C)) but neither provide the correct result.  Also, kwmeng(.3) will not work because sometimes I want kwmeng(.0).  I want to avoid ABAP code in the print program and I know that it is possible because a different form in our system performs exactly this way without parsing the value into mantissa and decimal (though I cannot determine how). 
    Please post any thoughts or ideas.  Thanks!

    Hi,
    I think that if the quantity field is linked in the DDic structure/table to a unit of measure field, which content at runtime refers to a unit with 0 decimals, then it should work exactly as you expect.
    Sandra

  • Decimals in Smartforms

    Hi all.
    I have some variables on a smartform, but the decimals are specified dynamically on a table, for instance, the table tells me that a fields must be printed with 2 decimals, other field with 4 decimals, and so on.
    How can I print those fields with dynamic decimals??
    Thanx
    Jesus

    hi jesus,
    as kishan told... you can explicitily give the Decimal number like &v_numb(.2)& or
    &v_numb(.4)&...
    how many decimal  V_numb contains? and there should on condition to print 2 dicmals or 4 decimals...
    wht i suggest you is create two textelments... on is withe (.4) and another one with (.2)... then in Condition tab of the textelemten give the condtion..
    If you want more clear info... plese expliain on which condtion you want that
    <b>Please Close this thread.. when u r problem ise solved</b>
    Reward if Helpful
    Regards
    Naresh Reddy K

  • Remove decimals from the Bar Graph..

    Hii,
    How to remove the Decimals from the Bar Graph.
    I am using Reports 9i.
    I have created a Bar Graph in that It is showing the decimals bar. Actully in the query i hv used the inbuild function Round but while i run the report it is showing the decimals.
    It is showing if the value is under 10 then 3 decimals. Value is between 10 to 100 then 2 decimals. 100 to 1000 is 1 decimal.
    How can i remove the same.
    Also in the X axis how can I put the description of a field. While i take the description fiel it is showing some exception error.
    Description field width is 50 Now I am showing the code field only have 3 digits.
    Please check this also...
    remove decimal places
    Thanks in Advance
    Jithesh

    Hi Simran
    1. You can get proper variable without decimal point.
    2. Use function "FLOOR" and get the output value assigned to variable defined in step 1.
    data : wv_wh_no type p decimals 0 .   -
    you take as per your requirement
    Let say,
    wv_dec_no = 1.0001.
    w_no = FLOOR(wv_dec_no).
    Hope it will help you.
    Regards,
    Anil Salekar

  • How to remove decimals

    Hi Gurus,
    I have an IO having properties CHAR (30).
    Data is showing in the report like this eg.123.000000 ,for this IO.
    Can I remove the decimals?
    Please help.
    Points assured.
    Rgds,
    Sourav

    SAP,
    It would be advisable to change your ID to something else .... you might be asked to do the same by the other moderators also... try to give a name instead... makes it much easier and generally SAP would refer to the package on an SAP forum....
    Arun
    Sourav, you can store alphanumeric values in NUMC also - but where is the data coming from ... and how do you want it to be changed?
    Message was edited by:
            Arun Varadarajan

  • Remove Decimals from Number

    Hi Gurus,
    Before posting this thread, i serached SDN and i could not find proper answer for my requirement.
    My Question is , i have a text filed which will contain a numeric value. say .5 . the desired output should be 0050.
    means , it should remove the decimals from text and result output shuold contain 4 characters. (It should consider 2 numbers before decimal and 2 numbers after decimal)
    any suggestions pls..
    Thanks
    Meher

    See this code:
    v_number = '.5'.
    v_whole = trunc( v_number ).
    v_deci = frac( v_number ).
    concatenate v_whole v_deci into v_newnum.
    you may need to put the whole and deci into a character variable; just adjust accordingly...
    v_whole and v_deci are type N of length 2
    hope this helps
    Edited by: Chris C. on Jul 28, 2009 8:39 AM

  • Removing decimals when initial

    i declared variable 'ulimit' as type p decimals 2.
    ulimit  type p decimals 2.
    now its printing as ulimit = 12.00 (when no decimals are there)
                               ulimit  = 13.76(when decimals are there)
    but when no decimals are there i should print as ulimit = 12 only (not ulimit = 12.00).Please help.
    Thanks
    K Srinivas

    Hi Srinivas,
    Here is the sample code.
    REPORT  ZCC_TEST.
    DATA: ulimit type p decimals 2 VALUE '12.09'.
    DATA: STR(10) TYPE C.
    DATA: FINAL(10) TYPE C.
    DATA: LEN TYPE I.
    DATA: LEN1 TYPE I.
    STR = ULIMIT.
    CONDENSE STR.
    IF STR CA '.'.
      LEN = SY-FDPOS.
    ENDIF.
    LEN1 = LEN + 1.
    IF STR+LEN1(2) = '00'.
    FINAL = STR+0(LEN).
    WRITE: FINAL.
    ELSE.
    WRITE: ULIMIT.
    ENDIF.
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Jun 17, 2008 6:26 PM

  • Removing spaces in smartforms

    Hi Experts,
    I am printing Gross Qty & Net Qty separated by '/' .But when they are printing it was appearing like this (1,000 /     9.856.000,000 /     7.894.000,000), now i want to remove the spaces between them. so can any one help me in this issue.
    Thanks & Regards,
    Ramana.

    HI,
    for removing the space take these into a big character field
    and concatenate all the three variables into that big character field
    and then display this variable
    then it will work
    regards,
    Venkatesh

  • Remove decimales in an formula in MS Project 2010

    Hi,
    we have created an formula for cost (actual cost /cost * 100) so we can get an % off the cost used in the project.
    After som testing and trying we found on formula to use : (CStr([Actual Cost] / [Cost]) * 100) & "%"
    But the % number that appers is full off decimales, like 74,186543256 %.
    We dont want any decimal, just the hole number. Can you help us fix this?
    Jeanette

    Hi,
    Try to update your formula as following:
    Format(formula, "0%")
    See also this
    similar thread.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

Maybe you are looking for