Query giving wrong values in portal but correct through RSRT
Hi,
Users are running a query through portal which is giving wrong figures. But when we are running the query through RSRT it is showing correct values. The quesry is built on top of an InfoCube which is regularly updated and data in it is matching with R/3.
This is an Inventory Valuation Query.
Please suggest what could be the possible issue.
BR,
Sayan
Hi,
Make sure cache is deleted for the particular query. While the report is executed through portal it refers the cache and if the data in the backend is not changed then the cache for a particular query selection is active and referred each time the query is run.
on other hand while running RSRT we have an option of not using cache and thus it refers the infoprovider and fetches the correct result. In this case cache could be invalid.
Try deleting the cache.
Regards,
Amit
Similar Messages
-
Puzzle why query returned wrong value for last record in update.
Hi all,
10.2.0.4, Windows 32 bit.
Apply 15% dis.count to related 5 items ( total amount 522 ) sorted by lowest amount first (amount = 1).
Last record ( amount = 200 ) will be the total dis.count amount ( 78.3 ) less applied accumulated dis.count amount ( 48.50 ).
Query runs fine without update clause but wrong result for last record with update.
CREATE TABLE "T1"
"ID" NUMBER NOT NULL ENABLE,
"ITEM_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"AMOUNT" NUMBER(10,2) NOT NULL ENABLE,
"dizcount" NUMBER(10,2)
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '101', 1, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '102', 1, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '201', 200, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '215', 155, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '111', 165, NULL ) ;
UPDATE t1 a
SET a.dizcount =
(SELECT
CASE
WHEN rec_count = row_count
THEN (78.3 - NVL(lag(temp_total,1) over ( order by rec_count) ,0))-- 78.3 is total dizcount amount from 522 * .15
ELSE disc_amt
END amt
FROM
(SELECT id,
item_id,
disc_amt,
rec_count,
row_count,
CASE
WHEN rec_count != row_count -- accumulate dizcount amount except for last record
THEN SUM(disc_amt) over (order by rec_count)
ELSE 0
END temp_total
FROM
(SELECT ID ,
item_id,
amount amt,
ROUND(amount * .15,1) disc_amt, -- dizcount is 15%
row_number () over (order by amount) rec_count,
COUNT ( *) over () row_count
FROM t1
WHERE ID = 65
GROUP BY id,
item_id,
disc_amt,
rec_count,
row_count
)b
WHERE a.item_id = b.item_id
);Regards
Zack
Edited by: Zack.L on Jul 26, 2010 1:26 AMZack.L wrote:
Query runs fine without update clause but wrong result for last record with update.Not sure why but looks like another case in favour of MERGE.
MERGE INTO T1
using (SELECT id, item_id,
CASE
WHEN rec_count = row_count
THEN (78.3 - NVL(lag(temp_total,1) over ( order by rec_count) ,0))-- 78.3 is total dizcount amount from 522 * .15
ELSE disc_amt
END amt
FROM
(SELECT id,
item_id,
disc_amt,
rec_count,
row_count,
CASE
WHEN rec_count != row_count -- accumulate dizcount amount except for last record
THEN SUM(disc_amt) over (order by rec_count)
ELSE 0
END temp_total
FROM
(SELECT ID ,
item_id,
amount amt,
ROUND(amount * .15,1) disc_amt, -- dizcount is 15%
row_number () over (order by amount) rec_count,
COUNT ( *) over () row_count
FROM t1
WHERE ID = 65
GROUP BY id,
item_id,
disc_amt,
rec_count,
row_count
))b
on (t1.id = b.id and t1.item_id = b.item_id)
when matched then update set dizcount = b.amt ;This worked for me. I tested on 11.2 but should work on 10.2.0.4
SQL> select * from t1 order by amount ;
ID ITEM_ID AMOUNT DIZCOUNT
65 101 1 .2
65 102 1 .2
65 215 155 23.3
65 111 165 24.8
65 201 200 29.8p.s. BTW, not sure if you want the column names in different cases, but your script, as it is, gave me an error (on 11.2) -
SBO SQL Query outputs zero values as nulls but need the zeros
Hi all,
I'm having a problem with a query I'm writing in SBO where if the field contents are zero, these are output as null.
I have a field for the stock usage on sales orders and ont too for production orders, but if I add these together they only provide a result if both columns contain a numeric value.
I've tried adding "0" to the column value, adding and subtracting "1" and also multiplying the value by "1" but still no joy.
I have also tried adding a "cast" statement to the column, but that doesnt seem to have an effect either (I think as this is more an output function).
I need to be able to use these columns as separate displays in addition to being used in a further column as part of a calculation.
If anyone has an idea how I can output a true zero value as opposed to a null value your help would be appreciated.
Cheers,
JHello Julian,
You could try to use a CASE Statement as I have shown below and test this will the SQL below. If you use the T0.LineNum without any CASE or CAST the LineNum 0 will show as blank in SAP.
SELECT
CASE WHEN T0.LineNum != 0 THEN CAST(T0.LineNum AS VARCHAR(10)) ELSE '0' END AS 'Row Number',
T0.ItemCode AS 'Item No.', T0.BaseQty AS 'Base Quantity', T0.PlannedQty AS 'Planned Quantity - Rows' FROM [dbo\].[WOR1\] T0 -
Date difference based on the conditions is giving wrong values
Hi,
In creating the formula for conditional date difference calculation,
i.e.,
if (sto date is 0) then (act date - mat rel date) else (sto date is not equal to 0) then (sto date - mat rel date)
So I tried with,
(sto date == 0) * (act date - mat rel date) + (sto date <> 0) * (sto date - mat rel date)
But I am getting a wrong value even with decimals as days can't be in decimals. Please suggest where I am going wrong in calculation.
Thanks,
Best Regards,
Darshan MSHi Darshan,
First of all, were the dates converted already to keyfigure?
If not, please check:
Convert a Characteristic into a Key Figure (BEx)
If they were already converted, try this:
(sto date == 0) * (act date - mat rel date) + (sto date - mat rel date)
Regards,
Loed -
Oralce query giving wrong data
Hi all oracle experts :
in oracle backend ( LOV ) user is selecting 'long text' instead of 'short text' and as a result user is getting wrong data Ship_To_Adress ( column ). here what i need is :
Upon data is coming from Long_Text table - it should not bring the wrong data Ship_To address.. It should give no value on the report.
feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
please go through the following query and make necessary changes. thanks in advance for your precious time valuable advice
looking the feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
Thanks in advance
Shiva
SELECT
wpsv.pick_slip_number "Pick Slip #",
wdd.source_header_number "Sales Order #" ,
wdd.source_line_number "Sales Order Line #" ,
nvl(round(ool.unit_selling_price,2),0) "unitsell price" ,
(nvl(round(ool.unit_selling_price,2),0))*nvl(wpsv.primary_qty,0) "Extended sell rice",
'*'||wpsv.transaction_id||'*' "Task ID" ,
wpsv.transaction_id "Task ID#" ,
msi.segment1 "Item",
msi.description "Item Description",
msi.segment1 || ' - ' ||msi.description "Item - Description",
wdd.requested_quantity_uom "UOM",
wdd.serial_number "Serial #",
wnd.delivery_id "Delivery#",
wpsv.from_subinventory "Pick from Sub-inventory",
wpsv.from_subinventory || ' - ' ||
SELECT
segment1||'.'||segment2||'.'||segment3||'.'||segment4
FROM
INV.MTL_ITEM_LOCATIONS
WHERE
inventory_location_id = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
) "Pick From",
SELECT
segment1||'.'||segment2||'.'||segment3||'.'||segment4
FROM
INV.MTL_ITEM_LOCATIONS
WHERE
inventory_location_id = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
) "Pick from Location",
wpsv.to_subinventory "Deliver to Sub-inventory",
select
segment1||'.'||segment2||'.'||segment3||'.'||segment4
from
inv.mtl_item_locations
where
inventory_location_id = wpsv.to_locator_id
) "Deliver to Location",
wpsv.primary_qty "Quantity to be Picked",
party.party_name||CHR(10)||
DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL, ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
NVL(h.shipping_instructions, '-') shipping_instructions,
NVL(h.shipment_priority_code,'-') shipment_priority_code,
NVL(OL.MEANING,'-') "Freight Terms",
NVL(FLV.meaning, '-') shipping_method,
NVL(QQA.quote_attachment, '-'),
RSA.name,
NVL(h.packing_instructions, '-') packing_instructions,
NVL(H.CUST_PO_NUMBER,'-') customer_po#
FROM
apps.oe_order_lines_all ool,
APPS.WSH_PICK_SLIP_V WPSV,
WSH.WSH_DELIVERY_DETAILS WDD,
INV.MTL_SYSTEM_ITEMS_B MSI,
WSH.WSH_DELIVERY_ASSIGNMENTS WDA,
WSH.WSH_NEW_DELIVERIES WND,
APPS.ORG_ORGANIZATION_DEFINITIONS ORG,
WMS.WMS_DISPATCHED_TASKS WDT,
APPS.OE_ORDER_HEADERS_ALL H,
APPS.HZ_CUST_SITE_USES_ALL SHIP_SU,
APPS.HZ_PARTY_SITES SHIP_PS,
APPS.HZ_LOCATIONS SHIP_LOC,
APPS.HZ_CUST_ACCT_SITES_ALL SHIP_CAS,
APPS.HZ_PARTIES PARTY,
APPS.FND_LOOKUP_VALUES FLV,
APPS.OE_LOOKUPS OL,
SELECT
OOH.header_id,
MAX(DECODE(rownum,1, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,2, FDST.short_text, ''))||MAX(DECODE(rownum,3, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,4, FDST.short_text, '')) quote_attachment
FROM
APPS.FND_ATTACHED_DOCUMENTS FAD
, APPS.FND_DOCUMENTS_TL FDT
, APPS.FND_DOCUMENTS_SHORT_TEXT FDST
, APPS.FND_DOCUMENTS FD
, APPS.FND_DOCUMENT_CATEGORIES_TL FDC
, APPS.OE_ORDER_HEADERS_ALL OOH
, APPS.ORG_ORGANIZATION_DEFINITIONS OOD
WHERE
OOD.organization_id =?Organization ? AND
OOH.ORDER_NUMBER = ?SO#? AND
OOH.org_id = OOD.operating_unit AND
TO_CHAR(OOH.header_id) = FAD.pk1_value AND
FAD.document_id = FDT.document_id AND
FAD.entity_name = 'OE_ORDER_HEADERS' AND
FDT.media_id = FDST.media_id AND
FDT.language = 'US' AND
FAD.document_id = FD.document_id AND
FD.category_id = FDC.category_id AND
FDC.language = 'US' AND
FDC.user_name ='APS_Pack/AR Invoice/CI/SO Ack Printing'
GROUP BY
OOH.header_id
) QQA
, APPS.RA_SALESREPS_ALL RSA
WHERE
wpsv.move_order_line_id =wdd.move_order_line_id AND
(wdd.source_header_number = ?SO#? ) AND
wdd.inventory_item_id = msi.inventory_item_id(+) AND
wdd.organization_id = msi.organization_id(+) AND
wdd.delivery_detail_id = wda.delivery_detail_id AND
wda.delivery_id = wnd.delivery_id(+) AND
wdd.organization_id = org.organization_id AND
wdt.TRANSACTION_TEMP_ID(+)=wpsv.transaction_id AND
wdt.organization_id (+) =?Organization ? AND
wdd.organization_id =?Organization ? AND
wdd.source_header_number = h.order_number AND
h.salesrep_id = RSA.salesrep_id(+) AND
h.org_id = RSA.org_id(+) AND
h.org_id = org.operating_unit AND
SHIP_PS.party_id = PARTY.party_id(+) AND
H.ship_to_org_id = SHIP_SU.site_use_id(+) AND
SHIP_SU.cust_acct_site_id = SHIP_CAS.cust_acct_site_id(+) AND
SHIP_CAS.party_site_id = SHIP_PS.party_site_id(+) AND
SHIP_LOC.location_id(+) = SHIP_PS.location_id AND
H.shipping_method_code = FLV.lookup_code(+) AND
FLV.lookup_type(+) = 'SHIP_METHOD' AND
FLV.language(+) = 'US' AND
QQA.header_id(+) = TO_CHAR(H.header_id) AND
wpsv.line_status = 'UNPICKED' AND
H.FREIGHT_TERMS_CODE=OL.LOOKUP_CODE(+)
AND OL.LOOKUP_TYPE(+) ='FREIGHT_TERMS' AND
OOL.header_id = wdd.source_header_id(+) AND
OOL.line_id = wdd.source_line_id(+) AND
EXISTS(
SELECT
'Y'
FROM
INV.MTL_ONHAND_QUANTITIES_DETAIL OHQ
WHERE
WDD.inventory_item_id = OHQ.inventory_item_id AND
WDD.organization_id = OHQ.organization_id AND
WPSV.from_subinventory = OHQ.subinventory_code
GROUP BY
'Y'
HAVING
SUM(transaction_quantity) >0
ORDER BY
2, 11, 12, 6, 3Thank you very much indeed for your reply - yes youre right. in oracle backend there are dropdown selections : 1) short text and 2) long text. as per the table user has to select short text so that he will get the correct output , but if by mistake user selects long text then the table is pulling wrong data. so here we need the query to be changed if user selects long text report shouldnt show any data..
i am not sure but as per my little knowledge in oracle i believe that the problem is lying in the folloiwng query line.. please help me out in this regard. i have a screen shots of oralce backend where user is selecting long text / short text but here theres no option of inserting the files...
DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL, ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
Thank you very much once again
Shiva -
Below is the query thats giving me wrong results ...can anyone help me figure where i am going wrong :(
SQL> select count(*) from t where source='LP1.1';
COUNT(*)
69
SQL> select count(*) from tblspring where line_a='LP1.1';
COUNT(*)
233now when i join these two table ...the total counts exceeds the expected records that i want
SQL> select count(*) from t , tblspring where t.source=tblspring.line_a and t.source='LP1.1';
COUNT(*)
16077the thing is i want to filter only those records from table t where the column named - source is equal to the column named line_a from table tblspring from the query in table t i get 69 records ....
now when i match the it table tblspring with the condition
i want the number of records should be less than or equal to 69 but not more than 69
Edited by: Suhail Faraaz on Mar 5, 2011 7:31 AM -
Loaded data got some wrong values how do i correct
Hi all,
Is any one please tell me how to rectify this error,
I loaded data using flat files but some records i have entered wrong data(values) how can i enter correct values,,
thanks,
sidharthaHi..
Go to Monitor screen to check the failed record and click on it to see the Header
Double click on data target in the above screen to go to the data target:
Double click takes you to the Manage Data Target screen, click on Request tab and look for the records in red and delete them:
in manage screen click on Data Target..
delete them ....
if u can u delete them in PSA and reload the data..
1. Go to PSA
2. At the top level of the tree, search the for required source
3. Right click on Customer:Item level and chose Delete PSA Data
Verify the DataSource is the correct one
Chose the criteria to delete, this could be different depending of what we want to delete.
Click the start button, a background job will star
and re-load ...
with regards,
hari -
I am trying to look for sub programs that use the synonyms in the schema.I wrote the following query.But its giving strange output.
select usy.synonym_name, us.text, us.name, us.type
from user_synonyms usy, user_source us
where upper(us.text) like ('%' || usy.synonym_name || '%')
and usy.synonym_name in
(select synonym_name
from user_synonyms us
where us.synonym_name <> us.table_name
and table_owner = 'XYZ')
order by usy.synonym_nameOutput
synonym_name text
txn_deposit select pir_detail_txn.instrument_amnt
I wonder why txn.instrument is taken same as txn_instrument which is the synonym name??where name like 'txn_instrument'
give all outputs like
txn_instrument
txn.instrument
txn1instrument
txn2instrument .......
but
where name like 'txn\_instrument' escape '\'
gives only txn_instrument
~Praveen -
Hi
Could anybody tell me why this query is giving the wrong result? The column 'Spend for Selected Period' is showing as far too much (ie exactly 11 times too much!!!) when totalling the 37 invoices involved
SELECT T0.[CardCode], T0.[CardName],T0.[MailCity] AS 'Town', T2.[SlpName] AS 'Rep',
SUM(T1.DocTotal - T1.VatSum) AS 'Spend for Selected Period', MAX(T3.CreateDate) AS 'Last Visit Date'
FROM OCRD T0 left JOIN OINV T1 ON T0.CardCode = T1.CardCode LEFT JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode LEFT JOIN OSCL T3 ON T0.CardCode = T3.Customer
where T0.[CardCode] = 'wyk027/34' AND T1.DocDate BETWEEN '20090101' AND '20091231'
GROUP BY T0.[CardCode], T0.[CardName],T0.[MailCity], T2.[SlpName]
Thanks
SteveHi ,
It seems like it is duplicated by the number of service calls.
Try this one:
SELECT T0.CardCode, T0.CardName,T0.MailCity AS 'Town', T2.SlpName AS 'Rep',
SUM(T1.DocTotal - T1.VatSum) AS 'Spend for Selected Period', (select MAX(T3.CreateDate) from OSCL T3 where T0.CardCode = T3.Customer) AS 'Last Visit Date'
FROM OCRD T0 inner JOIN OINV T1 ON T0.CardCode = T1.CardCode inner JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
where T0.CardCode = '10001' AND T1.DocDate BETWEEN '20090101' AND '20091231'
GROUP BY T0.CardCode, T0.CardName,T0.MailCity, T2.SlpName
Best regards,
Maya -
Still image pixel aspect ratio wrong in exported video (but correct in Premiere renders)
I've saved a targa still image from my footage and added it to the bin. It's properties show as follows:
Image Size: 1440 x 1080
Pixel Aspect Ratio: 1.3333
This correctly matches my sequence settings as I'm working with 1080p widescreen footage.
The image appears as expected in the Program window both before and after rendering previews. However, once I export my sequence as a video file, the still image is squashed (displaying incorrectly):
A work around would be to stretch out the still to a width of 1920 in Premiere so that the export displays it back at its normal aspect ratio - which works - but I don't understand why I should have to do this.
The other solution I found was to go to the bin and 'Modify > Interpret Footage' and although "Use Pixel Aspect Ratio from File" already shows the correct settings, to actively reset it (to the same pixel aspect ratio) with the 'Conform to' option:
This works too.
Surely a bug?
(using Premiere Pro CC)Thanks for the quick reply. But then why does the still's properties (in my bin) show the pixel aspect ratio as 1.3333 (not square pixels, 1.0) and should it not appear incorrectly in both the preview renders and the exported video ? This seems inconsitent to me.
-
The new AC/DC I downloaded has Adele and Aldo Nova (current songs on my iphone) as the album covers, how can i fix them to the correct ones. In my itunes account they are correct, just not on my iphone 4s.
So I purchased Navigon app on my iphone 4 with my iTunes account id then got a new iPhone 4s and signed in with the required Apple ID and now Navigon app does not recognize me as its owner. When I try to restore purchases I make on the app it tells me to buy it first. The problem seems to be it defaults to my Apple ID when I am asked for a password and does not give me the option of using my iTunes account ID and password which is what I used when I purchased the app. HELP?
-
F4 help Not Working in Portal but working in RSRT and BEx
Hi All,
We have a report in which a customized infoobject is used as one of the selection criteria. This field is a navigational attribute of main infoobject. There are other two navigational attributes of this infoobjects as well in the selection critera.
When we run the report using portal and click on F4 for this variable, it is not reading master data whereas it is working fine if we are using RSRT or BEx.
The other two variables are working fine in the portal as well.
Please help us incase if you have encountered such problem.
Thanks,
DineshHi Imran,
thanks for the reply.
I will explain the problem in detail
We have a query Q1 and its web template WT_Q1. We have the infoobjects a, b, c and d. the infoobjects b,c and d are the navigational attributes of the infoobject a. We have a cube C01 where all of these infoobjects are used.
All the Infobjects are the selection variables in the Query Q1 which are actually the navigational attributes.
When we F4 on c or d, it is picking up the master data and displaying it iin portal as well as BEx or RSRT.
But the F4 on "B", it is not displaying in portal whereas in BEX or RSRT we are able to get the master data values.
On further analysis, i have found that it is not hitting the specific SQL code from where the master data objects are read.
Hope this is clear.
Thanks,
Dinesh -
Pass variable values between Applications,but not through URL.
Greetings,
My objective is to pass a value from one page in one application to another page in a diferent application.
I am aware through some posts i ahve read in the forum that it is possible to pass the value through URL,
however besides being unable to do so i don't want the user to be able to see the value in the url.
Also it may be a big value and there are URL size limitations as well as not looking pleasant.
I have considered keeping the value in a database field, but i would like to use this only as a last resort since the value is temporary and when it gets to destination page it will disapear.
Anyone is aware of a solution for my problem?
My Homepage
Best RegardsHi Igor,
I don't know if the APEX_UTIL. [SAVEKEY_NUM|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#sthref2583] / SAVEKEY_VC2 functions work across apps, but you could try. The other thing you could try is setting a cookie using the [OWA_COOKIE|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/w_cook.htm] package.
--Jennifer -
Problem when querying OLAP for Value based hierarchy
Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
the strange part is if I only put one value, it will work perfectly
for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
but if I put multiple value to the list
CF_HIER::426362
CF_HIER::424470
CF_HIER::429073
CF_HIER::424230
then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
this is the code how I guery
////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
String[] elementIdArr = new String[elementIdList.size()];
int i = 0;
for (Long elementId: elementIdList) {
String elementIdStr ="";
if (hierarchy instanceof MdmLevelHierarchy)
elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
level.getName()+dimension.getValueSeparationString()+
level.getName()+"_"+elementId;
else
elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
elementId;
elementIdArr[i++] = elementIdStr;
Source myList = dp.createListSource(elementIdArr);
result = hierarchy.getSource().selectValues(myList);
Source joinedSource = measure.getSource();
joinedSource = joinedSource.join(result );
is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
thanksHi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
the strange part is if I only put one value, it will work perfectly
for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
but if I put multiple value to the list
CF_HIER::426362
CF_HIER::424470
CF_HIER::429073
CF_HIER::424230
then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
this is the code how I guery
////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
String[] elementIdArr = new String[elementIdList.size()];
int i = 0;
for (Long elementId: elementIdList) {
String elementIdStr ="";
if (hierarchy instanceof MdmLevelHierarchy)
elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
level.getName()+dimension.getValueSeparationString()+
level.getName()+"_"+elementId;
else
elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
elementId;
elementIdArr[i++] = elementIdStr;
Source myList = dp.createListSource(elementIdArr);
result = hierarchy.getSource().selectValues(myList);
Source joinedSource = measure.getSource();
joinedSource = joinedSource.join(result );
is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
thanks -
Webi base on BW query based on Infoset comes back with wrong values
Hello:
I have a Webi report on an OLAP Universe, on Bex Query.
The bex query is based on 1 INFOSET.
When I run the webi report the values that comes back a totally wrong values.
The correct results are not brought back.
When I do a test with crystal reports to the infoset, I can see the correct values. (I'm aware crystal uses different drivers).
The test is BW query designer, and crystal brings back proper values from Infoset based BW query.
Webi on Infoset based BW Query comes back with wrong data.
query is simple.
Pull in 3 attributes, 3 key figures, where componentkey = "111"
I get 36 rows in Crystal and 36 rows in Bex Analyzer, 36 rows in BW query designer (web analyzer).
I get many rows in webi (almost like a CARTENSIAN product).
I search a round this forum but still did not see a conclusive answer to this problem.
But I see another thread that several others faced this same issue without a resolution.
My environment.
BOE XI 3.1 SP2
No fix packs
SAP IK 3.1 SP2
HPUX-IA64
Thanks in advance for any help.
DwayneWas this problem ever solved?
I am having a similar problem with an infoset based query.
I have created the BW infoset, and confirmed that the correct data is returned from the underlying infoproviders. A simple BW query on that infoset yields the same results.
Create the universe, and then the WEBI, and WEBI now shows hundreds of records where I expect 10. Data is being returned in WEBI that definitely shouldn't be there. It's almost like the restrictions applied in the characteristic restriction area of my BW query are being ignored, even if I include them in the WEBI query.
Cheers,
Andrew
Maybe you are looking for
-
Can I store an iPhoto library on Time Capsule?
I would like to store my iPhoto library externally. Can I store it on my Time Capsule or do I need an additional, external hard drive?
-
Share iCloud drive with family members
Has anybody figured out how to share iCloud drive with family members? I was using Amazon Cloud drive which used to have an app you could download and imbed into Finder, but with OS X 10.1 this is no longer supported so I've switched over to iCloud d
-
How to use a bind variable in an IN clause
I am trying to use a bind variable in an IN clause where the column is a varchar2 type. Something like: select * from test where test_column in (:bindVariable)I have tried assigning the bind variable comma separated strings (eg. test,test,test) and c
-
I lost all my music while trying to download more music on itunes. How do i get my music back? Please help.
-
Run a large audio file in application
i tried the code available for the audio file there was a problem i could'nt run the code with a 5.5Mb ".wav" file thanking you