Rounding up a material
I have a requiement where I need to round up the value to the upper value.
Like if I have 5.2 I want it to be rounded up to 6.
Can someone tell me how we can do that?
DATA: vl_i TYPE i,
vl_p TYPE p VALUE '1.4',
vl_n(2) TYPE n.
vl_n = vl_p.
vl_i = vl_p.
WRITE: vl_n , vl_i.
check this fm HR_NZ_ROUNDING_DECIMALS
CATSXC_ROUND_QUANTITY
Similar Messages
-
Numeric Value rounding problems in Materialized Views
All numeric values are getting rounded in the materialized views. Is there any solution for this?
Any help is greatly appreciated...
Thanks,
SatyaHi Bill,
Actually the problem is with the Toad version I'm using, it is not interpreting the decimal values of MVs properly. They look good when I checked in SQLPLUS.
Any way, thanks for your response.
-Satya -
Rounding Profile for Material Staging
To All
Is it possible to use a rounding profile for materials used in material staging transaction LP12?
Currently it totals production order demands. e.g.
Prod Order 1000000
Material A
Requirement 0.6kg
Prod Order 1000001
Material A
Requirement 0.7kg
So quantity to be staged to the PSA is shown as 1.3kg.
I know I can manually overide the quantity and enter 2 kg and process. However, how can I get LP12 to 'round up' the total quantity so that the screen diplays 2 kg to process instead of manually entering it?
Do I use the Rounding Profile in MRP1?Rounding Profile is used to define the quantity of the planned orders during MRP run. It's not related to staging.
I wonder if you can use some different strategy in the control cycle : "2" crate parts and this can solve your issue...
But if you can work wtih cummulative quantities from released order, there is no solution in the standard.
Another option to explore is the HU (handling units) . -
Rounding profile in material master sales view
Hi, can anyone advise if we can use the rounding profile to check the qty entered rather than system rounding the qty automatically in the sales order?
Thanks
PPPls ignore...this is a duplicate thread.
-
CO assignment missing at at the time rounding off material in MIRO
Dear All,
Iam facing the problem with co object assignment missing at the time of MIRO,
>when iam posting miro with higher value than PO, it should hit rounding off of material(GL)
>it is hitting that, but it is not allowing to post into the rounding off gl, showing error like cos object missing.
>Here we r mapped setting in OKB9 with cost centers depends upon plant wise.
>if i assign in okb9 valuation area mandatory level(1), it is not allowing me to post,
>but if i assigh GL at main screen in okb9, instead of selecting valuation area mandatory(1),it is allowing me.
Please help me how to overcome the problem, is there any special setting or logic for rounding off material gl.
>That GL has cost element, cost center is in active,field staus group setting also correct,
Where else i have to check please guide me.
Thank,
chinniHI,
Once you set valuation area is mandatory, then you need to do another setting in the same screen.
Select level 1 in the OKB9 initial screeen and double click on the second screen with header " Detail per business area and valuation area". There u need to enter the value with the combination of cost center and valuation area.
You will not have any issue once you do this setting.
Vijay -
Usage of rounding profile in manual created production order
Hi,
We are making usage of various static rounding profiles.
For each of the materials produced, the rounding qty can be different, depending on the workcenters used to produce the materials (but for one material, there is only 1 rounding profile possible)
This works fine as long as we create planned orders via MRP runs (rounds up according the values set)
However, this rounding value is not taken into account (proposal, warning, error,..) when a user creates a planned order manually via MD11 or a production order via CO01.
Furthermore there is no warning message or whatever at the moment a user is converting a planned order (with a correct calculated rounded value) into a production order and manuaaly adapts the order qty.
As were are talking about a few 1000 different materials, the production planner cannot know all by heart and the rounding proposal would be excellent.
Anybody an idea how to implement this ?
Thanks and regards?Hello again,
thanks for you prompt answer.
This would certainly solve our problem in case we would have always one and the same quantity to produce for a given material; but this is not always te case.
Perhaps it was not clearly explained in my first mail, but we would like to work with one (1) ROUNDING PROFILE per material.
Example, material A can be produced in multiples of 14; as such it should be possible for the production planner to create production orders for 14, 28, 42 , 56,..... pieces. When entering a order for eg. 25 pieces (= example the qty needed for a certain sales order), the system shpuld round to 28.
Other materials (having another rounding profile) are produced in multiples 3, im mulitples of 5,...
For this particular plant we have about 50 different rounding profiles in place.
So it somewhat logic that a production planner does not know all these by heart.
If you have a solution for this as well, please let me know.
Anyway already my thanks for feedback.
Regards.
Danny -
Decimal place rounding - reorder point
Dear experts,
Can you please advise , how can I confirm that the reorder point will be displayed without decimal point (rounded).
for example in place 79.67 > 79, in place 80.43>80.How is the reorderpoint determined? manually entered or automatically calculated and set by SAP?
What is your base unit of measure? does it allow decimals, if yes, why do you want then the reorder point rounded?
If you dont want broken quantities reordered, then you should enter a rounding or a rounding profile in material master MRP view. Or define exact quantities to be reordered. -
Min Lot Size and Rounding value
Hello MM Gurus
need a small help!
I m a bit confused regarding the use of Min lot size and Rounding value in material master "MRP 1" view..
can some body teach me a detailed functionlity for both..
As both serve the purpose ..for e.g. my requirement is 7 and min lot is 10 system will create proc.proposal for 10
in similar way if i use rounding value as 10 , then als system will create proc.proposal for 10 only even if requirement is 7.
grateful if you could pl expain me the functionality of both...
another query..if I use Min lot size in material master will the same will serve the puspose of <b>min order qty ( maintained in PIRs)</b>
i'lll appriciate with good reward points...thanks in advnace
Br
SumitHelo Guys..
Thanks for valuable inputs..
i have assigned the appropriate rewards ..
pl clear my this doubt also
e.g. for a materials
Min Lot size - 40
Rounding value 25
requirement is for - 35
will it be 40 or 50 ..i understand 50..
j
ust anothe rquery..pl treat this separate issue..and separate rewards will be given
<b>can I use max stock level w/o use of lot size "HB"</b>
e.g. if my max stock level is 80
and min lot size is 30 and current stock is 60
what'll be my proc proposal created by MRP , i dont want system to cross 60 stck,,
Thanks in advance
BR
Sumit -
Quantity getting rounded off in Sales Order
Hello All,
The problem is related to Sales Order raising in SD which is as follows -
While punching a sales order for example :- Quantity (Kg) Per Kg Price (Rs.) Net Value (Rs.)
Material A 3036.800 3052 9268313.60
Material A 3037.000 3052 9268924.00
Difference in Net Value 610.40
As mentioned above the difference in net value is occurring due to the rounding of quantity of material A while the sales order is generated, which is actually totally not recommendable as we know that in standard SAP system we have the provision of rounding up of net value whereas here the quantity of the material is getting rounded up.
Please suggest how to stop this commercial rounding up of material quantity & kindly provide the configuration steps if any to stop this.
Thanks & regards
Priyanka MitraHello All,
In addition to the above mentioned problem please find below a little more explanation related to it -
In the material master Sales Org 1 View we have maintained the rounded off profile ZRON for example as " No Round Off " and conversion factor for unit of measurement is maintained as 1Ton = 1000 Kg & 1kg=1Kg. Still while punching the sale order for 3036.8Kg of material A when we enter the rate as 35732 INR/Ton the entire net value is getting rounded off to 108518.08 INR instead of 108510.93 INR, when we are checking the pricing condtions it has been observed that the condition based value is getting rounded off to 3.037 instead of 3.0368 which is actually the exact value.
Please suggest how to stop this rounding off calculation of the condition based value.
Looking forward to some valuable suggestions.
Thanks & Regards
Priyanka Mitra -
Reservation link with rounding profile
Dear all
I have a requirement that assignment of rounding profile in material master should check the reservation Qty,....means....
entry of resevation qty get rounded off according to the value given in rounding profile.........Does it possible?If yes.....suggest the way.Hey nsimpson,
Welcome to the BlackBerry Support Community Forums.
Thanks for the question.
The domain policy definitely sounds like it could be causing an issue. Do you get any specific errors when you try to open BlackBerry Link when you're not connected to the corporate network? Also can you install applications when you're away from the corporate network? Also is the application installed to a network drive or your local hard drive?
I look forward to your reply.
Cheers.
-ViciousFerret
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)! -
How to change PR Qty before rounding value is applied during MRP run?
Hi, SAP gurus~
I have an inquiry about how to change the PR qty of specific raw material before rounding value was applied during MPR run.
Here is a simple example for what I needed.
-SAP Original Logic
1. Original requirement Qty: 190
2. Rounding value at Material Master (MRP1 View): 200
System will suggest PR Qty 200 at MD04.
-My Customer Requested Logic
1. Original requirement Qty: 190
2. Additional buffer Qty for C/S purpose: 10 % of Original requirement.
3. Rounding value at Material Master (MRP1 View): 2000020
Requirement Qty would be 209 (190 + (190 x 10%) ) before rounding value is applied and system should suggest PR Qty 400 at MD04.
- I input assembly/component scrap rates (10 %) at Material master for above purpose, but it doesn`t not work for raw material.
- I tested the BADI (MD_PURREQ_CHANGE/ method: CHANGE_BEFORE_SAVE_MRP), but I can only change the PR Qty, which rounding value already applied.
How can I change the PR qty during MRP run before rounding value is applied? Is there any other method or User-exit possible to solve above problem?
Thanks in advance.Dear ,
How can I change the PR qty during MRP run before rounding value is applied? :
Simple way is goto MD04 with your material and plant code -Select the PR-Hit the pencil (change mode ) -Choose qty field and change , SAVE at individual level .Or Use : MEMASSRQ - Mass Maintenance
If you want to use User Exit , then you try a work around :
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
Try and let us know if u have any issue .
Regards
JH -
Hi Happy New Year to all.
I have a material for which bas unit of measure is EA. Order unit is Box(1 Box = 6 EA). I have maintain conversion factor in mat master.
My question is that if my
PR qty is 6 or less than 6 then my order qty should be 1 BOX.
PR qty is 12 or less than 12 then my order qty should be 2 BOX.
MRP (VB) will be run every week.
PR created automatically by system in base unit of measure only. Is it possible to create PR in Order unit (BOX)?.
For example, when i refer my PR (qty 9) in PO, system picks the order unit as 2 BOXu2026.no problem)
But the real problem is that i have system message 00 06 076 as error message which is to check the PR qty in PO (My PO qty shouldnu2019t be more than PR qty). Due to this message i am not able to create PO(since PO qty exceeds PR qty in this case) .
Is there any way when the system creates PR with Base unit of measure along with order unit also?
Thankshi,
PR is always created with base unit of measure only.
If you want the order unit field can be displayed in PR by changing the layout which is not usually the
case
1) PO qty always less than PR and 2) rounding value is defined these 2 contradict each other
You should solve this first.Either change the error message to warning or remove the rounding value in material master so that PO qty is always less than PR.
thanks
katrina
Edited by: katrina mohanty on Dec 29, 2008 7:11 PM -
Set default value to a field in MM01
Hi Friends ,
Can anyone tell me that how can set a default value to field "Rounding Value" in tab "MRP1" when i go to transaction "MM01" . I tried to search user exit/Badi for the same but i didn't get OR can say not able to find.
PLEASE HELP ME.
THANKS IN ADVANCE.
KishorIn config, there is something called a rounding profile which I think will help you achieve what you want. Here is the path to the config task.
Implementation Guide for R/3 Customizing (IMG)
-->Logistics - General
-->Quantity Optimizing and Allowed Logistics Units of Measure
-->Maintain Rounding Profile
Here is the documentation related to that task.
<i>Maintain Rounding Profile
In this step you define rounding profiles for adjusting units of measure to match delivery or transport units.
Rounding profiles can be maintained on a general or plant-specific basis. General maintenance is recommended as this requires you to enter less data.
A distinction is made between static and dynamic rounding profiles.
A static rounding profile comprises the following:
Threshold value
Rounding value
The threshold value is the value from which the system rounds up to the next delivery quantity.
The rounding value is the value to which the system rounds up as soon as the threshold value has been reached.
Several combinations of threshold and rounding values can be defined for rounding profiles.
No logistics units of measure are taken into account with static rounding profiles. This means that the system rounds up statically to the rounding values entered in the profile and not to "full pallets", for example.
Dynamic rounding profiles comprise the following:
Rounding method
Rounding rule
Indicator to show that units of measure are to be condisered only if they are allowed for the vendor or recipient.
The rounding method controls how the system rounds off:
No rounding
Rounding to a multiple of the order or sales unit
Rounding to order or sales unit, and to logistics units
No rounding
You have to define an additional rounding rule if you want your profile to round off to whole logistics units. This rounding rule is the key used for grouping logistics units of measure. The group contains all the units to which the system can round off when using the profile.
You can also have the system include only those logistics units that are allowed for the vendor or recipient. Allowed units of measure are defined in unit of measure groups that can be used at material-vendor level or at material-plant level.
Example
a) Static rounding profile
A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallets = 8 cases or 40 pieces).
You maintain the static rounding profile as follows:
From To Rounded to
01 05 05
06 10 10
11 15 15
16 20 20
21 25 25
26 30 30
31 31 35
32 40 40
41 45 45
46 50 50
66 70 70
71 71 75
72 80 80
81 85 85
b) Dynamic rounding profile
To procure materials in lower price bands, you define rounding rules containing all pallets and cases that the relevant vendors can deliver. You enter a percentage for every pallet and case category that indicates the level to which a quantity is to be rounded up to the next unit of measure.
Rounding rule 01
Unit of measure Round up as of
Euro pallet 70% full
Pallet category 2 80% full
Case for euro pallet 65% full
Case category 2 75% full
You maintain a dynamic rounding profile using the rounding method "round to whole logistics units" and assign the profile rounding rule 01.
A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallet = 8 cases or 40 pieces). The system then rounds an order quantity of 68 pieces (= 40 + 28) to 2 Euro Pallets (= 80 pieces) because the second pallet is already 70% full.</i>
Hope this helps,
Srinivas -
Hi,
I've created a sales order with decimal quantity, system allows this although i didnt maintain multuple UOM or I didnt assign any rounding profiles in Material Master. SAP should not allow decimal quantity in sales order. SAP should allow only Base UOM or Sales UOM.
Please help.
Regards,
PoojaDear Friend,
You can use the Minimum Order Quantity Feild in Material Master.
In MM01 / MM02 / MM03 under Sales: Sales Org 1 View there is a field for Minumum Order Quantity (under Quantity Stipulations tab)
You can enter 1 here.
This will make sure that the end-users cannot enter quantity less than 1.
Also for quantities more than 1 there is a option for Rounding Profile in the same screen. You can also use the same...
Hope this helps...
Thanks,
Jignesh Mehta -
Decimal in Unit of Measure conversion
Hi Gurus,
I want to enter decimals in Unit of Measure conversion. System is giving the error that "Decimal not permitted". Actually the scenario is we have a material with KG as a base unit of measure. The ordering unit is "L" litre and the conversion factor is:
1 Litre = 0.792 KG
But when I am going to enter the conversion the system is not allowing to enter decimal. What I need to do in the configuration to enable the decimal entry.
Earliest response will be highly appreciated.
Thanks>
Imran Khan wrote:
> I have entered 1000 Litre = 792 Kg, but when I order 1Kg, system is converting it into 12.62 Litres.
>
> Thanks
if 792 kg equal to 1000 ltr,
then 1 kg equals to 1,263 ltr.
when do you see this "conversion" to 12,62 litres? in ME21N after you entered 1 KG?
if yes, then your order unit is probably set to liter, further check if you have a rounding profile in material master or info record, that causes the switch from 1,26 to 12,62
Maybe you are looking for
-
How do you move apple configurator from one mac to another mac?
I want to move the configuraton of apple configurator to a new computer. How?
-
Does anyone know if it is possible to transfer music directly from an 80g Classic to a 4g Nano?
-
Hi I have recently retired and hope to purchase a Canon Eos 50D shortly. As a new comer to digital photography I would like advise on lenses to buy please, as I am totally confused by the array of different lenses on offer. I need : , <!-- /* Style D
-
Greetings, Im having some problems invoking a .net web service from CFMX7. I have a service that is supposed to create a user. i've also tried passing the createuser method jusy MyNewUser.User as well with a similar result.
-
Reg: Variable value not updating
Hi experts, I am new to bi -publisher and i am in Learning Stage. My problem:- Steps Followed 1. I am declaring a variable globally using below syntax:- *<?variable:LLP;number(15)?>* 2.Then in my Rtf i am calling for loop for lines 3. In For Loop, i