How to handle missing data when a limit value does not exist
Hi guys
I am quite new to all this OLAP stuff and I don't know how to detect the following situation:
What happens when CREDITT.MYSERIES2 does not exist? the query then returns V1 and V2 populated with the data from CREDIT.MYSERIES1 and CREDIT.MYSERIES3 respectively (and V3 being all NULLs). I have no way of knowing that the limit has not worked on Series2.
Is there any way to detect this? (perhaps assigning V2 to be all NULLs?)
Thanks in advance
Adam
SELECT
TRUNC(IND-TO_DATE('01011900','ddmmyyyy')+2),V1,V2,V3
FROM (
SELECT *
FROM TABLE(
OLAP_TABLE( 'OLAPFAME.MAG_CRD DURATION SESSION',
'DIMENSION IND AS DATE FROM DAY
MEASURE V1 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 1))
MEASURE V2 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 2))
MEASURE V3 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 3))
ROW2CELL R2C1' ))
MODEL
DIMENSION BY(IND)
MEASURES(V1,V2,V3,R2C1)
RULES UPDATE SEQUENTIAL ORDER())
WHERE OLAP_CONDITION( R2C1,
'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
''CREDITT.MYSERIES2'',
''CREDIT.MYSERIES3'';
LMT DAY TO ''21DEC2009'' TO ''31DEC2009'';
LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1',
1 )=1
I am not sure what your issue is entirely because what you posted is not your working code.
WHERE OLAP_CONDITION( R2C1,
'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
''CREDITT.MYSERIES2'', <-- this seems incorrect
''CREDIT.MYSERIES3''; <-- semicolon indicates end of statement
LMT DAY TO ''21DEC2009'' TO ''31DEC2009''; <-- what is this?
LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1', <-- what is this?
1 )=1Could you please repost the correct code?
Similar Messages
-
Missing data when exporting webi to excel (not 65536 limit problem)
Hi guys
I just meet a problem about webi that it will miss data when exporting webi to excel.
It's not about 65536 limitation, as my webi report do some aggregration and limitation and never beyond that limitation.
Also there are 2 tabs in my reports, if I split the 2 tabs into 2 separate reports and export them separately, then problem disappeared.
Any ideas on this?Hello Claes
according to:
http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
Tools => Import and Export => Specifying the Sequence of the External Data Structure => External File Structure: Specification
Table EST07 should be part of export file. I am not sure if the packing requirement ist part of EST07.
Furthermore wirh ECC 6.0 EnhPAck3 some changes happend generally in the area of DG classification.
E.g. Dynamic dangerous goods classification. I am not sure if these changes are "included" in some sense in the EH&S data download.
With best regards
C.B.
PS: please check this link on the top:
http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
Refer to "Table Assignment: Specifications"
I believe packaging requirement is part of table EST0B but this is part of the download file.
Edited by: Christoph Bergemann on Aug 27, 2011 7:12 PM
Edited by: Christoph Bergemann on Aug 27, 2011 7:13 PM -
Environment:
Oracle ADI version: version Oracle ADI 7.2.12.04.25 and patch number 9493800
Microsoft Office version: 2003
How to recreate incident:
1. Create a budget worksheet for a company
2. View the budget information
3. Upload budget information to the Interface Table
Actual Result:
Account error: Value <value> for the flexfield COMPANY does not exist in the value set BB_COMPANY. I have noticed the same error is displayed regardless of whether I select options from the combo boxes or enter random numbers in the journal i.e. 0000 for each field.
Expected Result:
Budget information to be uploaded successful especially when the data has not been amended
Questions:
1. What is happening to cause this problem?
2. What is the solution?The issue is resolved, no need to answer, the dbconnection class was calling the wrong db :(
-
SSDT - Using a SharePoint list data feed as source - "column does not exist in the rowset" error
Hey guys!
So, I want to use a SharePoint list data to create a cube/tabular model, in order to make a complex analysis in PPS using MDX.
To create the tabular model, I'm using the SS Data Tools, and importing a feed from the respective SharePoint list (using the _vti_bin/listdata.svcextension and then selecting the list(s) I wanna to import).
Everything looks fine and smooth, I can select and preview the data in the table import wizard, but in the end, when importing, I always get this error IF the table has one or more row of data (if the table is empty, it's ok...) - the <...>
column doesn't exist in the rowset.
(Curiously, when I have the same procedure in PowerPivot for Excel, I have no problems, everything works fine. The problem is that then I get again errors if I try to create a tabular model on SSDT importing a PowerPivot file).
Here's the error:
Had you already tried this in SSDT? Are you experiencing the same trouble?
Best regards, and thanks in advance!
Jorge Mateus
Jorge MateusI noticed something else too.
I can't process Tabular Models on both SSDT and SSMS (2012), but I can process Tabular Models created on PowerPivot.
I tried to create a Data Feed connection on PowerPivot, and it was successfully created. However, if restoring the PowerPivot Tabular DB on my SSAS Tabular instance and processing (full) the model through SSMS, it won't work.
Is there anything different on PowerPivot and SSDT related with Partitioning or connections to the data sources?
Regards,
Jorge
Jorge Mateus
Update:
When trying to Restore a PowerPivot file on my SSAS Tabular Server and full process the model:
The operation failed because the source does not contain the requested column. You can fix this problem by updating the column mappings.
More Details:
The 'X' column does not exist in the rowset.
An error occurred while processing the partition 'X_81dabac5-c250-4a8c-8832-ad7fcedd35cb' in table 'X_81dabac5-c250-4a8c-8832-ad7fcedd35cb'.
The current operation was cancelled because another operation in the transaction failed.
X is the first column of the source table, no matter if I chose others on the PowerPivot table.
When trying to import data from a data feed using SSDT:
The 'X' column does not exist in the rowset.
An error occurred while processing the partition 'X_ee6be81f-2235-4113-b404-cfcb20647a38' in table 'X_ee6be81f-2235-4113-b404-cfcb20647a38'.
The current operation was cancelled because another operation in the transaction failed.
X is the first chosen column to import. -
Data Services ORA-00942 table does not exist. Source/Target same DB
Error: u201CORA-00942: table or view does not existu201D
Source & Target Datastores in same Oracle DB but different User/Schemas.
I set up the Data Services Tutorial Source & Target Data bases in ONE Oracle DB using a separate User/Schema for the ODS source DB & TARGET Source DB.
I then created
- Source datastore for the ODS DB User/schema
- Target datastore for the TARGET DB user/Schema.
I have no problem reading flat files & writing to TARGET datastore tables.
However, when I read the ODS datasttore source table CUSTOMER & write to the TARGET datastore target table CUST_DIM I get an error: ORA-00942: table or view does not exist.
I can query the table contents from the Data Flow & see the data in the source data & see the empty target table.
So the tables exists & there is no security issues from the DS Designer.
I did find note 1189910 - ERROR: Error Description: An error occurred while creating the result data - Data Insight XI
Cause
Multiple engines are being run against the same metadata repository.
Resolution
Verify that only one engine is being run against a single metadata repository.
Has anyone seen this error?
Or has anyone created a 2 data stores on the SAME DB, but to different User/Schemas?
Thanks
Jay Roblesince you are accessing 2 schema which are on same oracle database, DS engine is trying to optimize and generating an INSERT INTO ... SELECT clause. Since its the same DB, DS Engine is doing a implicit linking of the datastores
you can see the SQL generated from the Designer, drill down into DF, from the Menu select Validation ->Display Optimised SQL
to disable this implicit linking, right click on the Dataflow, select properties
in the properties window, unselect the the option "use database links" -
Using SSIS 2012 - merge join component to transfer data to destination provided it does not exist
HI Folks,
I have a table - parts_amer and this table exists in source & destination server as well.
CREATE TABLE [dbo].[Parts_AMER](
[ServiceTag] [varchar](30) NOT NULL,
[ComponentID] [decimal](18, 0) NOT NULL,
[PartNumber] [varchar](20) NULL,
[Description] [varchar](400) NULL,
[Qty] [decimal](8, 0) NOT NULL,
[SrcCommodityCod] [varchar](40) NULL,
[PartShortDesc] [varchar](100) NULL,
[SKU] [varchar](30) NULL,
[SourceInsertUpdateDate] [datetime2](7) NOT NULL,
CONSTRAINT [PK_Parts_AMER] PRIMARY KEY CLUSTERED
[ServiceTag] ASC,
[ComponentID] ASC
I need to exec the following query using SSIS components so that only that data ,is transfered,which does not exist at destination -
select source.*
from parts_amer source left join parts_amer destination
on source.ServiceTag = destination.ServiceTag
and source.ComponentID=destination.ComponentID
where destination.ServiceTag is null and destination.ComponentID is null
Question - Can Merge component help with this?
Pl help out.
Thanks.Hi Rvn_venky2605,
The Merge Join Transformation is used to join two sorted datasets using a FULL, LEFT, or INNER join, hence, not suitable in your scenario. As James mentioned, you can use Lookup Transformation to redirect the not matched records to the destination table.
Another option is to write a T-SQL script that makes use of
Merge statement, and execute the script via Execute SQL Task.
References:
http://oakdome.com/programming/SSIS_Lookup.php
http://www.mssqltips.com/sqlservertip/1511/lookup-and-cache-transforms-in-sql-server-integration-services/
Regards,
Mike Yin
TechNet Community Support -
How to stop Timer event inside movie clip that does not exist?
Hello. I am using Adobe Flash CS6.
As this topic title says. how to stop Timer event nside movieclip that does not exist?
I mean my fla stracture is there are 2 frames on main timeline, and I put mcA on frame 2.
And I put a button on root that does
if(currentFrame ==1)
gotoAndStop(2);
else if (currentFrame ==2)
gotoAndStop(1);
And mcA has AS inside and it is
var T_Timer:Timer = new Timer(1000,0)
T_Timer.addEventListener(TimerEvent.TIMER, test)
function test(e:TimerEvent):void{
trace("Timer active")
T_Timer.start();
I need to stop T_TImer from root on frame 1, not on frame 2.
but, "mcA.T_Timer.stop();" won't work.
I get TypeError: Error #1010 error.
I don't know how to stop this timer event. I have to stop it from root, and I can't use EVENT_REMOVED in this case.If the object doesn't exist you cannot do anything relative to targeting it. Maybe you should move the timer to the main timeline where you can access it any time.
-
DP Package content missing after recreation - Unique ID - Package does not exist
Hello Forum!
I deleted some content of a Deployment Package "Windows 7 Monthly Updates" manually, because of some changes in our Update Structure and redownloaded with a new ADR the new content. But now I receive errors in Configuration Manager Status Message
Viewer (SMS Distribution Manager) that Content doesn't exist.
"The source directory "\\Server$\UPD\Windows 7 Monthly Updates\3b7fc36f-fab9-4ccb-9372-08b696f6a192" for package "XDC00050" does not exist. The operating system reported error 2: The system cannot find the file specified. "
The Package is not missing and contains now many other Updates, but it seems that SCCM still remembers the old ones, before recreation.
If I just recreate the Folder with the Unique ID and redistribute, another Unique ID will shown. And If I remember right the Source Folder contained more than 100 Subfolders (unique ID's).
The DP Package contains now the new Updates and the old ones are not needed anymore.
Now I need really a good advisory.
What is the fastest Options to stop the errors (to tell SCCM 2012 SP1) that this Updates are no longer needed (deleted)?
Best Regards
MarcusThank you for your fast answer.
But If I delete the Deployment Package, I am sure it will be missed by the ADR, or?
Can I move the ADR to the new Deployment Package or will I have to recreate the whole Structure (ADR, Software Update Group, DP etc.)?
Best Regards
Marcus -
How to handle dirty data when uncommittedDataWarning="on"
Hello,
I'm using JDeveloper 11.1.1.4.0
On my JSPs uncommittedDataWarning is set to "on"
If I abandon a transaction on one screen and navigate to another page, it gives the warning message. This is expected. On click 'ok' I want to 'Rollback' any changes that were done. I also want to reset the state to 'non-dirty' so that the message does not popup on other screens over and again.
How do I achieve this?
Regards,
AmarHi,
maybe a rollback operation will solve your problem..
Additionally is your case related to this link?
http://adfbugs.blogspot.com/2009/09/unsaved-changes-uncommitteddatawarning.html
Regards,
Dimitris. -
How to correct CIF error Base unit of measure does not exist?
Dear experts,
I'm trying to cif a location product with base unit of measure KG in R/3 and alternative unit of measure well maintained.
it gives me a CIF queue saying that
"Base unit of measure ZXX does not exist (Product 0000000000000XXXXXX has not been created)"
I do not understand why, the unit ZXX does not exist in the alternative unit of measure for any of the materials managed
I also checked CUNI table and ZXX is not there neither in R/3 or APO,
Thanks for your help
ELooks like the Alternate UOM --Zxx is not maintained in APO.
2 ways to do this:
(1) program- RSIMPCUST
Re transfer all your UOM settings from R3 to APO
(2) Manual Maintenance in APO:
SPRO>SAP NETWEAVER>GENERAL SETTIGNS>Check UNits of Measurement
Thanks
Kumar -
Firefox hangs when a url that does not exist is entered
If I enter a url that does not exist, either by a typing mistake or clicking on a link that no longer exists (like in google searches), Firefox stops responding. I can't open a new tab, I don't get any message or error. I have to close Firefox. This started happening with Firefox 4 and it appears to happen more with Firefox 5.
I do not use a proxy so that is not the problem.hello, if you type '''about:plugins''' into the address bar of the browser it will show you the list of plugins including their file-path on your system - maybe it's possible to remove it this way...
-
How to view the date when the Customers credit limit updated in SAP-FSCM?
How to view the date when the Customers credit limit updated in SAP-FSCM?
OK you can look at field - LIMIT_CHG_DATE in the table - UKMBP_CMS_SGM via SE16
I would assume you would want to run it based on a date range. -
can anyone tell me how to handle time&date correctly?using Calendar,GregorianCalendar,TimeZone,Locale
thank you very muchThis is too large a topic to discuss in depth here. Here is a link to a tutorial on times and dates, and a search link that references many documents on the subject.
http://java.sun.com/docs/books/tutorial/i18n/format/dateintro.html
http://onesearch.sun.com/search/developers/index.jsp?and=calendar+&nh=100&phr=how+to&qt=¬=&field=&since=&col=javatecharticles&col=javatutorials&col=devall&rf=0&Search.x=20&Search.y=7
When you have specific questions, just ask. -
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
In BDC how you handled header data and item data
In BDC how you handled header data and item data
Raja,
Can you be more clear ?
Usually you load the header data one and then loop at the item data and then load the item data.
This example should help you.
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Regards,
Ravi
Note - Please mark all the helpful answers
Maybe you are looking for
-
10.6.2: Bad image quality with SIPS
I used to convert my PDF documents with SIPS like this: /usr/bin/sips --setProperty format jpeg --setProperty formatOptions high -z 400 200 sourcefilename.pdf --out targetfilename.jpg This results in a very bad image quality after updating to 10.6.2
-
Using S_RS_AUTH in VALUE HELP ?
Hi, thanks for your time. I have problems with the use of the subject to S_RS_AUTH in BI 7. For example, my object is ZCOUNTRY_CL and used 0COUNTRY with the "CL". In the "Value Help" from Visual Composer displays all countries, while in BI7 shows onl
-
Remove SAP Branding from Portal Logon 7.1
Hi, does anybody know how to remove the SAP Branding image from the logon page in 7.1? Unfortunatly we are not able to export / import the logonpage from the portal (around 40 errors if we try to build the original(! just export and import) logonpage
-
Please help me in Downloading KERNEL
HI, can anybody help me in downloading the KERNEL for NETWEAVER 2004S SR1. Please provide me the link to download. CHEERS BALU (09986829664)
-
Do not want to loose my playlists!
Hi! I'm planning for Christmas to change both computer (from Acer notebook to Apple iMac desktop) and iPod (Mini 6GB to Classic 120GB) but i'm afraid of loosing all my playlists because of DRMs. Is there any way to manage? Thanks