Sales Reports with Partial Shipments

Hello,
I need to write a sales report for open orders. If the order has been partially shipped, I just need to pull what remains to be shipped and display this total.
If the order has not been partially shipped, I need to pull the doc total.
How do I specify if an order has been partially shipped or not? Is there any way to say, "If a line in RDR1 has been shipped or partially shipped, sum the totals of OpenCreQty * Price, else pull DocTotal"?
I need to display the report in 1 line per sales order.
Thanks in advance,
Chris

Hi Christine, 
Without knowing the exact fields you are using you should be doing something like: 
If {TABLE.OpenCreQty} NOT EQUAL {TABLE.Quantity} Then
     0
Else {TABLE.Quantity};
NOTE: WHERE IT SAYS NOT EQUAL TO should be LESS THAN and GREATER THAN symbols. They don't show up in here.
So the If is checking what was shipped with the order's quantity.  If they are not equal then show 0 otherwise show the order's quantity. 
Now you can do a summary and sum this formula and you should get the proper numbers. 
Good luck,
Brian

Similar Messages

  • Please any one provide crystal report for  Location wise sales report with GP

    Please any one provide crystal report for  Location wise sales report with GP.Please its urgent

    A report writer tool like Crystal reports is not available due to the cost involved in its licenses.Do you think that Oracle Reports is free then? It's $$$$.
    You can download and test it for free, but if you want to use it in production you have to buy a license.

  • Query to get list of customers with partial shipments

    I have a scenario where I need to find customers with open orders.  (Orders and Shipments have 1-to-many relationship ):
    Orders = (order_id PK, cust_id FK, prod_id FK, order_quantity, order_date)
    Shipments = (shipment_id, order_id FK, shipment_quantity, shipment_date)
    Open orders have 2 scenarios:
    1) orders without shipment records
    2) partial shipments:
    e.g. 1 order record with quantity 10.  
    2 records in shipments table, 1 row with quantity 3, and the 2nd row with quantity 4; total shipped quantity is 7, which is less than order quantity of 10
    How can I get this?

    ZaafranAhmed wrote:
    I have a scenario where I need to find customers with open orders.  (Orders and Shipments have 1-to-many relationship ):
    Orders = (order_id PK, cust_id FK, prod_id FK, order_quantity, order_date)
    Shipments = (shipment_id, order_id FK, shipment_quantity, shipment_date)
    Open orders have 2 scenarios:
    1) orders without shipment records
    2) partial shipments:
    e.g. 1 order record with quantity 10. 
    2 records in shipments table, 1 row with quantity 3, and the 2nd row with quantity 4; total shipped quantity is 7, which is less than order quantity of 10
    How can I get this?
    SELECT order_id
    FROM   orders
    WHERE  order_quantity > (SELECT SUM(shipment_quantity)
                             FROM   shipments
                             WHERE  orders.order_id = shipments.order_id);

  • Sales Report with Sales Group Field

    Hi Experts,
    Do you know some reports that will display also the sales group value?
    Thanks a lot!

    Hi
    You can create a Z report with the  logic of Fetching VBELN form Table VBKD with customer account assignment group KDGRP.
    Your selection query "Select VBELN from VBKD where KDGRP = '02' ".
    try and revert.

  • Daily sales report with last  selling price

    Dear All,
    how to query daily sales record with last selling price as  following:
    cust. code ,  item  , unit price, last selling price to this cust. within 3 month ,  highest  selling price of  this item with 3months
    I'm new to both  SAP and SQL, Please help! Many Thanks!!
    Wing

    Hi,
       Try this........
    SELECT P.CardCode,P.CardName,P.ItemCode,
    [1] as [Jan],
    [2] as [Feb],
    [3] as [Mar],
      [4] as [Apr],
    [5] as [May],
    [6] as [Jun],
    [7] as [Jul],
    [8] as [Aug],
    [9] as [Sep],
    [10] as [Oct],
    [11] as [Nov],
    [12] as [Dec]
    FROM (SELECT (T0.CardCode),T0.CardName,t1.ItemCode,T1.price,MONTH(T1.Docdate)as month
    FROM dbo.OINV  T0
    inner join INV1 T1 ON T0.DocEntry=T1.DocEntry
    inner join OITM t2 on T1.ItemCode=t2.ItemCode 
    WHERE T1.DocDate>='[%0]' and T1.DocDate<='[%1]' and T1.ITEMCODE='[%2]'
    and T0.CardCode='[%3]'
    ) S
      PIVOT  (max(price) FOR [month] IN
    ([4],[5],[6],[7],[8],[9],[10],[11],[12],[1],[2],[3])) P
    ORDER BY P.[CardCode]
    Check this link for SQL tutorials.........
    http://beginner-sql-tutorial.com/sql-subquery.htm
    http://w3schools.com/sql/default.asp

  • R3 AR aging report with partial payment need FBL5N

    Hi, does anyone have AR aging report list NET BALANCE for each invoice for AR Aging report?  I tried FBL5N which did not apply partial payment to each invoice, customer would not want to see this kind of report and we did in Excel for all open invoices which just waste time only.  
    We do not have BW or Crystal report but need to know which canned report can be used for us to send statement.  Tks.
    SAP R3 ECC 6.0 user.

    Hi,
    I am actually running the SAP Delivered Report in BW.
    So I didn't changed any thing in report.
    I m running the report in ECC using s_alr_87016128 tcode.
    Still I m getting the amount difference.
    I have checked at customer level with company code and Key date.
    Can i get inputs on these.
    ECC Report s_alr_87012168
    BW Report:0FIAR_C03_Q0005
    Thanks,
    Geetha

  • Sales Order with Partial and down payment (milestone billing)

    Hello Experts,
    I have configured a scenario where a down payment and a partial payment and a closing invoice is done on the billing plan for a sales order. The down payment request was done and posted manually in FI and the process went well. The issue i have is that the down payment is not reflected in my partial invoice or my second invoice and my closing invoice as well is not reflecting the payment made for the partial invoice (which is suppose to contain the amount less the down payment).
    Please, how do i resolve this issue?
    Thanks.

    Hi,
    See from what i feel from your description is, the business process is as follows:-
    1) You receive the down payment request, this goes to a special g/l with indicator "F". Now when you recieve the payment you subsequently clear the amount through T-code F-29. In this case the down payment amount or the advance is treated as a deposit, which you adjust against each partial invoice, or completion of certain project.
    2)When you create a partial invoice, considering the example in my earlier post you book complete value of the invoice i.e. RS 800.
       The client requires that RS 720 and Rs 80 should goto seprate g/l accounts. IN this case you need to define a condition type say "zadv" assign a new account key to it say "zad" in SPRO>SALES AND DISTRIBUTION>BASIC FUNCTIONS>ACCOUNT ASSIGNMENT/COSTING>REVENUE ACCOUNT DETERMINATION>DEFINE AND ASSIGN ACCOUNT KEYS.After billing of the correspoding amount I.e RS 80 will be cleared through F-39. Please check the same with you FI consultant.
    3)Since the condition tab page is greyed out , SPRO>SALES AND DISTRIBUTION>BASIC FUNCTIONS>PRICING>PRICING CONTROL>DEFINE AND ASSIGN PRICING PROCEDURE>ASSIGN PRICING PROCEDURE TO BILLING TYPES. Also check in tcode VOFA wether oc. pric. procedure si assigned or not.After doing this you can add teh condition type "ZADV".
    also you can refer to this link down payment condition type (azwr)
    Regards
    Aadesh Kamat
    Edited by: aadesh123 on Jul 14, 2011 6:41 AM

  • Sales Report with Crystal Report

    Dear experts,
    I have a client who wants a report which shows the following on sales analysis:
    Sale Employee Name, Customer Group Name, cardcode, cardname , ItemsGroup Name,
    itemcode, itemname, weight, quantity, Row Total Value.
    Thank you.

    Hi Tendayi
    Not sure what the question is. Do you need help with the query, with writing the Crystal Report? What are the selection criteria, date, customer, etc.?
    Here is a query to help you with the structure:
    SELECT T2.SlpName, T4.GroupName, T0.CardCode, T0.CardName, T6.ItmsGrpNam,
    T1.ItemCode, T1.Dscription, T5.SWeight1, T1.Quantity, T1.LineTotal
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OSLP T2 ON T1.SlpCode = T2.SlpCode
    INNER JOIN OCRD T3 ON T3.CardCode = T0.CardCode
    INNER JOIN OCRG T4 ON T4.GroupCode = T3.GroupCode
    INNER JOIN OITM T5 ON T1.Itemcode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    WHERE T0.DocDate >= '[%0]' AND T0.DocDate <= '[%1]'
    UNION ALL
    SELECT T2.SlpName, T4.GroupName, T0.CardCode, T0.CardName, T6.ItmsGrpNam,
    T1.ItemCode, T1.Dscription, T5.SWeight1, T1.Quantity, T1.LineTotal
    FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OSLP T2 ON T1.SlpCode = T2.SlpCode
    INNER JOIN OCRD T3 ON T3.CardCode = T0.CardCode
    INNER JOIN OCRG T4 ON T4.GroupCode = T3.GroupCode
    INNER JOIN OITM T5 ON T1.Itemcode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    WHERE T0.DocDate >= '[%0]' AND T0.DocDate <= '[%1]'
    ORDER BY T0.DocNum, T1.LineNum
    You can run this direct in SAP query wizard to see if it is what you need before you write the Crystal Report.
    Kind regards
    Peter Juby

  • Sales report with gl numbers

    Hi Gurus,
    I want to generate a report from SD showing details of Material description (items sold) and amount from G/L Numbers 400013, 400017, 400018, 400001 and 400005.with the gl number also displayed. pls help.
    thanks
    Maureen

    Hi,
    You can get the Desired report usign the Following tables,
    BKPF,BSEG
    VBRK, VBRP
    VBAK,VBAP & VBFA
    I would Suggest you to first analyse what fields you want to extract in the report and if the extracting logic is fairly easy use a SQVI Queiries to make a desired report and specify the join conditions where ever needed in the infoset
    or you can ask your ABAP team to write a program in your desired functionality,
    Since your report is involving BKPF and BSEG better to write an ABAP Program than a Query.
    There will be a reference number in the billing document header (VBRK) which needs to be used as a join condition to BKPF  and the accounting document number is the join condiion between BKPF and BSEG.
    for getting t he GOods issue number you can use the document flow table VBFA. Give the billing document number as the Subsequent Number and preceding  document category as " R - Goods Movement"
    Hope this Helps
    Thanks
    Srini

  • Sales report with Batch number & expiry dates

    Hello friends,
    would any one please help me to frame this query to achieve the above ..
    my query is as bellow, but I want to add the batch number & expiry dates along with the other information.....
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    So which table to join to get the batch & expiry...
    Rgds
    Suman

    HI
    Batch table is OIBT, IBT1,OBTN
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[ExpDate] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry inner join
    IBT1 T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry inner join
    oitm T3 on T1.Itemcode=T3.Itemcode inner join OIBT T4 on T1.Itemcode=T4.Itemcode  WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    group by T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T4.[ExpDate]
    Thanks
    Mohammad Imran

  • Customer group wise sales report

    can somebody give me a clue as to how to take customer group wise sales report
    thanks

    HI,
    it will not get the sales report with customer group wise in standard SAP.
    in standard you will get the data for the following selection :
    a. Sales Office wise : MC-E
    b. Sales Organization wise : MC+2
    c. Material(Article) wise : MC+Q
    tell me one thing, whether u need the report customer group wise or customer account group wise.
    Regards,
    somu.

  • MCSI report with two dimension

    Hello
    In MCSI, it is possible to get sales report according to  a group of criterias and to drill down according to an other group of criterias. However it would be also convenient to to get a sales report with two dimensions instead of drilling down in order to analyze with Excel Pivot Table. Is there a way to create a specific structure or something to get it done?
    Thanks
    sb

    Great thanks!
    However the two dimension that can be used do come from the first drill down criterias list. However it seems not possible to select a dimension from the second lists with the matrix function. Is there a way to stil get it from the second list as well ?
    thanks
    sb
    Edited by: STANISLAS BRESIN on May 23, 2011 10:38 AM

  • Open sales order report with billing date.

    Hi,
    I want to know if there's an available report for open sales order with billing date field.
    Thank you.

    Hi,
    If your case is "Order-related" Billing,you can use the T.Code "VF04" for this purpose.
    One more way is to go for a custom report.
    Make a copy of code of the T.Code "VA05n"(Program Name is "SD_SALES_ORDERS_VIEW").
    Change the code as per your requirement to display the field "Billing Date" in the report.
    Check with your ABAPer if you wish to go for a custom report.
    Regards,
    Krishna.

  • Report for sales orders with abnormal discounts

    Hi
    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Reg
    JJ

    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Select KNUMH where KONP-KSCHL EQ ZDIS ( Condition record number)
    Select KONV-KNUMV   Where KONV-KNUMH EQ KONP-KNUMH
    Select VBAK-KNUMV where VBAK-KNUMV EQ KONV-KNUMV
    Then with the help of ABAPER hard code the condition amount (KBERT>10%)
    Regards
    Rohit

  • Sales order report with order attachments

    Hi All
    I am writing a program for a 2 part report that gives a list of sales orders with attachment flags and a list of invoices that do not have the output processed due to the presence of attachment flag.
    Firstly i need help regarding few queries in the process of writing this program.
    1. How can i distinguish between a sales order with attachement and one without an attachment.
    2. What is the related field for attachment in sales header/sales item table(s) or any other sales related table which will contain information of the attachment in the sales order.
    3. If I have an attachment in sales order, will it have an effect in the output being processed for the invoice for that order.
    Thanks in Advance
    --Mike

    Hello Erik,
    is there a sales order report with the complete line-item pricing
    breakdown. For example, In VA05 I'm only able to get the Net
    Price and Net Value as an output. I would also like to view the
    breakdown of the conditions (e.g. disounts, tax, etc.)
    Is there another report in SAP that will show this? Or a backend
    table I can pull this information from to create a query?
    The best way to handle your requirement is to create a Custom report using the standard table for Sales Order i.e. VBAK and you can pick up the Document Condition Number. You can pass this number to table KONV and pull up all the values for the active contion type which was responsible for Sales Order price calculation. Please reach out to a ABAPer to develop this sort of a custom report.
    Just FYI, if you want to check out all the value for a specific condition type, then you can use the standard report i.e. V/LD.
    Please update your post after carrying out this exercise.
    Regards,
    Sarthak

Maybe you are looking for

  • How to solve the problem: ipod doesn't  sort tracks by track number

    After lots of attempts, I think I've found the solution that solves this problem (is it a BUG of the ipod software last update?). PROBLEM DESCRIPTION =================== For some albums, ipod seams to be not able to sort songs by track number, no mat

  • Object Not found in lookup of RNIF11Module Listener

    Hi All, Facing an issue with RNIF11  in XI3.0 SP19  quality system.There is no issue in dev and production. When we run an inerface with Rosettanet in quality we are getting following error in audit log [Delivery of message  to the application using

  • 3 Tier implementation-Few questions

    Guys, We have 3 tire environment i.e source systems will send files into stage database in separate server and target warehouse database in other server. When we get the files into shared directory in stage server we need to load them by using extern

  • Whats the diff between btmm & basic sharing?

    so I have both "back to my mac" and regular screen sharing on me and my dad's computer....but I don't understand what the point is of "back to my mac" if screen sharing already works?

  • Airport Extreme Extending Non Apple Wifi

    Hi there, quite simply I want to know if this is possible at all. I have a Wifi network named "XXX WiFi"  being broadcast by a powerful 30km+ antena. I want to know if I can use a Airport Extreme 4th Gen to extend that network inside my home?