Sales and Purchase Register Reports
Hi all
Here i am asking how to get purchase and sales register reports in sap business one 2005?
I tryed in Excel Reporter but Tax Breakup is not coming.
Thanks & Regards
Amit
For Sales Register:
SELECT M.DocNum AS 'AP Inv. #', M.DocDate as 'Date', M.CardName as 'Vendor Name',M.NumAtCard as 'Bill No. & Dt.',L.ItemCode, L.Dscription,L.LineTotal as 'Amount',L.vatsum ,L.PriceBefDi as 'Rate',
(Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as 'BED (Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as 'HSCess_New (Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
(SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
(SELECT Sum(TaxSum) FROM INV4 where statype=-10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
(SELECT Sum(TaxSum) FROM INV4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
(SELECT Sum(TaxSum) FROM INV4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
(SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
(Select Sum(LineTotal) From INV3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
M.WTSum AS 'TDS (Rs.)',
M.DocTotal as 'Total (Rs.)'
FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
GROUP BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,L.ItemCode,L.Dscription,L.LineTotal,L.vatsum,L.PriceBefDi
ORDER BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,L.LineTotal,L.vatsum,L.PriceBefDi
For Purchase Register:
SELECT M.DocNum AS 'AP Inv. #', M.DocDate as 'Date', M.CardName as 'Vendor Name',M.NumAtCard as 'Bill No. & Dt.',
(Select Sum(LineTotal) FROM PCH1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=7 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
(SELECT Sum(TaxSum) FROM PCH4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
(SELECT Sum(TaxSum) FROM PCH4 where statype=8 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
(Select Sum(LineTotal) From PCH3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
M.WTSum AS 'TDS (Rs.)',
M.DocTotal as 'Total (Rs.)'
FROM OPCH M LEFT OUTER JOIN PCH1 L on L.DocEntry=M.DocEntry
LEFT OUTER JOIN PCH4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
LEFT OUTER JOIN PCH5 J ON M.DocEntry = J.AbsEntry
LEFT OUTER JOIN PCH3 Q ON M.DocEntry = Q.DocEntry
WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
GROUP BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
ORDER BY
M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
Hope this will help you,
Regards,
Neetu
Similar Messages
-
Sales and Purchase Analysis reports by Item
The current functionality of these reports is more like an open items list rather than an analysis report.
If you Run a Purchase Analysis report by Item with a secondary selection of Supplier, and choose GRPO - the scenario is to find out how many of which products you have received in the date range from a specific supplier. This type on data is useful to use for negotiations on pricing etc.
Currently, the report will only display values for GRPO that have not been drawn to AP Invoice. This is supposedly system functionality, but, the report is called analysis, so should provide data for that purpose?Hi,
You may double click the column header to change the sort.
Thanks,
Gordon -
Sales and Purchase analysis, sort by date default
Hello,
Is there a way to default the sales and purchase analysis reports to show the most recent orders first vs. the oldest orders first in the list? I am refering to the reports that appear when you are in Item Master Data, and then click on the graphs in the Sales Data and Purchasing data tabs.
Thank youHi,
You may double click the column header to change the sort.
Thanks,
Gordon -
Report for Sales and purchase tax (selection criteria-Tax code)
Hi
I have one query for sales tax details which gives me detail for all A/R invoices and taxes involved in it. But i want that while executing query system should ask tax code and gives detail of tax amount in front of item and invoice according to tax code selected.
The query is:
SELECT M.DocNum AS 'Inv.No ', M.DocDate as 'Date', M.CardName as 'Customer Name',L.Dscription,L.Quantity,L.Price, (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)', (SELECT Avg(TaxRate) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT % ', (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ', (SELECT Avg(TaxRate) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST % ', (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ', (SELECT Avg(TaxRate) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT % ', (SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT ', (SELECT Avg(TaxRate) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as ' VAT% ', (SELECT Sum(TaxSum) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as 'VAT12.5 ', (SELECT Avg(TaxRate) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST 2% ', (SELECT Sum(TaxSum) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST @2 ', (SELECT Avg(TaxRate) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST % ', (SELECT Sum(TaxSum) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST ', (SELECT Avg(TaxRate) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED % ', (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED ', (SELECT Avg(TaxRate) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess% ', (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess ', (SELECT Avg(TaxRate) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' HCess % ', (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' Hcess ', L.LineTotal as 'Row Total (Rs.)',M.DocTotal as 'Doc Total' FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND TargetType ! = 14 GROUP BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal ORDER BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal
I want 2 queries which asks tax code during selection criteria for both cases sales and purchase.Hi Malhotra,
Try this,
1st remove the FROM/TO Doc. Date where Condition in your Query report.
AND add the below where condition in your Query report.
WHERE statype = '[%0]'
OR
Try this Query Report.
SELECT
M.DocNum as 'A/R Invoice No.',
M.DocDate as 'Inv. Date',
M.CardCode as 'Customer Code',
M.CardName as 'Customer Name',
M.NumAtCard as 'Bill No. & Date',
ISNULL(L.ItemCode,'Service Item') as 'Item Code',
L.Dscription,
L.Quantity,
L.LineTotal,
L.TaxCode,
L.[VatSum],
M.WTSum AS 'TDS (Rs.)',
M.DocTotal as 'Total (Rs.)'
FROM OINV M
LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
WHERE
(M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
AND
L.TaxCode='[%2]'
GROUP BY
M.DocNum,M.DocDate,M.CardCode,M.CardName,M.NumAtCard,L.ItemCode,L.Dscription,L.Quantity,
L.LineTotal,M.DocEntry,M.[DiscSum],L.TaxCode,L.[VatSum],M.WTSum,M.DocTotal
ORDER BY
M.DocNum,M.DocDate,M.CardCode,M.CardName,M.NumAtCard,L.ItemCode,L.Dscription,L.Quantity,
L.LineTotal,M.DocEntry,M.[DiscSum],L.TaxCode,L.[VatSum],M.WTSum,M.DocTotal
Regards,
Madhan. -
S_ALR_87012357 report - Advance Return for Tax on sales and purchase
Hi Friends,
I would like to know few things in regards the VAT report S_ALR_87012357 report - Advance Return for Tax on sales and purchase:
(1) What information brings the S_ALR_87012357 report?
(2) As of now this report displays tax against vendor line item and not expense line item. Is there any other report that shows all the positions lines affected to tax?
(3) Is it possible that the tax line stays only in the expense line account and not in the vendor line account or not any intercompany line account?
(4) Is it possible S_ALR_87012357 report shows information about the tax allocanted in expense accounts and not in vendor accounts?
Appreciate a faster response.
Thanks in advance.Please try report S_ALR_87012359. This report gives you opportunity to choose account selection.
I am unsure how the SAP is setup in your organisation. S_ALR_87012357 should pick up expenses selection as well.
This report entirely depends on tax code selection. -
Purchase Register report in SAP BI
Dear All,
Please suggest me any standard Purchase Register report is available in BI or how to achieve this requirement in BI.
Please let me know process.
Thank
Regards,
Sai.kHi,
while there is always a new requirement, one needs to discuss with the functional consultants and find out which tables are being used which may fulfill the scenario. We also need to identify the list of characteristic and Keyfigues the client wants to analyze.
Also SAP Help is a good source to find more of a standard stream lined objects. Need to analyze if standard objects satisfy the requirement or customization is required.
Please perform the steps as Rama has suggested...
thank you -
Hi Friends,
I need to develop the Purchase Register Report with Vendor details, TIN number, Invoice details, E1 purchases with purchase base value and VAT and CST percentages. But Iam new to the Purchase module. I know the basic tables for purchasing. but can anybody guide me the tables for TIN number with VAT and CST percentages and how to proceed?
Thanking you in advance
Regards,
MuraliI don't know the fields but a few pointers that might be helpful:
1) Ask your functional analyst - it's part of their job to provide you with the field location or any guidance on that
2) At least someone should be able to point you where the fields are on the screen. Then you should be able to go the usual route - F1 -> Technical info, etc.
3) Respective functional forum might be a better place for such questions if for some reason p. 1 and 2 above are not feasible.
4) You can always use SQL Trace (ST05) to find where the information is being read from or written to. Start the trace, run the transaction, stop the trace and analyze the list. Voila - no need to ask anyone ever again. -
Purchase Register Report issue
Hi,
I am working Purchase Register report.
In this, we have a PO with 10 Quantity. But at the time of MIGO we receive 5 qty out of 10.
Now how can we pick the amount according to 5 qty received from MIGO because we want show MIGO condition in our report not from PO.
What should be the table link for this...
Plz guide..As per ur reference: -
In PO, Condition are like--- PO Qty is 10
Basic Amount..........1000
taxes.........................100
Freight.........................50
Other...........................20
and we have receive only 5 qty out of them, means all the condition amount will be 50%. like...
Basic Amount..........500
taxes.........................50
Freight.......................25
Other.........................10
all condition will be calculate according to qty 5 not for 10 as showing in PO..
I want to pick these condition. (according to 5 qty.)..
Now suggest... -
Purchase register report problem
Hi experts - please help
we have a requirement to create a purchase register for material from PO- to Invoice.
we have PO number -> GRnumber -> Invoice number in our rows . In our keyfigures we have PO Quantity, PO value , GR quantity,GR Value, Invoice quantity and invoice amount .
Becoz of invoice and GR number relationship which is m: m in our report we see that the key figure values are showing up like
for 1 purchase order multiple line items , with multiple gr's, with multiple invoices , becoz of which we see PO quantity field showing like say if it is 30 for 1 PO it is showing 30 for all the invoice numbers in the report which not want , the same case is with Gr quantity and invoice quantity
PO.no / po item / gr no / inv number / po quanitity / po value
1000/10,20,30,40/1000/2000,3000,4000,5000/ 30,30,30,30,30/ 120,120,120,120,120
this way for 1 PO the report is showing same po quantity based on say if 10 invoices it is showing same P0 Quantity 10 times which is not want and the result row shows up (POvalue *10).
how to get rid of this situation..
please suggest any way if anyone has done a similiar report..
any documents related to such purchase register report is highly appreciated.
thanks & regards
krishnaHi Krishna,
Your PO DSO will have records like this.
PO Item POquantity GR Quantity
PO1 1 100 35
Your GR DSO will have information as shown below.
GR Doc Item Posting date GR Quantity PO PO Item
DOC1 1 01.07.2011 20 PO1 1
DOC2 1 10.07.2011 15 PO1 1
If the report is based on PO, ( Document date of PO ), then you can show information from the first DSO. If the user wants to have the details of GR documents that constitute GR quantity of 35, you can create a 'Jump to' report on the second DSO and in the RRI Connection map the PO and Item numbers.
This way you will be able to store the information at different granularity and combine them in reporting.
Hope this explains,
Thanks,
Krishnan -
Query with Item info sales and purchase quantity
Hello,
I have an query were i want to report an total quantity of sales and purchase. But it is not working.
SELECT T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited AS 'Bevestigd', T0.OnOrder AS 'In Bestelling', T0.SuppCatNum AS 'Leveranciersnummer',
SUM(T3.Quantity) 'Total Sales', SUM(T5.Quantity) 'Total Purchase'
FROM dbo.OITM T0
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
LEFT JOIN INV1 T3 ON T3.ItemCode = T0.ItemCode
LEFT JOIN OINV T4 ON T4.DocEntry = T3.DocEntry AND T4.CardCode = T0.CardCode
LEFT JOIN PCH1 T5 ON T3.ItemCode = T0.ItemCode
LEFT JOIN OPCH T6 ON T6.DocEntry = T5.DocEntry AND T6.CardCode = T0.CardCode
WHERE T2.CardCode =[%0]
GROUP BY T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited, T0.OnOrder, T0.SuppCatNum
Can somebody help me??
MarkHello Gordon,
Changed the query like beneath.
SELECT T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited AS 'Bevestigd', T0.OnOrder AS 'In Bestelling', T0.SuppCatNum AS 'Leveranciersnummer', SUM(T3.Quantity) 'Total Sales', SUM(T5.Quantity) 'Total Purchase'
FROM dbo.OITM T0
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
INNER JOIN INV1 T3 ON T3.ItemCode = T0.ItemCode
INNER JOIN OINV T4 ON T4.DocEntry = T3.DocEntry
INNER JOIN PCH1 T5 ON T3.ItemCode = T0.ItemCode
INNER JOIN OPCH T6 ON T6.DocEntry = T5.DocEntry AND T6.CardCode = T0.CardCode
WHERE T0.CardCode = '[%0]'
GROUP BY T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited, T0.OnOrder, T0.SuppCatNum
Still get strange numbers in the last 2 total sales and total purchase
kind regards
mark -
Tax conditions in purchase register report
Hi all,
I am developing a Purchase Register Report, I have a small doubt regarding Tax conditions.
From which tables we will get the Tax Conditions like CST, SERVICE TAX, VAT etc.
Previously I have developed Purchase Requisition Report,in that I have used the FM 'CALCULATE_TAX_ITEM' to get the Tax Condition Values. But in this purchase register report I am getting wrong values for the same FM.
Please suggest me.
Regards,
Pradeep.Hi Pradeep,
First of all let me clarify that you are generating report for Purchase orders generated or for MIRO posted documents
If you are generating for purchase orders
First use FM 'REFRESH_TAX_TABLES' for updating tax tables with latest changes
Next use FM 'FIND_TAX_SPREADSHEET' to find out tax procedure or schema
Then use FM 'CALCULATE_TAX_ITEM' to get taxes
If you are generating report for MIRO documents
Use BSET table for accounting document generated against MIRO
Regards
Krishna -
Getting the default zero-rated sales and purchase tax codes
Hi,
Does anyone know how to obtain the default zero-rated sales and purchase tax codes? ie the tax exempt sale and purchase tax codes. The OADM holds the default sales and purchase tax codes but not the default zero-rated sales and purchase tax codes. Is this set by region?
LitaHi Lita,
I don't know much about the zero rated tax codes or where it is set up, but what I can suggest is if you know where the system retrieves it (say on an Invoice) that you use SQL Profiler to possibly investigate where the queries are pulled from.
Where in SBO is the zero-rated tax codes used?
Hope it helps,
Adele -
could anybody plz forward me the step-by-step config for "TAX ON SALES AND PURCHASE"- i am facing problem as my config could not calculate taxes
thanqhi
http://help.sap.com/erp2005_ehp_03/helpdata/EN/cf/540ef7d61a11d2955500a0c929f4c9/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/76/f3043b39eec71fe10000000a114084/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/01/a9ca79455711d182b40000e829fbfe/frameset.htm
for furthur notes
http://help.sap.com/search/search_overview.jsp
nagesh -
Sales and purchase journal - balance carry forward to next page
Hi all,
When we run sales and purchase journals in transaction S_ALR_87012357 (Belgium) and print it we want a summary per page and balance carry forward to next page.
The paging is correct by selecting "statistical info not printed" in output control but we don´t want only summary on last page, instead on every page and a total summary on last page.
Does anyone knows how to mangage this?
Best regards LisaWith a developer implement a the BADI FI_TAX_BADI_010
-
Edit back to back sales and purchase order with dropped ship warehouse
Hi
Our Client request to be able to edit back to back sales and purchase order with Drop Shipped WH which is frequently required according to their business nature in overseas trading.
Kedalene ChongHi Daniel,
In the PO Ship To address field, the database/company address will appear until a warehouse is selected. Once a WH is selected, that is the address that will appear. If there is no WH address, the company address is indicated in the field (note: no company name just the address).
If you want a different address/name, you can type it into the ShipTo address field and the PLD template will use whatever is in the field.
If it is because there is no company name on the PO - does this mean you want a different company name than the one in the PO header. If this is the case and the ShipTo address & company name is always the same, you can update the PLD template by changing the ST address field to Text and enter the company name & address you want on the PO. This will appear on every PO regardless of what is in SAP. If you want the company name to always be the same, add a text field above the ST address field and fill in the company name; the address will be pulled from the PO Logistics ST field (per the first paragraph above).
If this is not what you want, please explain in more detail what you would like to do.
Heather
Maybe you are looking for
-
Custom field not getting populated in the "Show Results where" drop down
Hi all, In appointment detail page by clicking on Add button on the user related information section , it takes us to a search layout showing the list of available users. Here we have to filter the user's based on a custom field which has already bee
-
How can I upload a PDF to iTunes U?
Hi, My name is Tom and I'm a student at the University of Salamanca, in Spain. In doing my nursing degree and was wondering if it were possible to upload a PDF or pages file to iTunes U of the notes I take in class, or a copy of a presentation we did
-
Where to thind driver in oracle 8i
Hi, I am writing a program to connecto database using thih driver,by using ipadressof server where oracle 8i is installed.But thin driver is not installed there. so i downloaded but don't where to keep.can any one help me out. How may ways can we com
-
Hi All We are executing a materialized view fast refresh and go an error on the child view SQL> execute DBMS_MVIEW.REFRESH('ADRN_MV', nested => TRUE, atomic_refresh=>false); BEGIN DBMS_MVIEW.REFRESH('ADRN_MV', nested => TRUE, atomic_refresh=>false);
-
Several months ago, I briefly tried Ubuntu on my computer. Ever since then, the hard drive (C:) is named "Install Ubuntu". I can use the rename function (Click on Computer, right click on "Install Ubuntu (C:)", select Rename) which lets me type in a