How to get only the whole number omitting the decimals

Hi Experts,
I want to get only the whole number of a output field. For example  i am getting an output as 8.766 , i need only the value 8 .
I checked by moving the values to integer field but i am getting the rounding value 9 .
I want only the whole value 8.
Please help me out..
thanks & Regards.
Reena..

Hi Reena,
Unfortunately when you assign a packed number to a character, numeric or even a packed no without a decimal value SAP does a internal conversion of rounding these value. So direct assignment would won't work for your case.
You can use the following logic instead for getting the whole number.
DATA : LV_VAR1 TYPE STRING,
            LV_VAR2 type p DECIMALS 3 value '8.766'.
LV_VAR1 = lV_VAR2.   " LV_VAR1 would contain 8.766 without rounding.
write  : LV_VAR1(1).   " LV_VAR1(1) contains 8 which you can assign to any target variable.
I think there is no addition so as to avoid this internal rounding.
Try and let me know if it works for you..
Cheers
Ajay

Similar Messages

  • How to get a VAT ID/NUMBER on the invoices?

    I have a Pay-As-You-Go subscription and I was wondering where I could enter the VAT ID/NUMBER of my company so that it appears on the monthly invoices?
    When I navigate to commerce.microsoft.com/PaymentHub/Profile and select my Business Account I can edit all the fields and I can enter the company name and in the bottom my VAT ID but when I click on the Save button the Developer Tools is showing
    me a HTTP 500 error:
    {"ErrorMessage":"Error has occurred while processing the ajax call","ErrorCode":0,"ExceptionType":"System.MissingMethodException"}
    I cannot post an image because my account is not verified (yet).
    Thanks in advance

    Hi Gabriel,
    For your issue, I suggest you can contact Azure billing support for more details, It is the best choice for you currently.
    Please try this channel:
    http://www.windowsazure.com/en-us/support/contact/
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    Please do not try to send attachments in mail responses to forum messages. Please return to the forum and click Reply. You can then use the CAMERA icon to add your pictures. Looking forward to seeing what is wrong with your license screens - the general advice is simply to sign in, and everything is done. Make sure you use the SAME Adobe ID that you used to purchase, and check your account details to be sure the subscription is active.

  • HT1349 My iPad is disabled. I have only just been able to find the serial number on the back of my product by using a magnifying glass but even now from "Support" I get an unknown serial number advice. How can I get into it?

    My iPad is disabled. I have only just been able to find the serial number on the back of my product by using a magnifying glass but even now from "Support" I get an unknown serial number advice. How can I get into it?

    Explain exactly what happended - disabled how - and why are you trying to read the serial number? So that you can use it on this site?
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • When I sort a column of figures, it sorts by the first digit. How do I get it to sort by the whole number?

    I have a column of numbers, Specifically: 5.2, 42.0, 25.5, 2.4, 11.8, 0.9, 0.5. Notice how it has sorted by the first digit, not the whole number. In other words 5.2 is ranked higher than 42, because 5 is larger than 4. What do I turn on or off to make it behave sensibly?
    Any answers would be appreciated.
    Martin

    Hi Martin,
    Are the cells formatted as Text (left aligned, as in Column B)?
    Data Format in Column C
    Column C will sort as Number.
    Regards,
    Ian.

  • How to get ONLY the data shown in the plot area (Chart)

    My chart history length are 120000, often I don't need to save the whole
    buffer, just the data shown in the plot area?
    Richard Pettersen

    Hi Richard,
    you haven't said which version of LabVIEW you're using, so I've assumed 6.1, although this should be fine for older versions too.
    I put down a chart with a scrollbar, so I could go through the old data, and put an indicator attached to the x-scale->Range->minimum and x-scale->Range->maximum. These followed the displayed elements in the chart as I scrolled through the data. You can therefore link in the chart history (history data property of the chart) with a array subset to retrieve the appropriate portion.
    Be aware though. The minimum and maximum that the chart is showing on the x-scale may not be a part of the history data. E.g. if I set the history length to 1000 points, and produce on the first run, 1000 points, then my minimum and maximum are a
    t say 899 and 999. I then produce a second set of data, 1000 points long, and my min and max move to 1899 and 1999. As my history data is only 1000 long, I can scroll back to 1000 OK, but my min and max used as indexes don't relate anymore. The array of data is from 0 to 999, but my indexes can run from 1000 to 1999. So I have to add in a check that sees how much data is available before attempting to index, and then it's down to the flow of the program to try to work out where the data actually is (I'll leave that one to you - you'll need to keep track of the history data compared to the maximum (shown just after a point is added though this then makes a mess of your data! - possible to keep a track of new minimum when adding new data : the maximum (which will show once new data goes on) minus the history length gives the minimum that can be scrolled to - subtract this from all max's and min's to get real offset into the data - history length can be got from the history data and an a
    rray size sub .vi)
    Obviously there's no problem if you're clearing the graph everytime you either plot new data, or reach maximum capacity on the history data as the indexes return to zero.
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • I have an I pad2, an iMac desktop and an I phone 5, how do I get them all to be bale to face time with each other, do I need different email addresses, use the phone number, or the sim number in the iPad ? Ay help gratefully received !!

    I have an I pad2, an iMac desktop(2012) and an I phone 5, how do I get them all to be able to face time with each other, do I need different email addresses, use the phone number, or the sim number in the iPad ? Any help gratefully received !!

    Graham,
    For the iPad, iMac you need to create verifyible e-mail addresses created with one of the providers such as Yahoo, Gmail,etc.  For the iphone you should use it's phone number, but an e-mail could be used for it too.  If you want to associate these e-mail addresses with a single ID, I'm including a link to give you info about how you can do that. Read it carefully, as it can be a bit confusing.
    http://support.apple.com/kb/HE68

  • How to get the page number in the break section?

    Hi expert,
    The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
    ABC Compnay
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 1
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 2
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    CDE Company
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    How to get the page number in section break level?

    Hi Wes
    * Create a Field on the margin.
    * Set its "Source" to "Page Number"/"Physical Page Number".
    * Click "Page Numbering" button.
    * In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
    This should cause Reports to increment the page number until the "Company" repeating frame resets.
    Regards
    Sripathy

  • I purchased a song a few days ago and downloaded the whole song and the song will not play all the way through it only plays 23 seconds. How do I fix this problem?

    I purchased a song a few days ago and downloaded the whole song and the song will not play all the way through it only plays 23 seconds. How do I fix this problem?

    Thanks for this post. It corrected my similar issue. Note that you need to exit from/re-enter iTunes after deleting the song from your Purchased list.

  • How to get only the first result in extract function

    do you know how to get only the first element of the function extract.
    v_result := p_response.doc.extract('//'||p_name||'/child::text()').getstringval();
    if i have 5 responses like '100','100',100','200','200' e get '100100100200200' and i want only '100'.
    thanks in advance

    Two ways .....
    1. Use Javascript E4X instead ...there are nice functions for getting children of parents.
    2. Cycle through all of the form1.nodes and look for objects that have a className of "subform". For loops are useful for this task.
    Make sense?
    Paul

  • How to get the delivery number for the sales order

    hi
    how to get the delivery number for the sales order

    Hi,
    1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
    2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
    Hope it helps...
    P.S. Please award points if it helps...

  • How do I find the IMEI from my stolen iPhone 5? I have only the Serial number on the receipt.

    How do I find the IMEI from my stolen iPhone 5? I have only the Serial number on the receipt.

    Follow the most appropriate option here: http://support.apple.com/kb/HT4061

  • HT1349 How can I obtain an original receipt for a Time Capsule (external hard drive back up) that was stolen?  I want to get the serial number of the device.

    How can I obtain a receipt for the purchase of my Time Capsule back up external drive.  My drive was stolen and I am trying to find the serial number of the device.

    Unless you registered it, for warranty purposes, with the manufacturer, there's no way.
    Or if you have the box it came in, the box may have the S/N.
     Cheers, Tom

  • How do i get the slot number for the NI instruments on the PXI chasis

    i already poste this question .,but i got the answer to try with the init_daq_boards.
    but it did n't works out .
    i am very clear that Slot number and device number are different .
    I am vey clear abou the NIDAQ commands . The NIDAQ funtions use the device numbers.
    I SPECIFICALLY NEED A WAY TO IDENTIFY THE SLOT NUMBER OF THE DEVICES ON THE pxi NOT THE DEVICE NUMBERS ,

    jayamurugan,
    I'm sorry about the confusion with device and slot numbers. To determine the slot numbers for your devices, you will need to load the pxisys.ini file onto your machine (in the C:\Windows or C:\Winnt folder depending on your operating system). After restarting, Measurement & Automation Explorer will then show the slot numbers for each of your PXI devices.
    Each chassis has its own specific pxisys.ini file. I have attached them all in the zip file below. This information can also be found in our KnowledgeBase by searching for "slot number and pxi chassis." You can also follow this link:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/2763403cfe0560958625683100652300?OpenDocument
    Trey Hamilton
    Applications Engineer
    National Ins
    truments
    http://www.ni.com/support
    Attachments:
    pxisysfiles_.zip ‏3 KB

  • Decimal of SQL Server getting converted to Whole number in ORACLE

    Hi All,
    I am using ORACLESQL Developer tool to migrate database from SQL Server to ORACLE. The decimal datatype in Sql Server is not getting converted to its equivalent in ORACLE. Do anyone face the same problem? Its getting converted to WHOLE number.
    Also I am able to import data only from Excel sheet. Is therre any other option to import data using this tool?
    Also is the tool the best to use for migration? Please give me your suggestions pls since I am facing this conversion problem after import lakhs of data.
    I am using version 1.1.3
    Thanks in Advance,
    Srinivasan.T

    I have upgraded to the version mentioned by you. Even now it is not getting upgraded. I am exporting data using Excel sheet only. Is it possible for you to explain how to migrate data thru SQL * PLUS?
    Thanks,
    Srinivasan.T

Maybe you are looking for

  • HDV 1080i 50 to SD DVD - (yes i have read the other posts!)

    HI All, I have read two other posts and still struggle to get a good clean output that does not suffer from some degree of motion shudder or interlacing type lines. I capture 1080i 50 pal in australia and edit native hdv. On some recent shots I have

  • YouTube freezing - Audio but no picture

    Hey guys, Had Mac for decades and never ever had any problems. Since last night, YouTube does not work! With no picture it's like listening to a clip rather than watching it! Fine if you're multitasking, but aint no means normal for the picture to di

  • No picture with thumbnails

    I've been having a problem with iPhoto and this is a new problem. When I used to open iPhoto I saw all my pictures in thumbnail form, but for some reason I lost them all. When I went to my Pictures folder in Finder I was able to get them back into iP

  • PPPD in Solaris 8

    Hi, Anyone knows what I have to do in Solaris 8 for using pppd 4.0? I have added the packege, but when I tried to run pppd, I got "kernel lacks ppp support"........... Thanks, BR. //Steven

  • Container crashes from time to time

    Hi there I'm running JDK 1.3.1, Tomcat 4.0.1, Borland JBuilder 6 latest update with fitting Borland Enterprise Server. The VisiBroker Smart Agent is running. So I start my container containing a few EJBs. The I start my WebApp, consuming the EJBs. I