Purchase price different

Hallow good afternoon all the experts
I have made this query and can work in the branch office A, and my copy at the office of the branch B why can not work?
His description is No data was found as a result of the selection criteria.
if anyone can help me fix my Query
This is my Query
SELECT T1.[DocEntry], T0.[CardCode], T0.[CardName], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Price], T2.[LastPurPrc]T1.[NumPerMsr] AS 'Last Purchase Price', (T1.[Price] -  (T2.[LastPurPrc]T1.[NumPerMsr])) AS 'Variance', (((T1.[Price] - (T2.[LastPurPrc]T1.[NumPerMsr]))/(T2.[LastPurPrc]T1.[NumPerMsr]))*100) AS 'Variance%', T3.[SlpName]
FROM OPDN T0  INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode WHERE (T2.[LastPurPrc] > 0) AND Month(T0.[DocDate]) = Month(Getdate()) AND Year(T0.[Docdate]) = Year(Getdate()) AND (((T1.[PriceBefDi] - (T2.[LastPurPrc]T1.[NumPerMsr]))/(T2.[LastPurPrc]T1.[NumPerMsr]))*100) > 5
Thanks

good afternoon expert
Gurdon Hi, thanks for answering my questions and I've found where the error, and could work. I have made the settings automatically 5% how to make that the user can input a desired selection criteria
this my Query
SELECT T1.[DocEntry], T0.[CardCode], T0.[CardName], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Price], T2.[LastPurPrc]T1.[NumPerMsr] AS 'Last Purchase Price', (T1.[Price] -  (T2.[LastPurPrc]T1.[NumPerMsr])) AS 'Variance', (((T1.[Price] - (T2.[LastPurPrc]T1.[NumPerMsr]))/(T2.[LastPurPrc]T1.[NumPerMsr]))*100) AS 'Variance%', T3.[SlpName] FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode WHERE (T2.[LastPurPrc] > 0) AND Month(T0.[DocDate]) = Month(Getdate()) AND Year(T0.[Docdate]) = Year(Getdate()) AND
((((T1.[PriceBefDi] - (T2.[LastPurPrc]T1.[NumPerMsr]))/(T2.[LastPurPrc]T1.[NumPerMsr]))*100) between >= [0%] and <=[1%] )
Thanks

Similar Messages

  • Purchase prices different factories

    Good morning - I'm working on building in purchase prices for all the articles in the system, we have differnt factories over the world with all other purchase prices but it are all the same items. What I want is that sales and I can look for the best purchase prices with the best lead time (lead times I can do manualy) but we whant to see the margins.
    Hope its clear like this.
    Regards Bob, thanks for the help

    Hi,
    Make some udf at marketing documents and make price lists as per your factories, Now apply fms on the udf's to fetch the price from the price list.

  • Material purchase price variance and different cuurrency in IR

    we have a requirement to split  price variance and freight purchase price variance in goods receipt stage, but the problem is condition type can not be assigned COPC original group. so what are the tables I can use to split the two ppvariance using customized report?
    also in GR, accrued freight now is using month end rate, but we want it to be planned rate(another exchange rate type), is it possible to configure?
    during invoice recept, standard can't maintain different currency from PO currency, is it possible to reconfigure the system to use another currency for invoice recept?

    This is the answer from OSS
    Dear Customer,
    the system works as designed.
    When Material Ledger is activated, price differences are always
    generated under the circumstances you have described. The reason is
    that when material ledger is activated, price differences must not be
    included into the stock changes value, otherwise the system would
    not be able to calculate an actual price.
    When Material Ledger is activated, the customizing setting
    for handling price differences in the subcontracting process has no
    effect.
    Best regards,
    Santiago Lorite
    AGS Primary Support, Business Suite & Technology u2013 Logistics

  • Material purchase with different price

    dear all,
    please let me know standard reports in sap which can understand me the material purchase with different prices along with period.
    thanks in advace

    Hi,
    Please refer MBEW  & MBEWH tables. If the you want a report then go for a simple SAP Querry to meet your requirement.
    regds,
    CB

  • Not getting MY iPhone 6 Plus I ordered on 9/12. seems that if you Billed to Account, they pulled the entire purchase price from any credit/debit card that you used to purchase the phone. Well in my case, the order didn't go thru because the payment method

    Have you gotten your iPhone 6 Plus you pre-ordered on 9/12?? I'm still waiting...till the end of OCTOBER! Because, I billed half to my account, as the system LET me do this and the other half to my debit card. Well they tried to take out the FULL PURCHASE PRICE on 9/23. It didn't go thru and they cancelled the order! I NEVER GOT ANY EMAIL from Verizon! I called this evening to find out the status of my order. Was told that since the device is on backorder, I cannot Bill to Account!!!! I am BEYOND LIVID! I realize that it's "JUST A PHONE' BUT, I should have had my device by Friday! NOW, I have to wait another month at best. I do NOT have credit cards and since this phone is on backorder, will have to wait another week before I can order it and by that time, it'll be CHRISTMAS before I can order a phone. Who knows, I may just save that money and CANCEL EVERY SINGLE LINE on my account. Three will be Month to month so NO ETF's with those lines!

    its a bunch of **. they charged my credit card on sunday, my status still says no payment, no tracking #, they told me my phone was going to ship monday and I've gotten a different story every day since. today they told me they shipped out all the phones and are waiting for more to come in...blah blah blah. i ordered on 9/12 and my friend that ordered the same exact phone on 9/19 got his on tuesday and laughed at me for preordering. I'm very frustrated!

  • How to find out what is the purchase price keyed in Initial Quantity

    Dear Experts,
    The stock valuation is Standard Costing.
    Before this, someone else keyed in initial quantity and the purchase price in the Initial Quantities module.
    Now when I issued a PO to a vendor (price list tagged with Last Purchase Price), the price shown is different.
    How do I find out if the price keyed in initial quantity is correct or not? Any tables I can refer to?
    I tried to track from the Inventory Posting List and the smartlink only bring me to the journal entry for the initial quantity posting. I don't have the details like item no., qty, price.\
    Thanks in advance.

    Hi Joyce,
    Go to Inventory->Inventory transactions->Initial Quantities, Inventory Tracking, and Inventory Posting. Open Inventory Posting Tab and select your price list and items if you want or check you can see there Item quantity and old price also price list wise.
    Thanks
    Sachin

  • Goods Issues done with Purchase Price and not MAP

    I would like to know on the inventory valuation from moving average price (MAP)/ average the inventory value to First In First Out (FIFO) basis.
    FIFO basis is where assumption made that inventory being sold is based on first come first serve basis i.e.
    For example you have 1 pc of pen valued at RM 1 and then you buy another pen valued at RM 1.50, your total inventory value would be RM 2.50.
    In FIFO basis, if you sold 1 pc of pen then the product cost will be RM 1.00 (i.e. purchase price) as it deemed that the first pen make a way first.
    However, in MAP basis, if you sold 1 pc of pen, the product cost would be RM 1.25 as it average cost of both pen.
    I have tried using the FIFO rules but it will only take the purchase price if the issuance/sales were done within the same posting period as the GR. If I were to make a GI in the current period, it will not take the purchase price but instead it will be MAP. And then there will be concern if the stocks were available across periods.
    Really appreciate any ideas that you may be it standard customizing or enhancements required.

    Hi
    If you want to apply FIFO rules in real-time basis (day to day operation), then my advice is you should use Batch Management and Batch Valuation features in SAP
    If you activate Batch Management with Valuation, then every GR will be valuated differently
    For example,
    GR 1 on July 01, 2011 - 100 pcs @RM1.00 (batch 001)
    GR 2 on July 03, 2011 - 100 pcs @RM1.50 (batch 002)
    Then there is GI happening, for example :
    GI 1 on July 04, 2011 - 10 pcs
    In normal circumstances (without Batch Management), SAP will take the MAP (which is RM1.25) as the price of GI
    But if you activate Batch Management with valuation, then you need to specify that you will do GI for batch 001, and SAP will take the price of RM1.00 as the GI price
    To ensure FIFO principle, you can also use Batch Determination feature, and make SAP to propose the oldest batch when doing GI transaction in MIGO
    Hope that helps
    rgds

  • Purchase price to have 4 digits after decimal point

    Hi Friends,
    Would you please help me out with this issue?
    The purchase price needs to have 4 digits after the decimal point, because the product/component would be packed and sold in other unit, which may give huge value difference.
    The price can be set for the product/component per 100, but is there any setting in SAP Reference IMG?
    Thanks for your help.
    Regards,
    JT

    Hi,
    In material Master (MM01) which unit you maintain for that material. Go to MM02 and keep Base Unit of Measure as storing unit as earlier and maintain Sales unit (unit of measure in which the material is sold) or Order Unit (Specifies the unit of measure in which the material is ordered) in the Purchase Order according to your requirement and Enter the factor for converting the alternative unit to the base unit. In your case product/component would be packed in a Different unit.
    OR
    In your case product/component would be packed in a Different unit.
    Maintain the (BOM) Bill of Material for the finished product you are selling and its component.Create Finished Product as material type as FERT and Components as material type as HALB or ROH.
    Now try your transaction with Finished Product only and sale.
    Hope the above  will help.
    Regards,
    Biju K

  • Purchase Price List

    Dear all,
    I have a problem about last purchase price in Purchase Order. So Far from my test, the last purchase price is updated after AP Invoice is created. But, I need the last purchase price changed after Good Receipt PO by Warehouse.
    is there any setting in SBO that allowed last purchase price updated after Good Receipt PO because from I read about this in SBO note, they mention that last purchase price is updated after AP invoice or Good Receipt PO is created.
    Please help
    Thanks

    Freddy,
    The main reason why the Last Purchase Price gets updated only after the A/P Invoice is because, there is a possibility that the price on the A/P Invoice can be different than the GRPO.
    The AP Invoice price is the final price which is based on the Vendor's Invoice.  In general business practise the GRPO price is the same as price on PO which is considered as the promised price by the Vendor
    Please test this by creating the GRPO for an Item and then change the price on the A/P Invoice and see the Journal entry and the Last Purchase Price
    Best wishes
    Suda

  • Purchase Price/Production variances GL account

    Hi,
    When I did GR, the purchase price variance GL account has been posted correctly for the difference between PO price and std price.
    However, I found out that after settling the production order via KO88, the variances was also posted in the same GL account.  Is it possible to post this to another GL account, say, Production variance.  If yes, how do I change it?  If its via OBYC, are there rules or general modifications which I have to change? 
    Thanks to advise.
    Regards,
    Thess

    Hi Thess,
    In case of Price Differences arising against Purchase Orders, you don't need to give any Account Modifier in PRD in OBYC.
    For the Variances arising against Production Orders, use the Transaction Key PRF.
    You can assign two different GL Accounts for this purpose.
    Pls find the following SAP Help...
    Price differences arise for materials valuated at standard price in the case of all movements and invoices with a value that differs from the standard price. Examples: goods receipts against purchase orders (if the PO price differs from the standard pricedardpreis), goods issues in respect of which an external amount is entered, invoices (if the invoice price differs from the PO price and the standard price).
    Price differences can also arise in the case of materials with moving average price if there is not enough stock to cover the invoiced quantity. In the case of goods movements in the negative range, the moving average price is not changed. Instead, any price differences arising are posted to a price difference account.
    Depending on the settings for the posting rules for transaction/event key PRD, it is possible to work with or without account modification. If you use account modification, the following modifications are available in the standard system:
    None for goods and invoice receipts against purchase orders
    PRF for goods receipts against production orders and
    order settlement
    Pls revert back for futher explanation...
    Srikanth Munnaluri

  • Purchase price of a apple store product

    Where do I find total purchase price of a application through the apple store????

    The Mac App Store prices do not include sales taxes. Sales taxes in the USA are different in every jurisdiction in the USA based on what the state and municipality tag on.
    For example the sales tax in New York City is 8.875%, whereas in SanFrancisco it is 9.5%. That amount is added on to the retail price listed. The iTunes/Mac App Store sends you an emailed receipt that shows the total amount of your purchase.
    Dah•veed

  • Purchase Price Variance (Standard Costing) with Intercompany

    We are missing Intercompany transactions in Purchase price variance report. Is there a setup which let's us include these transactions to be captured by PPV report
    We do have standard costing in all Organizations

    Finally got this answered from Oracle Support below is what they said. Does not make sense but atleast we have an answer
    In principle the internal requisition hits the interorg variance account which is defined at the shipping network and is different from purchase price variance(PPV) account of the organization. So this is not included in PPV report. PPV report is only meant for purchase orders.
    Best practice would be to define different account for PPV and interorg variance. Use PPV report to match PPV account with GL and use material distribution account detail report for Interorg variance.
    If the customer defines PPV and Interorg variance account as the same then the workarounds would be :
    1) Use material distribution account detail report.
    Or
    2) In R12 use SLA account balance reports

  • Purchase Price of Configured Product (KMAT)

    We have a commodity which we will buying as a configured product. The commodity will contain several subassemblies which the supplier will put together and ship to us as a complete unit. I understand how to set up the materials in Variant Configuration, but my concern is for the purchase price of the item.
    The help files indicate that we can set up the configurable material (top level) as a KMAT and define the content in the Variant Configurator. Since the entire assembly will be purchased at this level, as a composite of the subassemblies, how does the system price the purchase? The help file indicates that the Accounting view would use moving average with a stated price to start, which makes sense since the actual purchase price will vary from combination to combination. Is there a provision in the configurator to handle the purchase price of the subassemblies and that would then roll up the purchase price?

    The Mac App Store prices do not include sales taxes. Sales taxes in the USA are different in every jurisdiction in the USA based on what the state and municipality tag on.
    For example the sales tax in New York City is 8.875%, whereas in SanFrancisco it is 9.5%. That amount is added on to the retail price listed. The iTunes/Mac App Store sends you an emailed receipt that shows the total amount of your purchase.
    Dah•veed

  • Queries Report For Last Purchased Price

    Dear All,
    Can someone helps me to get queries report for last purchased price vs new purchase price that recently being enter on purchased order.
    Trigger by purchased order document posting and we can choose % variance
    Report by order :
    No. Document PO ; Vendor code ; Vendor Name ; Doc Posting Date ; Item code ; Item Name : New Purchased price ; Last Purchased Price; Variance; Buyer Name
    i will used it on alert management.. each time there % variance automaticaly sending an email with those report.
    Thanks

    So.. is it the right query if i join it?:
    SELECT T0.DocEntry, T1.CardCode, T1.CardName, T1.DocDate, T0.ItemCode, T0.Dscription, T0.PriceBefDi, T2.LastPurPrc, (T0.PriceBefDi - T2.LastPurPrc) AS Variance, ((T0.PriceBefDi - T2.LastPurPrc)/T0.PriceBefDi) AS 'Variance%', T3.SlpName FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
    select * from opor where month(docdate) = MONTH(GETDATE()) and Year(docdate) = YEAR(GETDATE())
    But i still find document with last month posting include on the report adn the report became different too

  • Valuation stragety "Net purchase price " for cost calculation

    Hi,i indicate "Net purchase price" used for plan cost calculation,but if there a many PO with different venfor for this material,how the system to determine which PO price used for cost calculation?
    thanks in advance

    Hi ajai,
    I agree with your point,we have 3 info record for a material and 2 are valid as such. The price maintained in  two info records are as 7.5 & 1.0 respectively(valid info records).
    The last price in the purchase order (of the info those records) are 0.41(dated on 09.04.2010)  & 0.2(dated on 19.04.2010) respectively, but when we execute the cost estimation the system picks the price of 7.5  not the least price of 0.2(as its the latest purchased price).
    Do let us know why and of what logic the system picks the highest price.
    Do revert.
    Regard,

Maybe you are looking for