How is the Sales Amount in the Sales Analysis Report calculated.

Hi,
I'm trying to develop a report similar to the sales analysis report of SAP.
I want to know how does SAP calculate the the Sales Amount column. I was using LineTotal column of Invoices + A/R credit memos, but it's not correct. I know i'm getting all the records because my total quantity and Gross Profit is correct.

Hi Vj Chris,
Try This
SELECT T0.[DocNum] as 'INV NO', T0.[DocDate] as 'INV DT', T0.[CardCode], T0.[CardName], T0.[DocTotal], T0.[GrosProfit], T1.[DocNum] as 'AR CR MEMO', T1.[DocDate] as' AR CR DT' , T1.[CardCode], T1.[CardName], T1.[DocTotal], T1.[GrosProfit], (T0.[DocTotal]-T1.[DocTotal]) as 'Final Amount', (T0.[GrosProfit]-T1.[GrosProfit]) as' Final GR Profit' FROM OINV T0 , ORIN T1 WHERE T0.[DocDate] >=[%0] and  T0.[DocDate] <=[%1]
But this query better run when you are using in Crystal Report.
Thanks,
Srujal Patel

Similar Messages

  • Cost of Sales Amount more then Sales Amount

    Hi All
    We have an issue at a customer where the cost of sales amount is more then the Sales amount for the month of august...for the a specific customer group.
    The account balances also reflect the same.
    The customer uses Advance Gl account determination and managed Items by Item Group...where each item group as their own Stock, Sales and Cost of sales account...this is managed with the rules in the advanced GL determination.
    We have ran the general ledger report to see if there are any peculiar transactions, but we cant seem to see anything out of the ordinary.
    Is there anything else we can check to find out where the problem lies.
    Any ideas are welcome.
    Thank you.
    Jerusha

    Hi Jerusha,
    Run this query and check the last column grossprofit .  If it's negative you have a negative profit and then see the document.
    SELECT T1.[DocNum], T1.[DocDate], T0.[DocEntry], T0.[LineNum], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[TotalSumSy], T0.[GrssProfit] FROM INV1 T0  INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[DocDate] >= [%0] and T1.[DocDate] <=[%1]
    Regards,
    Augusto

  • Table to see the Tax amount of the PO item.

    Hi Experts,
    I have a requirement that the Tax amount of the PO item should display in  PO print preview. I have searched for the tables where the tax data stores to guide to the ABAPer. But none of the table I found. Only the structures I am able to see.
    Could any one please suggest as how to implement this.
    BR,
    Cherry k

    Check in tables,
    T007S
    EKKO-KNUMV
    KONV

  • What does the dollar amount in the top left corner in the iTunes store mean?

    What does the dollar amount in the top left corner in the iTunes store mean?

    My guess is remaining balance on a gift card. I've never seen my credit card balance show up in iTunes or the app store. I don't think Apple can show that legally.

  • Difference between the subledger amount and the expense amount

    Hi everybody
    I am using PPAC Cost method to book OPM transactions to subledger, the subledger update process is generating RCA postings related to GL Expense cost components at average cost (Batch Certify subevent). This is resulting in a difference between the subledger amount and the expense amount. It is required to generate RCA postings based on allocated expense amount and not based on the average cost.
    Did u face such problem before ? can anybody help me ?
    Thank You and Best Regards

    Hi
    Mmd.
    The difference between the subledger amount and the expense amount MUST be adjusted using Adjustment form
    Navigation: Finanacial-->Cost Management--> Actual Costing-->Adjustment
    where u can see the Actual Cost adjustments form and u can adjust the diff.
    hope this is cleat to u.
    Raj
    HYD

  • Change the default row maximum in an Analysis report?

    I'm using OBIEE 11.1.1.3 (and testing this on 11.1.1.5) and am curious how to change this setting:
    On all our Analysis reports we can view Rows 1 - 25 in the Results tab for the report. I want to change this so I can see more than 25 rows as my default for any report, like perhaps 500 or 1,000. I know this will affect the cache but need to be able to try different values.
    Can someone direct me how to accomplish this?
    Thanks.

    For all reports in one shot by modifying the Instanceconfig.xml , with the below tags, make sure to put these tags before AdvancedReporting area.
    <Views>
    <Table>
    <DefaultRowsDisplayed>50</DefaultRowsDisplayed>
    </Table>
    </Views>
    Thanks,
    -Amith.
    Edited by: Amith on May 18, 2011 3:13 PM

  • Adobe - How to make fix layout but the total amount in the main is flexible

    Hi to all,
    Need help, i am new with adobe forms and do some search but i didnt find one.
    the problem is this the main/content area is display with a box then a total at the end. Now when the document is only 1 page then the total will be display in the page 1. If document has 2 pages then the total will be shown in page 2. remeber that this total is diplay in fix postion. what i did right now is the total amount will be displayed both pages. please see details below.
    main / content area
    |   description     |         amount |.
    |   description     |         amount |.
    |   description     |         amount |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    | total                   |        amount|   -
    > fix position. cant use flowed. if positioned the total will appear all pages
    thanks in advance
    regards,
    Etrafanob
    Edited by: Etrafanob on Dec 2, 2009 4:16 PM

    Hi,
      yes the layout and requirement sounds crazy thats why i have a problem on it.
    actually my master pages contains the fix box with TOTAL and TOTAL AMOUNT at the end.
    the spell word of the amount and the signatory.
    under design view i only flag the description and amount of line item flowed to trigger the second page.
    now hence the total and total amount is in fix position under master pages. it will appear on all pages.
    how will i make fix position but it will appear only on last page.
    thanks
    best regards,
    etrafanob
    Edited by: Etrafanob on Dec 2, 2009 5:17 PM

  • If I add a row to my spreadsheet, how do I get the footer cell to show the last amount in the table automatically?

    Balance Forward
    $0.00
    Date
    Code
    Check Number
    Transaction/Description
    Deposit
    Withdrawl
    Ending Balance
    I am able to set up the Ending Balance to show the value of the cell right above it as long as I dont need anymore rows. If I add a row the value of the ending balance is stuck on the row or rows above the newly addd ones. All of my other formulas contiune on when a row is added, Is there a formula that can be added so that when a row is added the ending balance value moves to the last cell in the row?

    Cobb425 wrote:
    Thank you badunit for your responses and help. Jerrolds formula worked for me a little bit better for what I was looking to do. Thank you again for your help
    Whatever works best for you. Jerry's formula assumed your table might not be totally full, that there might be empty rows at the bottom.  Mine assumed there were no empty rows; it gave the value of the cell directly above it, as you asked. With Jerry's formula, be sure you enter your data in order by date or keep it sorted that way to ensure you get the correct "Ending Balance".  If your last row does not have the most recent date, the formula will return the balance from a different row.
    I don't see the advantage in Jerry's "Balance Forward" formula over the simpler one I provided.

  • Query to get the po amount from the pr

    Hi
    how to get the POnumber and PO amount from the Pr number. there are hundred's of PO's raise against the PR's
    and want to know the amount from their PO's to know the avaible fund left with the department.
    Regards
    Arifuddin

    Hi Madhan,
    If you talking abt query to find the total sal of each employee i.e., SAL + CUMSAL then you can use the below query:
    select a.empno,a.ename,a.sal + b.cumsal totalsal from
    emp a, emp b
    where a.empno = b.empno;
    Regards,
    Murali Mohan

  • What is the exact amount of the internet portion of my bill bundle

    My bill is over $200 but I need to know the exact amount of my internet portion of that bundle.

    Where are you seeing this is required?  The ISP is the name of your internet service provider.

  • How can i Add two parameters to Account Analysis Report  R12?

    Please i need to add two parameters Vendor Name & Currency to Account Analysis Report?

    Dear Helios
    1- I added the two parameters through navigating to concurrent ->Program - > Define
    2 - Modifiy XLAAARPT.xml (Adding paramters and modify the query)
    is this correct?
    Regards,
    Edited by: user565050 on Sep 6, 2012 1:17 AM

  • Sign of the TDS amount for the item

    hello expert,
       i am working on a TDS certificate.my requirement is as follows
    i have three fields such as  total amount ,   tds_amt ,   ecess_am t.there are two item values for total_amt such as 5000- and 50000-.similarly for the  tds_amt values are 101 and 1010 and again for ecess_amt there are two values such as 2 and 20..the first item value  for the tds_amt is 101 but this is acting as negative which is also my requirment to act like negative but it is not showing the negative sign such as 101- rather then it is being displayed as 101.how to display the sign for the item detail 101 as 101-.
    <removed by moderator>
    Edited by: Thomas Zloch on Oct 21, 2010 10:50 PM

    Hi Pritee,
    If am not wrong then ur requirement is
    TDS = 101 
    CESS = 2 
    TOTAL  = 103-
    So if Ur total is less then 0 then u have to show the TDS & CESS in -ve right ?
    If YES
    Then check tat the
    If TOTAL LT 0
       TDS = TDS * -1.
       CESS - CESS * -1.
    endif
    Regards,
    Madhukar Shetty
    Moderator message: please do not use SMS speak when posting in these forums!
    Edited by: Thomas Zloch on Oct 21, 2010 10:51 PM

  • Problem in blocking that amount in the sales order through routein

    Dear Experts,
    We are facing a problem in Routine,
    We have developed a Z rebate module in that we are saving the accrual value for a perticular customer in "Z" Table.
    We are having a senerio of adjusting that perticular accrued amount in the next month sales order as a discount  at the item level. In table  itself we fix this much amount as to flow to sales order for a Perticular material (EX- for 100001 material 5 rs per TON).
    We have devaloped 901 routine that will go to "z" table and check any accrued amount is there then depending on the quantity ordered it will take accrual amount (simultanusly it will block the respective amount in the "z" table) and it will come and update in sales order pricing. Once we save sales order then it will reduse the perticular amount in from "z" table.
    Now we are facing a problem, when we create a sales order first time depending on quantity routine will pull the value from "z" table and it will block respective amount in the "z" table. but before saving the sales order if you change the quantity again (EX- from 100 qty to 200 qty) then the routine is not pulling any value because the amount is already blocked. 
    Can any one tell me how check in run time this was the earlier quantity and this is changes quantity Or is there any logic to block that perticular amount.
    Regards
    Nagesh

    HI Sree
    Could you please justify your post stating
    "Now we are facing a problem, when we create a sales order first time depending on quantity routine will pull the value from "z" table and it will block respective amount in the "z" table. but before saving the sales order if you change the quantity again (EX- from 100 qty to 200 qty) then the routine is not pulling any value because the amount is already blocked. "
    Your discount is based on qty, so when you are adding new item means order qty increased, so discount is applicable.
    Or please put your requirement clearly

  • How to know the stake amount of both the won and lost opportunities

    Hi,
    I need to create a report.
    I would like to have a chart related to the last year opportunities.
    I would like to know in the same reports, the stake amount of the opportunities with the sales stage = Closed/Won, the stake amount of the opportunities Won + Lost (without the stake amount of the open opportunities).
    And I would like to create a third field to calculate:
    ==> Stake Amount Won / (Stake Amount Won + Stake Amount Lost)
    I create a formula inside the stake amount to put 0 if the sales stage <> closed/won and the real value of the stake
    amount when the sales stage = closed/won. In my report I see the value "0" for opportunites <> Won but when I ask for the grand total, the system give me the results of the stake amount of all the opportunities.
    Do you know how to design this report?
    Regards,

    Hi Venky
    For the moment I can't create a formula for my needs. I'm going to try to use Union analysis.
    I would like to make
    - a first report which give me the stake amount *(1)* of all the opportunities with a sales stage=closed/won.
    - a second report which give me the stake amount of all the opportunities *(2)* with a sales stage = closed/lost and closed/won
    - a consolidated report where I can use the results of the 3 previous reports and make formula based on those results.
    formula = *(1) / (2)*
    Do you think it is possible to create formula based on the results of two reports?
    Regards,

  • How To Add Freight Amount in Invoice Before the Invoice is Posted Through SDK

    Dear All,
    I have a requirement in SAP B1 9.0 where the user want to add the freight amount in the freight window based on an udf value automatically .
    So if there is an possibility of adding the freight amount based on an udf calculated value though SDK before the Invoice get added in the Database.
    Please suggest if this is possible through SDK or any work around for this scenario in SAP.
    Thanks & Regards,
    Amit

    Hi Amit,
    Here is a way to do it via UIAPI:
    Setting a Freight by the UI API ?
    If you need to do it via DIAPI, have a look here:
    How to update amount in freight column(INV3) of A|RInvoice through SDK
    DI Copy AP(AP Invoice) from PO(Purchase Order)
    Populating Freight Charges on Sales Order
    Freight in A/R Invoice
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

Maybe you are looking for

  • Best way to go about adding a new, but smaller boot disk

    So, after fawning over the new MBP with Retina Display I've decided that I'm not willing (yet) to spend that kind of money on a new MBP.  Instead, I've decided to try to make my existing 15" Mid-2009 MBP peppier.  To that end, I've gone off and purch

  • How to figure out which material documents should be deleted?

    Hi, I am creating a report that sums up material movement. But I meet a problem about reversal material documents. In my report, I collect all the documents and delete all the document with field SMBLN is not empty. Code is like below. MOVE it_mseg[]

  • Create record variable that refers dynamic query assigned to a ref cursor?

    Hi , Just explaining what I am trying to achieve: 1) i have a hr.departments table that was loaded in hr schema on 1st oct 2012 with 4 columns(department_id, department_name, manager_id, location_id) 2) now I have a new schema by my name 'rahul' and

  • Problem in sap-script, page count when trigger new page.

    Hi to all, Please help on my sap-script problem. When I trigger new-page the page count should continue. Ex: I have total of 2 pages, the second page is trigger in new-page. the page count of 2nd page should show as Page 2 of 2. but it shows on me is

  • System preferences crashes in yosemite

    Running 10.10.2 and the System Preferences keeps crashing. This started after last update. Also, my Upload Manager also crashes. What can I do?