COGS - Sales analysis doesn't tie to G/L
Hi,
My sales analysis does not tie to my G/L for COGS (i.e sales - gross margin on SA does not equal COGS in G/L).
Is there any sensible reason why this should be the case ?
Thanks,
Wayne
Hi
The COGS G/L will be debited for the 'ItemCost' that is evaluated by the System as per the 'Inventory Valuation' method defined for the Item.
Say for example,
You have an item 'M0001' which has the ItemCost of 'Rs. 650/-' (Item cost can be found in Item Master -> Inventory Data' Tab..
Now you create an AR Invoice for the item for Rs. 800/- then the following would be the JE created;
BP Debit Rs. 800/-
Revenue Account Credit Rs. 800/-
COGS Debit Rs. 650/-
Inventory Account Credit Rs. 650/-
Similar Messages
-
Query vs Sales Analysis Report
I wrote a query that does virtually the same thing as a sales analysis report -- add up all invoice totals and calculate a gross sales number.
In the sales analysis report ItemXXX has a total sales of $1456.94
My query ItemXXX has a total sales of $1457.73
A $.79 discrepancy which I assumed was a result of the fact that my query doesn't include A/R Credit Memos. Only some items have this discrepancy.
The problem is that if I do an inventory posting list on the item there are no A/R Credit Memos listed. Only A/R Invoices, A/P Invoices, and A/P Goods Receipts.
What other documents could be affecting this number? Any other things that could be causing this?
Thanks,
-SteveHi Nagarajan,
Im user of Sap Business One, i need the completly query for obtain the Sales Analysis Report
i have this but in some items dont match
SELECT ItemCode,
Sum(TotFac) - SUM(TotNC) as 'FacturadoNeto',
Sum(GBrutaFac)-SUM(GbrutaNC) as 'GBruta',
Round((Sum(GBrutaFac)-SUM(GbrutaNC))/case when (Sum(TotFac) - SUM(TotNC))= 0 then 1 else (Sum(TotFac) - SUM(TotNC)) end *100,2) as '% Margen'
FROM (
SELECT
ItemCode = T1.ItemCode,
Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),
TotFac = Sum(T1.Linetotal),
GBrutaFac = SUM(T1.GrssProfit),
TotNc= 0,
GbrutaNC = 0
FROM OINV T0 (NOLOCK) INNER JOIN INV1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry
WHERE (T0.[DocDate] >='20140101' AND T0.[DocDate] <='20141231')
and T0.DocType = 'I' -- solo facturas por articulos
Group by T1.ItemCode
Union
SELECT
ItemCode = T1.ItemCode,
Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),
TotFac = 0,
GBrutaFac = 0,
TotNc= Sum(T1.LineTotal),
GbrutaNC = SUM(T1.GrssProfit)
FROM ORIN T0 (NOLOCK) INNER JOIN RIN1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry
WHERE (T0.[DocDate] >='20140101' AND T0.[DocDate] <='20141231')
and T0.DocType = 'I' -- solo NC por articulos
Group by T1.ItemCode
Union
SELECT
ItemCode = T1.ItemCode,
Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode),
TotFac = 0,
GBrutaFac = 0,
TotNc= Sum(T1.LineTotal),
GbrutaNC = SUM(T1.GrssProfit)
FROM ODPI T0 (NOLOCK) INNER JOIN DPI1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry
WHERE (T0.[DocDate] >='20140101' AND T0.[DocDate] <='20141231')
and T0.DocType = 'I' -- solo Fact Anticipos por articulos
Group by T1.ItemCode
) T
Group by ItemCode, Marca -
Hello -
We ran the Sales Analysis Report for Items on SAP B1. It doesn't seem right...the # of items sold is clearly wrong -- it looks like it may be off by over 10X. Does anyone know what we may have done wrong here? Did we not set something up correctly?
Please advise.
Thanks,
MikeHI Gordon --
Found out the problem - had orders rather than invoices checked!
Thanks,
Mike -
SAP XLR Sales per Customer by Item report that published in the portal doesn't include document discount. This is a reason for the differences between XLR and B1 sales analysis report.
How can I calculate discount from the document in XLR when the report is run by invoice/credit memo lines.
Edited by: Philip Eller on May 16, 2008 8:56 AMHello,
In XLR Composer> Sales tab, if you want to design a report group by document number, then choose the Document Number light dimension first,then "discount% per document", choose item/quantity/row total and so on for row level information. This will give you the result instead of 0.
If you want to run the report group by items. The same way you can do but the only difference is choose the item Dimension first, then you can also drag document level ,Document number for example.
Header and row levels table can be connected and use together if there is the relationship between them.
Choose discount % per document and then use calculation to calculate the discount amount of a document.
Hope this helps.
Regards,
Maggie An
SAP Business One Forum Team -
Sales analysis report - in query form?
Good afternoon. Looking for a bit if help/advice.
I'm not a complete novice to SAP but what I need is confusing me slightly. I understand the sales analysis report uses many different table as part of its calculations. A company I've recently began working for, who has had SAP for a while, has used sales analysis reports alongside some bespoke reports that are reporting different data.
Here is their report:
SELECT T0.[DocNum] AS 'Invoice No.', CONVERT(VARCHAR(10),T0.[DocDate], 103) AS 'Invoice Date', T0.[NumAtCard] AS 'Cust Order No.', T4.[ItemCode], T5.[U_MSKU] AS 'Manuf SKU', T4.[Dscription] AS 'Description', T6.[ItmsGrpNam] AS 'Item Group', T4.[Quantity], T4.[Price] AS 'Net Unit Price', T4.[LineTotal] AS 'Net/Line Total', T0.[U_ClientNam] AS 'Client Name', T2.[Name] AS 'Division', T1.[Name] AS 'Business Unit', T3.[StreetS] AS 'Ship-to Street', T3.[CityS] AS 'Ship-to City', T3.[ZipCodeS] AS 'Ship-to Postcode'
FROM OINV T0
LEFT JOIN [dbo].[@BUSINESSUNITS] T1 ON T0.U_Bizunits = T1.Code
LEFT JOIN [dbo].[@DIVISIONS] T2 ON T0.U_Division = T2.Code
INNER JOIN INV12 T3 ON T0.DocEntry = T3.DocEntry
INNER JOIN INV1 T4 ON T0.DocEntry = T4.DocEntry
INNER JOIN OITM T5 ON T4.ItemCode = T5.ItemCode
INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
WHERE T0.[DocDate] BETWEEN [%0] AND [%1] AND T0.[CardCode] = [%2]
It just doesn't give the same totals as the sales analysis report but I can't reproduce the sales analysis report. How would I go about getting the right figures? Because what we ideally need is to filter the sales analysis results by some of our custom fields:
[U_ClientNam], [Name] etc.
How would I go about this? Can I extract parts of the sales analysis report somehow and run it as a query I can manipulate?
Thanks.Hi, not sure if you meant to link to a thread? Based on the query you have given on this thread no totals appear to match however it is much closer than the simple query.
SELECT Div, BusUnit, isnull([1],0) as Jan, isnull([2],0) as Feb, [3] as Mar, isnull([4],0) as Apr, isnull([5],0) as May, isnull([6],0) as june, isnull([7],0) as July, isnull([8],0) as Aug, isnull([9],0) as Sept, isnull([10],0) as Oct, isnull([11],0) as Nov, isnull([12],0) as Dec
from
(SELECT T1.[LineTotal] as Total, month(T0.[DocDate])as month, T8.[Name] AS BusUnit, T9.[Name] AS Div FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN [dbo].[@BUSINESSUNITS] T8 ON T0.U_Bizunits = T8.Code INNER JOIN [dbo].[@DIVISIONS] T9 ON T0.U_Division = T9.Code
WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'NOR0001'
union all
(SELECT -T1.[LineTotal] as Total, month(T0.[DocDate])as month, T8.[Name] AS BusUnit, T9.[Name] AS Div FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN [dbo].[@BUSINESSUNITS] T8 ON T0.U_Bizunits = T8.Code INNER JOIN [dbo].[@DIVISIONS] T9 ON T0.U_Division = T9.Code
WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'NOR0001')) S
Pivot
(sum(S.Total) For Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
Is what I've just used. Still well off the mark though. -
Dear all,
I want to write a query to display sales analysis by supplier. What i wanted to achieve is the query should show me the suppliername, itemcode, itemname, quantity sold in Jan, Quantity sold in feb, quantity sold in march,.......Quantity sold in december, Stock on hand. Give me a sample of such a query for atleast first three months quantity sold.
Regds
Antony.Hi Antony
To get columns you will need a format as follows:
SELECT T0.ItemCode, SUM(T0.QTY) AS 'JAN QTY', NULL AS 'FEB QTY', NULL AS 'MAR QTY' FROM OITM WHERE DATE BETWEEN....
UNION ALL
SELECT T0.ItemCode, NULL, SUM(T0.QTY), NULL FROM OITM WHERE DATE BETWEEEN ....
UNION ALL
SELECT T0.ItemCode, NULL, NULL, SUM(T0.QTY) FROM OITM WHERE DATE BETWEEN ....
The above doesn't always work so well so I prefer to do it in a Stored Procedure and use Temp Tables. Here is an example of one, and you can modify the select statements to work with the tables and fields you need. The whole purpose of multiple selects is to create the columns for each month, so each select statement moves on by one column. The select statements insert into the temp table and the final select statement then runs the actual report from this temp table. Change the word ALTER to CREATE for the first time you execute, thereafter use ALTER. To run the report in SAP Business One, create a query EXECUTE SUPPLIER_SALES_REPORT. You can pass your parameters from the query to the Stored Procedure, or just put the parameters into the Stored Procedure. I have my dates stored in a separate temp table based on GetDate so you will need to change this. Also change the database name SBODEMO to your database name.
USE [SBODEMO]
GO
/****** Object: StoredProcedure [dbo].[SUPPLIER_SALES_REPORT] Script Date: 09/16/2008 11:31:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SUPPLIER_SALES_REPORT]
--@InvCode as nvarchar(max),
--@RunCode as nvarchar(max)
as
set nocount on
-- Insert statements for procedure here
DECLARE @TodayDate varchar(30);
IF OBJECT_ID(N'tempdb..#TEMPDATE', N'U') IS NOT NULL
DROP TABLE #TEMPDATE
SELECT MAX(JDT1.RefDate) AS [Today],JDT1.DueDate AS [DueDate] INTO #TEMPDATE FROM JDT1 JDT1 WHERE JDT1.RefDate > getDate() -2 GROUP BY JDT1.DueDate;
SELECT @TodayDate = #TEMPDATE.Today FROM #TEMPDATE;
--SELECT @TodayDate;
IF OBJECT_ID(N'tempdb..#CashRpt', N'U') IS NOT NULL
drop table #CashRpt
SELECT CAST('OPENING BALANCE' AS VARCHAR(100)) AS [Description], 1 AS [TransactionType], SUM(T0.[Debit] - T0.[Credit]) AS [OpeningBalance], CAST(NULL AS MONEY) AS [CashReceipts], CAST(NULL AS MONEY) AS [Deposited], CAST(NULL AS MONEY) AS [CashPayments], CAST(NULL AS MONEY) AS [OtherPayments], CAST(NULL AS MONEY) AS [ClosingBalance] INTO #CashRpt FROM JDT1 T0 WHERE T0.Account = '1300' and T0.RefDate < @TodayDate GROUP BY T0.Account
INSERT dbo.#CashRpt SELECT T0.[LineMemo], T0.[TransType], NULL AS [OpeningBalance], SUM(T0.[Debit] - T0.[Credit]) AS [CashReceipts], NULL AS [Deposited], NULL AS [CashPayments], NULL AS [OtherPayments], NULL AS [ClosingBalance] FROM JDT1 T0 WHERE T0.Account = '1300' and T0.RefDate = @TodayDate and T0.[TransType] = 24 GROUP BY T0.[LineMemo], T0.[TransType]
INSERT dbo.#CashRpt SELECT T0.[LineMemo], T0.[TransType], NULL AS [OpeningBalance], NULL AS [CashReceipts], SUM(T0.[Debit] - T0.[Credit]) AS [Deposited], NULL AS [CashPayments], NULL AS [OtherPayments], NULL AS [ClosingBalance] FROM JDT1 T0 WHERE T0.Account = '1300' and T0.RefDate = @TodayDate and T0.[TransType] = 25 GROUP BY T0.[LineMemo], T0.[TransType]
INSERT dbo.#CashRpt SELECT T0.[LineMemo], T0.[TransType], NULL AS [OpeningBalance], NULL AS [CashReceipts], NULL AS [Deposited], SUM(T0.[Debit] - T0.[Credit]) AS [CashPayments], NULL AS [OtherPayments], NULL AS [ClosingBalance] FROM JDT1 T0 WHERE T0.Account = '1300' and T0.RefDate = @TodayDate and T0.[TransType] = 46 GROUP BY T0.[LineMemo], T0.[TransType]
INSERT dbo.#CashRpt SELECT T0.[LineMemo], T0.[TransType], NULL AS [OpeningBalance], NULL AS [CashReceipts], NULL AS [Deposited], NULL AS [CashPayments], SUM(T0.[Debit] - T0.[Credit]) AS [OtherPayments], NULL AS [ClosingBalance] FROM JDT1 T0 WHERE T0.Account = '1300' and T0.RefDate = @TodayDate and T0.[TransType] = 30 GROUP BY T0.[LineMemo], T0.[TransType]
INSERT dbo.#CashRpt SELECT CAST('CLOSING BALANCE' AS VARCHAR(100)), 999, NULL AS [OpeningBalance], NULL AS [CashReceipts], NULL AS [Deposited], NULL AS [CashPayments], NULL AS [OtherPayments], SUM(T0.[Debit] - T0.[Credit]) AS [ClosingBalance] FROM JDT1 T0 WHERE T0.Account = '1300' GROUP BY T0.[Account]
SELECT T1.[Description], T1.[TransactionType], T1.[OpeningBalance], T1.[CashReceipts], T1.[Deposited], T1.[CashPayments], T1.[OtherPayments], T1.[ClosingBalance] FROM dbo.#CashRpt T1 ORDER BY T1.[TransactionType]
--END
Use the above as a basis to start from, and let me know if you get stuck.
Kind regards
Peter Juby -
Sales Analysis Report - Items -- blank result
Hi,
I'm testing a setup and running the sales analysis report. It works for the Customer version but I get no results when running on Items.
I'm on SBO 2007A SP01 PL07. There are open and closed invoices for inventory items; no credit memos have been posted. All Item type invoices.
When I run by Customer, I get the correct data - open and closed invoices for that customer.
When I run by Items, I get no results. The date range is the same for both reports.
When I run the purchase analysis on Items, I get data for the same items I am trying to see in the sales analysis.
Any ideas what could be causing this?
Thank you,
HeatherHI Gordon,
I left the default settings:
- Annual Report, Invoices, Individual Display, No Totals
- Posting Date: whole fiscal year
- Main selection: left blank/default (group = all, no properties)
I have double/triple/quadruple-check even the Secondary SElection to make sure there's nothing there.
I have also run it on Due Date instead of Posting Date, still no results (if run on Items).
As I mentioned, the selection criteria is what I want but for some reason that one version, Items, does not work. The other 2 tabs work with the same selection.
Heather -
Sales Analysis Report service warehouse wise
Dear Experts,
I've configured 4 service warehouses to an item in SAP B1 8.8 PL:16. And now I want to see sales analysis report of that particular item against each service warehouse. But from the Sales Analysis or purchase analysis report I can't able to see service warehouse wise sales quantity & amount.
N.B.-Those items are created as Sales & Expense item only, no inventory.
Plz help.
SubrataHi Subrata,
in this case you need a customized report trough Query or through Crystal Report.
regards,
Fidel -
XL-Reporter - sales analysis including row discount and document discount
Hello World!
In XLR I want to report all item-sales to customers grouped by item-groups based on invoives.
Since I am interested only in net amounts (without tax, freight and other expenses) and discounts I use 'S0_LineTotal' as attribute.
'SO_LineTotal' includes the discount of each item-row in the document.
The row selection is as follows:
FACT
ARDT(Code = "ARCreditMemo","Invoice")
FIG(SO_DocType = "I")
ITM( * )
Group By ITM.ItmsGrpCod
The problem is that I also have to include the document discount 'OINV.DiscSum' in the result.
In combination with the row selection specified above the attribute 'Total Discount' delivers no results (always 0).
In the standard SAP report 'Sales - AR/Sales reports/Sales Analysis' the total discount is averaged to all items in the matrix of a document.
How can I achieve this in my XL-Report?
Thank you very much for your support!
Frank Romeni
Edited by: Frank Romeni on May 15, 2008 3:55 PM
Edited by: Philip Eller on May 29, 2008 8:53 AMHello,
To get this, I tried drag following information from Report composer:
Under Sales tab, choose Items(Display more atrributes to choose Item Group), Document Number(choose this one because same items may have different discount in different documents), Discount % Per Row(light dimension),Discount % Per Document(light dimension), Row Total(measure).
Drag the Item Group to the Group region.
Run the report and the result should be all items are grouped by item Group and discounts and total in different document for each item will be listed.
Hope this helps you.
Regards,
Maggie An
SAP Business One Forum Team -
Manually closed DN appear with value 0 on sales analysis - items
Hello everyone,
When i manually close a Delivery Note (DN) using Data->Close that DN still appears on my sales analysis -> customer. (using the filter -> Delivery Notes)
However when i use sales analysis -> items i only get the list of items contained on that DN. All the columns (quantity, sales amount, gross profit, etc) are with zero values.
Is there any way of showing those values on the sales report? Or any other report? Is this standard system behavior? Shouldn't the items disappear completely then? What is the purpose of showing them without any further information?
Looking forward to be hearing from you.
Regards,
Sérgio RomãHello Gordon,
Thanks for the quick reply.
The business process requires me to close the DN manually:
The customer has something like 4000 employees that are created as customers. Each of those employees has a pre-defined creditline amount. DNotes can be created for each employee until that amount. On the second week of every month i need to close all these DNotes (i am doing this using an addon that runs based on schedule defined in a user table and that closes all DN that meet certain conditions) so that i can add more DNotes to each employee. At the end of every month i have another addon that totals all DN added that month (closed and open) and creates a single service invoice for a customer (defined in each employee).
So i need to close them manually because i cannot copy them to a consolidation partner (release of employee creditline and invoicing occur at the different moments during the month).
My disagreament with the system behavior is the following:
- I get the correct the results if i create a sales analysis -> customer. If they don't result in a sales transaction they shoudn't appear on this report either. (according to the logic you presented)
- Sales analysis -> Item. The item lines appear with zero. Once again, if it is not a sales transaction they shoudn't appear at all (according to the same logic). The system is doing the same thing as if the DN has been copied to an invoice which is a wrong behavior. This is a different situation and the item detail should be visible on the sales analysis report.
What do you think?
Regards,
Sérgio Romã -
Sales Analysis Item Tab Function Not Showing Orders Dollars
Hello Gurus of SAP B1.
This pertains to SAP B1 SP 00 PL 16 Version 8.8.
While doing the Sales Analysis function under Sales A/R > Sales Reports > Sales Analysis > Item Tab, the system does not report on the dollars for the day when I select "Orders" or "Delivery Notes'. The system does display the proper dollars when I select "Invoices" on the "Item" Tab.
And the "Invoices" and "Orders" and "Delivery Notes" buttons display correct dollars on the other tabs for Customer and Sales Employee...so why not on the "Items" tab???
Does anyone know why this might be happening and/or how to fix this???
Thanks in Advnace - ZalThanks for the quick reply Gordon - hope things are continuing to go well in your new endeavors &;-D
Well that is really strange that items is handled that way - I have created SQL to get the results but I always like to balance out to what SAP B1 is reporting. My SQL detail and grand totals are fine by Customer and I have been able to reconcile in that manner, but wanted to reconcile by items also. I am certain I have done it before in SAP 2007A...
Has there been a change to the item/sales order table in Version 8.8???
Take care my FFF - Zal -
Sales Analysis Item Tab Displays Zero Dollars for "Orders"
This pertains to SAP B1 SP 00 PL 16 Version 8.8.
While doing the Sales Analysis function under Sales A/R > Sales Reports > Sales Analysis > Item Tab, the system does not report on the dollars for the day when I select "Orders" or "Delivery Notes'. The system does display the proper dollars when I select "Invoices" on the "Item" Tab.
And the "Invoices" and "Orders" and "Delivery Notes" buttons display correct dollars on the other tabs for Customer and Sales Employee...so why not on the "Items" tab??? Strange that a button would be displayed which does not work...
Does anyone know why this might be happening and/or how to fix this???
Does SAP plan on fixing this in any upcoming patch levels???
Regards - Zal
Responses received from SAP B1 Core Forum:
Sales Analysis Item Tab Function Not Showing Orders DollarsThanks for the quick reply Gordon - hope things are continuing to go well in your new endeavors &;-D
Well that is really strange that items is handled that way - I have created SQL to get the results but I always like to balance out to what SAP B1 is reporting. My SQL detail and grand totals are fine by Customer and I have been able to reconcile in that manner, but wanted to reconcile by items also. I am certain I have done it before in SAP 2007A...
Has there been a change to the item/sales order table in Version 8.8???
Take care my FFF - Zal -
Dear Experts,
Want to Sales Analysis Query same as Sales Analysis in SAP
In standard SAP when we run report with anual slection criteria for eg, 01/04/2010 To 31/03/12
it's show in one column not display in compare with Quaterwise & Monthwise report.
Result for query is
Customer Code, Customer Name, Year2010 (Sales), Year2011 (Sales), Year2012 (Sales)
Please help me.
BR
DeepOk........
It was my query mistake.......
Please try this......
SELECT Distinct T0.CardCode,T0.CardName,
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2006%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2006',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2007%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2007',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2008%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2008',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2009%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2009',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2010%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2010',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2011%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2011',
(isnull((SELECT SUM((case when SUBSTRING((CONVERT(VARCHAR(11),T4.DOCDATE,106)),8,11) like '2012%' then T4.LineTotal else 0 end))
FROM INV1 T4 WHERE T4.ItemCode=T1.ItemCode ),0)) '2012'
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
Group By SUBSTRING((CONVERT(VARCHAR(11),T0.DOCDATE,106)),8,11), T1.ItemCode, T0.CardName, t0.CardCode
Regards,
Rahul -
Hi,
I am having a problem shortly after upgrading to SBO 2007A. The sales analysis report of a client reports "No Data" when executed under the Items tab with the Invoices selection criteria. The report works under deliveries or orders criteria but when invoices are selected no data is displayed. The report works with no problems under the Business Partners and Sales employee tabs. What could the problem be?
Kind regards,
AnthonyDear Anthony,
For the issue you have mentioned, please check the following.
Please make sure to choose collation setting of:
SQL_Latin1_General_CP1_CI_AS
when installing MSSQL 2005 Server.
In order to check what the collation is set to in your server, please
run the following query:
Collation of your Server:
select SERVERPROPERTY ('collation')
(This query gets the collation settings of MSSQL 2005 System Database
"Master")
Expected answer : SQL_Latin1_General_CP1_CI_AS
In case you have already installed the MSSQL 2005 server with any
collation other than SQL_Latin1_General_CP1_CI_AS please follow the
steps below:
Change your server collation to SQL_Latin1_General_CP1_CI_AS.
You can find Microsoft's instructions for changing an SQL server
collation here:
http://msdn2.microsoft.com/en-us/library/ms179254.aspx
Please note that collation settings of Database "Master" needs to be
changed only. All SAP Business One Databases must not be changed! These
must remain on SQL_Latin1_General_CP850_CI_AS.
If you need any clarifications with this process please refer to an
Expert Empowerment Session "SQL 2005 Server Collation settings" at
https://websmp203.sap-ag.de/~sapidb/011000358700000050892007E/ or
http://service.sap.com/smb/sbo/support -> Archive: Empowerment Sessions
Note: 987436
Regards,
Raghu N
SAP Business Forums Team -
Sales Analysis for a certain period
Hello Experts,
In standard Sales Analysis Report, when we run report for a certain period for "Customers" and when we run the report with same parameters for "Items" it gives different results.
Can anybody please guide me, why these results are different whereas we are using the same parameters in both the Tabs i.e. Customers & Items.
Thanks & Regards,
SNHi Shazad,
One possible reason is that you have service type documents in that period. In such case, the document total appears in Customers tab, but not in the Items tab.
Could this be the case?
I hope that helps.
Regards,
Toni
Maybe you are looking for
-
What Are the Oracle Extensions Beyond Basic SQL?
I think I write some pretty mean queries. I've written some very tight queries with nested selects and in-line selects that take up four or five printed pages. However, all of my queries are limited to the basic clauses; select, from, where, group by
-
Business Object "Service Order" not found in Web Service Tool
Dear Experts, We're trying to create a web service for Service Order via Web Service Tool, but we can't find the business object "Service Order" there. How to step to reproduce the problem: 1. Logon CRM WEBUI with the business role ITSERVICEPRO. (or
-
Wrt54g Ver2 + Mac = Wrong Subnet
Come on Brainiacs, I know someone out there has some ideas - I googled and this has been happening, however, no solutions have been published. Afraid of a challenge? too busy telling people that "admin" goes in the password portion? Sheesh I have a f
-
Enhancement on read text fields of VL01N
Hi Friends, I need to check the value entered in a text field of header in VL01N and check it with the net weight field..and based on some conditions need to throw an error. How to get the value entered in the text field? As in VL02N it would be eas
-
Hi, How can i convert a string to XML so i can use it's tags?