FM to get only quantity without its decimal points

hi guys,
is there any FM that can enable to get only qty without its decimal points without rounding up.
e.g.: 500.12 , i need to get only 500 and exclude .12

Hi Ester,
U dont need any FM for that. You can use a simple logic like shown below:
data: lv_quant  TYPE p DECIMALS 3 VALUE '500.96'.
DATA: lv_out  type i.
lv_out = trunc( lv_quant ).
write lv_out. "this will have your result
Regards,
Prakash

Similar Messages

  • How to get only two digits after decimal point of an expression

    i am doing simple multiplication between two float numbers.
    both the numbers have two digits after decimal point.
    so naturally the result will have 4 digits after decimal point.
    i want to get only two digits after decimal point.
    help me please...

    If you just want to limit the displayed decimal places, you can do the following...
    import java.text.*;
    public class Formatting {
        public static void main(String[] args) {
            NumberFormat format = NumberFormat.getNumberInstance();
            format.setMaximumFractionDigits(2); //what you seem to want
            format.setMinimumFractionDigits(2); //if you always want at least 2 digits displayed
            System.out.println(format.format(12.345));
            System.out.println(format.format(12.0));

  • Need help getting the digits without the decimal

    I have a number such as 6711.00425532 , how can I get the 6711 without rounding this number up or down. In another words, I don't care with any number after the period, all I need is whatever the number before the period, as is.
    If the number is 23.02345,  I need to get just the 23
    If the number is 344.985430,  I need just the 344
    Is this possible?

    BYJ_wntrsnt wrote:
    I have a number such as 6711.00425532 , how can I get the 6711 without rounding this number up or down. In another words, I don't care with any number after the period, all I need is whatever the number before the period, as is.
    If the number is 23.02345,  I need to get just the 23
    If the number is 344.985430,  I need just the 344
    Is this possible?
    Fix it.
    <cfoutput>
    fix(6711.00425532): #fix(6711.00425532)#<br>
    fix(23.02345): #fix(23.02345)#<br>
    fix(344.985430): #fix(344.985430)#<br>
    fix(-6711.00425532): #fix(-6711.00425532)#<br>
    fix(-23.02345): #fix(-23.02345)#<br>
    fix(-344.985430): #fix(-344.985430)#<br>
    </cfoutput>

  • Quantity upto Four decimal points

    Hi,
    In Easy cost planning , I want to put quantity upto 4 decimal places but system allowing only upto 3 decimal.
    Pl suggest. It is very urgent.
    rgds

    Hi Venkat
    Thnks for the efforts.
    In CKCM , i selected My characters but field in that are uneditable. Can u explain briefly.
    Rgds

  • Sap Script : getting comma in place of decimal point & viceversa

    Hi experts
    In one Sap script for 2 currency fields comma is there in place of decimal point & viceversa.(But rest of currency fields are getting displayed correctly.)
    ex: 1426.88  is printed as 1.426,88
    please provide me solution as early as possible
    Thanks & Regards
    Swathi Vuddala

    Hi Swathi,
    Check this info.
    I am providing two ways with some sample code, you modify it accordingly to your code.
    THIS PROCEDURE IS BY CHANGING SETTINGS :
    In your user profile, change the decimal format you are currently using.
    System->User Profile->Own data.
    Go to defaults tab and then change your decimal notation.
    THIS PROCEDURE IS WITHOUT CHANGING DEFAULT SETTINGS:
    Report YH642_TEST.
    TABLES:
    mard.
    DATA : W_mard_labst type p decimals 3,
    w_dt1(18).
    data:
    W_N TYPE I.
    SELECT SINGLE * FROM MARD INTO MARD WHERE LABST = '10000.00'.
    WRITE: mard-labst .
    W_mard_labst = mard-labst.
    WRITE:/ W_mard_labst .
    w_dt1 = w_mard_labst .
    write W_mard_labst to w_dt1.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Merging two photos to get only one without shades

    Hallo ,
    I have two pics:
    and
    How could  I for to have only one image without shades?
    Which is the method that gives the best result with photoshop cc?
    Many thanks.

    Really don't matter to much in this case what picture is on what layer. The result should be "the same".

  • How do I create new photoshop doc using 3 decimal points without it defaulting to 2 decimal points?

    I am creating a new document in Photoshop at the following dimensions. 3.889"w x 6"h. After document is created I go check the canvas size or the Image size and it shows my document as 3.89"w x 6"h. How do I get Photoshop to allow 3 decimal points?

    I think that the way measure units work in photoshop, i try to draw a rectangle marquee and only two decimal point appear.
    I tried in indesign CS6 and 3 decimal work fine.

  • Any std funtion(s) for Zero-padded, 2 decimal value, without the deci point

    Hi,
    We want Zero-padded, two decimal value, without the decimal point. For example if it is 14.31, we need 001431.
    I have done "multiply" with 100 and "formatNumber" as '000000'
    SFIeld --> multiply * 100 --> formatNumber (000000) --> TField
    It works good for values with decimal like above 14.31, does it work for everything else too? I mean for 12 it is populating as 001200. Is this best approach? Is there any other std funtions or UDF sample available?
    Regards,
    N@v!n

    >
    N@v!n Kumar wrote:
    > Hi,
    >
    > We want Zero-padded, two decimal value, without the decimal point. For example if it is 14.31, we need 001431.
    > I have done "multiply" with 100 and "formatNumber" as '000000'
    >
    > SFIeld --> multiply * 100 --> formatNumber (000000) --> TField
    >
    > It works good for values with decimal like above 14.31, does it work for everything else too? I mean for 12 it is populating as 001200. Is this best approach? Is there any other std funtions or UDF sample available?
    >
    > Regards,
    > N@v!n
    public void convert_number(String[] FieldValue,ResultList result,Container container){
    FieldValue = FieldValue * 100;
    result.addValue(FieldValue);

  • Netwr without decimal point

    I need to write NETWR into a file without the decimal point. So I am looking to assign it to another variable. How to do this
    Say NETWR is 900.00
    then var = 90000

    Hi,
    Please try this.
    DATA: LV_NETWR1 LIKE VBAP-NETWR VALUE '900.00',
          LV_NETWR2 TYPE I.
    MOVE LV_NETWR1 TO LV_NETWR2.   
    WRITE: / LV_NETWR1, LV_NETWR2.
    OR
    DATA: LV_NETWR1 LIKE VBAP-NETWR VALUE '900.00',
          LV_NETWR2(6) TYPE C.
    MOVE LV_NETWR1 TO LV_NETWR2.
    TRANSLATE LV_NETWR2 USING '. '.
    CONDENSE LV_NETWR2 NO-GAPS.
    WRITE: / LV_NETWR1, LV_NETWR2.
    Regards,
    Ferry Lianto

  • How can see upto 2 decimal points

    how can i get the result upto 2 decimal points in a variable which is of
    double type, when i do
    system.out.print(variable name);

    Use DecimalFormat.
    DecimalFormat td=new DecimalFormat("0.00");

  • How to get only before decimal numbers in Bex formula

    Hi ,
    I am creating a fomula based on a KF. For eg is KF is
    4.9986, in my calculation I need to use 5 or 4 only.I can use with
    round off or not, but cannot consider the decimal points.
    If a value is 0.00543, I want to consider it as 0.
    Is there any function in BW for that.
    Also once I have it in the excel , I should see the same thing.
    Like in Excel I want to display KF1 as 0 if its 0.045.And my calculation or calculated KY is based on KF1.
    Thanks in advance, and let me know if it makes sense.
    Tina

    Hi,
    In the key figure properties, you can specify number of decimal places.
    Create a new formula in the Query Designer.
    (K1 > 0) * 2 + (K1 = 0) * 1 + (K1 < 0) * 0.
    You need to use boolean functions when you create a new forumula. Use this forumula:
    (K1 > 0) * 2 + (K1 = 0) * 1 + (K1 < 0) * 0.
    If K1 value is 5 then (k1> 0) => will given value as 1 and then you get the result as = 12 + 01+ 0*0 = 2
    Regards,
    Hareesh

  • HT1727 i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    If you bought them on your iPad then you will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to the Tones part of your computer's iTunes library and you can then sync them to your iPhone - ringtones are a one-time only download, so you won't be able to redownload them directly on your phone.

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • I mounted my external hard drive to a pc and now I don't have edit or write permissions on my Mac (read only). How do I get them back without erasing the drive?

    Hello all, I am a photographer and have my portfolio, edited and raw images backed up on a Seagate Free Agent External Hardrive. I mounted my external hard drive to a pc recently and now I don't have edit or write permissions to it on my Mac (read only). How do I get them back without erasing the drive and loosing my valuable work?

    If you re-format it you will lose all the data on it!!!!! So make sure you have backed up the drive or moved all the data on it to another external HD or the internal HD on your iMac.
    Below is an Apple Advice letter that explains how to format an external HD, it's written for Aperture but you can use the instructions to formate any external HD.
    http://support.apple.com/kb/HT3509

  • TS2988 I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    Yup, your question and Diane's answer helped me also. Tho' I had had problems before getting into the iTunes store I always managed to find a way. Today they had me blocked cold with the "Update to 10" advert no matter what I did. Other questioners are being told, incorrectly as it turns out, that they have to update their OS to accomodate iTunes 10 and upgrade to iTunes 10. I did the download which did not take up much more room on my crowded old hard drive and now I'm back in business.

Maybe you are looking for

  • Does not display e-mail toolbar

    In internet explorer my orange e-mail page shows a toolbar complete with smiles, etc. But in Firefox this toolbar is missing and the font is rubbish. Also, people are telling me they are not getting my e-mails occasionally.

  • LightRoom 5 closes immediately at splash screen

    I just updated Lightroom 5 via Creative Cloud.  There were also updates to Photoshop and Bridge.  When I attempt to open LightRoom, it closes as the splash screen opens.  Photoshop and Bridge work fine.  I did a restart of my Mac Pro after install. 

  • Oracle 9iR2 in RHLE3 AS... I need some patch files...

    Hi!!! I repost these topic. I need a patches to Install Oracle 9i(9.2.0.1) in RHEL3. I know that they are in metalink, but I don't login to metalink site... *^^* I need some patche files... opatch.zip p1866899_8171_linux.zip p2974664_11i_GENERIC.zip

  • Error in VL01N transaction

    hi everyone!! while running the VL01N transaction, i get a runtime syntax error in program "SAPLV45K" in the module name SD_SALES_DOCUMENT_ENQUEUE. it says that  "The data object "TI_VBAK" does not have a component called "CRM_GUID"." please help!!!

  • Transfer of records

    I need some recored to be transfers and my procedures take care of it.. now if there is an errors the counter bumps upp.. What my problem is that. the ocunter bumps up for just one record and it is not going on to the second record.. insed it exits..