How to show open sales orders

hello All
I want to show a report of all sales orders that has been converted to invoices. (the sales order and invoice document numbers)
Also, if they have been partially converted to invoices(so still open), it must show these sales orders as well.
All Sales Orders that has been converted to Invoices(so closed status) as well as Sales Orders that are still open but has been partially converted to invoices.
This is my query thus far :
with openorders as
SELECT DISTINCT T0.DocNum as 'Sales Order #', T0.DocDate as 'Order Date',
T0.CardName as 'Customer Name',
T0.DocTotal -T0.VatSum as 'Excl. VAT', T0.VatSum as 'VAT',
T0.DocTotal as 'Total', 
t0.docdate as 'Inv Date', T0.DocNum as 'Inv #','NULL' as 'Numatcard',  T0.DocTotal -T0.VatSum 'Total Ex VAT',
T0.VatSum as 'Inv VAT', T0.DocTotal as 'INV TOT', 'NO INVOICE' as 'Slpname',t0.Comments as 'Comments'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.[TrgetEntry]  is null
OrdersInv as
SELECT DISTINCT T0.DocNum as 'Sales Order #', T0.DocDate as 'Order Date',
T0.CardName as 'Customer Name',
T0.DocTotal -T0.VatSum as 'Excl. VAT',
T0.VatSum as 'VAT', T0.DocTotal as 'Total', 
T2.DocDate as 'Inv Date',
T2.DocNum as 'Inv #',
T2.NumAtCard,
T2.DocTotal -T2.VatSum as 'Inv Excl. VAT',
T2.VatSum as 'Inv VAT',
T2.DocTotal as 'Inv Total',
T4.SlpName,
T2.Comments
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OINV T2 ON T2.DocEntry = T1.TrgetEntry
INNER JOIN OSLP T4 ON T2.SlpCode = T4.SlpCode
select *
from OrdersInv union all
select * from openorders

TrgetEntry will not always work, sometimes it is null even if an order has been copied to an invoice.
This is a simple version of the query, you will need to expand it for your needs:
SELECT DocEntry FROM ORDR WHERE DocEntry in (SELECT Distinct BaseEntry FROM INV1 WHERE BaseType = 17)

Similar Messages

  • How to show Open Sales Orders only in a report?

    Hi,
    I am working on a Business Objects report to show open sales orders. Here i pull data from a RapidMart universe for which data comes from SAP.
    I just wanted to know which object or field in SAP can/will differentiate whether a particular sales order is delivered or not.
    Is MRP anyway related to this?
    Plz. help!
    Many Thanks,
    Arun KK

    Gattu,
    Thanks for your reply.
    However, the problem goes like this.
    I am working on an existing BO report. This report works perfectly(shows only the open sales orders) except for some leakage(some delivered items too get it).
    The existing report's query have filters only one MRP Element and Order Category.
    Could there be anything that can be done with these objects?
    Thanks,
    Arun KK

  • How to summarize Open sales order credit value

    Hi, friends.
    I am designing Add-on report about credit exposure.
    I found the relevant tables of Credit Limit in FD32
    KNKK
    S066
    S067
    Then, I would like to show the document details of open sales order credit value in the report.
    I tried to summarize the open sales order amount from VBAK, VAUK, VBAP, VBUP.
    However, it doest match to the amount in S066 table.
    Can anyone tell us how to summarize Open sales order credit value from SD documents?
    Regards,
    Yu

    Sudheer,
    You need to check the update rule given in the definition of the Credit control Area which you are using for credit management. If you want only the open deliveries then you need to have update rule 15 in the credit control area.
    In the credit controal settings, you need to have settings for the credit check at the delivery level.
    Hope this will solve your issue.
    Regards,
    Chetan
    Edited by: Chetan Gupte on Jul 15, 2010 8:56 PM

  • How to create open sales order using BAPI....?

    Hi Guru's,
    please help me how to create open sales order and which BAPI i have to use for open sales order.
    please provide any program logic related to this or step by step process.....
    that would be helpful to me.
    thanks in advance...
    Srinivas....

    Hi sreenu,
    Open PO or Open sales order means that the complete cycle is not complete. That means the Sales order is not completely delievered or is not billed or is not paid for. Only once the cycle is completed the order status shows as complete untill then its Open.
    You can use VA05 to find open sales orders.
    Similarlry open PO's are those PO's whos inbound delivery is not complete or whos goods receipt is not complete and whos payment is not done to the vendor
    U cannot directly find the open PO and open SO from any table.
    That u have to calculate from the status of the PO and SO and then check wheteher that is complete or not.
    U have table VBUP for SO status.Check out the fields in that table
    pls see the below link.
    http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
    http://msdn.microsoft.com/en-us/library/cc185190.aspx
    thjanks
    karthik

  • How to find open sales orders.

    Hi Gurus,
    Can you please help me out How to find open Sales orders in SAP.
    Is there any transaction code available or we can get it through via tables.
    Your afforts are highly appriciated .
    SRavani.

    Dear SRAVANI,
    You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
    You will get the all open orders.
    Hope it fixes your issue.
    Please check it and revert.
    Thanks&Regards
    Raghu.k

  • How to identify open sales orders by sales representative by due date. ?

    We rely heavily on forecasting our "billing pipeline".   Billing Pipeline is defined in our organization  by:
    All billings for a specified date range + (all open sales orders + deliveries)  not yet billed but due by  a specified due date = Billing Pipeline.  
    The open items list by Sales Orders + Deliveries will accommodate that by the company but does not accommodate a breakdown by sales person.
    I am looking for a way to generate all Sales Orders & Deliveries that are not yet billed by due date for each sales person. 
    Has anyone done this in SAP core reporting or have a query to accomplish this ...?
    Thanks, Dan
    Prograde

    This one will show you Open orders by open lines by Sales Person by Date Range
    You can use the same structure for Open Deliveries. Change Ordr to Odln and RDR1 to DLN1
    Regards,
    M. Jenkins
    SELECT T2.SlpName, T0.DocNum, T0.CardCode, T0.CardName, T0.NumAtCard as 'Cust PO', T1.ItemCode, T1.Dscription, T1.Quantity, T1.OpenQty AS 'Open', T1.Price, (T1.OpenQty * T1.Price) AS 'Total Net', T1.ShipDate FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode WHERE CONVERT(nchar(8), T0.DocDate, 112) >= [%0] AND  CONVERT(nchar(8), T0.DocDate, 112) <= [%1]  and  T1.LineStatus ='o' ORDER BY T2.SlpName, T0.CardName, T0.DocNum
    Edited by: Inc. Cowper on Feb 4, 2009 8:39 PM

  • How to make Open Sales Orders consider unallocated stocks in MRP run

    Dear Experts,
          Maerial BOM   MATERIAL TYPE    STRATEGY GROUP        PLANNING STRATEGY      DESCRIPTION
                                                                                    Req-DM      Req-CU
    3.    TF180TK               fert                           20                                                       KE             make-to-order
    2.    TH300TK               halb                          20                                                       KE             make-to-order
    1.    TA300TK               roh                           10                                  LSF              KSL           make-to-stock  
    As listed above material in line no.1  is required to produce 2 and
                                                           2 is required to produce 3.
    I have open open sales orders for material TF180TK(fert).
    What settings do I need to effect,  to make the System consider Stocks & Open Purchase Orders for material  TA300TK (roh) which are not allocated to these Sales Orders , when  MRP run is carried out at plant level using MD01? 
    Regards

    Dear Bisolaaina,
    I Think by mistake this duplicate thread might have been created so pls close it
    Regards
    Madhu

  • How to Avoid Open Sales Order Value from Credit Check

    Hello Everyone,
    We have a problem with Credit Management, When my user run the execute credit master sheet, system is considering open sales order value under Credit limit used. My user do not want consider open sales order value, they want only Open delivery and Open Billing value need to appear in Credit limit used.
    Is it possible to avoid open sales order values, if yes what setting i need to do....please help me.
    Thanks
    Sudheer

    Sudheer,
    You need to check the update rule given in the definition of the Credit control Area which you are using for credit management. If you want only the open deliveries then you need to have update rule 15 in the credit control area.
    In the credit controal settings, you need to have settings for the credit check at the delivery level.
    Hope this will solve your issue.
    Regards,
    Chetan
    Edited by: Chetan Gupte on Jul 15, 2010 8:56 PM

  • How to make open sales order consider allocated & unallocated stocks in MRP

    Dear Experts,
    MAT BOM, MAT TYPE, STRATEGY GROUP, PLANNING STRATEGY, Req-DM Req-CU
    3. TC180TK   fert                     20                                    KE                        make-to-order
    2. TB300TK   halb                    20                                    KE                        make-to-order
    1. TA300TK   roh                     10                                   LSF KSL                make-to-stock
    As listed above, material in line number 1 is required to produce 2,  and
    2 is required to produce 3.
    I have open open sales order for material TF180TK(fert).
    When I carry out MRP run, stocks of material  TB300TK (halb), that is allocated to this sales order is considered, but unallocated stocks are not considered.
    I want the system to consider both stocks, allocated & unallocated stocks.
    What settings do I need to effect, to make the System consider available stocks of  material  TB300TK , that is not allocated to this sales order during MRP run using MD01?
    Regards

    Dear
    For MTO scinario , any depedent will be either having Account assingement PR or it will pick up the speciall stock (E) based on the Individaul and Cllective Indicator as 1  in MRP4 view .It will never getting reservaed from un-allocated stock ( i beieve u r talking abou Un-restrited stcok ) .This is a standrad behaviour of the MTO cycle in SAP system .
    As you have mentioned , that you are using planning startegy 20 -MTO and also you want depdents (SFG and Compoenets in SFG) to be from un-allocated stock .In that case you should not use Planning strategy 20 and also assing Indviaul and Collective Indicator as 2 or blank .It will be purely MTS and you can have sales order with item categoery TAN .
    So please  keep Ind/Collective indicator as 2 in MRP4 and try
    Hope this helps
    Regards
    JH

  • 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 list OPEN sales orders only

    Standard B1 sales analysis reports, report on ALL orders whether they are closed or not.
    (i.e. sales A/R - Sales Reports - Sales Analysis - click the orders button - select date range)
    The above returns all orders and I'd like to return ONLY the uninviced orders
    Is it possible to report on OPEN orders only? If so how?

    Hi Martin ,
    I am providing you this suggesstion so that you can solve another issue  effectively.
    For example , You need to get sales order with status open,
    Fo to sales ->Sales Order
    On the menu bar -->View -->System information
    Lets say you need togo to Check status , point your cursor at the particular field --you can see at the status bar it is coming from OCRD .Docstatus .similarly you can get information about the field you want in your report
    So -go to query generator ,
    select the table --OCRD ,
    Select the field you want  and execute .You build your query based on your need . You can put more filter based on where clause --where Docstatus='o'
    Some basic sql command willbe more helpful to improve your skill .
    Hope this helps .
    'Bishal

  • Open sales orders using SD_SELECT_SALES_DOCUMENTS - no POSNR

    Hi all,
    I'm trying to use SD_SELECT_SALES_DOCUMENTS to select open sales documents but have noticed that it does not seem to contain line item details, seems like it only shows open sales orders at header level. I was wondering if there was something similar for line item details?
    Regards,
    Mark.

    Marcin, thanks for the suggestion - unfortunately in import parameters didn't give me the function I needed.
    Instead i've found BAPI_SALESORDER_GETSTATUS  to be quite suitable.
    Regards,
    Mark

  • Uploading Open Sales Orders

    Dear All,
    Can some one kindly let me know how to upload open sales orders, open deliveries , open Purchase orders and open invoices.
    Your early replies are very much appreciated.
    Rgds,
    Ravi

    Hello Ravi,
    Use LSMW for uploading the data involving open sales orders, open deliveries , open Purchase orders and open invoices.
    Here are the steps which you can follow :
    1. Define the source structure as well as the field of the legacy system.
    2. Perform the Cleansing activity to eliminate the unwanted data if present.
    3. Extract the Data from the legacy system.
    4. Field and structure Mapping of the Target (SAP system) is be done.
    5. Start the process of Uploading.
    6. Correct if any discrepancies that comes up due system performance issue.
    Regards,
    SARTHAK

  • Open Sales Order quantity & value

    Hi,
    We have a requirement here of report to show open sales order quantity & value for any month (monthend). There is a datasource 2LIS_11_V_ITM which gives Open order quantity. I have created an ODS with 2LIS_11_VAITM & 2LIS_11_V_ITM which can give me desired qty & value, but only for date of last data upload and not for date in the past.(and to get that, I have to sumup all open orders quantity without using any date filter)
    I am thinking of creating a Infocube over this ODS to update the Open Order qty & value at the monthend (Snapshot scenario). But to update this, I am not able to get the logic for date to be used in time dimension.
    If anyone can think of the solution or any alternate way to develop this kind of report, your help/suggestions are most welcome.
    Thanks,
    Vikram.

    Hi Vikram,
    Find the link, which solves u r requirement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/arobustdesignofopensalesorderdataflow
    Thanks & Regards
    Ramakrishna Kamurthy

  • Open Sales Order

    Hi All,
    How to make Open Sales Order Report for previous year.my client want to open sales order list as on 31/03/2014.
    please suggested me.
    Thanks&Regards,
    P.Pratap

    hi all,
    thanks for your replies,
    i need open sales orders before 31032014. plz look into the below scenario
    for ex:
    S.no    Sales order No   still open      31/03/2014     closed date
      1         101                   open             Open       
      2          102                   closed          Open           03/04/2014
    3           103                  closed           Open           01/04/2014
    i need report like these 3 open sales orders as on 31/03/2014.

Maybe you are looking for

  • Requirement: Creation of new report similar to VA05u2026

    The Sales team need to use transaction VA05 to show all open orders, for all order types.  It currently takes 9 minutes to run an open order report, 11 to include exporting the file from SAP. There are currently nearly 30,000 Finished Goods open orde

  • ABAP objects for transfer/update rules - does this apply to include stateme

    I have a question about the new requirement for the code in the update/transfer rules to be written in ABAP Objects standards.  Does this still apply if in your update rules you using include programs?  Does this mean that when we upgrade we will hav

  • Filter second selectOneChoice depending on choice in first selectOneChoice

    I have JSP page Report_start.jsp. On this page found 3 selectOneChoice. 1 - Country, 2 - Archive, 3 - Fund. First falling out list (country) is filled by class FillCountryComboBox, located in file FillCountryComboBox.java. Second falling out list (ar

  • Do all JSP/Java bean webapps need an xml file?

    Hi all, I have a jsp/ java bean webb application. This is being run on Resin at Lunarpages. The site has been shut down due to 'class-loader' not found. I was told it was causing problems for other java users on the server. I realise this is limited

  • OS X Lion - System Requirements

    Hi everyone, Not too sure if some devvs would be willing to 'bend the rules' of their NDA with Apple, but I am curious as to what the System Requirements are for INSTALLING Lion. I know I can read all of Apple's lovely marketing and PR pages that tel