Production vs sales

Dear Experts
i want to track production of the item x and sales of the item x per day and month wise. I am going to create report using with crystal report but
i have a doubt in the date range if i give production order date, it would be affected  the sales because some time production may have not happened but sales may have happened. 
how to give the date criteria in that report.?
regards

Hi.........
Try this......
SELECT T0.[ItemCode], T1.[ItemName], Sum(T0.[PlannedQty]) ,
(IsNull(( Select Sum(T2.Quantity) From INV1 T2 Where T1.ItemCode=T2.ItemCode),0)) 'SalesQty',
(IsNull(( Select Sum(T2.LineTotal) From INV1 T2 Where T1.ItemCode=T2.ItemCode),0)) 'SalesVal'
FROM OWOR T0 Inner Join OITM T1 On T0.ItemCode=T1.ItemCode WHERE T0.[PostDate] 
between '[%0]' and '[%1]'
Group By T0.[ItemCode], T1.[ItemName], t1.ItemCode
Regards,
Rahul

Similar Messages

  • Production against sales order

    Hi all experts,
    I am creating a report for Linewise width wise handover
    summary(OK production against sales order)
    I am taking Date from MKPF and QTY from MSEG
    I need to show Work Center [ CRHD-ARBPL ]
    but dont know how to link tables
    can any one send me the code and link btween MSEG and
    CRHD or any other table which having ARBPL field linking with
    MSEG.
    Thanx in Advance ......

    Hi,
    CAUFV and AFKO tables are linked with table CRHD. These two tables are related to order. You can try these tables to get the desired data.
    Regards
    Amit parkhi

  • Table for Product Price & Sales Organisation

    Hi All,
    We have a scenario wherein products are maintained in ECC & downloaded to CRM.
    I have checked thru comm_product if products have been successfully downloaded to CRM. I can get GUIID from this table.
    Now, I want to check if these products have been extended to particular sales org & pricing is available in CRm.
    Kindly advise which table can give me these details.
    Will reward points for useful answer.
    Regards,
    Rahul K

    Hi Rahul,
    The table COMM_PR_FRG_ROD will provide the data regarding Product and Sales Assignment.
    Regarding the pricing information, since the product is downloaded from ECC, if the condition table in ECC is '9000', you can get the content in table 'CNCCRMPR9000', if the condition table is 'SAP004', get them in table 'CNCCRMPRSAP004'.
    So you should need to know the ECC condition table to which the price is stored and then look into appropriate CRM table to see the price in CRM.
    I hope this is clear to you
    regards
    Srikantan

  • Reporting based on weighted product unit sales

    Hello! I was just wondering what the best way of generating reports based on weighted product unit sales? I know that reports can be build based on weighted revenue, but I'm keen to be able to report on product units as well. For instance, if I have three
    opportunities:
    Opportunity 1: Has a probability of 25% for 100 units of Product A, closing Month 1
    Opportunity 2: Has a probability of 50% for 100 units of Product A, closing Month 2
    Opportunity 3: Has a probability of 50% for 100 units of Product B, closing Month 3
    Ideally, a quarterly report would show that I have sales of 75 units for Product A ((25%*100)+(50%*100)) and sales of 50 units for Product B (50%*100). I could then drill down the quarter and look at the Monthly sales breakdown.
    Not sure if this can be done by using the default fields and some clever Report building, or whether I'd need to create a custom field for each product sale that had an auto-calculated field (OpportunityProbability * Quantity)?
    Does that make sense? Any pointers would be massively appreciated! :)

    ???

  • Can I embed links to products for sale in iBook?

    When I publish an iBook, can I embed links to related products for sale on my website?

    If it's just an odd picture you are doing you can use File - File Info
    You can also create a template in Bridge, this could also be applied via File-File Info in Photoshop, manually or you could create an action to do it.

  • FG production on sales order but RM procurement on Sales Contract.

    Dear Gurus
    Here is the client requirement for Planning and Procurements of FGS and Rms.( Process Industry)
    1) Client wants to make sales Contract VA41 for FG in which they will create schedule line for item with delivery date in Month format with Quantity.
    From VA41 sales contract creation , they want their RMS to be Procured but NO MRP should be run or impacted for Final Assembly. In short NO MRP for FG
    2) After VA41,  they again want to run VA41 in which they will create ''With reference and in contract tab, they will make Customer PO with reference to above Contract. This number will give them a Qty Variance between customer's purchase order and the sales documents created.
    3) Again with Reference of Customer PO, they will make a Sales order from VA41 and this sales order they will Produce their FG.
    So FG Production is Sales order driven but RM procurement is Sales Contract driven.
    1) Which Planning strategy i should assign to RM and FG?
    2) What will be step by step configuration guide from PP and SD side.?
    Appreciate your reply
    Thanks
    Shailesh

    In SPRO
    goto SD>Schedule line>Define schedule line categories
    here check if the schedule line category associated with your mentioned order has a flag ticked for Availability.
    Availability check for sales
    You must carry out an availability check for the following transaction.
    The indicator is determined as a proposal in conjunction with the respective requirements type. It can be changed in individual shipping transactions. However, only one restriction is effective.
    Example
    You do not set an indicator for maintaining the requirements type. In this case, no availability check is carried out. This is independent of the selection in the respective transaction.
    You set an indicator for maintaining the requirements type. In this case you can decide whether or not you require an availability check for the relevant transaction.
    reward points if it helps
    regards
    Biju

  • Error: Interlock between production and Sales Department .

    Hi All,
    Error: Interlock between production and Sales Department . Please give me solution of this .
    Regads,
    SAP SD user

    Hi,
    There are lot of integrations between PP&SD
    naming few MTO,SOP process,batch management......

  • Add Service component / products in Sales Lead

    Hi Experts,
    Can i add service products / equipment along with sales product in sales lead?

    Hi,
    If you add a "service product " in Lead for sales , then there would be issue of "org data" , the organisation data will be "sales " data , which will not match with "org data " of service product.
    hope it helps,
    regards,
    PD

  • Multiple Selection of Products in Sales Order

    Hi Experts,
    my requirement is to select mulitiple products from the product F4 help pop-up in sales order items assignment block. To achieve this I have made the following settings:
    1.added the following code in SearchHelpResult.htm view layout of PRD01QR/SearchHelpResult.
                          onRowSelection        = "<%= lv_select_event %>"
                          selectionMode         = "<%= RESULT->SELMODE_MULTI %>"
                          selectedRowIndex      = "<%= RESULT->SELECTED_INDEX %>"
                          selectedRowIndexTable = "<%= RESULT->SELECTION_TAB %>"
    after this settings, I am able to select multiple products.
    2.I have created a button (Choose) for the component PRD01QR to transfer the products to the items assignment block.
    please suggest me on how to transfer the multiple products from the Pop-up to the items assignment block (BT115IT_SLSO)and create line items using the events.
    thanks and regards,
    S Reddy

    Hi,
    Redefine the method EH_ONSELECT_ORDERED_PROD.
    As you can see, they are getting the current entity,reading the Product GUID and setting it.
    Here is sample code snippet...
      DATA:  lr_context_node    TYPE REF TO cl_bsp_wd_context_node,
                  lr_cw                   TYPE REF TO cl_bsp_wd_collection_wrapper,
                  lr_it                     TYPE REF TO if_bol_bo_col_iterator,
                 lr_current              TYPE REF TO if_bol_bo_property_access,
                 lr_prd                   TYPE REF TO if_bol_bo_property_access,
                 lr_product_guid      TYPE REF TO comt_product_guid,
                 lv_outbound_plug   TYPE seocmpname,
                 lv_index                type sy-index.
      TRY.
       Check outbound plug
          lv_outbound_plug = prodsearch_popup->get_fired_outbound_plug( ).
          CHECK lv_outbound_plug = 'RETURNRESULT'.
          lr_context_node = prodsearch_popup->get_context_node( iv_cnode_name = 'PRD' ).
          lr_current = lr_context_node->collection_wrapper->get_first( ).
         while lr_current is bound.
        set product guid
          lr_product_guid ?= lr_current->get_property( iv_attr_name = 'PRODUCT_GUID' ).
          lr_cw      = get_collection_wrapper( gc_context_node_admini ).
          lr_it      = lr_cw->get_iterator( ).
          lv_index = lv_index + 1.
          lr_prd    = lr_it->get_by_index( iv_index = lv_index ).
          lr_prd->set_property( iv_attr_name = 'PRODUCT' iv_value = lr_product_guid->* ).
         lr_current = lr_context_node->collection_wrapper->get_next( ).
        CATCH cx_sy_ref_is_initial cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
    Basically you have to loop at the products and populate admini.
    Regards,
    Masood Imrani S.

  • In the Production Order, Sales Quotation is displayed not the Sales Order

    Hello to All,
    I need a kind help from you.
    My scenario is as follows
    There is a Configurable Material (Finished Product)
    Sales quotation (VA21/2/3) were made for this material.
    Sales Order (VA01/2/3) with reference from the Sales Quotation were made for this same material.
    Now when I run the MRP (MD02) for this material, Planned Orders were created.
    Planned orders were converted to the Production Order.
    In the Production Order (say in Display mode), under the 'General' tab, there is a segment called 'Sales order'. In this segment, the sales order is being displayed if the Production Order is created for a sales order (MTO scenario).
    But, in my case, the Sales Quotation number is being displayed instead of the Sales order.
    My Issue which need your answers:
    Is it a standard SAP scenario?? I mean, if the production order is created for a sales order and again if the sales order is created earlier with reference to a sales quotation, then in the production order, the Sales quotation is displayed. Is it a standard?? Or it is showing wrongly? I mean, is it like that, always the sales order should be displayed in the Production order and not the sales quotation??
    Please suggest so that I can overcome this problem, if at all it is a problem.
    Some More Inputs (For your analysis/research):
    1. After the MRP run of the material the Planned Order is created. I have checked the planned order, and found tha the assignment of sales document (in this case Quotation) is done in the Planned order itslef. It is visible wthin the "Assigmnet" tab of the Planned Order.
    2. For the analysis purpose, I created one stand-alone Sales Order for the same material. I mean, without reference from any Sales Quotation. Then, when I run the MRP (md02), the Planned Order and then production order were created normally, with reference to the Sales order. This just for your kind information.
    3. I have checked the pegged requirement of the Production order in the MD04. It is showing the Sales order itself. But, if I see the production order (CO02/O03), it shows sales quotation.
    User Requirement:
    Evenif, the sales order is created with reference to a Sales Quotation, after MRP run, in the Planned and thereby subsequent production order, the Sales Order should display and not the Sales quotation.
    Please suggest.
    Thanks and Regards,
    Supriyo

    Hi
    Since your scenario is configurable material,  the system takes the reference of sales quotation only. Because the in case of configurable materials the sales quotation is the base and based on the sales quotation the sales order is created and subsequent production order.
    This is std SAP and for configurable materials the sales quotation is deciding factor
    Krishna

  • Product wise sales report

    hi ,
    we are having sales gl accounts on domestic and export now we want to know the products wise report
    please tell me if any standard t-code

    u can find copa line item report (ke24)

  • Rework Order after QC Rejection......for Production against Sales Order

    Hi All,
    Can you help me in the following issue.........?
    I have Make to Order production scenario. After Production Order is confirmed material goes for QC inspection and some quantity get rejected ( need rework).
    Since I have confirmed total quantity in order confirmation, if I create a rework order with reference to the sales order that will increase the production qty by the rework qty. But I need a rework order to rework on the rejected quantity.
    Let me know how to resolve the issue.
    Thanks and Regards,
    Samar

    Hi!,
    From your mail it seems that you are doing quality inspection on GR (inspection type 04). Please carry out following steps:
    1) At the time of quantity posting on usage decision please put rejected quantity in field against retuen to vendor (i.e. carry out 122 movement for the rejected material). By doing this you will find the delivered quanity on prod order reduced by the rejected quantity.
    2) Now create a production order without material (CO07) for the rejected quantity and put the original order as cost receiver in the settlement rule so that all the cost incurred during rework will be settled on original order.
    3. Confirm the origianl order / Final operation again for the reworked quantity and make the GR again. This will again create a new inspection lot.
    4. Carry out the result recording and UD for this new inspection lot.

  • Not able to select Base unit in Receipt from production and Sales order

    Can anybody help me out for the below scenario
    I have defined Sales UOM , Sales Packaging UOM, Items per Sales unit and Quantity per Packing UOM  for all finished product in the item master.
    I have created Production BOM and Production Order (with Issue method is Manual because they maintained items batchwise ) for all Finished products. 
    Based on Production orders, I received finished products(Batch wise) through receipt from production.  But the base unit shows Yes and it is not allow me to change. 
    In Sales order, the quantity column shows the value of quantity per packing UOM instead of Items per sales unit. 
    For Ex. ItemA - 01 No (Item per Sales Unit)
                             3600 Pcs ( Quantity per Packing UOM)
                             Receipt from Production - 10 Nos
                             In Sales order - it shows 36000 (10*3600 ) instead of 10 nos
    Expecting favourable solution for that.

    The selectable units on the sales order are the inventory unit or the sales unit. So if you want to see in units of 3600 Pc-s you should define this as Sales Unit (not as packaging unit). Then you can show the item in this unit in the sales documents.
    (In the receipt from production document you should always use the inventory Uom.)
    Edited by: István K#rös on Dec 22, 2009 10:07 AM

  • Production against sales BOM.

    Sirs,
    I have a scenario where I want to produce against a sales BOM. As in I get the sales order for a material and then I want to produce directly this FG with a sales BOm maintained for sfg's for the material. System should allow me to pick a reference routing in the production order. Is this possible?
    Thanks,
    Ariel.

    Hi there ,
    You can do the production from the sales bom if you maintain the same allowed in the config. check the T-code : OS20...
    Let me know if you have any further quey in the same
    Thanks
    Kaushik

  • Error in product costing (sales order)

    Our products are configurable and the procurement type change with a
    particular value of configuration .My solution was that a dependence change the requirement type in sales order (modify VCSD_UPDATE).
    If an user generate a position in sales order, system create immediately an
    production order if a characteristic FUORI_MISURA ="FALSE" else MRP generate a purchase requisition (procurement type in master record is F30).
    Problem is that product costing in asles order consider in any way purchase value, never production cost.
    Can I modify the costing criteria with a dependance ?

    Hi Ajay,
    it is one of the requirement from our client.
    I have post this issue earlier and my client was accepted to do partial sales order settlement on daily basis, now three copa document was wrong value so i have reverse the document but system taken consider latest document,
    is their any chance to change COPA Settlement document ( Record type C)...i need add one characteristics i.e. material Group in the COPA Document
    Thanks & Regards.
    Vinu

Maybe you are looking for

  • CS5 crashed and now I can't get my 5d Mrk III files to load

    CS5 crashed, lost all my actions and then a clipping warning or something happens to certain colors like blues and greens.  Those colors are all blacked out but when I save the image it is fine, makes it hard to work on the image with that.  I have t

  • Prevent iChat from starting at login

    How do I prevent iChat from starting at login? I looked in my account login items and it is not listed there. I shut the app completely before shutting down the computer so it shouldn't be automatically be relauncing due to the "reopen windows" setti

  • Sdo_pc pointcloud blob in SDO_PC_BLK type

    docs say: POINTS BLOB BLOB containing the points. Consists of an array of points, with the following information for each point: ■ d 8-byte IEEE doubles, where d is the PC_TOT_ DIMENSIONS value ■ 4-byte big-endian integer for the BLK_ID value ■ 4-byt

  • CBWFQ - How is a classes unused BW allocated during congestion

    Hi. I've been reading the forum and the net trying to get a straight answer on this and can't seem to find anything concrete. So basically If I have a CBWFQ setup for three classes, af3x (55%), af2x(30%) and class default(15%). applied outgoing on a

  • When clicking on a link ALLOT of the time I get "Page Not Found"

    When clicking on a link ALLOT of the time I get a 'Page Not Found' message or something similar.... this has been happening since you guys got to the 3.X version... NEVER EVER had this issue in the 2.X version.... it's getting tiring... Another issue