Capacity requirement group by week

Inside CM01, given a work center,  we can get capacity requirements group by weeks.
Is there any function module to get the same answer?
I've found that table KBED seems to hold the information I need.
But don't know how to group the records into different slot of week.
Can anybody help?
Regards,
Norman.

Hi,
user588757 wrote:
Hi Frank,
Too good... it worked !!!!!!!!!!!!Thanks. If it's too good, I suppose you can always add errors.
And can we give input for END DATE...it does have only start date..Yes, you could give the end date instead of the start date.
You could allow either.
Suppose you had a form that returned user_input_date (a DATE) and a string, user_date_type, returned by a radio group, 'START' if the user indicated that the date entered was a start date, or 'END' otherwise.
WITH  d  AS
    SELECT  user_input_date -     CASE
                         WHEN  user_date_type = 'START'
                         THEN  0
                         ELSE  6
                    END     AS input_startdate
,     g  AS
    SELECT  (creation_date - input_startdate)  AS wk_num
    FROM    xxsirf_per_addresses_tl
    CROSS JOIN  d
SELECT    MAX (input_startdate + (7 * wk_num))          AS wk_start
,         MAX (input_startdate + (7 * wk_num) + 6)     AS wk_end
,         COUNT (*)
FROM      g
GROUP BY  wk_num
ORDER BY  wk_num;Though if you were running this from a form, it would be easy to do sub-query d separately, and pass the input_startdate that it computed to the query I posted earlier.
I would discourage allowing users to input both start- and end dates, because they won't necessarily be six days apart.
Of course, you could ignore one if both were entered, but that's exactly the kind of thing that confuses end users.

Similar Messages

  • How can i use capacity reservation group

    I have a set of slow moving SKU which i want to plan in a specific week every month , I know i can use PPC calendars for that but how can i use capacity reservation group in SCM 7.0 to achive this through wave heuristic
    Please advise
    Prasanna NBaware

    Hi Ambrish,
    PPDS capacity reservation functionality available from version  SCM 5.1 onwards. for your requirement you can reserve the capacity  at resource level  for product.
    To archive this requirement, you need to do
    u2022Create Planning Object Structure (POS) with the required characteristics (Product & Location mandatory)
    u2022Create a planning area assigning the planning object structure
    u2022Create Characteristics Value Combination (CVC) in the POS
    u2022Maintain Capacity Reservation Group (resource)
    u2022In Product Master > Demand Tab> assign the consumption group
    Result: .     Planned order gets created for the demand based on the allocated quantity for the particular period
    please let me know if you have any further question
    bye
    Dhaiva

  • REM Planning table - Capacity requirements and Levelling.

    Hi i have few queries in REM planning table.
    In REM planning table MF50 my selection is based on entire plant. Here in total capacity data tab for any particular plant it will show the list of work centers which are maintained in particular plant to know the capacity details as per our requirement.
    1.When i select any WC line and click on change capacity display from CRP it is giving break up with required and available capacity hours for any particular WC available time is assume 22.5 hrs per day which is given in operating time in capacity header in WC but in MF50 it is showing 23hrs.I have defined shift sequence in OP4A and assigned in capacity header grouping which have 3 shift with 30 mins break in each shift which results in 22.5 hrs working for a day so in shift sequence and operating time it is mentioned as 22.5 hrs is the time available for day but in MF50 it is showing 23 hrs available for day?
    2.What is due% in MF50 total capacity data for any work center and how required time would be calculated?
    Appreciate if any one has any example.
    Cheers
    KK

    Hi bump for any suggestions?
    i have noticed one thing the time available is a round up value actual time available as per capacity header is 22.5 but in MF50 it is showing as 23..if i change to 21.5 then it is showing 22hrs available per day is this the standard behaviour?
    can anyone tell me how the required time is calculated?
    Cheers
    KK

  • CLOSED: Resource requirements logic in weekly buckets

    I have a problem with identifying resource requirements in separate weekly buckets.
    Let's consider just one resource, here is an example from live application:
    Bucket A: 30-07-2006 00:00:00 - 06-08-2006 23:59:59
    Bucket B: 07-08-2006 00:00:00 - 13-08-2006 23:59:59
    Resource availability (actual, not bucketed):
    06.08.2006 22:00-00:00 (2h)
    07.08.2006 00:00-00:00 (24h)
    ... (24h)
    Resource requirement from ASCP:
    Start Date: 06-08-2006 13:30:00
    End Date: 07-08-2006 10:41:00
    Resource hours: 15
    Resource units: 1 unit
    Question is how many of resource requirement hours fall in the bucket A, and how many in bucket B?
    Customer needs to check resource requirement hours in each bucket for reporting purposes.
    What is the logic behind? How to identify exact resource hours used in each bucket for resource requirements falling in two adjoining weekly buckets?
    Thanks in advance for your help
    Catalina
    Message was edited by:
    user447176

    Have a look to package MSC_CRP_HORIZONTAL_PLAN : this package computes data for resource horizontal plan. It will help you to understand how available and required capacity are computed.
    We currently use this package (procedures MSC_CRP_HORIZONTAL_PLAN.query_list and MSC_CRP_HORIZONTAL_PLAN.populate_horizontal_plan) to compute data for our reports. It gives the results displayed into the workbench.

  • CM02 Transaction is showing Capacity requirements in Hours

    HI Guys,
    I have a question in regards to CM02 transaction, Plz help me finding out what is wrong with it  let me walk you through the step which I take
    CM02 > Workcenter name> Plant
    Click on Planning (Upper Left Corner) => Profiles > Option Profile and select SAPB023 which is Weeks (78)
    Click on Standard  Overview Tab (upper left Corner)
    Select any one the week and hit Cap. details/Period
    My problem begins here
    IN Rem.proc column(Remaining capacity rqmts.for operation segment "Processing) it is showing as Minutes, however in Reqmnts (Capacity requirements) it is showing the same value as in Hour Unit with the same number for instance if the number is 30 min and Reqmnts column it shows as in hour.
    Why it is showing Unit of Measure in Hours rather then Minutes and secondly, where this value is coming from.
    Thanks In Advance.

    CM02 > Workcenter name> Plant
    Click on Planning (Upper Left Corner) => Profiles > Option Profile and select SAPB023 which is Weeks (78)
    Click on Standard Overview Tab (upper left Corner)
    Now before you do the below step ,Go to Setting > General > Here you will geta Screen POP up for Settings: VAlue display
    And here there is check box for the unit of measure for capacity
    activate the check box.- and then follow the below stept. F1 details of this check box is self explanatory
    and now you do the below step
    Select any one the week and hit Cap. details/Period
    Kinldy let me know the feedback'
    reg
    dsk

  • Rough -cut plan with capacity requirment calculation

    Hi all,
    We checking SOP with rough-cut plan
    We created Rough-cut profile in mc35 for our bottle neck work center with base quantity -1 and time span - 1
    then we selected new work center (there is no existing cap req). and assigned base unit measure:min.
    and we assigned 1min for each day and saved the profile.
    Now we went to mc88 and checked the material's active version production plan. (period split- DAY)
    in View -> capacity situation -> rough cut planning -> show.
    System calculates some capacity requirement for our production plan.
    Say for tomorrow's date i given 1000 qty - production plan.
    but system showing capacity req
    Work center:  TESTWC3                  Plant: 0001         Capacity:  001
    Info structur  Material          Plant   Order qty     Unit     From              To          Capacity reqmts      Unit
    S076            TESTFERT14    0001  1000.000       EA    29.01.2010  11.02.2010   9000.000              MIN
    with 9000min and cap load more than 652% ( Actuallly  it has to show 1000min as per rough cut plan profile)
    Our available capacity of work center per day - 1380 min
    We cant understand the capacity requirement calculation in MC88..
    Help us out...
    Thanks in advance

    Hi,
    Rough cut planning is genrally done for the group of material say product group, group of workcentre rather than individual material or workcentre.
    As standard, in resource table whatever the value you enter that corresponds to no. of days. Each column represents one day.
    Pl. refer this link for clear understanding of the same.
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/63212e43a211d189410000e829fbbd/frameset.htm
    Madhava

  • Planned Order Capacity Requirement CM29

    Hi All
    This may be a trivial question for you guys, but I am couldnt find the problem, need your help again please:
    In CM29 my planned order and process orders are visible, and I am using the standard overall profile: SAPSFCG013.
    Earlier I use to see a continous red bar for length of the planned order / process order in the graph, but somehow now it just show up as a single line, irrespective of the order quantity.
    Can you please let me know how to resolve this!
    Thanks in advance!
    -Rahul

    Hi Vivek
    Here is the link for attached screen shot for CM29 with weekly and daily split:
    CM29 with weekly split:
    [CM29 Screenshot|https://picasaweb.google.com/110467857304221340164/CM29?authkey=Gv1sRgCNLYw_uHj8-lUA#5626401198199374018]
    CM29 with daily split:
    [DailySplit|https://picasaweb.google.com/110467857304221340164/Jul72011?authkey=Gv1sRgCLKtzPPn5_SARQ#5626402521518801586]
    I have trie changing hte qty to 1000 and more, the capacity (detailed capacity and roughcut capacity requirement) changes as expected but the graph does not moves
    Thanks in advance
    Rahul

  • Planned capacity Requirement of Past

    Dear Experts
    I Have selected the profile and displayed the report through CM02 for the past capacity planning Requiremnt.But the problem with report is that it is only showing the capacity of Released order and order status with TECO is not displaying in the report.Please guide me to get the same by selecting the suitable profile.
    Actually i want to see the how much was the capacity planned in last month or week.Please tell me some suitable report to get the required output.
    Thanks in advance for your valuable help.
    AR
    Edited by: Amit  Rana on Aug 26, 2009 12:45 PM
    Edited by: Amit  Rana on Aug 26, 2009 12:53 PM

    Hi Experts,
    i Want to see the Planned capacity for workcentre.I mean to say what was the actual planned capacity of workcenter last week or Month.The system is only displaying order which is having released status system is not considering order status with TECO.This ineed to analyse my capacity requrement for this year Plan vs Actuall.
    Please guide me
    AR
    Edited by: Amit  Rana on Aug 26, 2009 2:52 PM

  • How to calculate the Remaining capacity requirement in SAP Production Planning?

    Hi SAP Guru's,
    I would like to make report on Work center capacity with Remaining capacity requirement, available Capacity and Remaining available capacity requirements.
    Can please let me know the Transparent tables for below Fields?
    BEDAKT: Capacity Consumption Rest
    OUTPUTLEN: Capacity Consumption Offer
    SLIBELAS: Capacity load and
    SLIDELTA: Capacity Unused.
    Could you please help me accordingly
    Regards
    Bhupal

    Wrong space. Please move this to BW area.

  • Function Module to get a work center's capacity requirements (load) within a given period

    Hi all experts,
    Currently I’m doing a capacity summary report similar to CM01, but with a summarized capacity availability and loading for a period.
    Selection Parameters: Work center range from and to, Period from and to
    List Format: Work Center, Avail Capacity, Loaded Capacity, Free Capacity, Load %
    I have found a standard function module (FM) to get work center's available capacity for a period, but still facing the challenge to find a FM to get a work center’s capacity requirements (load) in a period.
    I have read through all the related threads from the web, and tested the recommended FMs, but still cannot get a right result.
    Please help to provide some leads for a FM or the logic.
    Best Regards
    Philip

    Hello Philip
    The following function modules should be useful:
       - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
       - CY_SECONDARY_SELECTION          - Check for additional criteria
       - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
       - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
       - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
       - CY_LOAD_DISTRIBUTION            - Distribution key
    Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
    BR
    Caetano

  • Group by week between date range

    Hi,
    i'm having a table for documents. The documents are received from diffeent dates. I've to calculate number of documents received on weekly basis.
    I need an sql to count the number of documents between two given dates grouping by weekly.
    My week starts on Sunday and ends with Saturday.
    I've tried group by with to_char(documentdate,'IW') , but this will take Monday to Sunday as a week & the incomlete weeks i'm not able to calculate. ie : in the below output the date range 1/28/2007 - 1/31/2007 is not a complete week . ( ie saturday to wednesday)
    I need out put should be like this for Date Range: 12/31/2006 to 1/31/2007
    week               count of documents
    12/31/2006 - 1/6/2007 10
    1/7/2007 - 1/13/2007     40
    1/14/2007 - 1/20/2007     30
    1/21/2007 - 1/27/2007     20
    1/28/2007 - 1/31/2007 10
    Please help me to get this.....
    (columns in documents table is documentid and documentdate)

    your're very close with IW. you just need to shift the data to get it to fall within the correct range. btw, you don't need julian dates. it's overkill
    trunc(date+1,'IW') will push the date into the correct week range (IW will put sunday one week earlier than you want, so push it ahead a day before truncating).
    then subtract 1 day from the result to get it to display with sunday's date instead of monday
    trunc(mydate+1, 'IW')-1
    and the week end date is simply trunc(mydate+1, 'IW')_5
    select mydate, to_char(mydate,'Dy') dy,
    trunc(mydate+1,'IW')-1 wk_Start,
    trunc(mydate+1,'IW')+5 wk_end
    from (select sysdate-rownum mydate from dual connect by level < 20)
    order by 1

  • In Material Master Screen,functionally what is Requirement Group in the MRP

    In Material Master Screen,functionally what is Requirement Group in the MRP Screen.Pls explain its functionality

    Hi,
    The safety time / actual range of coverage ensures that the planned warehouse stock covers the requirements of a defined number of days. It therefore serves as a time float and thus works alongside the safety stock, which acts as quantity float.
    The system simulates bringing the requirements forward by the specified number of days and the planning for the receipts, created for these requirements in the planning run, is also brought forward by this number of days.
    Prerequisites
    ·   You have set the Safety Time indicator in the material master record (MRP 2 View) to define whether the safety time is only to apply to independent requirements or to all requirements.
    ·    In the material master record (MRP 2 View), in the Safety Time/Actual Range of Coverage field, you have entered the number of workdays by which the requirements are to be brought forward.
    ·    If, in addition to this actual range of coverage, you also want to define a different number of workdays in certain periods or a safety time less than one day then, in Customizing for MRP in the activity Define Period Profile for Safety Time/Actual Range of Coverage you can define a period profile and assign it to the material in the material master record.
    Regards,
    Vijay

  • Function module to calculate capacity requirements of production order

    HI
    Hav a requirement to calculate capacity requirement  for production orders like we see in cm50... does anyone know a function module to calculate capacity requirement?

    Hi All,
    Just to reopen this issue, even I am looking for a similar functionality.
    To reinstate the requirement:
    I want to find shifts and corresponding capacities for a work center. These details are obtained from CR03 and CR13 transaction.
    If possible do let me know Function module or tables for the same.
    Debs

  • Grouping Data Weekly

    Hi,
    I have a query in sql
    Table employees
    columns : empid,hiredate,job_id,salary
    I want to count(empid) and group data weekly with job_id , order by month.
    Sample of Data like :
    mon week job_id count(empid)
    jan week1 sa_rep 15
    jan week2 sa_rep 20
    jan week3 sa_rep 35
    jan week4 sa_rep 40
    feb week1 sa_rep 10
    feb week2 sa_rep 05
    feb week3 sa_rep 12
    feb week4 sa_rep 15
    Help please
    Thanks and Regards,
    Ramesh J C

    you can
    group by to_char(hiredate, 'IW'),  --week of year
                  to_char(hiredate, 'Month')and
    order by to_char(hiredate, 'Month')

  • Project MRP - Requirement Grouping in PR

    Dear Experts,
    Please note that I am attaching two finished goods (Material Type - FERT) in the project through network activity, on two different activity. The delivery time for the two items are different. Requirement date is one month different for the two finished goods.
    Requirement Grouping is done through automatic grouping.
    Now when I am running MRP system generates seperate planned order for two finished goods for the same raw material as the requirement date is different. If I am keeping the requirement date is same even though it is planned on different network activity system is making only one planned order for the total number of raw material required.
    Just one doubt..
    Is there any work around to club the requirements of raw material for two finished goods, whose requirement date is different, in one planned order / purchase requisition.
    Thanking you.
    Best Regards,
    Abdul.

    The post has been moved to SCM - PP
    Re: MRP - Requirement Grouping in PR   - Project Stock
    Tnx.
    Abdul.

Maybe you are looking for