Daily Production Plan query changes

Dear Experts,
I was tried  to do a daily production plan query,  but i need to add one more feild in the below query, (ie) In sale order Document, Row level feild of Quantity ( RDR1,Quantity) should be in that query,
SELECT T0.[ItemCode],T1.[ItemName], T0.[PlannedQty] as 'Planned Qty', T0.[DocNum] as 'Doc No', T0.[PostDate], T0.[OriginNum] as 'Sale Order No', T0.[CardCode], T0.[CmpltQty] as 'Completed Qty' FROM OWOR T0 join OITM T1 on T0.Itemcode = t1.ItemCode WHERE T0.[PostDate] >='[%0]' and T0.[PostDate] <='[%1]'
Plz help me.
Thanks and Regards,
Manikandan

Hello Manikandan,
You can add the sales order into the production order, but you should now: there is no connection defined between sales order lines and production order, only the item code can be used as reference to sales order lines
I mean:
*if you have the same item in sales order lines in different position the query always multiplies the result. *
So you can join the sales order header for Origin Number and DocNum, and sales order lines by Itemcode
SELECT
     T0.[ItemCode],T1.[ItemName], T0.[PlannedQty] as 'Planned Qty', T0.[DocNum] as 'Doc No', T0.[PostDate],
     T0.[OriginNum] as 'Sale Order No', T0.[CardCode], T0.[CmpltQty] as 'Completed Qty',
     T3.[Quantity] [Sales order Qty], T3.LineNum [Sales order Postion]
FROM
     OWOR T0 join OITM T1 on T0.Itemcode = t1.ItemCode     
     left outer join ORDR T2 on T0.[OriginNum] = T2.[DocNum]
     left outer join RDR1 T3 on T2.[DocEntry] = T3.[DocEntry] and T3.[ItemCode] = T0.[ItemCode]
WHERE T0.[PostDate] >='[%0]' and T0.[PostDate] <='[%1]'
Regards
J.

Similar Messages

  • Daily production plan for operations

    Hi, One Production order generally runs for more than 1 month and consist of more than 100 operations and order qty will be one. in this case we want to prepare daily prod plan for operations not for qty. say on 1.6.09 we will do cutting operation, 2.06.09 willdo painting etc in monthly prod paln or weekly prod plan? pls guide how to map this?

    Dear,
    In production order you will get the details of operation plan and scheduling.
    So in OPK8 do the setting for print of LG02     Op. control ticket, LG03     Job Ticket, LV01Time ticket,
    Take a print through CO04N - Print and sent it on shop floor also.
    You use the report like MCPW - Lead times or MCPK.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Daily production plan in manufacturing shop floor

    Hi, we want to generate 2 different weekly production plans based on 1) roh available 2)customer delivery date. pls advise how to generate same.

    Hi
    There is no planning method in SAP based on raw materials. if you know how much finished product can be made out of one raw material then you can use SOP and create a prodcution plan as inactive version.
    For customer delivery date, if you know the cumulative requirements then place this quantity in SOP as the sales plan with delivery dates and create synchronous production plan and save it as another inactive version.
    Once you take a decision on which version to be used you can copy the version to a active version and transfer to demand managment and run mrp which creates planned orders.
    Make sure you use backward scheduling in the material master
    Thanks
    Krishna

  • Web Template not impacted after query changed and Transported

    Hi. All.
                        We have modified the query and transported to production But query changes not been
    impacted on Standard web teplate. But it works fine in Bex Analyzer.
                       Issue is there was a description was truncated earlier we used initially as short description.
    Later we mapped to Medium description and modified the entire flow and loaded. It works fine.
                      Only in production we are not seeing correct description in web report and it works fine with Analyzer. So we need to ask the user as after executing the report he needs to change characterstic property from Standard to Medium.
    But it would be bit inconvenience to users.
                So how can we solve this problem and why the query changes are not impacting on Web template.
    Please provide your views on this issue.
    Thanks & Regards
    Vijay

    Hi Vijay,
    one reason might be if you use the option "personalization" within the web template. If users can personalize the templates changes will not be visible and have to be deleted at the time a new version of the query is provided. There are background tables for the personalization as well where you can delete all objects for this template at once if necessary.
    Brgds,
    Marcel

  • Daily production report

    Hi, Is there any standard daily prod report available in sap? pls wht is the t-code?

    Dear Yadav,
    There are few reports available in standard SAP,but you have to check which one suits your business
    requirement.
    Check COOIS,CO28,MCPM,MCRE,MB51 for material document
    For further reports goto T Code SAP1->production planning->Production control or Information
    systems.
    Regards
    Mangalraj.S

  • Help with Planning Query - 0CALMONTH not showing up

    Hi, I have a simple planning query where I am trying to allow users to input or change an Amount by Material/Month.  The User inputs a Version and a Date Range to maintain.  The selected dates should show up going across the screen even if there is no existing data.  These Variables are in the Query Filter along with a few other characteristic Filters.  So in my query I have 0MATERIAL in the Rows and I have 0CALMONTH and my Key Figure.  Under advanced for the characteristic 0CALMONTH it is set as Master Data.
    When I run the query for some reason the 0CALMONTHS do not show up going across.  If I run the query and put in one value then the 12 months show up.  Seems like a bug.  I have another similar query where this works.  Can anyone take a look at the screen shots and help me figure this out?
    [Query Def Screen 1|http://i35.tinypic.com/1h8con.png]
    [Query Def Screen 2|http://i36.tinypic.com/1f781c.png]
    [0MATERIAL Def|http://i36.tinypic.com/xefq8i.png]
    [0CALMONTH Def|http://i35.tinypic.com/ej8qpv.png]
    Thanks!
    Edited by: Kenneth Murray on Nov 5, 2009 3:12 PM

    Dear  Kenneth,
    I think its a bug.  If we post the value without the drilldown on 0CALMONTh then its open for the input, and after that if we drill down it with 0CALMONTH for same selection, it opens for input.  but for new selection of month it not opens.
    Have you solved the problem?
    Regards,
    V B Udani

  • Read Only/ Plan Mode Changes for a layout with two different queries

    Hi,
    I have a situvation where a layout opens in a read only mode and when
    the users click on button plan, it changes to plan mode. The catch here however is the queries
    for read mode and plan mode are slightly different, in the read only mode the query has subtotals
    and other calculations that are not a part of the plan mode ( where they input forecasts).
    I know if the read and plan query are the same, we can achieve this through the command
    SET_DATA_ENTRY_MODE. In case they are different, as above, how can i achieve this.
    Thanks
    Rashmi.

    Say you are using two different queries as DP1 & DP2 for Display and Plan mode respectively. You also have one Analysis grid item in Web template which initially points to DP1.
    On PLAN button call command SET_ITEM_PARAMETER to set the data provider of analysis item to DP2.
    OR
    You have only one dataprovider in your web template as DP1 initially pointing to Query 1 which you want to show in Display mode. Then on PLAN button call a command SET_DATA_PROVIDER_PARAMETERS to point the DP1 to 2nd query instead of 1st query.  You can find this command under Commands for data Provider --> Basic data provider commands.
    Edited by: Deepti Maru on Nov 27, 2009 9:52 PM

  • SAP PP (Production Planning) Master Data Definitions

    SAP PP (Production Planning) Master Data Definitions and Transaction codes.

    SAP PP (Production Planning) Master Data Definitions
    • Factory Calendar
    • Material Master
    • Resource • Bills of Material (BOM)
    • Production versions
    • Master recipe
    Factory Calendar: The factory calendar is defined on the basis of a public holiday calendar. The public holiday and factory calendar is a central module in the SAP System. It is assigned to a specific plant during the initial system setup and therefore used in many areas (e.g. in Logistics and in Human Resources) in the system.
    Material Master: Material master comprises if all the basic data of the material for each department. The data covers all the relevant information required for the transactional flow e.g. sales, Planning, Production, Quality, Purchasing, Costing etc. Material master covers all the descriptive and control data and the flow of information depends on fields maintained within it. The integration of all material data in a single database object eliminates redundant data storage. Material Masters are created once and can be changed or extended whenever required
    Bill of Materials: Bill of Materials or commonly called BOM is a formally structured list of components that make up a product or assembly. The list contains the material number of the component together with the quantity and unit of measure. BOMs are used in their different forms in various situations where a finished product is assembled from several component parts or materials. Resources: Resources are production facilities and persons involved in a production process that have capacities. They are subdivided into categories to specify their suitability for certain purposes or their use in certain processes
    Product Versions: A production version determines which alternative BOM is used together with which task list/master recipe to produce a material or create a master production schedule. For one material, we can have several production versions for various validity periods and lot-size ranges. The production version determines the following:
    • The BOM alternative for a BOM explosion.
    • The task list (master recipe) and any alternate, as needed.
    • Lot-size restrictions and validity parameters.
    Master Recipes: A master recipe defines the following data that is required for the production of materials without relating to a particular order: processing steps, resources, material components, and control information for the process control level. Master Recipe enables to plan the production of materials (products). Therefore, Master Recipe is used as a template for process orders and run schedules as well as a basis for product costing. In a Recipe
    • The Phases (work steps) to be carried out during production.
    • The activities to be performed in the operations as a basis for determining dates, capacity requirements and costs.
    • The use of materials during production.
    • The use of resource.

  • How to Reconcile Production Planning & Controling Data

    Dear Experts,
    Currently we are implementing the below Production Planning & and Controlling  cubes.
    1. Capacity Load Utilization (0PP_C13)
    2. Plan/Actual Comparison Operation/Work Center View (0PP_C03)
    We have updated the data in C13 and cube and doing the reconcile with standard reports.
    In R/3 which T codes are usefull for C13 and C03 cube data reconciliation.
    Regards
    Ramu

    Dear Suresh,
    The View of CRHD_V1 is not giving the available capacity information.
    I need to reconcile available & Target capacity  information WITH Plant and work center wise.
    BW Query names are 0PP_C13_Q001 & 0PP_C13_Q002
    Regards
    Ramu

  • Production Planning Guideline

    Experts,
    In standar SAP / SCM do we have some thing similar like " Production Planning Guidelines"? For Example this guidelines page is something where user wants to enter informations like... 1. New Product Production Start Date 2. Changes to the existing model (for eg. change 150cc engine with 180cc engine for a Motor cycle) 3. Dead lines for the sales department to submit thier requirements.
    Please guide me do we have some type of transactions or reports in SAP PP / SCM?
    Thanks in advance.
    Warm Regards,
    Krishnan

    try this
    http://help.sap.com/saphelp_46c/helpdata/en/51/9550a4a1fa11d189ba0000e829fbbd/frameset.htm

  • S there any Utility industry company is using PP-production planning & exec

    ear All,
    Is there any Utility industry company is using PP-production planning & execution module and CO-PC product costing module ??
    Meaning.. any Power generation/Transmission/distribution or water production/Transmission/distribution company is using SAP PP or APO for their operation business processes.
    Our client is actually an integrated Utility having very much integrated product lines like Processed Sea water for cooling, Process water for Industries, Potable water & Power for the communities/ industries.
    Please let me know.. as we are planning to implement the PP and CO-PC for product costig..
    As I know Tata chemical, Gujarat-India is using SAP PP module for their captive Power generation.(I have worked there as SAP CO consultant). But there is no transmission and distribution as such.
    But production processes are covered by PP and product costing CO-PC is also implemented and it is giving very accurate cost per unit both for plan side and actual side.
    regards,
    George

    Hello George,
    I would not be able to provide you much detail about the PP solution as I was taking care of the controlling part. The BOM of power and water were defined as you have mentioned only thing we had additionally was Gas was also mentioned in the BOM since we had 6 gas turbines. But all of them were mentioned as not relevant for costing. So there was no cost being calculated from the material side. We had formula planning template (CPT1) that used to calculate the costs under the following heads which were defined as activity types.
    a) Gas
    b) Employee Costs
    c) Consumables / Supplies
    d) Operating Expenses
    e) Depreciation
    These components were planned at a initial price in KP26 and the quantity for them (except Gas) was units of power generated (for cost component it was 1 MW and for actual based on the quanity in the product cost collector). Power cost estimate used to be created at the begining of each period with help of this template and per MW cost was used in valuating the power generation in each of the product cost collectors (the turbines were defined as separate work centers as well as product cost collectors).
    In the actual execution the power material used to be generated in all the product cost collectors and the usage of gas was confirmed. The template used to be executed in the month end (CPTA) and the same would allocate the costs posted in the power generation cost center to the product cost collectors (the amount would be the power units generated multiplied by the rate mentioned in KP26 for Employee Costs, depreciation etc. and for gas it would be Gas units consumed multiplied by the rate mentioned in KP26 for activity Gas). The power material generated would then be issued to the generation cost center along with the usage of gas for power as well. The next step is execution of the splitting transaction which would allocate the amount posted in the cost center to the various activities and then the actual price calculation would be carried out for the activities and the product cost collectors get revalued with the actual price. Upon settlement of the product cost collector to the generation cost center you would have the power material issue cost + settlement account. The amounts posted in these two accounts would be transferred to the water cost center using a assessment cycle with SKF that mentions the usage of water in power and another assessment cycle taking the costs in water cost center with help of SFK that quantifies usage of water in power. Now the power material cost + settlement amount - sent to water + received from water is sent to another cost center called power - distribution and from there the amounts including any distribution costs booked therein is transferred to other user cost centers using usage units defined as SKF.
    What I feel later is the water activity could have been done before settlement and an activity type could have been defined for that purpose.
    At the moment I can remember this much and would be happy to answer any more query which you may have. That was a good design though it had lot of scope for fine tuning.
    Kind Regards // Shaubhik

  • Production plan

    Hi PP Gurus,
    I have a following requirement.
    Scenario -
    1. On 25th of every month we use to get sales paln for fert for the next month from mkt dept.
    2. We have almost 200 Fert, 700 halb and 3500 roh.
    3 We also have @ 250 work centers.
    4. Two plants for same sales organization.
    5. 7 level BOMs and Multi operation routings defined in SAP.
    Requirement -
    Before finalization of next month's production plan I would like to know the capacity situation, based on available capacity for two different plants I will finalize the production plan so that it will be more realistic. Is there any method in SAP PP module which will meet our business scenario?
    Thanks in advance.
    Abhay

    What Ankajah mentions is the use of Rough Cut Capacity Planning (RCCP), a tool which is available provided that you are using SOP (standar or flexilble planing). If you are entering your sales plan to SOP and then transferring to demand mgmt, then it is possible to take a first glance on the capacity requirement for the next months. This is not precise (it is not the objective) but it is very simple and act as a filter , removing some mistakes in the plan or "not affordable" quantities and giving a very fast feedback to plannign and marketing people.
    The detailed capacity planning must be execited on the basis of Planned or Production orders, son you need, at least, to run the MPS for the finished and intermediate products.
    In our case, we carry out previosuly the RCCP  and after this coarse clean up, we run MPS and a report is generated for planning and sales people, showing
    - Actual Stock
    - Sales Plan
    - Production plan (SOP)
    - Production Plan (based on planned orders).
    Based on this report, some changes in quantities are carried out.
    The capacity situation is also shown for the main WCs, but the scheduler has the rights to switch between WC, so the WC used in the routing it is not always the one finally used in SFC.
    Regards

  • Production planning Business Transaction Events

    Hi All,
    Plz provide me with a list of Production Planning related Business Transaction Events.
    Thanks & Regards,
    Sudheer.

    Hi,
    The following is the basic flow for production planning.
    Step 1: Material Master
    Logistics > Production > Master Data > Material Master > Material > Create General > Immediately
    MM01
    Step 2: BOM creation
    Logistics > Production > Master Data > Bills of Material > Bills of Material > Material BOM > Create
    CS01
    Step 3: Work Center creation
    Logistics > Production > Master Data > Work Center > ( New Screen ) Work Center > Create
    CR01
    Step 4: Route creation
    Logistics > Production > Master Data > Routings > Routings > Routing > Create
    CA01
    Step 5: PIR Generation
    Logistics> Production>production planning>demand management>PIR>CREATE
    MD61
    Step 6: MRP Run
    Logistics>Materials Management>Material planning>MRP>MRP>Total Planning>Online
    MD01 or
    Logistics > Production > MRP > MRP > Sng-Item, Multi-Level
    MD02
    Step 7: Evaluation through MRP list and Stock requirement list
    Logistics>Materials Management>Materials Planning>MRP>Evaluations>MRP List>Individual Display
    MD05
    Logistics>Materials Management>Materials Planning>MRP>Evaluations>Stock Requirements List
    MD04
    Step 8: Conversion of Planned order to Production order
    Logistics > Production > Production control > Order > Create > With a planned order
    CO40
    OR
    Logistics >Production > Production control >Order > Create >With material
    CO01(For creating production order Without planned order)
    Step 9: Order management
    Logistics >Production > Production control >Order > Change >With material
    CO02
    Step10: Goods issue
    1. Logistics >Production >Production Control >Environment >Goods Movement >Goods Issue
    2. Logistics >Materials Management >Inventory Management >Goods Movement >Goods Issue
    MB1A--261Movement type
    Step11: Confirmations.
    Logistics >Production >Production control >Confirmation >Enter >For order
    CO15
    or
    Logistics >Production >Production control >Confirmation >Enter >For Operation >For time ticket
    CO11N
    Step12: Goods receipt
    Logistics > Production > Production Order > Environment > Material Movement > Post Mat to Stock
    OR
    Logistics > Materials Management > Inventory Management > Goods Movement > Good Receipt > For Order
    MB31
    Step13: Techo Or Close Order.
    This can be done from Prd. Order Header menue.
    Complete transaction codes you will get in http://www.sap-img.com/sap-pp.htm
    Apart from the listed these are also used in spro
    1. Subject: Re: list of SPRO t-codes
    2. Message: Define Resource Categroy OP40
    3. Define Status Profiles BS02
    4. Define Field Selection OPFA
    5. Define Task List Usage OP45
    6. Define Parameters OP7B
    7. Define Standard Value Key OP19
    8. Define Person Responsible SPRO
    9. Define Sub Systems SPRO
    Define Default Resource OP42
    Define Transition Matrix OPG6
    Define Control Keys OP00
    Define Setup Type SPRO
    Define Wage Group SPRO
    Define Suitability SPRO
    Define Shift Sequence OP4A
    Define Period Pattern Key OP11
    Regards,
    R.brahmankar

  • Transferring Product Master Data Changes From APO to ECC/R/3

    Is it possible to transfer product master data changes in APO to ECC via the CIF?  If so, does it require custom coding?

    Hi James,
    In all the different clients where APO is being used with ECC systems. ECC system is always the main system (system of record) which contains all the master data and data present in ECC supposed to be the reference for APO system for planning purpose.
    Generally it is not recommended to transfer master data from APO to ECC but as mentioned earlier by some experts you may have ways to do that.
    I would be interested in the business scenario where one needs to transfer master data from APO to ECC.
    Thanks,
    Anupam
    Edited by: Anupam Sengar on Aug 11, 2011 12:31 AM

  • Not getting 'actual data' in the planning query

    Hi all,
    I am debug other's query. This cube stores 'actual' and 'plan' data and I loaded 'actual' and can see it in the cube. But I cannot see 'actual data' when I run the planning query.
    I checked all restrictions in the KFs and CHARs and fliters in the query. There are only 'value type 10', 'fiscal year variant Z1', and 'currency CAD' restricted and actual data does contain those values in all line items.
    Can someone point it out what it could be the issue? Thank you.
    R.

    Hi,
    if you enter some data (plan data) you cannot see it again. Is that correct?
    are you using the same query to enter and to see plan data?
    Because if you are entering data in an aggregate level and you are executing your query over the infocube you will not see the data from the yellow request. If you execute query over the aggregate you should be able to see all data in the cube (yellow and green requests).
    Also check if your query is defined as per note 1136163.
    I hope this helps.
    Lucimar

Maybe you are looking for

  • NWBC for Desktop - pop-up inaccessible in background

    We're using NWBC 4.0 for Desktop on Windows Terminal Server 2008 R2 and facing since two weeks the following problems: When I open NWBC PL11 (full desktop or seamless) I've about 5 seconds to choose from connection entries before pop-up is hiding beh

  • Installing Windows 8 Pro on U410

    HI, I could not able to install windows 8 in my new lenovo U410. I tried all the methods which is mentioned in the website, but still I could not able to install. I tried in HDD and also in SSD, tried disabling Intel Rapid Start Technology changing S

  • Limited Virtual Domain Support in iCS 5.0 Patch 2

    (See attachment)

  • How to change id

    I have two iPad's now my husband would like to purchase his own apps.  Have created his own I'd, verified, cc info is in, able to sign into iTunes but I have signed out of my I'd on his ipad but it will not except his I'd get error msg 5002 unknown e

  • When I tap camera icon why do I get a black screen?

    When I tap the Camera Icon, I get a black screen. What to do? Please suggest solutions. thanks.