Getting Unit Price from Net Price by dividing with Quantity.

Good Day Guys,
        I have a requirement, wherein I've got to find the Unit Price Per Item, by Dividing Net Price with the Quantity.
Currently, Quantity field (MENGE) is of type  QUAN.
Let me tell you what I experience when i divide by type QUAN:
I have  Net Value        :       87405.32
I have Quantity Value  :       2.000 (Data Type - QUAN)
When I divide ( 87405.32 /  2.000 ), I see that I am getting, a value which is 43.72.
( It should acutally be, 43702.66 ).
So, On seeing the value 47.02, I multiply by 1000 and I now get the value 43700.00
Now, I see the Decimals, the Units, and the Tenths, are all replaced by zeroes, by doing so. This still is a problem, cause I don't get the exact value of 43702.66
I guess, I need to find a function module that will change this quantity of  2 which of type QUAN to Integer, in order to get the exact value.
Would it be possible for any of you, to give me a suggestion as to what i can do, to obtain the exact value, and if there is any function module that will convert QUAN type to Integer.

Hi,
    Actually, I did not explain well i guess.
   What is happening is that I am getting these values, from an excise table,
J_1IEXCDTL.
For Net Price, from table J_1IEXCDTL.
      This has, Field               :  EXBAS,
                    Data Element   :  J_1IEXCBAS
                    Domain            : WERT7
                    Domain  WERT7 is of type, CURR.
For Quantity this, from table J_1IEXCDTL.
        This has, Field:              :  MENGE
                      Data Element  :  J_1IMENGE
                      Domain           : MENG13
                      Domain MENG13 is of type, QUAN
So, if you do lv_result = lv_price / lv_qty, then you won't get 43702.66. Instead, you'll get 43.72.

Similar Messages

  • How do I get the contacts from my mac to syn with icloud? I need to back up my phone and don't want to lose my contacts when I get a new phone.

    How do I get the contacts from my mac to sync with Icloud? I need to back up my phone since I will be receiving a new one tomorrow and the icloud contacts are not the same as the ones on my mac.  Help me

    OS X Lion. 10.7. Your profile says your running 10.6.8, which is Snow Leopard. You need 10.7 to use iCloud with your Mac.

  • My old computer crashed how do i get the music from my ipod to sinc with my itunes library?

    My old computer crashed how do i get the music from my ipod to sinc with my itunes library?

    You should be able to copy iTunes purchases to your computer's iTunes via File > Transfer Purchases. For music that you've bought from other sources or copied from your own CDs then have you not got a backup of them on, for example, an external drive that you can copy onto the computer ? If not then you will need to find a third-party program to copy them off - this post mentions some that were around a couple of years ago, whether they still exist and work I don't know.

  • How do i get my contacts from ICLOUD over to sync with Mobile me?

    All of my contacts are in ICLOUD on my mobile device. But my IMAC only Syncs with Mobile me. How do I get my contacts from ICLOUD over to sync with Mobile me?

    Well, you can go into setting>mail, contacts, calendars>add new account or through iTunes you can plug your phone into your computer, open iTunes, select your device, then select info. I hope this helps. Au revoir!

  • Web Matrix FTP Remote Connection Error - "Connection Error - Failure to get file list from server. An entry with the same key already exists."

    Does anyone have experience with this issue when connecting to a Linux FTP Web Server running a FTP Site?
    "Connection Error - Failure to get file list from server. An entry with the same key already exists."
    I cannot access the root directory of the ftp file server using Web Matrix 3. The site is .php based, and
    is accessible when connecting with FileZilla or Remote Connecting via FTP with Visual Studio.
    All sites have been deleted from Web Matrix, the user Application Data has been cleared and Web Matrix has been reinstalled.
    Issue Persists....
    Thanks in advance,
    Justin

    Turns out that the program leaves metadata in your app data folder that is not removed upon uninstallation of the software.
    This is incorporated to communicate with a file that uploaded into the ftp directory when publishing pages.

  • Having trouble getting my bluetooth from iPhone 5 to connect with PolarH7 Heart Sensor.

    Having trouble getting my bluetooth from iPhone 5 to connect with PolarH7 Heart Sensor. when in settings Bluetooth is on but not reading devide ( it satyas at Now Discoverable) .

    bradbev,
    Welcome to the community! Thanks to everyone for the help. I do agree that adding and removing the Yahoo! e-mail account is the best first step to get this resolved. Below I have the steps to remove and re-add the account.
    Remove a Personal Email Account
    Add a Personal Email Account
    Thank you!
    AdamE_VZW
    Follow Us on Twitter @VZWSupport

  • When I sync my Ipad and Mac I get a message from itunes to allow access with an email address I no longer use and asks for a password I don't know how do I remove the old email

    Whwn I sync my ipad I get a message from itunes to sign into my account but the email used is not my email and I don't have a password for the email it used - how do I get rid of the email address for itunes on the ipad - itunes on the Mac work just fine - but not on the ipad

    Hello Tonchee
    If you are seeing an Apple ID that is not yours, then you have purchased content on your iPad that is tied to that Apple ID. You would need to know that password or remove the content that is associated with that Apple ID.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How to get ALL data from ipod to new computer with itunes??

    I have a ipod touch 2nd gen. I have cd's and purchased songs on my ipod. I did use itunes on my friends computer for a number of years but now I've got windows 7 computer and i have downloaded itunes but it won't let me transfer current data on my ipod to itunes without me loosing it all. I can only access itunes at friends now. Is there any way to get all my songs, playlists, apps (with data still on it) and photos without deleting it? I am looking for the cheapest way possible. I have tried downloading copy software but it all costs money. Thanks

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Can't install from net-install usb image with ppp on eee

    Hi forum,
    l downloaded the latest net-install image for usb, set that up and booted into my 900a EEE and ran /arch/setup. I skipped the network part and setup ppp with a usb-serial cable and ran pon <isp> to connect. Selected the mirror and so on until I clicked on Select Package. "Pacman prep failed" it said, look at tty7. There it said "failed retrieving file core.db.gz from <mirror>"..."transient resolver failure". So I clicked OK, and it put me in a window where it said "Package selection is split into two stages etc" OK. Now I was put in a window where it said "Select Package Group DO NOT DESELECT" and there was this "[*] base ^", selected. I did not deselect. OK. Here I was dropped to the prompt with the message
    ERROR: ask_checklist makes sense if you specify 1 thing (tag, item and ON/OFF switch)
    I've gone through the process several times, choosing 4 different mirrors, and deselecting that thing that said, DO NOT DESELECT with the same outcome.
    Can someone please help? Is there perhaps a min speed at which net-install won't work? I'm way down there at ~3 kb/s.
    Buce

    HI.Tried the link above production premium is only available in French and German no English files.
    BUT I got it right.
    MAIN PROBLEM:ENCORE didn't want to burn,write,create folder or image.Not the DVD writer error.
    If you have tried everything else suggested THEN:
    Adobe forum: uninstall and re-install. ONE slight problem not mentioned any uninstalling or format of PC or adobe software.YOU MUST DEACTIVATE the product first.
    1. Deactivate and un-install all cs6
    2. Download and use the adobe cleaner Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 Point 3 and choose OS-Run it .
    3.Clean all
    4.Run disk and system file clean up.Restart PC.
    5.Let system clean run. Once logged in. Run CC cleaner again. BUT NOW select  clean adobe credentials.
    6.Restart again.
    7.Insert your CS6 production premium disc and TADA! It worked for me.
    If this doesn't work go to adobe,sign in,choose a certain product premiere,after effects etc, choose installing or activation, and click contact us. There should be an option of CHAT to us not just the search forum.
    Explain that you can't install from disc and ask to see your license and serial number if it can be deactivated and then try activate again.
    Not the most elegant but efficient for me. I spent 2 days on this searching,phoning, chatting, restarting
    YET I'm still stuck by ENCORE not burning to disc LOL! So actually was all in vain but atleast if you have bad disc and serial number issues this could shed some like.
    Thanks for all who helped

  • I got a new macbook and my old laptop was stolen. How do I get the information from my iphone to sync with the new macbook without the old computer and without wiping my phone?

    I'm seriously distressed because I don't want to have to delete my music and I don't want to have to pay a lot of additional money to sync with an outside program. Please help.

    You can restore from your backup. You do have backups, right?

  • How do i get facebook notifications from facebook to my ipad with ios6?

    on my ipad notifications are not coming up on my lock screen like they do on my iphone. How do i get them on my ipad?

    Settings->Notifications->Facebook
    Make sure Show in Lock screen is turned on.

  • HT4352 I can't get the mirror from my mac book even with mountain lion and my tv is 1080p ?

    im having trouble using the mirror from my mac book with montain lion 10.2 and a tv with 1080p res. and apple tv

    Hi Lancebe
    Is your macbook mid2011 or newer if it is air or early 2011 or newer if it is pro.  If not it does not support mirror and you would need a third party app such as www.airparrot.com . If it is a compatable mac then post again and give a little detail of your set up and what the problems are.
    regards
    jules

  • Can not get my calendar from my iPhone to sync with my mac at home I have up to date software and ICloud?  What am I doing wrong?

    I am trying to sync my calendar from my Iphone to my mac at home.  It wont show any of the work calendar entries.  All the entries from my home show up fine on both.  I have Icloud so dont know what I am doing wrong?

    maybe this link will help http://www.makeuseof.com/answers/play-media-files-mac-formatted-external-hard-dr ive-hdtv/ unfortunately its for file up to 4 GB size, otherwise try to connect your mac directly to your Tv or I suggest contacting SAMSUNG about this issue, maybe the have assigned softwares for this formatting issues like in western digital for example.

  • I accidentally deleted my "Calendar" from the Settings default calendar option "From my PC".  Now I cannot get my calendar from my PC to sync with my iPhone calendar.  Help!

    Can someone help me add the Calendar back in without having to reset?

    the version im using is 10.7.5
    im not sure what you mean by you second statement. when i open those application on my macbook its on my macbook but when i sign into icloud. i have those option selected.
    maybe my problem is im using the wrong ID...... lol.
    is there away you can delete or change icloud accounts/ ID's???

  • Unit price issues

    HI!
    In m my smartform Im getting the unit price for my invoice from the condition table directly instead of calculating it (Total / Quantity) which creates the rounding up issues. SO this works fine for us but the problem occurs when the condition pricing is like 300/ 1000 L or 4000/ 1000Kgs , what happens is that in the output the unit price and quantity when multiplied contradicts , though the net price per line item shows correctly but suppose qty is 3 L and the unit price is 300/1000L so total os .9 dollars which is correct but in  the form out put it shows  qty= 3 unit price 300  and total .9 dollrs, which si contracdictory, so what I did I used a calculation gaain and divided by condition price by condition pricing unit so when its 300/1000L it would show .3 /L which is now ok but another problem rose with metric ton, since the selling unit is MT and the unit price now after dividing by condition pricngi unit makes it per KG so output would show like qty =3 unit price  4 and total = 12000 dollars , so heer unit price is wrong as it should have been 4000/ Ton as the total os 12000 dollars.
    Is theer a way out to show the correct unit pricing as per the sales unit. I had used the code to just divide the total price of line item  divided by the Quantity but then the rounding up issues came up which was not required .
    read table is_bil_invoice-it_kond into gs_kond
    with key bil_number = gs_gen_del-bil_number
    itm_number = gs_gen_del-itm_number.
    if sy-subrc = 0.
      g_unit_price = gs_kond-kbetr / gs_kond-kpein.
    else.
    ** Loop around and get the price for it
      loop at is_bil_invoice-it_kond into gs_kond
      where bil_number = gs_gen_del-bil_number and
      itm_number = gs_gen_del-itm_number.
        if gs_gen_del-fkimg <> 0.
             g_unit_price = gs_kond-kbetr / gs_kond-kpein.
          endif.
    *  g_unit_price = g_item_tot / gs_gen_del-fkimg.
        endif.
      endloop.
    endif.
    * Get unit price and tot price.
    g_item_tot = gs_gen_del-netwr - gs_gen_del-kzwi3.
    *IF gs_gen_del-fkimg <> 0.
    *  g_unit_price = g_item_tot / gs_gen_del-fkimg.
    *ENDIF.
    thanks

    Well we would ike to grab the unit price directly from the condition mentioned in the billing documents , thats the reason this issue has errupted , We would like to pull it directly from teh document onto the invoice but as I said when its given per 1000 L or /1000 Kgs then the problem occurs as teh quantity may be in MT and the unit price in the condition on document maybe like 4000 dollars per 1000 KGS so it takes 4000 and multiplies bny quantity which is in MT which is 1000 times more than teh correct value. SO as per my piece of code its grabbing the unit price directly from teh condition in the billing document . If I just divide this unit price that I am gettimng from the condition table in Doc by the condition rate KPEIN then it works ok except in few cases like MT. The quantity will show 3 MT suppose and the unit price will be 4000/1000 = $4/ kgs so this will contradict the units but in case of per 1000L it would be ok as the resultant will be in litres only but in case of MT its converted to Kgs so basically a client will see 3 MT QTY for 4 / Kgs  and price will be 12000 dollars which dosent look alright though teh resultant is correct prioce.
    SO this becomes a special case when we dont need to divide by condition unit rate . My question is can be give such kind of exceptions in our code and proceed or will be wrong.
    Thanks

Maybe you are looking for

  • Vendor Line Item by Profit Center

    Dear All We are trying to make a report for Vendor line items by profit center (Based on General Ledger view). There is standard report available in New GL in General Ledger Information System>Line Item>Open Items Payable by Profit Center. But in thi

  • How do i add my camera roll back to my iphone after a restore?

    I back up to icloud every night so it should be there. Most everything came back except my text messages and photos and videos after my restore.

  • Dynamic Sender File Name

    Hi, It’s a File to ABAP Proxy Scenario. The files would be processed differently depending on the file name which would be dynamic. It would suffice if the file name can be made visible in the payload. Does any one have any idea on how to implement t

  • Dreamweaver FTP still doesn't work

    So I've been trying to get FTP to work in (Mac) Dreamweaver -- and I've tried every version since MX 2004. But they all fail. This problem has been posted in this forum (and many others) in the past. Whenever you try to connect/test an FTP server, yo

  • MB90. no accounting document created

    Hi All, How to catch at what part of MB90 the accounting document is created? The requirement is that when I run MB90 in background, I need to catch the material docs who have no corresponding accounting document or does not successfully create accou