Datepart Condition
Hi Guyss, does somebody help me ??
I have my own matrix and want to load data from user table where the query like :
SELECT * FROM [dbo].[@TAXRATE] T0 WHERE DATEPART(Month,U_RateDate)='07' and DATEPART(Year,U_RateDate)='2007'
i want that query transform to SAPbouiCOM.Condition
Dim oConditions As SAPbouiCOM.Conditions
Dim oCondition As SAPbouiCOM.Condition
Set oDBDataSource = oForm.DataSources.DBDataSources.item("@TAXRATE")
Set oConditions = New SAPbouiCOM.Conditions
Set oCondition = oConditions.Add
... ' need help to fill this
... ' need help to fill this
oMatrix.Clear
oDBDataSource.Query oConditions
thx. plz answered
Hi Ria,
I think you'll have to convert your query in to use real dates so you can use the greater than or less than conditions.
For example:
SELECT * FROM [dbo].[@TAXRATE] T0 WHERE DATEPART(Month,U_RateDate)='07' and DATEPART(Year,U_RateDate)='2007'
can be converted in to:
SELECT * FROM [dbo].[@TAXRATE] T0 WHERE U_RateDate >= '20070701' and U_RateDate <= '20070731'
Of course, you'd need to calculate the start and end dates dynamically, based on the month and year that is chosen (and you'll need to cater for leap years!).
Alternatively, have you considered using a Grid rather than a Matrix? You can pass your query to the DataTable in a grid so I would expect it to be much easier to code.
Kind Regards,
Owen
Similar Messages
-
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 -
Error in creation of a condition record
Hi to all, I've this error when I try to create a condition record :
Implementation of Method FIELD_CHECK/DEFAULT_VALUE_SUGGESTION for BAdI /SAPCND/ROLLNAME for filter ZIUSERSTATUS is missing
Message no. /SAPCND/MAINTENANCE719
Diagnosis
Implementation of BADI /SAPCND/ROLLNAME or method FIELD_CHECK/DEFAULT_VALUE_SUGGESTION is missing for the filter characteristic ZIUSERSTATUS.
If, however, the implementation is correct (see BADI Interface Documentation) and active, there is an error in the condition maintenance layer.
System Response
An exception or error occurred because condition maintenance cannot check, convert or lock/unlock the fields of a condition record.
Procedure
Contact the department responsible for carrying out the missing implementation in the case of application fields in the customer namespace. SAP is responsible for SAP fields which are set in the field catalog (/SAPCND/CTFC) and delivered, and if the field is supported as a possible field in a condition table. SAP is also responsible for the implementation of usage fields for SAP applications, just as with condition technique fields.
In cases where SAP is responsible, contact your responsible support organization.
Could someone help me please ?Hi I just put the coding:
e_was_executed = 'X'.
into every method and however it worked.
Best Regards -
Hi,
I have RTF template which contains the field to display the column name. Below are my help text.
COLUMN1 is my XML tag and displaying AQUA color in my excel output.
<?COLUMN1?><xsl:attribute xdofo:ctx="block" name="background-color">Aqua</xsl:attribute>From above scenario, i need to add one more condition if there is no value in my XML tag then don't display the field in my excel output. For example. I have COLUMN1 and COLUMN2 XML Tag. Only COLUMN1 contains the value but COLUMN2 not. In my excel output the COLUMN2 value should not display.
ThanksPlease see if (How to make condition using XML tags to check NULL values in XML Publisher templates? [ID 414022.1]) helps.
Also, see XML Publisher Guide which can be accessed via http://www.oracle.com/technetwork/documentation/applications-167706.html
Thanks,
Hussein -
IF and ABS condition statement in BEX query designer
Hi,
I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
The condition statement that I have on my Excel file is
=IF((A2-B2)>0,ABS(A2-B2),0)
I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
Anyone who could help me with my issue?
Thanks,
ArnoldHi Arnold,
Thank you,
Nanda -
Classic report - Condition evaluated for every row
APEX 4.2.2
I am seeing something strange in a classic report region. A report started to fail at run-time with a strange error about bad syntax. When I run the page in debug mode, I see the following
print column headings
rows loop: 30 row(s)
...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
end;
......Result = false
...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
end;
......Result = false
...Execute Statement: begin wwv_flow.g_boolean := 'string with a embedded ' single quote' is not null;
end;
......Result = true
Looks like the APEX engine is evaluating a boolean expression after rendering and each and every row in the report. And for some strange reason, it is using a piece of data from my query's resultset and failing because of the bad syntax introduced due to the single-quote in the string.
I have never seen this before. Any idea what is going on?
ThanksHowdy Paul, sorry should have provided all the details. No, this is a standard generic column template. Ah, you are right, drat I should have looked closer. The template has use a condition to show either a highlighted row or normal one. Sorry for the false alarm, I can take it from here. Enjoy your flight :-)
-
I have two Apple IDs because i travel frequently between Mexico and the US, and the apple stores offer different products, so i like to download music, movies and TV series from both sites.
Apparently apple changed the conditions, becauise until a few days ago i could log our from one account and log in from my other one. Yesterday i was at Miami International Airport and wanted to download a few chapters from one of my TV series (Walking Dead) to watch on my way to Mexico City, but a pop up window came up saying "this device is already associated with an apple id". Curoiously, the ID to which i was connected to was precisely the one under which i had bought weeks ago the chapters i was wanting to download from the cloud. So it says i have to wait 90 days to change apple id.... weard! probably i accepted these terms when dowloading a new IOS version, so legally I'm dead in complaining, but why is it that if i am paying for all that i buy as a model citizen i am now blocked from jumping from one apple id to another one???? I can certainly buy another ipad and have one with one id and another one with the other, but is there any other way i can keep the two in just one device?? If i don't use i-could would anything change? This is really making me mad, and is the first time i have thought of moving our of mac products into samsung or others and buy my music and movies somewhere else where stupid restrictions like this one do not exist. Please help with a solution!OK, but in my ipad, the apple id i have in itues is already the one iwant to have, but th one i used to sin in for i-coud is the other one. Any tip as to how to change the apple id for icloud and any idea how to know what apps i bought with the other apple id so as to delete them from my ipad to avoid being asked to enter another apple id every time they get updated? thanks!
-
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
SSRS Using Sum and = in a conditional operator
Hi,
Still getting to grips with SSRS so any help would be appreciated.
My aim is to calculate a conditional field using the SSRS expression feature, the datasource is a shared dataset which i can't alter so i can't just go an alter the SQL query or anything.
In SQL my query would be like this: SELECT COUNT(TotalHours) FROM TableName WHERE TotalHours <= 24
Is there anyway to combined the Iff and Sum operator's to get a result like the above?
At present all i managed to come up with is the below but obviously it's not returning the correct amount.
=IIf(Fields!TotalHours.Value <= "24", Sum(Fields!TotalHours.Value), 0 )
Please help!
Edit: Please note that i'm not trying to sum a field based on a condition that relates to another column, i just need a sum of 'TotalHours' that are less than or equal to 24, please also note there is another field called category, each category needs a
sum of the above.
Regards,
Marcus
Plain_CluelessHi Marcus,
According to your description, you want to count [TotalHours] when the value of this field is less than 24, right?
In your scenario, you could use the expression like below:
=Sum(IIF(Fields!TotalHours.Value<=24,1,0))
Please note don’t put this expression in the detail rows, you could refer to our test results:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Error in using a variable in filter condition in an Interface
Hi All,
I am using a variable in my interface in a filter condition. I have an EMP table of scott schema and want to pull all the records wiht hiredate date lying between 2 dates, incremental pull.For this I have created 2 variables and using them in the filter condition. I am getting an error inthe interface when I run in a package after declaring and refresing the variables.
com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Regards,
KrishnaHi Krishna,
What is the datatype of the Variable lastupdate ?
In my case
Variable
Name : LastUpdateDate
Datatype : Alphanumeric
Action : Historize
Query : select to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY') from sys.dual
Then in filter I used
EMP.HIREDATE>to_date('#LastUpdateDate','DD-MON-YY')
Thanks
Sutirtha -
BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value
Hallo Gurus,
I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
Can someone please help!
Thsi is my piece of code::
itab_BAPISDH1X-UPDATEFLAG = 'U'.
append itab_BAPISDH1X.
itab_BAPICOND-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICOND-COND_TYPE = 'ZST3'.
itab_BAPICOND-COND_VALUE = '15.00'.
itab_BAPICOND-COND_UPDAT = 'X'.
append itab_BAPICOND.
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
EXPORTING
salesdocument = p_vbeln
QUOTATION_HEADER_IN =
quotation_header_inx = itab_BAPISDH1X
tables
return = itab_BAPIRET2
CONDITIONS_IN = itab_BAPICOND
CONDITIONS_INX = itab_BAPICONDX
Thanks!
MuktaHmm...
Change the following....and check..
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
"change the above to.....
ab_BAPICONDX-COND_TYPE = 'X'.
append itab_BAPICONDX.
The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
Cheers... -
Conditional show error in dashboard In OBIEE 11g
Hi Gurus,
I I have a dashboard prompt which is a radio button containing Month & Quarter. Also have 2 other prompts like DP_Month which will show months(201301,201302 ...) and DP_quarter which will show(2013Q1,2013Q2..). This 2 prompts will show conditionally based on based on 1st prompt selection(like Month or quarter) which is working properly.
Suppose when I click Month I m getting 2nd month prompt and changed to Quarter and getting Quarter prompt..But when I move to 2nd page Quarter prompt is selected but Month dropdown is showing.
Please suggest..
Regards,
SmitaHi Nagireddy, thanks for your reply.
Is there any limit of values to extract in Dashboard prompt? i.e. when you use drop down list as Dashboard prompt, is there any limit of values to extract from database?
In my local environment (instanceconfig.xml), there is limit of Rows to View and Download set to 20K, however I did not see anything related to the Dashboard Prompt. -
Free Goods with pricing condition (Urgent)
Hi MM Expert,
we have a probleme with free goods. because in PO item of free goods, there is no condition management (no Invoice entry) but we should manage some pricing condition for the item (spécifique condition relative to transport, ...).
so are the any way of managing the expenses annex condition(transport charge, customs clearance charges, ) for the free goods in an item of Purchase Order ??
thank's in advance.
SaidHi,
This is not possible to maintain the condition s for free goods because while creating the PO for free goods by selecting the free goods tad at item level, There is no Condition tab at Item detail .means you are not able to mainatin conditions.
If you want to maintain the conditions ,you have to treat as a Normal scenarios .
Regards
Sanjay L -
Making SKTO condition type as 0% in case of credits
Hi All,
This is about the common scenario where in we give the credit back to the customer in normal practice as well in case of returns.
The requirement is that whenever I create a credit memo (G2) or credit for returns (RE) , the SKTO should read as 0%. The catch here is that since the credit memos are cretaed with reference to the orignal billing doc the SKTO condition which has the % discount copied from the payment terms is going to get copied in the credit memo request .
Moreover there might be scenarios where the credit memo request is created independently w/o reference to the original doc . So even in this case the SKTO is going to have the % discount . It is because of this reason why I don't want to change/create any copy control routine from the original invoivce to the credit memo request doc.
My question is :
1. Is it possible to have the SKTO read as 0 % in case of credits ( G2 & RE) docs even though the credit memo request has a payment term which has the (xyz) % discount . ?
2. If I am going to change the copy controls from CR to G2 or RE (returns) to RE (credit for returns), how
would I need to do ?
The Whole essence of this requirement is that my business doesn't want the cash discount (SKTO) to figure when they issue a credit.
Thanks
SridharHi Lakshmi,
Thanks for your suggestion .But I have bottlenecks in both the cases:
1. In case 1 if I have to change the pricing procedure I need to introduce 2 new pricing procedures as we have 2 different products and both of them use different pricing procedures. This is a viable solution ,but I need to spend most of the time convincing the business that it doesn't impact anything .
2. In case 2 , I have 2 credit scenarios ,(i) normal credit memos (ii) credit for returns . I have the F2 -G2 in VTFF,but there is no F2-RE as of now . So I might have to create this . SInce this both the billing types are standard, is it recommended to create F2 -RE in VTFF?. Please let me know .
OR as said by Mr .Shivram , I am looking at the option of modifying the requirement 6 assigned to SKTO in the pricing procedure .
Thanks
Sridhar -
Free goods condition records - Usage in Sales Order
HI,
I have so many condition records in various KOTN9xx tables, which are for issuing free goods. If I see a sales order item, that is a free good, how do I know, on what basis (based on which condition record, in which condition table) that free good was issued?
Technically speaking: Similar to KONV table for storing transaction data on pricing, is there a table for storing transaction data on free goods?
Thanks,
JuwinFind the table number of the key combination of customer / material . & you can extract free goods condition records from this table.
Search in SE11 with the table number.
Maybe you are looking for
-
Invalid serial number for photoshop elements 8 download
Hello, I've recently got a new computer and decided to reinstall my old wacom bamboo drawing tablet that came Photoshop elements 8. Setting up the tablet was no problem but when i try do download the program it just says invalid serial number. I
-
How to Configure the Datasource In JNDI and access it through Java Code
I have declared under web.xml <resource-ref> <res-ref-name>MSDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> U
-
I need help to restore my MacBook Pro back to the factory setting giving the computer to my son and need to reset..Thanks I have spent all day trying to figure this our and support wants me to pay $19.00 for help with this.
-
which is the best way to call a scotland mobile phone from skype? i been using pay as u go credit and its 8 cents a min and was wondering if a monthly thing or a subscription is the way to go
-
Hello, I just purchase Adobe Premier elements 12. I installed it but the only problem is when I try to open "new project" it tells me I have to put my password in and username for the first seven days of installation, but when I do that the project n