Round in steps of 6. For example: 6 - 12 - 18 - 24 ....

Hello,
I have the following problem:
I'm programming a tool, where people can order meals + drinks.
It should only be possible to order one kind of drink in steps of 5. For Example: Coca Cola only in 5 - 10 - 15 - ... and so on
This works well with: intQuantity := ROUND((v_bestell_pos.QUANTITY)/5)*5+5;
Now I have some drinks, which should only be possible to order in steps of 6: For example if I order 10 it should round to 12.
Is this possible? Is there any formula I can use for this problem?
Thanks soooo much,
Lisa :-)

LisaG wrote:
Hello,
I have the following problem:
I'm programming a tool, where people can order meals + drinks.
It should only be possible to order one kind of drink in steps of 5. For Example: Coca Cola only in 5 - 10 - 15 - ... and so on
This works well with: intQuantity := ROUND((v_bestell_pos.QUANTITY)/5)*5+5;
Now I have some drinks, which should only be possible to order in steps of 6: For example if I order 10 it should round to 12.
Is this possible? Is there any formula I can use for this problem?
Thanks soooo much,
Lisa :-)I would go for something using CEIL myself...
SQL> ed
Wrote file afiedt.buf
  1  with t as (select rownum as order_quantity from dual connect by rownum <= 20)
  2  --
  3  select order_quantity
  4        ,ceil(order_quantity/5)*5 as "cola"
  5        ,ceil(order_quantity/6)*6 as "other"
  6* from t
SQL> /
ORDER_QUANTITY       cola      other
             1          5          6
             2          5          6
             3          5          6
             4          5          6
             5          5          6
             6         10          6
             7         10         12
             8         10         12
             9         10         12
            10         10         12
            11         15         12
            12         15         12
            13         15         18
            14         15         18
            15         15         18
            16         20         18
            17         20         18
            18         20         18
            19         20         24
            20         20         24
20 rows selected.

Similar Messages

  • I'd like step by step instructions on Ipodtouch setup after establishing itunes account which I already have. For example, which service,app downloads,etc.

    I'd like step by step setup for iPodtouch after setting up iTunes account which I already have.For example, how to setup the screen with the necessary screen icons ,camera ,music ,mail, etc. I'm at the stage where it asks for service to choose from and I don't know which service to answer with.

    I do not know what you mean by service?
    Tyt downloading/reading the manual
    iPod touch User Guide (For iOS 5.0 Software)

  • Explaination for background steps in MRP with example

    Dear SAP Guru's,
      I received the explaination for below steps in MRP.
    But, it wouid be better if i could get the explaination for step 2 with example, step 3 for lot size EX & step 5 also with example.
    1. Check planning File Entry
    2. Net requirements Calculation
    3. Lot size calculation
    4. Scheduling
    5. Source determination
    6. BOM explosion
    1. Check planning File Entry: An entry is made in the planning file as soon as any changes are done to the material which are relevent to MRP. Eg. Changing MRP type, Changing BOM Qty. System checks if there is an entry. chk sample planning file entry in md21.
    2. Net requirements Calculation: It checks the available stock of the materials. Required minus available = net required qty. availability check plays vital role in this.
    3. Lot size calculation: Depending on the lot size maintained in the material master, it groups the materials. eg. If you use lot size as FX(Fixed lot Size) with fixed lot size qty = 100, then system will create pld ord or PR for the material in fixed lot of 100 always.
    4. Scheduling: You can either carry out basic dates scheduling (values taken from MRP 2 view) or Lead time scheduling (values taken from routing) to this the floats are added and scheduling is carried out. By default it is backward scheduling. If the dates are going in past, today scheduling is done.
    5. Source determination: For externally procured materials, you can assign a fixed source (ME01). This vendor is assigned in PR during MRP.
    6. BOM explosion: For dependent requirements calculation, system explodes the BOM and plans the materials.
    Thanks in advance
    Regards
    Kalyan

    Kalyan,
    I do not see a business problem described in your email that I can assist you with.
    I suggest you read the standard SAP online help in this area
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/f4/7d27aa44af11d182b40000e829fbfe/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/420d29470a11d1894a0000e8323352/frameset.htm
    and associated topics.
    Rgds,
    DB49

  • Step by step complete setup for WRT54G ver.6 with Laptop and XBOX 360

    Hello.  I am sorry to post this, I am sure it is a juevenile and redundent question...but I have tried to look for the set up cd (I can find where to download it...though I can find the firmware upgrade or whatever).  My friend at work said it would do all the setup pretty much automatically for me.  
    I somewhat know computers, but you might go ahead and make your replies VERY lamen's terms or I might not be able to follow.  Anyways, what I need, is a step by step/screen by screen directions for a secure network.  I have made a partial attempt at setting it up and it technically works, but I would feel better if I did the steps a-z in order, so I know that it is done correctly.  I also am not totally confident in its security as it is now.  (Also, technically, I did not check the XBOX again after getting the new laptop, I am just assuming it is still working because it was before).
    My problem is I can't seem to find very good directions for setting up the router...I only find partials or confusing directions.
    So here are the things I am trying to connect:
    Liksys WRT54G ver. 6
    Gateway Laptop running Windows Vista
    XBOX 360 - WIRED
    (I had a PC and a laptop, but they both died at the same time and I have only been able to replace the laptop at this point...the PC will come later and not sure at this point if it will be Wired or not).
    I have a cable Modem between the Router and the wall...I didn't look at that for brand/etc...but I can get it ASAP if needed.
    Here are the settings that I have so far:
    Changed the Router Name
    Changed the SSID
    Have DHCP set to 3  (XBOX, PC, Laptop)
    Wireless SSID Broadcast: Disable
    Username and Password changed to my own info
    UPnP: Enable
    I may have changed other things without knowing it.  So like I said, a complete, step by step screen by screen set up would be totally appreciated.  I haven't done anything in the security tab, all that is totally foreign to me, so I am just not broadcasting for now until I can get some help setting things up with you guys.
    And if someone is familiar with the Laptop/XBOX 360 setup, and I need to change any of the settings on the XBOX itself, could you please include that in your directions?  I know that isn't technically what THIS forum is for, but it would sure be helpful to me if you happen to know both parts anyways.
    Thanks a lot (in advance)!

    So all you just need to do is, secure your Wireless Network. Follow the setps bellow and change the settings on your Router.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Wireless channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WPA, For Encryption, select TKIP...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your network key whenever you connect to your wireless network. Do NOT give this key to anyone and remember the key.
    NOTE : Passphrase should be more that 8 characters...
    Now see if you can locate your Wireless Network and attempt to connect...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect... 

  • Is it right to mix sizes of memory modules in a mac mini 2012? for example 2Gb 8Gb?

    Is it right to mix sizes of memory modules in a mac mini 2012? for example 2Gb 8Gb?

    Welcome to the Apple Support Communities
    You can do that without any problem, always that the total amount of memory is less than the maximum memory your Mac mini supports. A Late 2012 Mac mini supports 16 GB of memory, and you can find in this site the steps to install more memory > http://support.apple.com/kb/HT4432?viewlocale=en_US&locale=en_US#1

  • My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem.

    My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem. The only thing that solves it is switching off and on , but sometimes I have to do that for 6-7 times before its ok or wait for a few hours. Some help please

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Is there a way to add multiple borders to a single cell with one click or do I have to add one border at a time for example, one cell with borders on three sides?

    I would like to know if there is a way to add multiple borders to a single cell or selection of cells in one click.  At this time, if i want to add for example a top border and a bottom border to a single cell I have to do this in two steps: first select the top border, style, thickness, and color, and then next select the bottom border, style, thickness, and color.  Is there a way to select the top and bottom border of a cell in one click?  Clicking on the top border then holding down the command key while selecting the bottom border does not work, nor does holding down the option key, the control key, or the shift key work. Thanks for your help.

    Thank you for the suggestion but this did not work for my Mac.  When a cell is selected for which I want borders, the entire cell is lit up.  Then when I go to the border tool and select style, thickness, and color, the entire lit up cell takes on the border, that is the Outside Edges of the cell now have a border.  So selecting the style, thickness, and color first doesn't work.
    If I select the top border first (or any border), the drop down goes away and I can't select multiple borders - I get to choose one at a time.  After selecting one border, style, thickness, and color, said border is now on the spreadsheet.  Then I go back to the border selection and pick another border and the the previously selected style, thickness, and color reverts to null, so I start over with the new border style, thickness, and color.  Yes, it is tedious.
    The Fix would allow the user to select multiple borders, say left and right, before the drop down goes away after selecting only one border
    Does it have something to do with Allow or Disallow border selection?
    I have Numbers '09 version 2.1 (436)

  • If i backup an app for example Music Downloader as it contains like 300 songs and now i want to replace my iphone 5 so when i restore the app from itunes do i get back all the content in the app or just the app itself ??..

    If i backup an app for example Music Downloader as it contains like 300 songs and now i want to replace my iphone 5 so when i restore the app from itunes do i get back all the content in the app or just the app itself ??..

    Hey Hussain,
    I am not sure whether the music will get restored.
    Anyway try this
    1.Connect iPhone to PC.
    2.Open iTunes
    3.Open iPhone Summary
    4.Go to Apps Tab
    5.Under File Sharing Section Click on Music Downloader
    6.Right side if you see your songs click on one song and press (CTRL + A).(hope you are using windows) and click  on save and then save to  a folder on your computer.
    7. Later just do steps till 5 to put to new iPhone then ...........
    8.Click on save and select the music files which u want to put in that app.
    9.Click on apply to sync.
    10.You should be having the music in that app
    Hope it helps,
    Rohit

  • HT1386 I cannot sync my iPod with the Playlists that I want. For example, I have all the songs in my classical Playlist checked but it doesn't appear in my iPod after syncing. Also I don't get an opportunity to review sync options.

    I cannot sync my iPod with the Playlists that I want. For example, I have all the songs in my Classical Playlist checked, but after syncing it does not appear on my iPod. Also, there are no opportunities to change syncing options. None are listed in the left column of my iTunes screen.

    Hello Jefflo64,
    Thank you for the details of the issue you are experiencing with syncing music to your iPod.  For issues like this, I recommend resyncing the music to your iPod.
    If you are syncing automatically, resync content to the iPod by unchecking "Sync Music" and clicking "Apply,"  then checking "Sync Music" and clicking "Apply" again.
    You can find the syncing steps in the following article:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • Rounding difference in down payment for header condition

    We have header condition, marked as "group condition" for traqnsport. But when doing down payment the system calculates incorrectly - for example I enter transport $600 at header level, but because the system calculates it at item level and due to rounding, in the 50% down payment invoice it shows - 300.02. Obviously when the customer receives down payment invoice that says pay 50% of some amount and the amount to be paid is not actually 50% it would be a problem. How could this be solved? We tried modifying the form, but as the it reads values from the system which are incorrect that didn't help.

    Hello,
    Please check the customizing:
    Financial Accounting -> Accounts Receivable and Accounts Payable
        -> Business Transactions -> Down Payment Received -> Define
        Reconciliation Accounts for Customer Down Payments
    Regards,
    Raghavendra

  • Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, t

    Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, this is very annoying.
    And today it won't even read my camera's sd card, and I try with 2 different ones. If I restart the computer, leaving the memory card in, then it reads it; but if I pull it out and push it back in it doesn't see it. Whath am I doing wrong, if anything?
    Diane

    Where/how are you trying to change the name? If it is in Finder (after you've downloaded the pics to your desktop), highlight the pic icon and press Return. the name field will change and you can type in your new name. Hit Return again. That should make it "stick".  If you're trying to do it elsewhere, please post the steps that you've tried.
    As for your card: do you eject it properly? Either drag icon to trash or hit the eject symbol in the sidebar?

  • Using Maverick, error message: Adobe Reader could not open '***.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    Receiving error message using current Maverick version: "Adobe Reader could not open '***.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).".  Is fix the same as on previous OS versions?

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • Rounding off in billing doc for % based milestone billing

    Hi,
    I am working with milestone that is % based. I already have condition type DIFF in the pricing procedure. The rounding off is taking place in sales order. But, milestone value is not being rounded neither at sales order item level nor at billing level. For Example (a single item order):
    Total value of the sales order item : 150.30
    Sales order item value after rounding off: 150.00
    Milestones :
    1.       15%  -  22.50
    2.       60%  -  90.00
    3.       25%  -  37.50
    The same amount is going to billing and no rounding off takes place at the billing level or milestone level.
    Can any tell me how this can be done so that only rounded off figure is accounting.
    The condition type setting is standard. No changes made. (The pricing also has Req 13, calty 16 basty 4.). Also the copy control order to billing has Pricing type K.
    Regards,
    Munesh

    Hi,
    I think we have Rounding off tick in billing document back ground screen or on your condition type back ground screen please check . I don’t have SAP to check.
    Thanks,
    T.Nishanth

  • My number keys appear with a letter in front, for example 2 appears as w2.  How do I get that to stop?

    OSx
    Processor: 2.4 GHz Intel Core i5
    Memory 4GB
    Only the number keys on my keyboard are malfunctioning besides the number 0.  For example when I press 1 it appears as q1.  When I press 2 it appears as w2. 
    I am not sure if I accidentally pressed something on my keyboard that has changed the functioning of my number keys. It just suddenly happened.
    I've tried fidgeting with the keyboard settings in System Preferences and holding down the f6 key but nothing has worked.
    PLEASE HELP!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • N-step approval workflow for Shopping Cart-WS14000133

    Hi Experts,
    We have 5-6 levels of approvals for Shoppoing carts.All the SC needs to be approved by 5-6 managers based on their approval limits.All the approval limits are assigned at the Role level .(We have created Z roles)
    Please let me know how and where to define the roles in BADI to activate the N-step approval workflow for Shopping Cart-WS14000133
    Thanks,
    Venky

    To add to Masa's reply.
    This Badi is well documented by the online help and it even comes with example implementations AND it is mentioned in full detail at help.sap.com
    Kind regards, Rob Dielemans

Maybe you are looking for