Rounding in backflush

Hi,
We are using repetitive manufacturing scenario and do backflush in MFHU.
In BOM, the component quantity is maintained in fractions. For e.g. 1000kg of finished product require 0.828 pcs of packing material.It is required that goods issue should happen with a rounded quantity.
Logic for rounding:
Quantity below 1 -> Round it to 1
1 to 1.499 -> 1
1.5 to 2-> 2  and so on...
How can I implement this scenario?
1) The rounding in CUNI does not meet the requirement.It has a different rounding logic.
It will round 1.1 to 2. That is the next integer no.
2) I believe rounding profile is used to create order proposals in MRP.It does not round the dep.requirement/reservation.
Thanks,
Nitin

Hi,
We have a custom made UOM -> PCD which is used as pcs in decimals.
Anyway, we found a BADI for goods movements in MFHU transaction and done some coding there to get the desired results.
Thanks,
Nitin

Similar Messages

  • REM - MFBF - Backflush : Generates Variance by Decimals/Rounding Off

    Hello Team,
    I need your help in Product Costing area of Repetitive Manufacturing environment.
    On MFBF, what I get is, debit to Inventory is happening fine as it is picking the correct standard, in this case $0.0967 Per Unit. In fact, that is derived from MM03 showing the Standard at $96.70 Per 1000 Units. Say there is quantity of 30,050 units. Debit amount is $2,905.84 (30,050X$0.0967).
    However, the credit to production is coming higher as it is counted using the Standard of $0.1. I assume that is derived by rounding the same standard of $0.0967 to $0.1. Hence the Credit is $3005.00 (30,050X$0.1).
    The difference between debit and credit is posted to MFG Variances of $99.16 ($3005-$2905.84).
    In other words, debit to inventory and credit to production does not tie for both SFG and FG.
    While in the same entry, the debit and credit for Ingredients is perfectly matching to the last penny.
    Any expert advice how should I approach this for a possible resolution?   
    Thanks
    Jayprakash Shah
    Chicago, USA

    Thanks for your reply
    Impossible to change number of decimals for unit PC, this is a standard unit and impact would be very important and unknown in programs (standard and specific)
    Problem still exist :
    The way we confirm production we do not have the same result : sometimes it is bad and sometimes it is OK
    Daniel

  • Unit of measure - rounding off during creation of planned order

    Dear All,
    We have defined one material OIL in MM41 and its UoM is EA also we have put alternative UoM is L(liter).
    now we create BOM of semifinished material we use this oil as a component and enter its value in decimal points.
    e.g 0.375 EA
    During planned order creation or REM backflush system convert this quantity to 1 EA ,WE dont want this automatic conversion .
    We have uploaded all master data in production and now it is very difficult to change all BOM
    So what is the solution of this that system can not convert qty (rounding off).EA
    Kindly reply
    Sunil

    Hi Sunil,
    IN CUNI Transaction Field Decimal Places is for displaying the decimals,there is a decimal place Rounding off field below,there try to maintain 3 decimals and check whether it is working.
    One more thing is Unit EA will be used always as non decimal unit,But i dont know in your buisness how for unit EA there is a decimal qty
    Edited by: Girish  Adaviswamy on Mar 2, 2010 10:59 AM

  • Issue with Backflush when Consuming Fractions

    I am having an issue with back-flushing I was hoping Guru's  could help me .
    Here is the issue:
    In the BOM for every 1 EA of X(Parent) we need .025 EA of Y(Child)
    The parent part is X. Using CS03 and typing in a quantity of 20 pcs everything looks perfect. I would consume component Y .500 of a sheet.
    If you review MFBF for 20 pcs. of X  it wants to consume 1.00 of Y. (1 whole sheet instead of .5)
    I know I could put a rounding value of 40 on the X to fix this but that would not be an option for this particular process. Measurements of each of these is not exactly the same and very critical.
    Is there an issue with SAP consuming fractions? It seems to round up to 1 whole sheet when it should only consume .500 of a sheet. Do you know of a way to fix this?
    Any info would be greatly appreciated
    Thanks,
    Safi

    For some reason which is unknown for me, this topic is very hard to manage within SAP.
    We face exactly the same issue producing Tanks from steel sheets.
    Base Unit of Measure was EA for Sheets . SO, we create a copy of EA called ED (each with decimals) , allowing up to three decimals and assign it as an alternate UoM to the material. In Bom, we had, for instance, 3.6 ED to produce a tank.
    But, in reservations the quantities are stored as Base Unit of measure and without decimals, regardless the fact that you a have an alternative UoM , etc etc.
    So, if you consume the component based on MIGO and reservations, SAP will propose 4 EA (o 4 ED ! which is even stranger - because of double conversion between base and alternative UoM) . If you consume by backflush, you dont even realise that the GI is being carried out in that way.
    We are still waiting for some solution after we sent a message, describing the issue. It is advisable to search the SAP Notes to see if there is some solution .
    So far, alternative UoM is not the solution.
    You must change the base unit of measure to ED or have some manual procedure of checking the quantities.
    Of course, EA can be redefined with decimal parts, also, but this normally can lead to some other problems (other parts managed striclty in EA, i. e. a tank,  could be managed in fractions, 0.75 of a tank !!! etc. )

  • Rounding in Production order

    Hi all,
    In our production orders some of them have few quantities produced. If 10 PCE
    of componants are required with a scrap of 10%, SAP proposes a backflush
    quantity of 10,1 PCE rounded to 11 PCE. It means a difference of 0,9 between
    real consumption and backflush proposition.
    How can I round correctly 10.1 PCE to 10 PCE instead of 11 PCE in this case.
    First I added working quantity UN which deals with numeric for the composant
    and work with UN instead of PCE.
    I tried to customized rounding profile in MRP2, working with Tcode OWD1 for
    examples, maintain rouding profile and unit of measurement rules , thus
    creating a rounding down rule of 50% for UN. But it failed.
    Can you explain me how to deal with accurate rounding ( from 10.0 UN to 10.4
    UN -> rounded to 10 UN, from 10.5 UN to 10.9 UN -> rounded to 11 UN) instead of
    the by-default from 10.1 UN to 11 UN -> rounded to 11 UN) ?
    Edited by: Sergiy Katerinich on Nov 23, 2011 11:26 AM

    Dear,
    Actully if you are looking handling scarp material along main product in production order,right? You can arrive a scarp quntiity
    then you define it in bill of material as master data.
    You have To maintain Negative sign While Creating BOM
    it Clearly indicates the BI-Product (like scrap)
    No other config or setting required !!!
    During  Confirmation System will automatically post 531 when you post GR (either thru auto GR or manual GR).
    i think it clears your query.
    With regards,
    Ram

  • During backflush the material consumed the roundoff value

    Dear Guru
    we defined the material consumption in decimal place (0.12 kg) in bom setting.
    when we are posting the producation through the backflush it consumed the roundoff value(1kg ).
    plz advice me ,what setting i have to do in sap to come out from this issue.

    Dear,
    Kindly check transaction CUNI, and select UOM Kg and maintain decimal places field 3 and decimal pl. rounding 4. and then do backflush.
    Check and revert back.
    Thanks
    Muhammad Ashfaq

  • How to round numbers in RTF templates?

    Hello!
    I'm using BI Publisher for Word (Oracle BI Publisher Builder for Word 10.1.3.4.1) to build a template to my BI Publisher report and I want to calculate this:
    avg(X)/(avg(Y)-avg(Z)/0.9)
    The result should be rounded to 3 places.
    I tried:
    <?(sum(X) div count(X)) div ((sum(Y) div count(Y)) - (sum(Z) div count(Z)) div 0.9)?>
    and I obtained the expected result.
    But, when I try to round in this way:
    <?xdofx:round((sum(X) div count(X)) div ((sum(Y) div count(Y))-(sum(Z) div count(Z)) div 0.9),3)?>
    I obtain 0 when is expected other value.
    Can someone help me?

    Hi ,
    You can select the number format in RTF template .Double click the Form Field select
    Type :Number
    Number Format :#,##0.000
    Thanks.

  • Query help with round up of dates

    Hi,
    I have a problem with my query.
    I am calculating the difference between two dates and I want to get the hours.
    The problem is that I want the following to happen:
    if the difference is x such that x > 0 it should round it up to 1 (example: x = 0.1 it should be rounded up to 1)
    if the difference is y such that y >1 it should be rounded to 1 (example y = 1.05 it should be rounded up to 2)
    i have the following query at the momet:
    select to_char(arrivaldate,'DD/MM/YYYY hh24:mi:ss') as "ARRIVAL", to_char(departuredate,'DD/MM/YYYY hh24:mi:ss') as "DEPARTURE", round(trunc(mod((departuredate-arrivaldate)*24,24),2)) as duration from stay_log;
    thanks.

    Hi,
    Format your code so that the physical appearance of the code gives some hint as to what you're doing, as I did below.
    When posting code on this forum, always type &#123;code&#125; tags at the beginning and end of formatted sections.
    Do you mean that, instead of 21, you want to use the flightid from the main query?
    If so, that's called a "correllated query". The tables in the main query (and their columns) can be reference in the sub-query, like this:
    select     flightid                         as "FLIGHT",
              select     destairport_id
              from     journey,
                   flight
              where     flight.flightid  = stay_log.flight_id   -- correlated to main query
              and     flight.journeyid = journey.journeyid
         )                              AS "AIRPORT",
         to_char(arrivaldate,'DD/MM/YYYY hh24:mi:ss')     as "ARRIVAL",
         to_char(departuredate,'DD/MM/YYYY hh24:mi:ss')     as "DEPARTURE",
         ceil((departuredate-arrivaldate)*24)          as "DURATION",
         cost                              as "COST"
    from     stay_log;Often, people give a table alias to the main query table that is being referenced in the sub-query, as shown below.
    That's only required when the table name appears in both FROM-clauses.
    select     flightid                         as "FLIGHT",
              select     destairport_id
              from     journey,
                   flight
              where     flight.flightid  = s.flight_id     -- table alias s used here
              and     flight.journeyid = journey.journeyid
         )                              AS "AIRPORT",
         to_char(arrivaldate,'DD/MM/YYYY hh24:mi:ss')     as "ARRIVAL",
         to_char(departuredate,'DD/MM/YYYY hh24:mi:ss')     as "DEPARTURE",
         ceil((departuredate-arrivaldate)*24)          as "DURATION",
         cost                              as "COST"
    from     stay_log   s     -- table alias s defined here
    ;

  • Unable to read data from an excel document of 365*24 values ( all rounded to 4 decimal points)

    I have an excel sheet containing data of hourly loads in MW( rounded to 4 decimals) of one year.  So, I have 365*24 values that I want to import to Labview using Read from spreadsheet.vi. However what i get in the output array is 0's and randomly some unit values at very few places. I have checked the array size of the output array and it shows different array sizes for different yearly data.
    I am attaching the four excel spreadsheets .
    Plz help me with the issue I am facing.
    Attachments:
    Load-2012.xlsx ‏95 KB
    Load-2013.xlsx ‏94 KB
    Load-2014.xlsx ‏59 KB

    If you are using LabVIEW 2014, it includes the Report Generation Toolkit (which is also available as an add-on in earlier LabVIEW Versions).  This can read native Excel files, including .xlsx.  With a few functions (3 or 4, I think), you should be able to get the entire Table into a 2D array.
    Bob Schor

  • Issue with ROUND function in RTF template

    Hi All,
    Can anyone please help me in implementing the ROUND function at the RTF template.
    Need to handle rounding of amounts at the RTF template level itself.
    The ROUND function should be implemented to the following tags:
    <?sum(current-group()/TAXABLE_AMOUNT)?> (Record level)
    <?sum(TAXABLE_AMOUNT)?> (Report level total)
    Eg. If the Sum(current-group()/TAXABLE_AMOUNT) for a particular record is 401.65 then it should round of to 402
    we try to do this using following syntax ..
    1) by declaring variable "value"
    <?xdoxslt:set_variable($_XDOCTX, value, sum(current-group()/TAXABLE_AMOUNT))?>
    2) <?xdofx:round(sum(current-group()/TAXABLE_AMOUNT))?>
    3)<?xdofx:round(xdoxslt:sum(current-group()/TAXABLE_AMOUNT))?>
    but we ding get the solution.
    A quick response on this is highly appreciable.
    Thanks,
    Praveen

    Re: Summing derived values within xdofx:
    Re: Rounding not working

  • Round Edged boxes in rtf templates

    Hi all,
    I have been really struggling to design rtf templates for XML Publisher with round edged boxes.
    The client requirement is to have all the tables/objects that contain data to have rounded edges..Just like a flowchart box..
    I have tried using the flowchart box, but when I increase the height/width of the object, the radius of the actual round edge object increases, thus distorting the entire look of the template.
    Can anyone give me some pointers on how I can overcome this issue using rtf templates.
    I would have gladly done this as a PDF template, but for the issue with lack of support for conditional logic.
    Any help will be truly appreciated
    Thanks,
    Lavina

    Hi ,
    You can select the number format in RTF template .Double click the Form Field select
    Type :Number
    Number Format :#,##0.000
    Thanks.

  • How to round values in CU41

    I would like to round characteristic value in dependency code.
    Thanks

    Hi,
    If this is your Original SQL statement, then it won't work.
    You have to change the line in AFTER_PARAMETER_FORM trigger from
    :lp_customer :=' AND account_number in ("44010","44020","44030")'to
         :lp_customer := ' account_number in (''44010'',''44020'',''44030'')';Then it will work.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to round numbers to the nearest .25

    I would like to enter a number in one field and have it rounded to the nearest .25 in another column - (whether that's rounding up or down)
    Example:
    Actual Size
    Adjusted Size
    7.21435
    7.25
    Any help would be appreciated.
    Thanks!

    Hi c,
    The ROUND function limits the precision choices to powers of 10, so we need to work within that limitation:
    Multiply by four, round to the nearer whole number, divide by four.
    Formula in column B: =ROUND(A*4,0)/4
    All cells in B are formatted as Number, with decimal places set to 2.
    Regards,
    Barry

  • How to round numbers

    assume variable a is 4.647 and i want to convert this to 4.5 . how can i round numbers like this. Is there is a predefined method in java to achive this.

    I don't think java.lang.Math.round() will do what the original post asked for, since it rounds to the nearest long number. So you still would have to write your own method to round 4.647 down to 4.5.

  • How to round numbers using javascript in Adobe Acrobat Pro?

    How to round numbers using java script in Adobe Acrobat Pro?
    For example:
    1.2 becomes 1.0
    1.7 becomes 2.0
    Thank you.

    Assuming you've already set the field to a Number format category and limited it to one digit to the right of the decimal, you can use the following custom Validate script:
    // Custom Validate script
    event.value = Math.round(event.value);
    More info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/roun d

Maybe you are looking for

  • Missing entry point kglttr after 8.1.7.0 to 8.1.7.4 upgrade

    Hi, After upgrading from 8.1.7.0 to 8.1.7.4 on Windows 2000 server, when I try to start the Oracle service for a SID, I get an error message that the procedure entry point kglttr cannot be found in orageneric8.dll. The installation was done using a s

  • Another crash report -- does it show what's causing the crashes?

    Earlier I posted a crash report from a crash I had just had. Here is another (from a second crash during the same session). I suspect the cause is the same, as the crash was virtually identical in the way it occurred, except that this time there was,

  • Dev tools don't appear in Photoshop

    For some reasons I have problems switching on dev tools in PS. I tried to use  window.__adobe_cep__.showDevTools(); and DEbug mode in Eclipse. Few times it did load, and sometimes it does appear when I debug using alerts. Any one ecnounted this issue

  • WDP to RFC error...

    Hi All, I created a RFC which is working perfectly fine in R/3. But when i use the same from WDP application RFC is going into a dump. Name of runtime error is : DBIF_RSQL_INVALID_CURSOR Exception raised is  :  CX_SY_OPEN_SQL_DB What i understood fro

  • Whats happened to my library?

    i have just downloaded the latest version of itunes 7.6 (29) .. after restarting my computer and opening itunes my whole library is missing.. all tracks and playlists and artwork .. itunes is completely empty!!! the tracks are still there in the itun