MRP Calculation of days
Hi,
How in the system the calculation of days is done
My query is I have material 'A' as a raw which required 30 days of time for procurement.
After proucrement of 'A' it is consumed in 'X' material as in house production.
So while setting the the days in mateirlal master how the days are put to get final material 'X' done in 37 days.
Here how the MRP calculate the days as from starting day if am doing mrp run today.
Regards
Rajesh
Hi,
You are asking about how the scheduling is carrying out in SAP system.
1. There are two types of scheduling.
a)Basic dates scheduling :
This is independent of required qty. This will take time from material master mrp2 view.
b) Lead time scheduling:
This is dependent of requirement qty. This will take time from routing. This is very accurate.
2.To calculate total days(37 days):
For inhouse production, system will consider Inhouse production time( mrp 2 view),GR processing time, Opening period.
For External procurement system will consider Processing time for purchasing (OPPQ), Planned delivery time(MRP2),GR processing time(mrp2).
3.Here how the MRP calculate the days as from starting day if am doing mrp run today
Say your requirement is 100 nos on 15.03.08. Suppose if you run MRP today, system schedules the dates by scheduling types ex. Backward Scheduling, Forward scheduling, Today Scheduling (settings in tcode OPU5)from your requirement date.First it will schedule for material X then for material A.
Hope you have got some idea about scheduling.
Similar Messages
-
Do SAP B1 MRP calculation able to calculate production lead time until min?
what i mean is that
whether in SAP B1 the MRP calculation will be able to calculate the production lead time until the level of minutes? since now in item master, the lead time column only can key in by days.
Thank you -
The App Store indicates there is a Software Update that appears to include the HP Printer Software Update 3.0 and iTunes 12.0.1
Unfortunately, the software update fails to install. Instead, it just sits there 'Calculating' for days with no progression on the status bar of the overall update.
The update buttons of both the HP Printer Software Update 3.0 and iTunes 12.0.1 are both greyed out, with no progress bar.
Not sure of what the issue is, there is no warning or error dialog box that appears or any indication of an application that may be interfering with the install.
Any advice?
MacBook Pro (17-inch, Early 2011) 2.3 GHz Core i7, 4GB RAMThanks for the suggestion. I wanted to install the individual updates but because I had settings to automatically download and install updates, whenever I opened the App Store, the system would try to download and install, preventing me from canceling the update to execute each application update one at a time.
After changing the settings from automatically downloading and applying updates, followed by a restart. I was able to open the App Store and run each individual update.
Thanks again. -
How to Map the MRP in 10 days bucket
Hi,
Our client wants to run DRP as well as MRP in 10 days bucket. Currently, we have option to upload forecast using transaction MD61 in days or weekly or monthly buckets.
How to set the 10 days bucket & run the MRP?. I would appreciate if you advice me the detailed steps including config, if any needs to be done.
With warm regards
Elumalai.PThere is a concept called "planning calendar" in MRP
we can set our own periods/buckets for MRP.
The documentation path in SPRO
SPRO
Production >> Material Requirement Planning >> Master Data >> Maintain Planning Calendar..
Pl go through documentation and let me know, if you have specific queries..
I am unable to provide the full development details as I have not worked on this concept yet.
Thanks
JK -
Calculating Business Days in a Date Range
I have two questions:
1. Does anyone know a better formula for calculating business days in totals?
I am currently using the formula in https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/701a52c3-6b1e-2b10-21b3-a6e101be1a0f
I tailored to my needs. However, there are still a lot of manual maintenance every year.
2. I have many reports that need the formula. It is very consuming to update the formula in each report. Does anyone know a better way to do it?
I use Crystal XI. 11.0.0.895. We do have a Crystal Enterprise server hosted in another department.Not sure if this is any simpler but you could save this as a custom function, that way you will have to modify it once a year for the holidays.
numbervar days;
datevar date1 := minimum({?My Parameter});
datevar date2 := maximum({?My Parameter});
days := DateDiff ("d", date1, date2) -
DateDiff ("ww", date1, date2, crSaturday) -
DateDiff ("ww", date1, date2, crSunday); // this will give you the number of business days
// (excluding Saturdays and Sundays) for a given date range.
// then, for each holiday, you can enter lines like this
if date(2008,01,01) in {?My Parameter} then days := days - 1;
// The final tally of DAYS should give you the total business days in a date range.
totext(days,0);
where {?My Parameter} is the date range. -
Calculating work days in a function
I have a function that will count the total number of days between two weeks. ie May 19, 2010 to June 18, 2010 is 30 total days in my cycle. We dont work on weekend so that 30 days is not correct. The formula below is how i'm calculating the days between cycles. Is there any way to not count the weekends in my cycle? Please see formula below:
TIMESTAMPDIFF(SQL_TSI_DAY, "Release Dim"."Release Cycle Start Date", "Release Dim"."Release Cycle End Date")Thanks Hammett81.
I used your formula but it's still calculating the days in my cycle as 30. My start date comes from my column "Release Dim"."Release Cycle Start Date" and my end date comes from the column "Release Dim"."Release Cycle End Date". Can you tell me why the formula below is giving me the weekends included in my count?
Thanks a million for all your help.
TIMESTAMPDIFF(SQL_TSI_DAY,TIMESTAMPADD( SQL_TSI_DAY, 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date"),"Release Dim"."Release Cycle Start Date"),TIMESTAMPADD(SQL_TSI_DAY, 7-DAYOFWEEK("Release Dim"."Release Cycle End Date"),"Release Dim"."Release Cycle End Date"))+ CASE 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date") WHEN 6 THEN 5 ELSE 7-DAYOFWEEK("Release Dim"."Release Cycle Start Date") END-CASE 7-DAYOFWEEK("Release Dim"."Release Cycle End Date") WHEN 6 THEN 5 ELSE 7-DAYOFWEEK("Release Dim"."Release Cycle End Date") END -
We've recently adopted BOBJ/Webi at my company and I find the software to be rather easy to use in some instances and mind-wreckingly hard in others. One roadblock myself and other users are bumping into is calculating work days. A definition of a work day in this instance would be Monday through Friday. The monkey wrench is that we would also like to subtract out holidays, such as July 4th and Thanksgiving. Then end product would be calculating out what work day the current date is and how many days it is out of so that a simple straight-line extrapolation can be made (Metric/Current Work Day)*Total Work Days. Also, what we invoice/ship is not accounted for until the following day... for example, today (2.22.10) would be the 15th workday in February out of 20 total work days.
Appreciate any and all help/assistance/counsel I can get on this.
RyanHi Ryan,
If I have understood your question then I think following solution may help you.
Do you have your Universe created on the top of BW query or is it some other Database?
If it is some other database then create couple of Filter at Universe level: Such as Holidays so that you can use this one to subtract holidays:
For Example:
ucase(Calendar_year_lookup.Holiday_Flag)
ucase(Calendar_year_lookup.Holiday_Flag) = 'Y'
Then you create another Dimension for Work days that would be between Monday to Friday.
Once they are created in Universe you export Universe.
Now create a formula where you would use month minus custom dimension workdays and minus holidays to get actual work days which would be from Monday to Friday and son on.
Basically we can achieve this by using filters and formulas.
Wish you good luck.
Bashir Awan -
Isseu regarding MRP calculation.
Hi Gurus,
We have MTS scenario with strategy 10 ,requirement type LSF , in MD61 PIR are present from 01 /01/2011 till today , but when i check in MD04 only requirments from 01/04/2011 are taken into consideration ( for LSF requirment after 01/04 system is showing -ve qty and plan order are generated for these independent requirement ) , i want to know why PIR from 01/04/2011 are taken into account and why older PIR are not considered.
Current stock is 0 and planning time fence in 30 days and planning horizon is 100 days,, please help me understand why older demands are not taken for calculations.
Thank you,Hi.
I assume you have run the MRP with the processing key NETPL (Net Change in Planning Horizon). And as you have define planning horizon 100 Days that's why system is taking the requirement for only 100 days. If you want to have total requirement have to consider use MRP processing key NETCH (Net Change in Total Horizon).
Regards
Vivek -
Interest Calculation base days
Dear All,
I have configured interest calculation for line item & balances with the calender type as G.
During the execution of FINT, system consideres base days as 366. Our fiscal year is April 2008 - March 2009. Summing up the days it is only 365.
Please let me know the solution so that system calculates the interest based on 365 days.
Thanks & Regards,
Ajay GupteHI
WHAT EVER CONFIGURED NO NEED TO TAKE IN TO CONSIDRATION EVERY TIME.AS PER DAYA PER ANNUM U NEED TO TAKE
FOR EXAMPLE DAYS IN A YEAE LIKE 365 OR 366
GO TO OBAA
SELECT INTETEST CALCULATION INDICATOR OR ACCOUNT NUMBER
PRESS ON DETAILS BUTTON
GO TO CALANDER TYPE GIVE WHAT EVER U WANT
B 30/360
J 30/365
F 28,..,31/360
G 28,..,31/365
I .E AS PER U R REQUIREMENT
DO THE SAME IN GOLDEN CLINET AND TRANSPORT TO QUALITY LATER TRANSPORT TO PRODUCTION
I THINK NED FULL
SUMATHI
ACCENTURE -
Calculating Business Days(Start_dt - End_dt)
Hi Friends,
Could anyone of you help me to find out the business days(Excluding Saturdays and Sundays) between two dates.
The difference should be calculated of both the Start_dt and End_dt values truncated. The result should be calculated and stored according to business days, it means weekend days are to be ignored.
create table sample (id number,start_dt date,end_dt date). The table values are as follows;
ID ; start_dt ; End_dt
1 ; 08-02-2012 ; 15-02-2012
2 ; 30-12-2011 ; 15-02-2012
My output should be;
ID ; start_dt ; End_dt ; Expected Business Days (Excluding Weekends)
1 ; 08-02-2012 ; 15-02-2012 ; 4
2 ; 30-12-2011 ; 15-02-2012 ; 33
Please note that, the Start Date and End Date can be any date from any year. Please help me on this.
Regards,
Williams.
Edited by: Williams on Feb 8, 2012 6:28 PM
Edited by: Williams on Feb 8, 2012 6:29 PMHere's my first cut at it.
SQL> WITH sample AS
2 (
3 SELECT 1 AS id, TO_DATE('08-02-2012','DD-MM-YYYY') AS start_dt, TO_DATE('15-02-2012','DD-MM-YYYY') AS end_dt FROM DUAL UNION ALL
4 SELECT 2 AS id, TO_DATE('30-12-2011','DD-MM-YYYY') AS start_dt, TO_DATE('15-02-2012','DD-MM-YYYY') AS end_dt FROM DUAL
5 )
6 /* END SAMPLE DATA */
7 SELECT id
8 , start_dt
9 , end_dt
10 , COUNT(*)
11 FROM sample
12 JOIN ( /* Exclude Weekends */
13 SELECT dt
14 FROM ( /* Generate a range that includes all days */
15 SELECT min_start_dt + (LEVEL - 1) AS dt
16 , TO_CHAR
17 ( min_start_dt + (LEVEL - 1)
18 , 'fmDAY'
19 , 'NLS_DATE_LANGUAGE=AMERICAN'
20 ) AS dy
21 FROM ( SELECT MIN(start_dt) AS min_start_dt
22 , MAX(end_dt) AS max_end_dt
23 FROM sample
24 )
25 CONNECT BY LEVEL <= max_end_dt - min_start_dt + 1
26 )
27 WHERE dy NOT IN ('SATURDAY','SUNDAY')
28 ) dys ON dys.dt BETWEEN start_dt AND end_dt
29 GROUP BY id
30 , start_dt
31 , end_dt
32 /
ID START_DT END_DT COUNT(*)
2 12/30/2011 00:00:00 02/15/2012 00:00:00 34
1 02/08/2012 00:00:00 02/15/2012 00:00:00 6
2 rows selected.I got different results then you though. Can you say why your counts are what they are? -
Calculating 60 days from last run date and sum a total for those 60 days
I need to calculate 60 days from last run date (I will create prompts), then take that number to sum a total of items.
Can someone be of assistance.Hi,
You can create a calculation to calculate 60 days before your run date. e.g. if rundate is your date item then the calculation will be:
rundate-60
Rod West -
Suggestions on calculating work days instead of Calendar days
Hi there,
I would like for someone to suggest how would I approach a project in calculating a date that would consider if a date is a holiday or a work day. For example: If I take current date + 7 normally it would be a week (7 days). However, if a day in that week is a holiday, then it would return the 8th day. If the 8th day falls into a weekend, then, get the next work date.
Any ideas would be greatly appreciated.
Thanks for your assistance in advance.Thanks. This give me a pretty good start. I am thinking that I need a table that store holidays (Non-work days excluding weekend). Once I load this table into memory, then I would check the first date + 7. Then compare the two dates against the array to see if there is a holiday. If there is, then I would increment the end date by 1 and validay if it is a weekend date. If it is, I would continue to incurement until it is nolonger an weekend date. Once I have that, I would check the date against the array (where I left off) and continue to validate to see if there are more holidays.
What do you think about this approach? -
Function for calculating working days
Dear Oracle
Is there any function to calculate no of working days if I pass From date & To date?.
Thanks
Christy.This would work for normal weekdays, but what about bank holidays?
They change from country to country, so you need to create a package yourself.
We got one that looks like the following:
create or replace
package body zentr_date_functions as
function eastern (p_year in number) return date is
-- Get easter sunday (working from 1900 to 2099)
-- CKL 02.09.1998 nach c't 18/98
l_a pls_integer;
l_b pls_integer;
l_c pls_integer;
l_d pls_integer;
l_e pls_integer;
l_p pls_integer;
function make_date(p_d in pls_integer, p_m in pls_integer, p_y in pls_integer) return date is
begin
return to_date(to_char(p_d, '00')||to_char(p_m, '00')||to_char(p_y, '0000'), 'DDMMYYYY');
end;
begin
if p_year not between 1900 and 2099 then
return null;
end if;
l_a := mod(p_year, 19);
l_b := mod(p_year, 4);
l_c := mod(p_year, 7);
l_d := mod(19 * l_a + 24, 30);
l_e := mod(2 * l_b + 4 * l_c + 6 * l_d + 5, 7);
l_p := 22 + l_d + l_e;
if l_p > 31 then
if l_p = 56 and l_d = 28 and l_a > 10 then
return make_date(18, 4, p_year);
elsif l_p = 57 then
return make_date(19, 4, p_year);
else
return make_date(l_p - 31, 4, p_year);
end if;
else
return make_date(l_p, 3, p_year);
end if;
end eastern;
function is_workday (p_date in date) return number as
-- is this a working day?
l_eastern date;
begin
if to_char(p_date, 'DY', 'NLS_DATE_LANGUAGE = AMERICAN') in ('SAT', 'SUN') then
return 0;
end if;
if to_char(p_date, 'DDMM') in ('0101', '0105', '0310', '2412', '2512', '2612', '3112') then
-- fixed date bank holidays in lower saxony, Germany
return 0;
end if;
if to_number(to_char(p_date, 'MM')) not between 3 and 6 then
return 1;
end if;
if to_number(to_char(p_date, 'YYYY')) not between 1900 and 2099 then
-- calculation not possible
return null;
end if;
l_eastern := eastern (to_number(to_char(p_date, 'YYYY')));
if trunc(p_date) in (l_eastern - 2, l_eastern + 1, l_eastern + 39, l_eastern + 50) then
-- good friday, easter monday, ascension day, pentecost monday
return 0;
end if;
return 1;
end is_workday;
function workdays_between (p_date1 in date, p_date2 in date) return number as
-- count number of working days between p_date1 and p_date2 (incl. both)
l_count pls_integer := 0;
begin
for i in 0 .. p_date2 - p_date1 loop
l_count := l_count + is_workday(p_date1 + i);
end loop;
return l_count;
end workdays_between;
end;
/ -
Calculating Vacation Days using a query
Hi everyone. I have an issue with the following query provided by Pollywog. He did a great job on it however there is a bit of a problem in the way it operates. What it does is calculate the number of days for this year excluding saturday and sunday. It also has a cutoff date, July 1st. This is where the problem lies.
Currently if the user chooses a vacation day that includes the cut off date. So from june 30th to july 5th it doesn't bundles it together and calculates it into the next year total. So if you have a vacation from June 15th to July 2nd it all goes into your next year's vacation days.
What I want is to have this year's vacation days be calculated into this year and next year to be calculated into next year. So if you have the June 15th to July 2nd vacation it would add 11 days to This year's total and 2 days to next year's total.
WITH t AS ( SELECT id,
MAX (strt) strt,
MAX (finish) finish,
SUM (dys) days_off
FROM (SELECT id,
strt,
finish,
CASE
WHEN TO_CHAR (dy, 'day') LIKE 'saturday%' THEN 0
WHEN TO_CHAR (dy, 'day') LIKE 'sunday%' THEN 0
ELSE 1
END
dys
FROM vacations
MODEL
PARTITION BY (ID id)
DIMENSION BY (0 d)
MEASURES (POCETAK strt, KRAJ finish, POCETAK dy)
RULES
(dy [FOR d FROM 1 TO finish[0] - strt[0] INCREMENT 1] =
(NVL (dy[CV () - 1], dy[CV ()]) + 1)))
GROUP BY id
ORDER BY id)
SELECT t.id,
t.strt,
t.finish,
t.days_off,
vacations.korisnik,
SUM (
CASE
WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
ELSE 0
END)
OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
this_years_running_total,
SUM (
CASE
WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
ELSE 0
END)
OVER (PARTITION BY vacations.korisnik)
this_years_grand_total,
SUM (
CASE
WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
THEN
days_off
ELSE
0
END)
OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
next_years_running_total,
SUM (
CASE
WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
THEN
days_off
ELSE
0
END)
OVER (PARTITION BY vacations.korisnik)
next_years_grand_total
FROM t, vacations
WHERE t.id = vacations.idLooking forward to any ideas you can offerhi,
You need to write a code to get the key figure and characterstics value.
First step is to defined the structure of all the field that you want to read.
This table I_AXIS_DATA will contain the characterstics.
This table I_CELL_DATA will contain the keyfigure.
Please find the code.
READ TABLE I_AXIS_DATA INTO WA_AXIS_DATA WITH KEY AXIS = '001' .
IF SY-SUBRC = 0.
LOOP AT WA_AXIS_DATA-SET INTO WA_SET.
INDEX = INDEX + 1.
IF WA_SET-CHANM = 'infoobject name'.
WA_ROW_COL-fields = WA_SET-CHAVL_EXT .
ENDIF.
IF WA_SET-CHANM = 'infoobject name'.
WA_ROW_COL-field2 = WA_SET-CHAVL_EXT.
ENDIF.
ENDLOOP.
ENDIF.
******* POPULATE COLUMNS AGAINST ROWS
CLEAR WA_ROW_COL.
V_COUNT = 1.
INDEX = 1.
LOOP AT IT_ROW_COL INTO WA_ROW_COL.
WHILE ( V_COUNT <= V_NUMOFKEYF ).
READ TABLE I_CELL_DATA INTO WA_CELL_DATA INDEX INDEX.
IF V_COUNT = 1.
WA_ROW_COL-keyfigure = WA_CELL_DATA-FORMATTED_VALUE.
ENDIF.
V_COUNT = V_COUNT + 1.
INDEX = INDEX + 1.
CLEAR WA_CELL_DATA.
ENDWHILE.
APPEND WA_ROW_COL TO IT_R_C_H.
V_COUNT = 1.
Hope this is helpful.
Thanks,
Saveen Kumar -
How to calculated "Target days' supply" in SOP Planning
Hello all
after input "Target days' supply" in SOP. then run "Create Product Plan"
there will create production plan in screen. thus i used "Target days' supply" strategy.
there have one quesion, how to calculated product quantity?
Thanks.Dear,
System calculate days supply automaticly, this that no of days required to maintain that stock level,
In the standard planning table, choose Edit-Create production plan-and the desired strategy (either Synchronous to sales, Zero stock level, Target stock level, Target daysu2019 supply, or Plan externally).
Please refer this link for help,
http://help.sap.com/saphelp_47x200/helpdata/en/a5/631fdf43a211d189410000e829fbbd/frameset.htm
Regards,
R.Brahmankar
Maybe you are looking for
-
Poor query performance in WebI on top of BEx queries
Hello, We are using Web Inteliigence i BO 3.1 (SP0) to report on BEx queries (BW 7.0). We experience however that reporting is much quicker for the same set of data when using BEx Analyzer than when using WebI. In BEx it is acceptable, but in WebI it
-
Hi there Patch Tuesday yesterday (10th June2014). As always we deploy new patches first to a test collection where Windows 7 updates automatically apply. Upon trying to rebuild any of the machines in this test collection, we were presented with the f
-
How to install Windows XP into a Flash Drive?
I would like to install Windows XP into my flash drive. Not boot from the flash drive and install into my PC. I've searched extremely hard on the internet and found the other thing around and I tried what I could. Any suggestions? (Here's what I trie
-
Hi i have a servlet which simply verify the userId and password and after successful login it redirect the control to a JSP page where the data is displayed. When i log out it redirect me to another JSp page Known as "Login.jsp" and from there when i
-
Are one time vendors supported in SRM ( replicated from ECC backend to SRM)
Dear All, I have noticed in various past posts that one-time vendors are not supported in SRM. Is this still the case fo SRM 5.0 and ECC 6 backend set? Why is it that one time vendors cannot be replicated to SRM? If we create a one time venor manuall