Query for quotes not converted to Sales Orders

Hello,
I am relatively new to SAP B1 (little over a year now) and I am trying to build a query but I have no idea how to approach this one.
I am trying to find Sales Quotes not converted to a Sales Order.  Sounds simple but here is where they start getting complicated.  I need to specify a date range (normally a year but could be quarterly).  Need to specify one or more items, groups, or vendors.  Need to display our cost for each item on the quote(s).
Any help on this would be great.  I have used the query wizard in the past with some success but this one is getting way out of my comfort zone. 
Many thanks to all who have contributed to these discussions.  It is nice knowing that I am not the only newbie around.
Keith H

Hi Keith.
Following a little query for your request.
Take note that query return only the ROWS of sales quote which are never converted in a sales order.
It means that if you have a sales quote whit 1 rows and 1000 unit, and you convert the quote in a order for 500 unit, the quote is considered converted in a order and not displayed
The cost is the price set in PRICE LIST 23 as you say in a your previous post.
SELECT
a.DocDate ,
a.DocNum,
a.CardCode,
b.ItemCode,
b.Quantity,
d.ItmsGrpNam,
b.Price as 'QUOTE_PRICE',
e.Price as 'COST'
FROM
inner join QUT1 b on a.DocEntry = b.DocEntry
inner join OITM c on b.ItemCode = c.ItemCode
inner join OITB d on c.ItmsGrpCod = d.ItmsGrpCod
inner join ITM1 e on b.itemcode = e.ItemCode
where
a.DocDate between [%0] and[%1]
and b.TargetType <> '17'
and b.ItemCode Like '%[%2]%'
and e.PriceList = '23'
EDIT:
In your first post you say
Need to specify one or more items, groups, or vendors.
Please explain what you means for
=> one or more items
in this point you can have some problem with the query manager...
Hope that help
--LUCA

Similar Messages

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • Pricing populating for period not valid in sales order

    Hi Frnds
    I have an issue with a sales order which has say 10 line items and the pricing for each line item is maintained in VK11. The client updates the pricing say every year therefore the record shows previous prices for that material too. When creating the sales order the system is picking pricing for few materials from year 2005 and few from 2008. This seems to be an abnormal behaviour to me. I checked the pricing record and the new ones are active.
    Could anyone give me point me in the right direction??

    Seems we are missing a point here, the validity dates maintaines for the new record are correct. The system is pulling the old record for god knows what reasons. for few line items the right pricing is populating but for some its pulling old pricing record.
    I hope this helps

  • Unit Cost is not Populating in Sales Order Line Level for OPM Enabled Org

    Dear All,
    This is to inform you that Unit Cost is not populating in Sales Order Lines. Ideally it should pick from OPM financials, but whenever i am running Cost Update it is throwing error. We need to pull out Unit Cost for Sales Analysis Report. Please suggest on the same ASAP. What are the steps needs be followed to populate the Unit Cost. Please suggest.
    Thanks & Regards,
    Patrick

    Hi
    I think it will pick from PRICE list. Why don't to you try by keeping this item in the mentioned Price list.
    Regards
    Raj

  • Not Updating Open Sales Orders Value for CreditManagement

    Hi Frendz,
    This is the first time am implementing creditmanagement in my system tested simple credit limit check working fine.
    Now testing Static and Dynamic(Automatic) it also working fine but Its not caliculating open sales orders value either static or dynamic while Creating s.o, settings made clicked on open s.o, i have already created sales orders value of 10th.
    EX:- customer balance is 2lacs, credit limit is 1lac while creating s.o it always showing balance 1lac only(Instead of 1lac10th) with open sales order value  is 10th.
    Let me know Where i have missd settings.
    Hari Prasad

    hello,
    it is maintained against the cr control area in ent structure.
    one needs to change there.
    r u in prd system or development?
    becoz if prd, then this change will effect a lot of ongoing docs.
    rgs,
    AK

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

  • How to convert open sales order status to close

    Hi Guru,
    There are lot of sales order in Open status and Overall status is Being processed, i have given the reasoning on Header and Line items and checked the Complete status. I also blocked the billing & delivery by using t-code VA02. when I see the open sales order in VA05 then these sales order exists in VA05 with staus A - Open.
    Please guide / help me that what i have to do to close these order or convert open sales order status in complete or short close.
    Best Regards,

    Thanx Experts,
    It is working, But it is not working in those sales order which order qty, delivery qty, confirm qty = 0, kindly let me know what is the way out to remove such sales order from the open sales order list. I try to delete but SAP says "This document cannot be deleted" Pl. help...
    Thanx for solutions.
    Regards,
    Edited by: VijayAngrish on May 18, 2010 7:48 AM

  • How to convert General sales orders to Duplicate one

    Hi all
    i want to know about duplicate sales orders ... How to convert sales orders into duplicate sales orders
    i know we can check in SDD1 Table
    but i want like to know how to convert General sales orders to Duplicate one
    Thanks a lot

    There are some missing links in your question:
    1. SDD1 is a TCode for a report, not a table.
    2. Do you know anything about "duplicate sales orders" concept in SAP?  Please refer following SAP help link which talks about duplicate sales orders and business scenario associate to it.
    - Eliminating Duplicate Sales Documents - Sales (SD-SLS) - SAP Library
    If that doesn't cater you requirement or help you, then please elaborate your requirement.
    Thanks, JP

  • HOW TO BLOCK DELIVERY OF GOODS WHICH ARE NOT EQUAL TO SALES ORDER

    Hi,
    I want to block user to create any sales invoice for some customers based on  sales order where quantity in sales order is not equal to invoice.
    Thanks,
    Anitha

    Hi Anitha,
    You can do this by selecting check marks on two field under BP Master data >>Payment Terms
    1) Allow Partial Delivery of Sales Order
    2) Allow Partial Delivery per row.
    Thanks,
    Regards,
    Sudhir

  • Header condition type value not displayed in sales order output

    Hi gurus,
    I have observed a strange issue regarding a header condition in a sales order.
    we have a set up like following:
    1. If the Header condition XXXX is used in sales Order then this value should be printed on sales order output.
    2. If the Header condition mentioned in above point is not maintained in sales order it should print the total price of all line items.
    Though i have maintained the header condition value in Sales Order Header its not displayed in SO output.
    That is , I have a sales order and it has one HEADER condition type entered with 3500 USD.
    In fact this value is used for some business purpose and is being printed on the sales order output for a specific output type.
    But where as in a sales order this header condition value is not getting printed on the output though I am using same data as of the sales order which is having the header condition value printed on its output.
    According to business,we must have the header condition value printed on  sales Order output.
    Please suggest how to proceed.
    Thanks in advance.

    Not sure if you are using costom smartform to print invoice, if yes then ask developer to debug and find the root cause and fix it.
    You might need to give him condition when it shuld be printed and when not.
    You can take reference of another output type for which it is printing

  • Partner determination functions are not determine in sales order

    Dear Sap Gurus,
    I have made a new partner function (P2) and have been configure it in partner determination procedure, although i hv made new customer master for the same account group. All th partner function are showing in the customer master data but these are not determine in sales order, one error is coming...this partner procedure is not defined.......kindly give me advide how to resolve this problem.
    Regards
    Parul Deshwal

    Hi
    Have you assigned the Partner determination procedure to your sales document type?
    Also have you assigned the Partner function to your Partner determination procedure.
    Also do the same to the sales order item partner determination
    regards
    Prashanth

  • Status not updated at sales order level though the billing is done.

    HI,
    This is related Third party sales, where i created order, billing but document status has been showing as BEING PROCESSED.
    There are 3 line items, where one item status is showin as completed, and for other two line items status is being shown as BEING PROCESSED.
    PLEASE LET ME KNOW THE REASONS.

    Read the following OSS notes to understand the status related to third party orders?
    1)  Note 210500 - Billing status of a third-party item
    2)  Note 549818 - FAQ: billing status for third-party items in sales order
    Regards,

  • Condition type not coming in sales order

    Hi,
    we have a condition type Z026. The issue is that  it is not set in the order but the condition records exists. The pricing analysis shows that condition reocrd is missing but the fact is the condition record is there. The acess seq is Z026 and there are many tables in the acess sequence.
    The first table in the access seq is 906 and the condition record exists but still the system says that the condition record is not found using  cond preliminary step (header fields like customer/sales org/div). the cond record is maintained for  relevant sales org/dist channel/customer/material. cond preliminary step means that system first looks for the header fields but everything is there.
    The condition is active and the conditon is created on 21.7.10 with validitity from 21.7.10 to 31.1.2010 and the pricing date in sales order is 27.7.10. so everyhting is fine but yet the condition is not coming in sales order
    what could be the issue.
    regds

    Hi,
    Now try creating a sales order with 20.07.2010 as the pricing date. It will work. Create another order with 21.07.2010 and it will not work. If so, it is due to the validity date. When you give 21.07.2010 as validity date and there is already another record which was valid on that date, the gap of one day can happen and we have experienced this. There is even an OSS note explaining this concept, which makes sense business-wise.
    However you check the scenarios I have mentioned. If the behaviour is as I have mentioned, then you have to change the pricing date of your problamatic sales order to one day earlier, or move the validity date one day earlier.
    If the behaviour is different, pls lemme know

  • Customer not displyed in sales order

    Hi all,
    I'm facing problem with customer not displyed in sales order. While i'm creating sales order sold to party and ship to party fields both are grey mode ( fileds are not accepting any values). I set up partner detemination procedure for customer, sales header and item level. I don't know where i did wrong . Please solve my problem as early as possible.
    Thanks & regards
    Kesav

    Dear Kesav,
    Did you assign Partner procedure to sales document header??
    Please do this Go to SPRO>SD>Basic Functions>Partner Determination>Set Up Partner Determination-->Set Up Partner Determination for Sales Document Header
    Here select the Procedure and then click on Partner Determination Procedure Assignment and assign procedure to sales document type.
    Thanks,
    Raja

  • SD - Manual entries allowed for item category in the Sales Order

    Hi experts,
    please do you know any OSS note related to SD, in order to increase the number of Manual entries allowed for item category in the Sales Order (table T184)?
    Thank you very much
    Andrea

    Hi,
    I searched OSS notes and did not find any OSS Note related to add more than 11 Manual Item categories or append T184 Table.
    Has any found solution for this, will this be a CORE MOD.
    Pavan Verma

Maybe you are looking for