Question on Plan Table

Hi,
This is the Explain Plan for one of my SQL queries
PLAN_TABLE_OUTPUT
| Id  | Operation            |  Name       | Rows  | Bytes | Cost  | Inst   |IN-
OUT|
|   0 | SELECT STATEMENT     |             |   101 |  7676 |    60 |        |
PLAN_TABLE_OUTPUT
   |
|   1 |  SORT ORDER BY       |             |   101 |  7676 |    60 |        |
   |
|   2 |   NESTED LOOPS OUTER |             |   101 |  7676 |    50 |        |
   |
|   3 |    VIEW              |             |   100 |  2400 |     5 |        |
   |
PLAN_TABLE_OUTPUT
|   4 |     UNION-ALL        |             |       |       |       |        |
   |
|   5 |      REMOTE          |             |       |       |       | MKTG   | R-
S ||   6 |      REMOTE          |             |       |       |       | MKTG   | R-
S ||   7 |    REMOTE            |             |     1 |    52 |     1 | MKTG   | R-
S |PLAN_TABLE_OUTPUT
Note: cpu costing is off, PLAN_TABLE' is old versionI am concerned about the note "cpu costing is off"
Does this mean my optimizer is RBO?
Moreover, what is the cost cloumn in the explain plan table meant by?
BANNER
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for HPUX: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
I did 'select cpu_cost' from v$sql_plan;'
The column results in NULL values.
Thanks
Rajiv

Hi Justin,
I ran into some serious problem here.
As per the suggestions given, this is the modified query
SELECT   x.rep_date,
               x.certificate_id,
               x.member_kit_flag,
               y.enabled_date,
               y.disabled_date,
               TRUNC(y.creation_date) - TRUNC(x.rep_date) days,
               y.csg_account_no
          FROM (SELECT /*+ DRIVING_SITE(pt_gift_cert_referrals) */ a.*,
                       /*+ DRIVING_SITE(pt_cd_mailings) */ b.member_kit_flag,
                       to_date(b.shipment_date,'dd MON YYYY') rep_date
                  FROM pt_gift_cert_referrals@mktg a,
                       pt_cd_mailings@mktg b
                 WHERE a.cert_mailing_id = b.cert_mailing_id
                   AND to_date(b.shipment_date,'dd MON YYYY') >= '22-AUG-2003'
                UNION ALL
                SELECT /*+ DRIVING_SITE(pt_gift_cert_referrals) */ a.*, /*+ DRIVING_SITE(pt_certificate_referrals) */
                       'Z' member_kit_flag,/*+ DRIVING_SITE(pt_cert_stage_log) */
                       to_date(b.creation_date,'dd MON YYYY') rep_date
                  FROM pt_gift_cert_referrals@mktg a,
                       pt_cert_stage_log@mktg b
                 WHERE a.cert_event_id = b.cert_event_id
                   AND SUBSTR(b.process_type, 1, 14) = 'CLUBDISH DAILY'
                   AND to_date(b.creation_date,'dd MON YYYY') >= '22-AUG-2003') x,
               pt_certificate_referrals@mktg y
         WHERE x.certificate_id = y.certificate_id(+)
      ORDER BY rep_date,
               x.certificate_id;Unfortunately, the query resulted in NO rows.
no rows selected
Elapsed: 00:02:31.03
Execution Plan
   0      SELECT STATEMENT Optimizer=CHOOSE (Cost=60 Card=101 Bytes=76
          76)
   1    0   SORT (ORDER BY) (Cost=60 Card=101 Bytes=7676)
   2    1     NESTED LOOPS (OUTER) (Cost=50 Card=101 Bytes=7676)
   3    2       VIEW (Cost=5 Card=100 Bytes=2400)
   4    3         UNION-ALL
   5    4           REMOTE*                                            MKTG.WOR
                                                                       LD
   6    4           REMOTE*                                            MKTG.WOR
                                                                       LD
   7    2       REMOTE* (Cost=1 Card=1 Bytes=52)                       MKTG.WOR
                                                                       LD
   5 SERIAL_FROM_REMOTE            SELECT /*+ */ "A2"."CERTIFICATE_ID","A2"."GI
                                   FT_CSG_ACCOUNT_NO","A2"."CERT_PROMOT
   6 SERIAL_FROM_REMOTE            SELECT /*+ */ "A2"."CERTIFICATE_ID","A2"."GI
                                   FT_CSG_ACCOUNT_NO","A2"."CERT_PROMOT
   7 SERIAL_FROM_REMOTE            SELECT "CERTIFICATE_ID","CSG_ACCOUNT_NO","EN
                                   ABLED_DATE","DISABLED_DATE","CREATIO
Statistics
          0  recursive calls
          0  db block gets
          0  consistent gets
          0  physical reads
          0  redo size
        338  bytes sent via SQL*Net to client
        234  bytes received via SQL*Net from client
          1  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
          0  rows processedThe thing more bothering is, optimizer is not using the DRIVING_SITE hint
Previous Execution Plan was....
6742176 rows selected.
Elapsed: 03:15:20.07
Execution Plan
   0      SELECT STATEMENT Optimizer=CHOOSE (Cost=53 Card=100 Bytes=76
          00)
   1    0   SORT (ORDER BY) (Cost=53 Card=100 Bytes=7600)
   2    1     NESTED LOOPS (OUTER) (Cost=50 Card=100 Bytes=7600)
   3    2       VIEW (Cost=5 Card=100 Bytes=2400)
   4    3         UNION-ALL
   5    4           REMOTE*                                            MKTG.WOR
                                                                       LD
   6    4           REMOTE*                                            MKTG.WOR
                                                                       LD
   7    2       REMOTE* (Cost=1 Card=1 Bytes=52)                       MKTG.WOR
                                                                       LD
   5 SERIAL_FROM_REMOTE            SELECT "A2"."CERTIFICATE_ID","A2"."GIFT_CSG_
                                   ACCOUNT_NO","A2"."CERT_PROMOTION_ID"
   6 SERIAL_FROM_REMOTE            SELECT "A2"."CERTIFICATE_ID","A2"."GIFT_CSG_
                                   ACCOUNT_NO","A2"."CERT_PROMOTION_ID"
   7 SERIAL_FROM_REMOTE            SELECT "CERTIFICATE_ID","CSG_ACCOUNT_NO","EN
                                   ABLED_DATE","DISABLED_DATE","CREATIO
Statistics
          0  recursive calls
         14  db block gets
          0  consistent gets
      14173  physical reads
          0  redo size
  112195379  bytes sent via SQL*Net to client
    3146621  bytes received via SQL*Net from client
     449480  SQL*Net roundtrips to/from client
          0  sorts (memory)
          1  sorts (disk)
    6742176  rows processedAny help on this would be greatly appreciated.
Thanks
Rajiv

Similar Messages

  • DP_How to lock KF in the interactive Planning table

    Dear Expert!
    I want to lock the data in the Interactive Planning table according to each Key figure and a period of time (that mean I can not change the data of KF after locked). How can I do?
    e.g: I created a Planning book and data view with following Key Figure:
    - Forecast
    - GDP
    - CPI
    - Historical Data
    And the time bucket profile of this planning book as following:
    - Past: 24 months
    - Future: 12months
    Now, I want to lock data of the KF "Forecast" in all past and future; lock data of other KF (GDP, CPI, Historical data) in past period.
    How can I do now!
    I hope to know the question soon. Thanks for your support!
    LeGiang

    Hi LeGiang,
    If you would like to not allow any manual input for ALL the key figures in the past, then the solution for this "history" part would be quite easy.
    When you define the planning view, specify the "input from" date as the current date. This way, no-one would be able to change any data in the past manually.
    The above would also take care of not allowing any manual changes to "Forecast" in the past.
    If however, you want only certain KFs should be non-editable while others should be editable, then you should use the function CELL_INPUT:
    Syntax would be like
    <Macro Name>
       <Step Name>  ( <Maintain 'processing Area'  as 'past'>)
           Cell: <Key Figure Row name>  ( Attributes ) =
              CELL_INPUT(0)
    In above, remember that in <Step> row, you should double-click and change the value of the field 'change scope' to "attributes" from 'values'.
    For the future and past, if you want that Forecast should be non-editable, then you could do this by another macro. Define a default macro that would change the attribute of the KF for Forecast as "no input allowed" for all the time periods. You could do this by using the function ROW_INPUT.
    Your macro would look like -
    <Macro Name>
        <Step Name> : ( 1 Iterations :INITIAL;INITIAL ) 
            Row: <Key Figure name e.g. Forecast> ( Attributes ) =
               ROW_INPUT( 0)
    In the row line above, remember to double click and change the value of the field 'change scope' to "attributes" from 'values'.
    If you need more help, do let me know. This second macro would actually make the whole row non-editable. You could create these macros as a default macro, and have them run in the end after the other default macros.
    Thanks - Pawan

  • Variant Configuration - Planning tables disappearing from planning profiles

    Hi everyone,
    I'm having a strange problem with some planning profiles I've set up in MDPH for several of our configurable products. I'm getting reports from our production planners that certain planning tables within these profiles are suddenly disappearing from the profiles, along with all the values they've input for those characteristics. This is apparently happening without anyone making any changes to the profiles.
    By way of background, I've recently created several new variant models (including planning profiles) for a new series of products, several of which share characteristics with the variants that are experiencing the problem I described. Is it possible that this might somehow be impacting the planning profiles of the old variants?
    Any help is greatly appreciated. We're running 4.6c, FYI.
    Thanks,
    - Greg

    Hello Anil,
    Thank you very much for your reply. I've read both notes you referenced and they seemed very promising in that the symptoms described match what we are seeing. Unfortunately, however, they don't seem to reflect the root cause of the problem I'm seeing. Our users are logging in in English, and we have English names for the characteristics in question. Also, we are on a later patch version (55) than the one that fixed this issue (51). So I don't think this one will help us to fix the issue.
    If you have any other ideas, please let me know. Thank you again for your help on this!
    Regards,
    - Greg

  • PP-PI: Planning table customising (CM29)

    Hi,
    I have a question with regard to the planning table. The planning table basically exists of two parts, on the left side is the information of the planned orders and process orders, on the right side is the scheduling of the orders.
    I'd like to customise the left side of the screen. I want the users to have to possibility to see the material description, and maybe some sorting possibilities. So far, my search has not been succesful,
    Will award points to useful answers,
    Mark

    Hi, Mark
    I worked a lot some years ago about this issue and it is really cumbersome ...It has to do with the different profiles that can be changed in Customizing.  If you want to change the displayed fields then you should change the Layout Key - Select Display Fields. There you can select Field-table to use and the field length.
    Here you have a link where you can start to design your own table. 
    http://help.sap.com/saphelp_47x200/helpdata/en/1a/f2f33419ec8d44e10000009b38f844/frameset.htm
    Hope this can help you
    Dario

  • Splitting in REM planning table

    Hello,
    I am presently working with REM planning table.In planning table there is functinality of splitting the monthly quantities to daily quantities or weekly quantities.
    When you split the quantities what calculation system is doing internally?
    How system determines the start and end dates for the splitted orders.
    If I want to split the quantities on the basis of fixed percentages that is 18  % first week , then 23 % second week , 25 % third and rest percentages for last week.
    Can this weekwise varying distibution is possible in Planning table ?
    Waiting for reply from the REM Gurus.
    Regards,

    Hi ravindra,
    if u are working with longer lead time planned order, u can use various functinality to split the order qty for day or shift wise.
    The Avilable Capacity of the workcenter plays important Role.With refernce to this Avilable capacity the sytem schedules (spilts) order qty as per your need.
    Lead time scheduling will be carried out to determine start and end date of planned orders.
    For example u want distribute planned order day wise, system schedules the planned order with reference to Daywise Avilable capacity of WC. if the capacity requirements of planned order exceeds the avilable capacity of one day, system will automatically spilit the order qty for next day for remaining capacity requirements.
    This is way, system works to spilit the order. Before that u have to select correct scheduling data under "scheduling" tab of planning table.
    For your last question, system will schedule planned order according to Avilabale capacity and capacity requirements.
    i think u can spilit manually accorting to your need .Since  u have Avilable capacity for full week why do u want to spilit with some percentage.
    Regards
    pradeep

  • Interpret sample schema of sample plan table

    Hi guru,
    May I know if my following understanding and interpretation on the sample plan table (sampling type is sampling schema) is correct:
    Lot Size ---Sample Sze---c1--------d1--------c2 ------ d2------c3-------d3------c4------d4 --------c5---------d5----------c6-----------d6----------c7------------d7
    10000----------20--------0----------4--------0---------4-------0---------4------0--------4----------0---------4-----------0------------4------------0-------------0
    If lot size is equal or above 10000, the sample size computed by the system will be 20.
    The first sample has an acceptance of zero (C1) and rejection of 4 (d1). In another word, if there is 4 or above 4 sample size is fail, it will be rejected. Correct?
    Question 1 - what does the zero in C1 means? actually what is the usage of C1, C2, CN means, someone told me it is optional?
    Next, if on the first sample, the 4 out of 20 of the sample size are failed, the inspection lot is failed.
    Therefore, the system will triggers 2nd sample (i.e. C2, and D2) in which it is similar to C1 and D1 (i.e. 0 for acceptance, 4 for rejection), and if it fail again, the system will trigger the subsequent sample (i.e. C3, and D3) till C7 and D7, correct?
    Question 2 - what will the system response if the sample lot kept failing until C6 and D6? Because the last sample (i.e. C7, and D7 are both 0), what will the system do on this?
    Thanks
    YY

    Hi Gajesh,
    Thanks so much on your reply, but on the answer 4 which you replied to me, I still have a bit double..
    4) Question 2: what if I have 5 sample size, and the actual test result is 2 sample size are pass (which meet C1 value), and 3 sample size are fail (which is smaller than D1 value), I said the whole MIC is pass.. am I correct?
    *You said: No, system will propose you to check next sample to check C2 /D2*
    Why system propose the next C2/D2? My rational is based on the following statement which you previously confirmed that I am correct:
    IF the actual number sample size inspection fall outside the lower & upper limit range (i.e. fail) is Equal to OR Larger than D1, THEN, the whole MIC is rejected.
    Thus, my rational is if the above statement is correct, which mean if the failed number of sample size (i.e. 3) is less than d1 (i.e. 4), isn't it clearly pass? Furthermore, out of the 5 sample size, 2 sample sizes are passed (i.e. which is equal to the C1 of 2). Thus, why would the system still propose to check next which is C2/D2? Beside on the very first time, you had replied to me on this topic you saidu2026.
    Suppose you have a lot size of 10 having sampling size 5 with C1(acceptance number) 0 and D1(rejection number) 3
    You have quantitative MIC with single recording with a specification limit of 10 (lower) to 20 (upper)
    If, in actual results, if the 3 of the results is outside the spec limits, the MIC as whole is rejected. If only 2 results are rejected the MIC stands accepted.
    The following is the sample plan we talking about...
    Lot Size -Sample Size-c1--d1c2---d2--c3---d3--c4--d4 -c5d5c6d6c7--
    d7
    10--52404---04--0404040--
    0
    Thanks,
    Yong-Yeow

  • Modifications in Planning tables

    Hi,
    On one of our project, we need to add an UDA on some members of a Planning application. We decided to go with an insert of data in the table “HSP_MEMBER_TO_UDA”, with the right MEMBER_ID from “HSP_OBJECT” and the right UDA_ID from “HSP_UDA”. It works perfectly, the table was modified, the data were correct but the modification didn’t show in planning when trying to retrieve information for theses members … After some times, it finally shows in Planning.
    My question is : Is there a buffer used by planning while retrieving data from tables ? Why is there a lag between the content of tables and the information displayed in Planning ?
    Thanks in advance for your answers :)
    Frédéric

    Hi John,
    You are right, we could have used outlineload to update the members.
    The full story is that our client need to be able to send specific data from an application to another. So, we develloped a webform in which he can flag the member he want to extract, we export the list of these flagged members (dataexport) and then use a PL/SQL procedure to parse the extract and update the Planning tables with a "active" UDA. At the end, our client is able to extract all data from the members he want (dataexport in a FIX with @UDA).
    PS : We could not use DATAEXPORTCOND as the flag are not on the same crossing as the data.
    So, we had the choice with our PL/SQL procedure : generate a file to update members with outlineload or modify the planning tables. The last option seems the easiest.
    Is that more clear ?
    Frédéric

  • Operations are not getting despatched in capacity planning table

    Hi Experts,
    I am using capacity planning table (Graphical) to level the capacities and sequence the process orders. The start date of my orders are very well in future and sufficient capacities also is available in resources. But when I go to CM25 and select one order and click on despatch, system is not despatching it. This is the case for almost all the overall profiles.
    The surprising factor is, this function was working fine earlier without any issues. I havent done any changes in configs which will affect capacity planning.
    What can be the reason for this? Any thoughts please?.
    One more thing. Is there any option to avoid the capacity planning step if Iam using R/3 and manage it by some other way?
    Appreciate your earlier reply
    Thanks & Regards
    Prathib

    Most likely you didnt define the rowsource key properly. Please look under <install>/errors folder for any file there.
    Also, please read the documentation. There is information there about how to troubleshoot a loading problem. Please always read the documentation and we would appreciate feedback on the documentation.
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/iop_user_guide/frameset.htm?launch.html

  • Error message in capacity planning table

    Hi,
    I am  using REM planning table.I enter the planning table by giving the selection criteria of Plant and production line.
    System is giving following error message,
    the error message and dignosis of the error message is given here.
    'No prod. dates for material MTI_FERT011, version 0001, production line 2279'
    Message no. REMPT315
    Diagnosis
    The planned order has no production dates for the combination of material, production version and production line you specified.
    This may be as a result of the following, for example:
    The planned order was scheduled but not using the production line you selected. (The production line is determined by the production version you entered in a planned order.)
    Procedure
    One possibility of finding out what is causing the problem is:
    To access the planned order from the detailed dialog box in the table via "Change" and reschedule the planned order. Check the scheduling log by choosing "Goto --> Scheduling log". More information is displayed in the log's warning or error messages.
    But which master data to be corrected is not known.
    Experts please guide me.
    Regards,
    Ravindra

    Hello,
    I had the same error while working with the REM planning table, despite the consistency of the data.
    Another cause that can lead to the error message REMPT315 is that in the production version detailed screen, "Planning data" table you have entered the routing next to rate-based planning. You must enter the routing (number of the group and the group counter) on the line detailed planning.
    After that, choose check again and try to introduce new quantities in the planning table. It worked for me!
    Irina

  • Unable to drop or truncate a plan table

    Hi guys,
    I was trying to execute 'Explain Plan' on one of my query. However, when I tried to drop the plan table, i was prompted that the table or view does not exists:
    QL> EXPLAIN PLAN FOR
    2 SELECT * FROM ORDERS WHERE TO_CHAR(O_SHIP_DATE, 'YYYY')='2005' AND O_STATUS='PROCESSING';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1275100350
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 648 | 46008 | 725 (5)| 00:00:09 |
    |* 1 | TABLE ACCESS FULL| ORDERS | 648 | 46008 | 725 (5)| 00:00:09 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    1 - filter("O_STATUS"='PROCESSING' AND
    TO_CHAR(INTERNAL_FUNCTION("O_SHIP_DATE"),'YYYY')='2005')
    14 rows selected.
    SQL> TRUNCATE TABLE PLAN_TABLE;
    TRUNCATE TABLE PLAN_TABLE
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select count(*) from plan_table;
    COUNT(*)
    6
    Any idea what went wrong? Thanks in advance.

    Ok, I managed to find the scripts to recreate the plan table. Now it works again. Cheers.

  • Plan table output

    Hello guys,
    I am on a 9.2.0.7.0, and i am trying to get explain plan for one select that is reading some table through the db link at the remote sight.
    Unfortunately, i am getting this output :
      1* select * from table(dbms_xplan.display)
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT     |             |       |       |       |        |      |
    |   1 |  REMOTE              |             |       |       |       | TESTI1 | R->S |
    Note: rule based optimization
    9 rows selected.remote database is 10.2.0.4.0
    Can you reccomend me something?
    Why can't i see normal output from the plan table, what to do to see it ?
    Also , i could'nt find anywhere in the docs the meaning for R->S...
    thanks

    thanks for your time to reply
    @Kartrick
    -so can we say that the only way to see that plan would be to connect to that remote instance with that db link user and run it there?
    @ravikumar
    -this woried me to... so optimizer mode on that remote 10.2.0.4.0 is choose, so can we say that this query is attacking remote table with RBO plan ?

  • Explain Plan Table

    Hi,
    I have created the plan_table using utlxplan.sql but still i am getting the error:
    ORA-02404: specified plan table not found          
    Is there something else to be done to get it fixed?
    please suggest.
    Regards
    Arpit

    As Lukasz suggested check the table privs between the schema where the table was created and the user trying to use it. Also make sure there's a synonym for the user using explain plan to get to the plan table easily; a public synonym might work best

  • PLAN TABLE

    To see the current statement getting executed im using the session browser utility in TOAD. And to find the plan of the query im going to the view plan tab. But in that tab it saying the plan table is not available. I created the plan table from $ORACL_HOME/rdbms/admin/utlxplan.sql for the user. But even then im not able to see tha explain plan.
    I also changed the plan table in TOAD from TOAD_PLAN_TABLE to PLAN_TABLE in view-->options-->General. But still im not able to see the explain plan

    Okay, so back to basics: you need to identify whether this is a problem with Toad... or with your PLAN_TABLE. So, just for a moment, ditch toad.
    Test one: Connect to the database via SQL*Plus as the user you trying to use to explain the query in Toad. Then issue:
    SELECT OBJECT_NAME, OBJECT_TYPE, OWNER
    FROM ALL_OBJECTS
    WHERE OBJECT_NAME = 'PLAN_TABLE';[pre]
    What's the output (and what's the user you're connecting as)?
    Message was edited by:
            Joseph Crofts
    Oops - missed a line from the SQL statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Planning table

    Hello,
    In planning table MF50 , the row 'not yet assigned ' is displayed from where we can assign plnd orders to any Packign line.
    But when i assign the qty from this row to any other packing line the qty from 'not yet assigned ' is not getting deducted . What settings i need to do ?
    Also can i assign by default some planned orders to any packing line.
    Regards
    ShankarR

    Dear,
    In MF50 select the row of 'not yet assigned and press Shift + F1 period you want then assign the quantity then use copy function and check. Tere you will get Truck symbol click on it you will get assign quantity.
    When you try to assign 50% or less of the quantity to any version, system is taking the correct values in assigned and not yet assigned rows. But when you try to assign more than 50% to any version, system is taking only the assigned quantity as assigned and remaining quantity which is not yet assigned, is not displayed. For that use the OSS note 1104677
    Hope it will help you.
    Regards,
    R.Brahmankar

  • Use of Planning Table (MF50) in Capacity Levelling with Production Order

    Hello Experts
    I wish to know that is it possible to perform Capacity Levelling in planning table (tcode MF50) with respect to a Production Order ? It is known that MF50 is used in Repetitive manufacuring to do the capacity levelling with respect to Planned orders. But in our discrete manufacturing scenario we want to use planning table to the capacity levelling with respect toa Production order.
    Any clue or help pertaining to this will be highly appreciated.
    Thanks in advance
    Regards
    Jayanta

    Dear ,
    MF50 is does the cacapcity leveling based on mateail -run schedule order (planned order ) where as in discrete manufacturing , when you run the MRP ,  MRP system assume Infinite Capacity  and schedule the order as per your selection in MD02(2,1,3,3,2)  and then you convert those planned order to Production order .Here you checkied the Capacity in Production Order level .
    In stanadrd SAP  , it is not possible to use MF50 for discrete production order.
    In discrete order or process order ,  do the caapcity leveling , there are seperate planning table available based on Over all Capacity Profile and Schedule type .This can be done  in following way :
    1.CM31-Production Order Wise -Tabular
    2.CM23-PO wise -Graphical
    3.MC88: Ruf Cut Planning
    Work Centre Wise : CM21 -Graphical , CM22-Tabular Planning Table .
    Make sure the below set up before  you carry on the Capacity leveling :
    .Define time profile in OPD2.
    Define the strategy profile in OPDB
    Define the Overall profiles in OPD0.
    In OPJK  maintained check capacity with SAPSFCG013 profile for your production order type
    In OPU3 , scheduleing parametre s: Generate Capacity , Scheduling Type , Automatic Log ,Start date in Past as per your req.
    In OPJU , chekc the contol tab of the scheduleing as per OPU3
    In OPKP- Production scheduling paranmeters assing the overall capacity profile -SAPSFCG013  with finte scheduling tick.
    Master Data :
    1.Materials Master define the Production scheduler and production scheduling profile
    2.Work Center - Define the capcity planner group,activate checkbox Relevant for Finite sceduling,on the capacity header define the shift timings,break timings and unit of measure,no of individual capaity, enter formula for scheduling in capacity view.
    3.Routing - enter the values for the standard values. Use control key with scheduling.
    Hope this will help you .
    Regards
    JH

Maybe you are looking for