BEx calculation for 'average sales order value'

Hi all,
Can someone tell me how to use BEx query function to compute the <b>'average sales order values' by month</b>? Thank you.
J.

Hi John,
     You've two characteristics in the rows, right? Calendar Month and Order Type.
Try the option Calculate Result as Average of All Values and
Calculate Single Value as Nothing Defined? See if this works.
Or else in Modelling,
In the Info Object Create/Change screen, you can specify an Exception Aggregation based on
<b>Aggregate Reference Characteristic</b> Calendar Month.
I think there's an option for Average Values in the <b>Exception Aggregation</b> tab.
For more Information,
http://help.sap.com/saphelp_nw04/helpdata/en/75/21054da1392649948e5b94e4fc4bce/content.htm
Hope this helps.
Regards
Hari
Message was edited by: Hari Krishnan K

Similar Messages

  • Wrong tax calculation for minimum sales order scenario

    Hi all! We are trying to use minimum sales order value for our sales order processing in CRM. The sales order value and the calculated tax looks fine when the sales order is created. Eg.
    Quantity = 10
    PR00   $4 each    Total value of $40
    AMIW  $50
    AMIZ   $10
    MWST $6.25 (tax of 12.5%)
    When we create the billing document in CRM, the net value is shown as $50. However, when we look at the Conditions, the tax is calculated based on a tax base value of $100 and hence ended up with $12.50.
    Quantity = 10
    PR00   $4 each    Total value of $40
    AMIW  $50
    AMIZ   $10
    0TTE   $0
    MWST $12.5 (tax of 12.5%)
    Does anyone know what I might have missed out that would cause this problem?
    Any comments would be very much appreciated.
    Cheers!
    SF

    Hi Devi,
    If you want to do the billing in CRM, then you need to use the billing pricing procedure in CRM. Below is the list of the configurations I usually do:
    1. Create new transaction type if needed
    2. Create new item catagory if needed
    3. Assign item category to transaction type if 1&2 is created
    4. Create new document pricing procedure
    5. Assign pricing procedure to sales organisation and new document pricing procedure
    6. Create new billing type if required
    7. Creat new billing category if required
    8. Assign billing item category
    9. Assign revenue account for sales transactions
    10. Assign accounting document type to billing type
    11. Create new sales order type in R3 if 1 is done
    12. Create new item category in R3 if 1 is done
    13. Make sure that item category is assigned to the new sales order type in R3
    14. Create delivery item category in R3. This has to be the same item category as that in the sales order as the system copies the item category of the sales item into the delivery.
    Hope that helps.
    Regards
    SF

  • Discount calculation for a sales order in CRM

    Hi All,
    I need to change the pricing data for a sales order item using a BAPI. For this I want to make use of the BAPI_BUSPROCESSND_CHANGEMULTI. But I am not sure as to which of the fileds to be used for the discount rate calculation. The scenario is, from a Custom UI we will change the discount given for an item and the same has to be reflected in CRM and the calculation for that also will be carried out in CRM.
    Can somebody throw some light on this?
    Regards,
    - Prasenjit

    Hi Richard,
    There is no pricing procedure in the UI. For every calculation the UI is calling a BAPI and changing the UI accordingly. Everything needs to be done in CRM.
    The requirement is basically to fetch the pricing details for a contract that is under creation. The main funda is to obtain the pricing document guid, which will intern fetch the pricing condtion rates corresponding to a condition type. Can you tell me how to do that?
    Regards

  • Net price calculation for a sales order item

    I am sending the input to BAPI_SALESORDER_CREATEFROMDAT2 for a sales order item with a customer expected price and the material number (pricing group is not being filled in). When the sales order is generated, I see that net price is different from the expected price and the price is being obtained based on the material number that is being given as input. I want to know at what point of code the net price is calculated?  I tried to debug and see but with the numerous userexits and BADIs in the calls I am not successful yet. Any input is appreciated.

    It goes through different pricing routines but the start will be in function module 'PRICING'. Put a break point and run your BAPI or go to tcode VOK0 - find the condition and routines.
    Pricing will be calculated based on customer and material.
    Previous answer is pretty good, you need to fill item conditions in table in bapi also header conditions if you are using header pricing.
    Anyways, first of all create your order from VA01 and see the netprice in conditions. again, the pricing will also depends upon region of customer and material.

  • Open sales order value for credit check need to be changed (S066)

    Hi all,
    I need to change open sales order value which is already there in S066 table.
    Previously we had used open order value for credit check. Open order values are already updated in the S066 table.
    Now we dont want to consider open order value for credit check (which is already included in the credit exposure field in FD32).
    When we create sales order system is taking old open order value for credit. Now i have changed not to update open order value for credit check. Now its not updating open order value. But my issue is how to change existing or (previous) open order value for credit?
    Can i change S066 table data directly to '0'. Is it advisable to chage open order value directly from this table?
    Please advise me.
    Regards,
    Babu
    Edited by: babs on May 19, 2010 4:26 PM

    Hi Babs,
    If you doesn't want to reflect the open order value in the structure for this order value ,If the order is not processed kindly delete the line items and the order. Then save the document. Then try to see the structure S066.. This will be modified.
    If you want to modify the value then follow the below process.
    Otherwise delete the line item in the order and change the pricing date and the document date. Re enter the line item again so that it will take it up the new changes.
    I hope it will help.
    Regards,
    SK

  • Max.value for a sales order

    Hi Gurus,
    A min.order value can be maintained in Sales order by the condition type AMIW but can any one tell how to maintain max.value for a sales order???
    Awaiting your early answers..........
    Sunanda.P

    hi
    in OVA8, there maintain the maximum document value as required.
    If not then you need to take help of ABAPer
    With the help of ABAper you need to prepare a logic for this maximum order value.
    Then Go to sales order user exit userexit_save_document_prepare there u insert logic with the help of abaper.
    Based on logic created by ABAPer, while saving the sales order it will check this logic and throw out the error if it exceeds max value
    Regards
    Edited by: WISH on Aug 4, 2008 6:19 AM

  • 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

  • Credit Note to be adjusted against sales order value

    Hi Experts,
    The scenario is as follows:
    a. Customer is having credit note(balance) in SAP CRM
    b. In subsequent order the credit note value to be adjusted against the order value
    c. Customer is advance payment only
    d. The sales order value to be calculated after deducting the credit note for order for payment

    Hi Mukesh,
    I think you want to adjust the value of the sales order based on the credit note issued to the customer or advance payment. The credit note will result in a AR posting and hence should not be used for adjusting the sale order value. That adjustment will happen in AR anyway.
    The advance payment can be stored in a condition of the sales order and can be used for adjusting the sales order value basically to reduce the AR. You will have to manipulations in pricing to get the right AR, Revenue and Advance payment postings.
    Let me know if you want more details as I am not 100% clear about your issue.
    Thanks
    Ashish

  • Finance documents - Letter of credit  - sales order value than  FD value?

    Hi,
    we are looking at this function of finance documents (ENLO, VN11n).
    Scenario:
    Sales Order value :           1 Mio      USD
    Finance Document value:  0.6 Mio  USD
    I want to create the FD document now fixed for the amount without specifiying an overdraft percentage (i.e. 100%).
    Is it possible to cover this scenario?
    Business reason:
    We often have down-payments request issued at the beginning of the process and the amount might cover the gap. Or it is possible that credit limit of the customer covers the gap.
    Thanks
    Hein

    Hi,
    Yes, you can use the documentary payments functionality to cover a certain percentage of the sales document value. Balance will be considered for credit limit calculations. Check below link on how you need to configure this.
    [LC|http://www.learnsaptips.com/2011/09/how-to-handle-letter-of-credit-in-sap.html]
    Best regards,
    Anupa

  • Discount limit for the sales order

    Hello,
    We have material discount should not exceeed certain amount for a sales order. ex: if i rise the sales order for different materials with No.s of qty'S. total material discount should be less than 1000.
    if i rise ia sales order for single material discount should be less tahn 1000. ie; irrespective materail and qty, discount should not exceed more than 1000.
    if discount is less than 1000 material discount should be calculated as usual.
    Thanks & Regards,
    ramesh

    Hello,
    maximum condition  value is to calculate the discount based on the value we specify here.
    ex; If we specify value in maximum condition  value  in condition record the system calculates the dicount based the value
    we specifed in maximum condition  value . if value exceeds in sales order i wont calculates the discount for other or another sales order.
    My requirement is discount should calculate for every sales order but not exceeding certain limit say 1000.
    if any body gives relevent solution it would be very helpfull.
    Thanks
    ramesh

  • Update open sales order values. - Update rule.

    Hi
    In library below information given for the updation of open sales order value in infostructure. Can any one please explaing how can we configure below two rules.
    An update rule describes the set up of the open sales order value, i.e., the open sales order quantity. The second update rule describes the reduction of open sales order value, i.e., the open sales order quantity by the corresponding deliveries.
    http://help.sap.com/saphelp_47x200/helpdata/en/96/dfec3410b5f563e10000009b38f83b/frameset.htm
    Path: LIS - SIS - How the key figures are calculated - open sales order value.
    Thanks in advance.
    Raj.

    Any inputs please.....

  • Open Sale Order Value (FD33) not getting diminished even after closing SO?

    Hi,
    Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
    What could be the reason ?
    Pls help.
    Regrds,
    Binayak

    Hi Binayak,
    As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
    Some precautions
    1. Always run the program in background by scheduling a job.
    2. The idle time is around midnight when no user is working on SAP.
    3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
    4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
    Hope this clarifies..
    Regards,
    Madhu.

  • Rajesh/Sadhu/RobertoUrgent :- Open Sale Order Value not getting Reduced?

    Hi,
       Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
       What could be the reason ?
       Pls help.
    Regrds,
    Binayak
    Message was edited by:
            Binayak Ghosh
    Message was edited by:
            Binayak Ghosh

    Hi Binayak,
    As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
    Some precautions
    1. Always run the program in background by scheduling a job.
    2. The idle time is around midnight when no user is working on SAP.
    3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
    4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
    Hope this clarifies..
    Regards,
    Madhu.

  • SQL Open Sales Orders Value using today's currency rates

    Hi experts,
    I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which the currency field is blank (Don't understand why this happens in SAP). Do you have other ideas?
    Thanks & Regards,
    IC
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name",  T1.ItemCode, 
    T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM',  T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)", T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod, ORTT T4 WHERE T0.DocCur <> 'GBP' AND T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T1.OpenQty > 0
    UNION ALL
    SELECT
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.LineTotal AS "Ord Value (GBP)", T1.LineTotal/T1.Quantity*T1.OpenQty AS "Open Qty Val (GBP)", T1.LineTotal/T1.Quantity AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)",T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T1.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T0.DocCur = 'GBP'  AND T1.OpenQty > 0 ORDER BY 2,1

    Hi,
    Try:
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name", 
    T1.ItemCode,  T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM', 
    T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered",
    T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)",
    T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)",
    T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)',
    T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    LEFT JOIN ORTT T4 ON T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T4.Rate != 0
    WHERE T0.DocCur != 'GBP' AND AND T1.OpenQty > 0
    Thanks,
    Gordon

  • Open Sales Order values not getting updated after run RVKRED77 & RVKRED88

    Hiiii,
    In Production Server. We run the reports RVKRED77 & RVKRED88. Credit info structure and and Open Sales Order values not getting updated. In FD32, Status - Sales value it showing '0". At the time of creating Sales Order Dynamic Credit check not happening coz of Tables S066 not updating. Please provide me Solution.
    Best Regards,
    Sridhar . P

    Dear Heagal,
    I followed your suggestions and implemented in the Development and moved the changes in to Quality Server. I tested it thoroughly by creating New Customer and maintained Credit Limit. I come to know that Problem is in all Servers. I made 3 changes.
    1. In Pricing Procedure Sub Total A it was not maintained against Net value. I placed it.
    2. Removed Credit groups for Delivery Type.
    3. In OVA8 i maintained Max. Doc Value :99,999,999.00 before it was with 1.00
    I checked the OMO1 Settings it was Asynchronous. As SAP Notes Suggesting to use Synchronous but here it's a client setting. So, It's Can't possible to change. Changes will affect other Company Codes.
    Tested both in DVP and QTY Dynamic Credit Check is working Perfectly and Status in FD33 Sales Value field getting update.
    If i move these changes in to Production, Will i need to run the reports again or not? How it will affect on Old Cusomer Billing and  Credit Limit data. For few of the Customers the Credit Limit data it was exceeded. Please provide me advice. The issue need to be Solved immediately.
    Best Regards,
    Sridhar

Maybe you are looking for