How to round off quantity in inventory

Hi,
How to avoid decimal places for PC(Piece) in the goods movement transactions..  I have given 0 decimal places in CUNI transaction. It is working properly for Production Order during Conrimation but it is not working in Inventory transactions like MIGO, MB1C,MB1A....
for example When I enter Unint of entry In Alternate Unit say '10 KG'  System Automatically Caliculates quantity in base unit in decimal places say 115.012 PC based on the conversion factor defined in material master.
My requiremet is the base unit quantity PC rounded off to nearest value in as 115 (PC).
The same thing is working fine for production order.
please suggest me how to do.
Thanks,
Shekar

this all depends on your conversion rate enterd in material master.
if 115.012 PC  equals 10 KG.
what do you actually want the system to do,
it would now that you would get 115.012
you want it to be 115,
this would then mean that you have to modify the entered quantity from 10 to 9something
Is it that what oyu want?
you certainly cannot have 115 PC and 10 KG if you dont change the conversion rate in your material master

Similar Messages

  • How to get available quantity in Inventory levels  for all materials

    Hi..All
    I am Abap Developer and i have a Requirement that to Print a report that Displays " Inventory levels (available quantity) for all materials"
    1) What tables can i use to retrive the data to get the Inventory levels (available quantity) for all materials.
    2).What are the fields can used in that tables that use ful for end user.
    Thank you,
    Madhu .
    Edited by: madhubabu rao on Oct 15, 2008 9:10 AM

    Hi,
    I'm not sure what you mean when you are speaking about inventory levels and available quantity.
    I mean that you may have stock of 100 pcs of a certain material but from an open PrdOrd can come a reservation for this component (e.g. 20 pcs) that reduces this the available quantity (to 80 pcs).
    If you want only the stock levels, you don't have to write any ABAP code, since MB52 report is designed for this purpose.
    If you want to know the available stock (considering requirements (PIR, DepReq, SO), and stock-like MRP elements (PldOrd, PurReq, PrdOrd, PO, etc)) you should check report MD04 and examine how it works, which tables it uses (ST01).
    http://iorboaz.blogspot.com/2005/04/get-md04-data.html
    Regards,
    Csaba
    Edited by: Csaba Szommer on Oct 15, 2008 9:34 AM
    Edited by: Csaba Szommer on Oct 15, 2008 9:34 AM

  • Round off quantity variable eliminating decimal places

    Hi,
      I have a variable of quan type with value = 1008.123
      I want to round it off with no decimal to be displayed.
      Please suggest.

    Hi,
      Refer
    https://forums.sdn.sap.com/click.jspa?searchID=11055268&messageID=4565374
    https://forums.sdn.sap.com/click.jspa?searchID=11055268&messageID=4721312
    https://forums.sdn.sap.com/click.jspa?searchID=11055268&messageID=2700419
    Regards
    KIran

  • Wm rounding off quantity

    Hi all,
    I have a storage type defined with large/small quantity as the picking strategy. I have maintained the rounding qty check in configuration and the rounding value in the material master. But when I create a TO, it doesn't round up to the rounding value. Am I missing any setting? I would really appreciate any suggestions.
    thanks

    Hi,
    Even if your material master is not extended to that storage type the settings of the storage type will be valid.
    Please check the "Stock reomval control" tab of the storage type definition, maybe "Full stk rmvl reqmt act." indicator is marked (SPRO > LE > WM > Master Data > Define Storage Type).
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/f846eb4afa11d182b90000e829fbfe/frameset.htm
    Regards,
    Csaba
    Edited by: Csaba Szommer on Dec 12, 2008 10:15 PM

  • How to round the quantity in iprocurement

    Hi,
    I want to restrict from entering non round values like (0.3, 7.6, or 4.67) for unit of measures like Each,Case and Unit. As we can not have 0.3 in single piece. Whenever the user enters the non round value he should get an error message. Please can anyone help on this

    Hi,
        Please check in su3 -
    defaults (Tab) -
    Decimal Notation.
        Change the decimal notation and logoff and login to apply the changes.
        I think it may help you.
    Regards
    Sreedhar Reddy

  • How to calucalte onhand quantity in inventory

    Hi,
    I am facing problem to calculate the onhand quantity ,reserved quantity and available quantity,
    Please help this.
    Thanks

    Hi
    Please use inv_quantity_tree_pub.query_quantities. It has all the out variables that you are looking for.
    Thanks
    Nagamohan

  • Rounding off PR quantity in Po

    hi to all
    can any one tell how the rounding of quantity field takes place while converting a purcahse requisition to purcahse order it is through a badi or  user exit please provide me a badi or userexit where the rounding takes place.
    thanks & regards
    Reddy
    Message was edited by:
            k reddy

    Hi,
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction
    if you follow this 7 steps, and execute/run your infotype or press any button then see whether the screen is going to stop there, if the scrren stops and goes to Debugging mode then there should be a BADI for that one
    Regards
    Sudheer

  • How to round quantity with FMS for some items in Production order lines?

    Hello,
    How to round the quantity with FMS or SP for only some items in the composition of Production order (lines) and the bill of materials like a box or a stick that should not be with commas.
    Exemple  of Production Order
    P1
      M1 | 234,78
      M2 | 104,04 --> 104
      M3 | 60,7
      M4 | 512, 00
      M5 | 107,67 --> 108
    and others will not be rounded
    Thanks,
    Hafid

    Hi Gordon,
    you're always the first to respond, thank you.
    Its when adding the production order, before its creation or when entering the quantity of product in OWOR.
    Like :
    SELECT CASE WHEN ($[$37.4.0] = 'M2') OR ($[$37.4.0] = 'M5') THEN ROUND (T0.[PlannedQty],0)
    ELSE T0.[PlannedQty] END AS PlannedQty FROM WOR1 T0
    or
    SELECT ROUND (T0.[PlannedQty],0) FROM WOR1 T0 WHERE T0.[ItemCode] =$[$37.4.0] AND (T0.[ItemCode] = 'M2' OR  T0.[ItemCode] = 'M5)
    Thanks,
    Hafid

  • Rounding off net weight value.

    Hi experts,
    I want to round off the quantity value to the next integer value.
    I am using the FM 'J_1I6_ROUND_TO_NEAREST_AMT' as follows...
    call function 'J_1I6_ROUND_TO_NEAREST_AMT'
    exporting
       i_amount = gross_weight
       i_amount1 = net_weight
    importing
       e_amount = gross_weight
       e_amount1 = net_weight.
    i want to round off the gross weight and net weight values.
    In Global definitions, these are given as of type VEKP-BRGEW. The field BRGEW is of datatype QUAN (length - 15 and decimal -3 )
    But when i tried executing i am getting dump .... saying
    "The function module interface allows you to specify only
    fields of a particular type under "I_AMOUNT".
    The field "GROSS_WEIGHT" specified here is a different field type"
    Please help me solve this and please let me know how to round off these fields.
    Regards
    Ammu

    Hi,
    the both fm parameters you fill have a currency data element of length 13, while you pass a quantity data element of length 15.
    You can't use this fm for your fields.
    Regards,
    Klaus

  • How to use control quantity in WM removal

    Dear All,
    In our company, there are some materials with a whole roll, that cannto be splited into partially picking.
    For example:
    Material A0001, 1000PCE in whole roll, stock 4 roll ( 4000 PCE) in one bin, now there is  a picking list required to pick 900 PCE.  We hope system can suggest to pick 1000PCE with a whole roll for this picking.
    How to set up this control quantity in WM?
    Please kindly advise,
    Thank you advance!
    Julia

    You try with Rounding off quantity in the material master data.I think you need to use the picking strategy Small/Large quantities .
    Please follow the links
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f845bb4afa11d182b90000e829fbfe/content.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f845bb4afa11d182b90000e829fbfe/content.htm]
    ht[http://help.sap.com/saphelp_erp60_sp/helpdata/en/c3/179de7c7e811d19298444553540000/content.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/c3/179de7c7e811d19298444553540000/content.htm]

  • How to rounding the cash discount at F110 payment program

    Dear All,
    Can you explain me, how to rounding off or rounding up to nearest rupee the cash discount at F110. In APP, the cash discount used to be calculated according to Payment term. But it is calculating decimal amounts also. But as per the business requirement, the cash discount should be deducted in rupees only. It should not be in decimals.
    Please remember, cash discount can not be edited at APP, because I have disabled the "Edit Proposal" option. I want the rounding the cash discount to be initiated through configuration only.
    Request you to help me out.
    Regards,
    Venkata Reddy

    Hi,
    maybe T-Code OB90 is helpful but I guess this setting is not only for cash discount.
    Best regards, Christian

  • Regarding rounding off for amount

    dear all,
    can anybody tell me how to round off the amount which is printing in decimals..
    i want to round off the final amount in script..print form.
    thx in adv.
    jigar

    Declare a field like this...
    DATA : amount type p decimals 2.
    Pass your field to <b>amount</b> automatic rounding takes places... display your field.
    In script if you want to restrict the number of decimals do it like this...
    &EKPO-MENGE(.2)& --> display 2 decimals ex, 14532.34
    Regards,
    SaiRam

  • Rounding off a float to two decimal places

    I want to make a function where I shall pass a float and and integer.
    The float shall have to be rounded off to a value in the integer.
    Can anyone please suggest how to round off a float.
    E.g.: if the float is 12.56890 and I want to round it off to 2 decimal places, then it should be 12.57.
    Regards
    Hawker

    I didn't mention any datatypes like float, double.True, but that is what the question is about, so you weren't answering the question. For a change.
    As I mentioned, that was just a mathematical steps to round of the floating point value. (Not in any programming languages point of view).False. You didn't mention that at all.
    This is the code for that in java.So here you are mentioning datatypes and floats for the same piece of mathematics that you have already been told, with reasons, doesn't work in floating point.
    which seems to be working fine
    Seems to. What evidence do you have that the float actually got rounded? As opposed to got displayed as rounded? Which is not what the OP asked for.
    And of course all that code seems to do is round 0.01 to two decimal places, which again is not what the OP asked for.
    For any remaining fans of this 'technique', please explain the behaviour of the following code:
         public static void     main(String[] args)
              int     count = 0, errors = 0;
              for (double x = 0.0; x < 1; x += 0.0001)
                   count++;
                   double     d = x;
                   int     scale = 2;
                   double     factor = Math.pow(10, scale);
                   d = Math.round(d*factor)/factor;
                   if ((d % 0.01) != 0.0) // if 'd' really has been rounded this should be zero
                        System.out.println(d % 0.01);
                        errors++;
              System.out.println(count+" trials "+errors+" errors");
         }

  • Rounding-off Currency fields.

    Hi,
    Can someone tell me how to round-off value of currency field.
    If fraction <= 0.49 it should be rounded-off to 0.00
    If fraction >= 0.50 it should be rounded-off to 1.00

    Hi, you have the Function Module ROUND too,
    here a litle example ( the paremeter sign = 'X' set how the number will be rounded )
    DATA l_input TYPE p DECIMALS 5.
    break-point.
    l_input = '0.499'.
    CALL FUNCTION 'ROUND'
      EXPORTING
        decimals      = 0
        input         = l_input
        sign          = 'X'
      IMPORTING
        output        = l_input
      EXCEPTIONS
        input_invalid = 1
        overflow      = 2
        type_invalid  = 3
        OTHERS        = 4.
    l_input = '0.500'.
    CALL FUNCTION 'ROUND'
      EXPORTING
        decimals      = 0
        input         = l_input
        sign          = 'X'
      IMPORTING
        output        = l_input
      EXCEPTIONS
        input_invalid = 1
        overflow      = 2
        type_invalid  = 3
        OTHERS        = 4.
    Saludos
    Daniel

  • Rounding off the decimal place.

    how to round off to 2 decimal place for this following programs:
    double x;
    x = 5.0/3.0;
    System.out.println(x);
    answer for x is 1.6666666666666
    my desired output is 1.67

    import java.text.*;
    public class Foo {
        public static void main(String[] args) {
            double x;
            x = 5.0 / 3.0;
            DecimalFormat df = new DecimalFormat("0.##");
            System.out.println(df.format(x));
    }

Maybe you are looking for

  • 64-bit server, 32-bit client: Addon Development

    Hello, First time posting so bear with me Given how Business One handles distributing addon installations between the client and the server, what is the recommended strategy for running 32-bit client versions of Business One while the server operates

  • Dynamic Configuration File Names

    Hi, I have a RFC->XI->File scenario. I have to put the target files names based on the calculation of values in 2 fields in the input. I tried using Dynamic Configuration in my message mapping for this. This is the code: DynamicConfiguration conf = (

  • Forms in reader DC not auto sizing text

    I Have forms crated in Acrobat 10 that I am editing on my iPad with Adobe Reader DC. Primarily to capture signatures easily and edit the form in meetings. The text boxes where we may have 200 to 2000 characters isn't resizing text on the iPad like it

  • Can I still download iOS 7?

    Can I still download iOS 7?  I didn't download it and iOS 8 is too big.

  • Error 9672 when connecting Canon LBP5200 through AirPort

    I have just bought a Canon LBP 5200 colour laser and installed the driver from Canon's web site to my PowerBook G4 (OS X.4.6). It works fine when connected directly on USB but refuses to do anything when connected through my AirPort. I get an error m