Alert on Today's Data Compared with Previous Day Data
Hi All,
I've a report with multiple tabs having data like,
Tab:1 Tab:2 Tab:3 Tab:4
Franchise: ABC Franchise Franchise Same as Tab:3
Start Date: Start Date Month
Operator: XYZ Operator Operator
Incoming Node:N01 Outgoing Node Incoming Node
Incoming Path:P01 Outgoing Path Incoming Path
Incoming Count:2 Outgoing Count Incoming Count
Incoming Mins: 10.63 Outgoing Mins Incoming Mins
My requirement here is, I've want an alert on Percentage of Mins comparing its data with the previous day(Month for Tab 3 & 4) mins data. For now I've done this by creating a variable(with Relative Value Function) that stores the previous day or month's mins and stored the difference of these two data into another variable as Variation. I've put a percentage on the Variation variable and put a alert on it. It went well till here but, my requirement also has graphical alert on percentage. I tried adding the Variation variable and percentage and all available measures. But an error showed up with every try saying "Error in dataset values :#COMPUTATION"
Is there any other to do this report?
Note: I'm using WebI Rich Client v4.1 SP1
I tried using Franchise(Dim) and with that i've used Incoming Count, Incoming Mins, Variation separately. But nothing worked.
Similar Messages
-
I've found that middlemouse.contentLoadURL feature has changed its behavior in FF5.0 as compared with previous versions: I now can paste&load only full urls that start with "http://" prefix, but previously it was possible to paste&load any url even without protocol prefix. It is very useful when someone has an url for example just "support.mozilla.com", but with FF5.0 one _has_ to paste it to urlbar instead of just middle-clicking into the browser window (long standing and usual *nix behavior). How can I make middlemouse.contentLoadURL load any clipboard content not prefixed with protocol specification?
Oops, already found a solution: https://support.mozilla.com/ru/questions/824759
But, how could it be done via something less freaky (ala about:config)? -
Run the query with previous weeks date automatically
Hi Guyz,
I need to dynamically populate the previous weeks date value every week,
i.e Run the query every Monday automatically, with previous weeks date value .
Is there any SAP Exit which I can use ??
Regards,
Ravi
Edited by: Ravi Srinivas on Aug 4, 2009 1:40 PM
Edited by: Ravi Srinivas on Aug 4, 2009 1:52 PMRavi,
If you are thinking of re-running the previous week's queries automatically in the front-end, then U. Tummers is correct. You can create new columns alongside your existing query if you so wish and use your restrictions with an offset sepending on how far back you'd like to go.
Best,
Philips -
How to get previous day data if i dont have current day data.
Hello Gurus,
I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS.
Could you please help me in this regard.
Thanks in advance,
RamaRama -
0CALDAY can't help us in this scenario .
Step 1 :
To do this - You have to add one ZDATE (InfoObject ) to 1st ODS. ZDATE is updated by itself from current date of system when ever you are loading data to 1st ODS.
Step 2:
You have to do full update to 2nd ods.At the selection screen of InfoPackage (from 1st ODS to 2nd ODS ) you have to write following code for ZDATE.
pseudo Code:
1) Select fields "Rec_INSERT","Time stamp","Request Status" and "Request ID" where ICUBE = ODS1 from table "RSMONICDP"
2) Populate above selected fields data in INTERNAL TABLE
3) Sort INTERNAL TABLE by Time stamp .
4)
If (Record Count = ' 0 ' for current date in internal table )
update records from ODS1 to ODS2 where ZDATE = "yesterday date"
else
update records from ODS1 to ODS2 where ZDATE= "today date"
endif.
Make sure this is full update not delta update from ODS1 to ODS2
I am sorry, I m not good in Coding but I am sure if u use this logic,You can meet your requirement.
I hope you can understand my logic. Let me know if you have any questions,
Anesh B . -
SQL Server - Previous day data retrieval + conditions
Hi Guys,
I am retrieving data from a view for a dashboard and I need some help with my query to retrieve yesterday's data where the following conditions meet:
When 'Monday' retrieve JUST friday's data. When 'Tuesday' retrieve data from Saturday until Monday, When 'other days' JUST retrieve previous day,
But there is another condition: Exclude 'previous day' data WHERE "DESP_PostedDate..." column is empty. (as this will skew the percentages)
This is what I have so far:
SELECT CORD_DocumentCode
,OpenDate
,datedue
,DESP_PostedDate
,COUNT(CORD_DocumentCode) AS Order_Count
,SUM(CASE WHEN InFullAndOneTime = 2 THEN 1 ELSE 0 END) AS Difot_count
,SUM(CASE WHEN InFullAndOneTime = 2 THEN 1 ELSE 0 END) * 1.0 /COUNT(CORD_DocumentCode) AS DIFOT
FROM DIFOTIS_View
WHERE (OpenDate >= CASE
WHEN DATENAME(dw, CONVERT(CHAR(8), GETDATE(), 112)) LIKE 'Monday' THEN CONVERT(CHAR(8), DATEADD(dd, - 2, GETDATE()), 112)
WHEN DATENAME(dw, CONVERT(CHAR(8), GETDATE(), 112)) LIKE 'Tuesday' THEN CONVERT(CHAR(8), DATEADD(dd, - 3, GETDATE()), 112) ELSE CONVERT(CHAR(8),
DATEADD(dd, - 1, GETDATE()), 112) END) GETDATE(), 112))
GROUP BY OpenDate
,CORD_DocumentCode
,datedue
,DESP_PostedDate
ORDER BY OpenDate
This will show you last week's date from "Wednesday" and the result is 15.4 % (or 4/26) whereas I would like it to show 80% (or 4 / 5)
I have tried adding
((Datediff(day,Opendate,getdate())=1) and DESP_PostedDate is not null)
but it shows then ONLY data from the previous day.
What do you suggest I should do? Please find below Data from friday for your perusal.
All help is appreciated. Thanks
Eric
CORD_DocumentCode OpenDate datedue DESP_PostedDate Order_Count Difot_count DIFOT
CASW92195 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
CASW92196 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
CASW92197 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
CASW92198 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
CASW92199 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
CASW92200 2014-10-19 2014-10-19 NULL 1 0 0.000000000000
CASW92201 2014-10-20 2014-10-20 2014-10-20 1 1 1.000000000000
CASW92202 2014-10-20 2014-10-20 2014-10-20 1 1 1.000000000000
CASW92203 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CASW92204 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CASW92205 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CASW92206 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CORD37188 2014-10-20 2014-10-20 NULL 1 0 0.000000000000
CORD37189 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37190 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37191 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
CORD37192 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37193 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37195 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37196 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37197 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
CORD37198 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
CORD37199 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
CORD37200 2014-10-20 2014-10-20 NULL 1 0 0.000000000000
CORD37211 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CORD37216 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
CASW92207 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
CASW92208 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
CASW92209 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
CASW92210 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CASW92211 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CASW92212 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CASW92213 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37218 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
CORD37220 2014-10-21 2014-10-20 2014-10-21 1 0 0.000000000000
CORD37221 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37222 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37225 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37227 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37228 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37229 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37230 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37231 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37232 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37233 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37234 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37235 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37236 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37237 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37238 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37239 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
CORD37241 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
Thanks
EricHi Eric,
Pleas try below code ,Hope this help you
As per My understanding you were looking for below logic
If Monday --> Friday only
Tuesday --> Saturday,sunday, Monday
Rest Days-->only Preovious Day
plus additional rule desp_posted date is null then exclude yestreday's data.
/*Main Query */
declare @ReportDate datetime
set @ReportDate='2014-10-22 00:00:00.000'
select
OpenDate,cast(datepart(dw,OpenDate) as varchar),DESP_PostedDate
from base
where cast(datepart(dw,OpenDate) as varchar)
in ( SELECT * FROM dbo.CSVToTable(
case
when datepart(dw,@ReportDate) =7 then '6'
when datepart(dw,@ReportDate) =6 then '5'
when datepart(dw,@ReportDate) =5 then '4'
when datepart(dw,@ReportDate) =4 then '3'
when datepart(dw,@ReportDate) =2 then '6'
when datepart(dw,@ReportDate) =3 and DESP_PostedDate is not null then '7,1,2'
when datepart(dw,@ReportDate) =3 and DESP_PostedDate is null then '7,1'
when datepart(dw,@ReportDate) =1 then '7' Else NULL END )) and opendate>=DATEADD(day, -7,@ReportDate)
/* Table Creation & Sample data */
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[CSVToTable] (@InStr VARCHAR(MAX))
RETURNS @TempTab TABLE
(id int not null)
AS
BEGIN
;-- Ensure input ends with comma
SET @InStr = REPLACE(@InStr + ',', ',,', ',')
DECLARE @SP INT
DECLARE @VALUE VARCHAR(1000)
WHILE PATINDEX('%,%', @INSTR ) <> 0
BEGIN
SELECT @SP = PATINDEX('%,%',@INSTR)
SELECT @VALUE = LEFT(@INSTR , @SP - 1)
SELECT @INSTR = STUFF(@INSTR, 1, @SP, '')
INSERT INTO @TempTab(id) VALUES (@VALUE)
END
RETURN
END
GO
/****** Object: Table [dbo].[base] Script Date: 10/28/2014 6:07:17 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[base](
[CORD_DocumentCode] [varchar](50) NULL,
[OpenDate] [datetime] NULL,
[datedue] [datetime] NULL,
[DESP_PostedDate] [datetime] NULL,
[Order_Count] [int] NULL,
[Difot_count] [int] NULL,
[DIFOT] [numeric](18, 2) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92195', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92196', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92197', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92198', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92199', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92200', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92201', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92202', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92203', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92204', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92205', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92206', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37188', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37189', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37190', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37191', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37192', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37193', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37195', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37196', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37197', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37198', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37199', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37200', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37211', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37216', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92207', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92208', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92209', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92210', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92211', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92212', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92213', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37218', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37220', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37221', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37222', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37225', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37227', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37228', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37229', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37230', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37231', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37232', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37233', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37234', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37235', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37236', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37237', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37238', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37239', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37241', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37985', CAST(0x0000A3C800000000 AS DateTime), CAST(0x0000A3C800000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 2, 0, CAST(1.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD379865', CAST(0x0000A3C700000000 AS DateTime), CAST(0x0000A3C700000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(3.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37875', CAST(0x0000A3C600000000 AS DateTime), CAST(0x0000A3C600000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37241', CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
GO
INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37263', CAST(0x0000A3C400000000 AS DateTime), CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 2, 0, CAST(3.00 AS Numeric(18, 2)))
GO
Shiv
please mark as Answer if helpfull -
ST03 - Previous day data???
Hi Guru's,
I have a query on ST03. My Question is when I log onto a server and try to get the ST03 data for the previous day, I do not get the data until 3AM server time. ie if I want the data for 3/12/08, the data does not reflect on the system till 3AM 3/13/08. Why is it I do not get the data of the previous day at 12.10AM on 3/13/08.
Useful answers will be rewarded.
Cheers
ShankamHi Praveen,
1) SAP standard job SAP_COLLECTOR_FOR_PERFORMANCE must be schedule hourly in each SAP system. The job must always be scheduled in client 000 with user DDIC or with a user with the same authorisation.
2) If you want to schedule the SAP_COLLECTOR_FOR_PERFORMANCE job daily. Can you check when SAP_COLLECTOR_FOR_PERFORMANCE job has been scheduled. If you can change the schedule time of SAP_COLLECTOR_FOR_PERFORMANCE job, i think it should resolve your problem.
Kindly refer below sap notes
*Note 12103 - Contents of the TCOLL table*
*Note 16083 - Standard jobs, reorganization jobs*
Cheers
Kanthi Kiran -
Previous days data based on passing parameter and date
Hi,
i have one rek..that requirement to to show the previous days data based on the number passing to the parameter parameter.
lets suppose if user enters the date '25 Mar 2012 in one dashboard prompt and in another prompt user enters the no.of days(Ex: 5).then report should display the last 5 days data i.e 25 mar 2012,24 mar 2012,23 mar 2012,22 mar 2012,21 mar 2012.
can anybody tell me how can i achieve this..
Thanks in advance...user12255470 wrote:
Hi,
i have one rek..that requirement to to show the previous days data based on the number passing to the parameter parameter.
lets suppose if user enters the date '25 Mar 2012 in one dashboard prompt and in another prompt user enters the no.of days(Ex: 5).then report should display the last 5 days data i.e 25 mar 2012,24 mar 2012,23 mar 2012,22 mar 2012,21 mar 2012.
can anybody tell me how can i achieve this..
Thanks in advance...Read the article and adapt it to what you are doing. It's very similar...
http://oraclebizint.wordpress.com/2008/03/11/oracle-bi-ee-101332-rolling-yearmonth-and-date-filters-moving-window-filters/ -
Old sent emails appearing in my sent box with current days date
A couple of weeks ago, my iPhone got soaked and stopped working. I restored it over and over again and it started working again. A couple of days later, old emails from my .Mac account started appearing in my sent box in my mac mail with that days date on it as if it had been sent on that day. I think the offending emails might have been in my outbox on .mac but it was some years ago so I can't remember
Can anyone shed any lightWell it appears that the problem has corrected its self. Deleting all accounts, deleting the mail preference files (there were numerous) and then setting up my main account again has fixed the problem.
Thanks,
-Tom -
Date Picker with Previous and Next Year Options
Hi All,
I am implementing a date picker in my application which is tied to an attribute of type PA0001-BEGDA. Date Picker as such works fine but navigating to previous year and Next year options are not available. User has to go month by month to different years if they have to navigate.
Is this the normal behavior of the Date Picker or am I missing something else to get the previous and Next year icons in the Date Picker.
Thanks,
Nagarajan.hmm..I tried using the select options and it did give the same date picker with the previous and Next navigation icons...The only problem with the select options is that its a single field which has the range and can accept multiple values too...
I tried to figure out how the date picker that we use in the custom application and the one in Select Options differ but no luck...Does this ring any bell?
Thanks,
Nagarajan. -
Given date time is in yyyyMMddHHmmss format, want to compare with system date time.
ie given date time is greater than zero then go inside if block otherwise else block.I am using below code which always greater than zero. But I want to use compare to method to compare given date with system date and goto if or else condition:
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
String delaytimeFormat = sdf.format(new Date("10/10/2009"));
System.out.println("delaytimeFormat: "+delaytimeFormat);
long timeDiff = Long.parseLong(delaytimeFormat) - System.currentTimeMillis();
System.out.println("timeDiff->"+timeDiff);
String newCallbackUrl = null;
if(timeDiff > 0){
s = s+" new URL"+"test" ;
System.out.println("if:->"+s);
else{
System.out.println("else");
} -
Current year data compare with pervious year
Hi Experts,
I have created report1 with display the default date data. And we have Date between filter, based on the filter the reports data is changeing.
My Question is we have another report2 below the report1 but report2 should display exact date of last year.
i.e. if default date is 29/03/2010 and 30/03/2010 for report1 and
the report2 should be display the data for exact 29/03/2009 and 30/03/2009 and if date filter may change the report2 also change.
Note : Both reports are created from same table.
Thanks,
Balaa...Hi Balaa,
you can creat a filter like this:
TIMESTAMPADD(SQL_TSI_YEAR,-1,date)
This retuns the date of the last year.
I hope it helps.
Regards,
Gianluca -
Any Idea How Temperatures Of New Imacs Compare With Previous Models ?
Has anyone had a chance to test or compare the operating temperatures of the new and old models ?
In particular I would like to know how the new entry 2.4GHz compares with the old 2.0GHz.Found my own answer...
Mid to late Feb, G73 series.
Gonna be hot! Looks like they will be able to run all the most demanding games on highest settings. Sweet deal. -
ST03N, i am not able to see today n previous day data
Hii All
In my ST03N, i am not able to see today n last day data, it shows me data upto last two day before data. plz tell me abt where i can check the retention period.
System Details:
SAP: ECC 6.0
DATA BASE: ORACLE 10G
OS: AIX5.3
SAP KERNEL:179
SAP_ABA: SAPKA70015
SAP_BASIS:SAPKB70015
ST-PI:2008_1_700
PI_BASIS:SAPKIPYJ7F
Already jobs:
SAP_COLLECTOR_FOR_PERFMONITOR
SAP_APPLICATION_STAT_COLLECTOR
SAP_CCMS_MAPPING_SCHEDULER
SAP_COLLECTOR_FOR_JOBSTATISTIC
and saposcol running fine.
Thanks
Amit Srivastava
BasisHi
You can refere this [Link|No system load data available; may help you
Regards
Uday -
Problem in date comparing with db2 database,query is not executing
hi everyone
i have one jsp page two text box
1. one for start date
2.second for end date
and for date selection have used datepicker
user selects the start date and end date .then clicks on view button
then i am retrieving these two dates on next jsp page .uptp here is ok
here i want display related data from db2 databse between these two dates(start date and end date)on next jsppage
but it is giving error my db2 dtabse uses the format of YYYY-MM-DD
the query i am not able execute
String strsql ="select voucher_master.VOUCHER_TYPE,voucher_master.VOUCHER_NO,dd_master.CHQ_DD_NO,dd_master.DD_DATE from voucher_master,dd_master Where voucher_master.VOUCHER_ID = dd_master.VOUCHER_ID and dd_master.DD_DATE >=" + fromdate + " and dd_master.DD_DATE <=" + todate + "";
it is giving error
please help meMutlipost: http://forum.java.sun.com/thread.jspa?threadID=5224616
Why aren't you checking your earlier posts for replies? Don't multipost, it's irritating and wastes times and energy.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
---------------------------------------------------------------- -
Generic Data Source with Function Module data mismatch
Hi All,
I'm using Generic Data Source with Function Module, When I execute the Function Module (Which I have Created), I'm getting 16000 records and when run extractor(in RSA3) im getting different no.of records(infact they are more no.).
when I run the InfoPackage in BI im Getting more no. of records than what i got executing the function module..
and single record is divided into 2 records in BI side(not all the records), how can it be possible???
is there anything Im missing to explain you my issue???
if understood please help me out.
Thanks n Regards,
ravi.HI rkiranbi,
1. FIrst you excute function module according to your paramers, you will get some records. then goto tcode RSA3 --> excute
Provide your Data source name and under setting we have options like Data records/calls, Display extractor calls and selections --> fields .
in that options you have to increase the values. and then you have to pass paramers in RSA3 according to your function module
selections in SE37. Now you will get equal values in both functin module selection and RSA3 Selection. if it fail means you need to
check coding logic in function module.
2. if your are getting wrong values in BI System then check with
1. compare with PSA data and data target data (here you need to check with characterstic as well as keyfigures)
if you find any mistake you need change the coding in function module according to client requirement.
2. compare data with RSA3 and bi report data or data target data.
check it properly above steps, you will get solution.
thanks and regards,
malli
Maybe you are looking for
-
I have iTunes on an old pc and am thinking of buying a MacBook Air. I am wondering how to get the content of my iPad on to the Mac as I know that sync only happens in one direction, from pc to device. I assume therefore that when I attach my pad to t
-
TripAdvisor no longer works in Maps Suite Guides (...
Hello, I've noticed on my up to date Nokia 808 Pureview that for a couple of weeks now, the TripAdvisor guide, in the Maps Suite Guides, no longer works. While other guides like Michelin work correctly, TripAdvisor leads to an error (see attached scr
-
Using Bulk insert or SQL Loader in VB6
Hi, I am quite new to the Oracle world and also forums. But I am looking for some directions in how i get a dataset of 10000 records into a table the quickest way. I have the recordset in an ADO Recordset (or a textfile if that is easier) and I want
-
cannot open an attachmnet....xls, .doc., .pdf using enterprise any ideas..I click on the attachment but it just sits there at 0% download
-
Lead generation using CRM Survey
How leads can be generated suing HTML Survey for external campaigs. What i mean here if campaigns are executed using external website and based on visit by customers on website if they fill in information , how that information can be captured and in