Last Prices and Average Price

Dear SAP B1 Xperts,
My requirement is a report with cols.: Item Code | Item Desc | Price, also it fulfills the conditions like
1. Average Sales Price for the item sold since 01st April 2011.
2. For the item which is sold before 1 year, I want last invoicing price.
I would appreciate if you forward the Query that can be saved and run in SAP's Query Manager.
Version: SAP B1 8.81 PL07
MS SQL 2008
Awaiting Xpert Comments...
Regards,
Papil
Edited by: SAP De' Papil on Oct 3, 2011 11:49 AM

Hi,
Try this query:
SELECT T0.ItemCode, MAX(T0.Dscription) 'Description', AVG(T0.PRice) 'Average Price',
(SELECT T0.[LstEvlPric] FROM OITM T2 WHERE T2.[ItemCode] = T0.ItemCode) as 'Last Purchased Price'
FROM INV1 T0
INNER JOIN OINV T1 ON T1.DocEntry=T0.DocEntry
WHERE DateDiff(DD,T1.DocDate,'04/01/2011')<= 0
GROUP BY T0.ItemCode
Thanks.
Clint

Similar Messages

  • Moving average prices and std prices

    hi friends,
    i have a doubt abt prices...
    which will b assigned for raw materials-standard price? or avg moving price? and why?
    if possible explain clearly about avg.moving price and std.price
    for spit valuation what price we will use??
    help me out..
    thanks in advance...
    venkat

    Standard price are used for products that do not fluctuated frequently.  It is usually used for finished or semi finished products.
    Moving average price are used mainly for raw materials that are purchased externally.  The advantage of using moving average price for your raw materials is that your inventory costs will always reflect the current market cost.
    SAP strongly recommends that you do not select price control V for semi-finished products and finished products, because doing so will very easily cause the calculation of unrealistic valuation prices. SAP recommends: 
    Price control V for raw materials and trading goods; price control S for semi-finished products and products
    We recommend that you only use price control V for materials procured                          
    externally. Materials produced in-house should be subject to a                                 
    standard price control.                                                                        
    Generally all raw materials (ROH), spare parts (ERSA), traded goods (HAWA) etc. are assigned as moving average price (MAP)  because of the accounting practice of accurately valuating the inventory of such materials. These materials are subject to the purchase price fluctuations on a regular basis.
    The semi-finished goods (HALB) and finished products (FERT) are valuated with standard price because of the product costing angle. If these were to be MAP controlled, then finished/semi-finished product valuation would fluctuate due to data entry errors during backflushing of material and labour, production inefficiencies (higher cost) or efficiencies (lower cost). This is not a standard accounting and costing practice
    For Split valuated material it is recommended to use Moving average price

  • Moving average price and standard price

    Dear All,
      Its simple question can any one explains me what is the difference between moving average price and standard price and how the posting will happen with these two price controls and what will get updated.

    Dear Tiru,
    There are two types of price control as below:
    a)Moving Average Price (MAP):
    -If PO and or Invoice price was differ from material master record, the difference was posting
    to stock account. Therefore the valuation price will change.
    b) Difference between a PO price or invoice price and the material master are posted to price
    difference account(PRD). As a result, the price in material master remain same.
    Example:
    Material Master Record:
    Total Qty: 10, Total Value 20, Price 2
    Scenario:
    PO: 10pcs at 2.50 EUR/PC
    Good receipt 10 pc
    Invoice 10 pc at 2.50 eur/pc
    a) MAP:
    Posting:
    Stock Account GR 25 +
    GR/IR Clearing    GR  25 -, IR 25 +
    Vendor Account  IR 25 -
    New Material Master ,Result:
    Total Qty = 20
    Total value = 45
    Price = 2.25
    b) Standard Price:
    Posting:
    Stock Account  GR 20 +
    GR/IR Clearing    GR  25 -, IR 25 +
    Vendor Account  IR 25 -
    Price difference Account(PRD)  GR 5 +
    New Material Master ,Result:
    Total Qty = 20
    Total value = 40
    Price = 2.00
    Hope this help.
    Loke Foong

  • Report for MM for seeing the material old price and new price

    Hello friends,
    For the ROH material we are maintained the Moving average price. So that material is calculated the average price of that material,
    Know My clint wants old price of that  material i.e. one year before And
    he wants comparison report for old price and new price of the all raw materials
    is there any reports are there  such kind.
    Regards
    Pramod

    Hi Pramod,
    If you want to view the old and new prices on a frequent basis, u can go for an
    ABAP query (SQVI) with the base table as MBEW.
    Cheers
    Arun.

  • Future price vs. average price / material expenses in COPA

    Hello,
    at the moment we have some trouble with the material input in the COPA for merchandise. Normally the material input for it should be the average price from the material master.
    After having analysed some missing costs for material input we have realised that in case there is a future price with a valid date < the billing date the future price is taken and not the average one, e. g.
    average price: 10 u20AC
    future price: 12 u20AC
    valid date: 01/31/2008
    billing date: 02/01/2008
    results in material input of 12u20AC. In the sap help it is said that the future price is only taken into account if  "it is activated for material valuation."
    Can somebody tell me what changes I have to make so that the material input is taken from the average price instead of the future price (quasi setting the future price to inactive regardless of value and valid date). Otherwise we have have to change sd conditions etc. which is a lot of work.
    Thanks in advance.
    hansi

    Hi
    Here is the information from the pdf file.....
    Cost condition - VPRS
    Use
    In Pricing, you may want to compare the prices with costs or even implement contribution margin
    accounting.
    To do this, you can use the condition type VPRS as the cost price.
    The condition type VPRS goes into the valuation segment in the material master and determines
    from this the standard price or average price.
    Settings in Customizing
      The condition type VPRS is labeled as a statistical condition in the pricing procedure.
      Using the condition category G, the condition type VPRS goes into the valuation
    segment of the material master and determines from here the standard or average price.
      The condition category S always accesses the standard price whereas condition
    category T always accesses the average price.
    You can refer P 102 in this link....
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDBFPR/SDBFPR.pdf
    Hope this information is helpful.
    Thanks,
    Ravi

  • Report displaying Material Standard Price and PO Price

    Hello Experts
    We have materials which are purchased. Price control is maintained as standard price and standard price is maintained using T Code MR21 periodically.
    Due to this when PO price is different from standard price maintained in material master (usually PO price is higher than standard price) all price difference are posted to price difference GL at the time of GR.
    Now users want to check variations between standard price and PO price for the material receipts.
    Can anyone suggest me any report which provides details of standard price and PO price for the material receipts?
    Thanks in advance for your help.
    Satya Alapati

    Nothing std I'm aware of either.  You could consider using the messages 06 205/6/7 to get a warning at the time POs are created that price varies significantly from std.
    Config help text below:
    Set Tolerance Limits for Price Variance
    In this step, you define the tolerance limits for price variances.
    When processing a purchase order, the system checks whether the effective price of a PO item shows variances compared with the valuation price stored in the material master record. In addition, it checks whether the specified cash discount value is admissible.
    Variances are allowed within the framework of tolerance limits. If a variance exceeds a tolerance limit, the system issues a warning or error message.
    In the SAP System, the types of variance are represented by the tolerance keys. For each tolerance key, you can define percentage and value-dependent upper and lower limits per company code.
    Standard settings
    The standard SAP System supplied contains the following tolerance keys:
    PE Price variance, Purchasing
    Tolerance limit for system message no. 207. This message appears if the specified effective price exceeds the predefined tolerances when compared with the material price.
    SE Maximum cash discount deduction, Purchasing
    Tolerance limit for system message no. 231. This is a warning message, which appears when the specified cash discount percentage exceeds the predefined tolerances.
    Note
    You can specify whether the system message appears as a warning or error message using the menu options Environment -> Define Attributes of System Messages.
    Activities
    Maintain the tolerance limits for each tolerance key per company code.
    Regards,
    Nick

  • Report on Standard Prices & Moving Average Prices

    Hi,
    Would like to have a report on List of Materials with Standard Price & Moving Average Price per plant?
    Though we use Standard Price, since material master also gets updated with Moving average Price.
    Regards,
    Vengat

    Hi,
    Try MM60 tcode, see if it is suitable to you.
    It shows you both (average / standard price)
    Best Regards,
    Natan

  • CS11 &CS12- Moving Price and standard price not appering for items

    Dear Gurus,
    CS11 &CS12- Moving Price and standard price not appering for items.
    is it a bug for my system alone\.
    or a bug overall in SAP itself.
    Pls advise.
    Siva

    Dear Siva,
    Its the standard functionality of SAP.
    You will not get any cost related data in the reports like CS11,CS12,CS13.
    You can try CK13N(which shows the components of the BOM along with the cost) or else CK86_99.
    At Functional module level execute this one CS_BOM_EXPL_MAT_V2 and ensure X is included for the
    input field MBWLS.
    And also check these SAP notes 177006 and 686509.
    Check and revert back.
    Regards
    Mangalraj.S

  • Material Moving Price and Standard Price

    Hello All,
    what could be the reason for having both the Moving Av.Price and Standard price in Material Master of FERT?
    Can anyone explain me the business case
    Thanks
    Arshad
    Edited by: arshad ahmed on Apr 21, 2009 8:35 AM

    hi
    Standard price for FERT, it is assumed that the FERT material is in_house produced and is subject to costing, that is price will be subjected to changes due to reasons which are internal. for example Inhouse cost run, manual change or costing during confirmation. This price becomes the basis for sales of teh product, where we further add other expenses like transport/insurance/ handling  or any other  cost before sellling it.
    Moving Avg price means that the material is subject to price Variations due to Procurement or trading activity as it is a Finished material. If only activity would have been Trading then might be HAWA could have been the solution, since Procurement is involved the Moving Price indicator is there for weighted avg price updation of the material.
    Best regards

  • Find out the Selling Price and Unit Price.

    Hi All,
    Am trying to get the Selling and Unit Price Before an Order Creation and Quote , from the API of " QP_PREQ_PUB.PRICE_REQUEST " ,. based on Item ID , Quantity and two Modifiesrs(Price List ID and Order Type ID).
    i can get Selling Price and Unit from Temp table " qp_preq_lines_tmp ". after execution of Above API .
    but I am getting Unit Price correctly and about Selling Price, its dispaly the Priec as same as Unit Price only .
    I Dont' know what step i missed .
    Have anyone developed similar API for getting the Selling Price and Unit Price for an Item ?.
    Any suggestions are appreciated.
    Regards,
    Shan

    Hi Shan,
    I saw your posting on Oracle forum that is why I am sending this email to you.
    I have been using QP_PREQ_PUB.PRICE_REQUEST to pass item to get item list price thru Oracle Price Engine. I get Item list price without any issues the only thing I am stuck is when that item has multiple modifiers then item price I get is without applying modifiers.
    My case: When Item KD653 3/3MAT has 'X' price list and price of that item is set to 600.00. I have a modifier defined and that includes/qualifies above item for 10% discount. So when I pass my pameters like inv_item_id, list_header_id etc I get 600.00 not 540.00. So I am passing two lines one for regular item list price (600.00) and second for modifier that I have created for this item.
    Result: I get 600.00 Item Price but I don't get modified (10%) price applied to unit price. Also it doesn't recognize my list_header_id that I am passing for my modifier.
    I may be missing something to trigger the modifier part. If you got case details then that will be great.
    Your help will be highly appreciated in this case.
    Regards,
    Prakash

  • T-codes for uploading material prices and domestic prices?

    t-codes for uploading material prices and domestic prices?
    regards

    Use Transaction VK11 and VK12 based on Condition type for price .
    Please reward if useful.

  • Your Price and Retail Price are showing same value.

    In my Catalog section display routing page "Your Price" and "Retail Price" are showing same value. How can I resolve this issue?

    Hi Ashish,
    The CUSTOMER context for qualifiers is supported at the Item / Cart levels.  However, it is only supported in the Catalog when using Best Price.  If using minisite based pricing, "IBE: Use Price List Associated with Specialty Site" = Yes,  and/or customer account pricing, "IBE: Use Customer Account Price List" = Yes,
    Then this qualifier is not referenced for the catalog pricing calls by the pricing engine.
    As per the documentation link referenced above -
    Pricing Qualifiers Supported by Oracle iStore
    All of the pricing qualifiers that are supported by Oracle iStore are supported at the shopping cart level -- but in the catalog pages, a only subset these supported attributes are available to the pricing engine.
    The following table shows the pricing attributes supported in the Customer Application. The table also shows the context for the attributes, whether they are supported in the catalog in addition to the shopping cart, and whether they are supported at item level (also known as line level) or cart level (also known as order or header level). Remember, all of the following are supported in the shopping cart; some are only supported in the catalog. Customer contexts are supported in a Best Price scenario only.
    The discount will not be applied in the catalog with a CUSTOMER context qualifier on the modifier unless using Best Price for pricing.  This behavior is discussed in the (Doc ID 429657.1)
    Regards,
    Debbie

  • DIFFERENCE BETWEEN GROSS PRICE, NET PRICE AND EFFECTIVE PRICE

    HI FRIENDS,
    CAN YOU EXPLAIN ME IN DETAIL, WHAT IS THE DIFFERENCE BETWEEN GROSS PRICE, NET PRICE AND EFFECTIVE PRICE WITH A GOOD EXAMPLE.
    REGARDS.

    Hi,
    Example: Material Price is Rs.1000/-
    & Discount is 10% and tax is 10% and freight is Rs.50/-,Fixed( it may also %)
    So Here the Material Price is called Gross Price Rs.1000/-
    Gross Price (Rs.1000/-) – Discount {Rs100/-(10% of Rs.1000/-)}= Net Price Rs.900/-
    Here Net Price Rs.900/-
    Tax Rs. 90/- (Rs.900/- +Rs.90=Rs990/- is called sub-total)
    Freight Rs. 50/-
    Rs.1040/-
    The Total Price (Rs.1040/-) is called Effective Price.
    Note:
    1) Total value = total quantity x price
    When a price changes, the value of the stock changes, since the value is calculated from the price:( its also depends on price Control)
    2) Effective (actual) price: Net price minus cash discount and plus miscellaneous provisions and delivery costs as well as non-deductible input tax.
    Regards,

  • Last purchase and sales price

    Dear Experts,
    I do require a report in which we can compare last purchase vs sales price of same item.
    Item Code,  description, last purchase rate, last sales rate ,     Profit  ,     %
    1234 ,            furniture   ,   1500.00  ,             1800.00  ,            300.00 ,    20%
    I can find last purchase price from master data but couldn't find last sales price.
    Any inputs will be highly appreciated.
    Regards,
    Ravi

    Hi,
    Try this query:
    SELECT case when T1.[ObjType] = 17 then 'OR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDR T1 ON T0.CardCode = T1.CardCode INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 15 then 'DN' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ODLN T1 ON T0.CardCode = T1.CardCode INNER JOIN DLN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 23 then 'QT' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OQUT T1 ON T0.CardCode = T1.CardCode INNER JOIN QUT1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 13 then 'AR' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN INV1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 16 then 'SR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDN T1 ON T0.CardCode = T1.CardCode INNER JOIN RDN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 14 then 'AR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORIN T1 ON T0.CardCode = T1.CardCode INNER JOIN RIN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    Thanks & Regards,
    Nagarajan

  • Consignment and average price

    --> Changed the threat and reentered the question in the accounting area.
    Hello,
    does somebody have found a way so that the average price is updated if the material is "purchased" by consignment contract? (If I understand it right normally the average price should be s. th. like the price in the info record, at least over a long time period).
    Thanks in advance.
    BR,
    Hansi
    Edited by: Hans-Reinhold Heyderich on Jun 11, 2008 9:42 AM

    the MAP is used for your own stock, cvonsignment material is not owned by you, hence a receipt into consignment stock will not update the MAP.
    A transfer from consignment to own should update the MAP.

Maybe you are looking for