Multiprovider Query Problem
Hi Gurus,
The scenario is that there are 2 inficubes, one with order data and other with delivery data. The cube with order data has the requested delivery date and the delivery cube has the actual delivery date. The problem is that I have a query on a multiprovider (on top of the 2 cubes). So when I output the query data by the sales order number, the result is fine, but when I drill down on any of the dates mentioned above ( they are free characteristics in the query), the result splits up into 2 records. For Eg.
Sales Order Req Del Date Act Del Date Order Qty Shipped Qty
12345 03/03/08 - 5 -
- 06/03/08 - 5
What can I do to get the result in one row?
I will reward points for any help.
Thanks
This is the behavior of the multiprovider, since the actual goods issue date is not part of the orders cube, then it will create a second record. There are a couple solutions you could get around to this:
1. You could merge the data in one DSO before you actually load it to the data target. To do this, you could update fields you need to the orders ods from the delivery ods.
2. You could create an infoset between the two cubes if you are in 7.0, otherwise, you could create infoset using the underlying ods and create a query from the infoset: performance wise this is not recommended.
3. If you want to solve the issue report level, there is what is called constant selection and you can make the actual goods issue date as a constant selection and you can get one line.
/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection
I would recommend the last option,
thanks.
Wond
Similar Messages
-
MDX Query Failed to execute when universe created on MultiProvider Query
Hi All,
I am running the WebI report created on the universe which is built on Query.
The data flow model in our system for this query is:
Data Store Object> Infoset-> multiProvider--->Query.
When I drag only on Dimension object in the Webi Report without any Prompts the report works fine.
But when I add any other Dimension or any Prompt in the WebI Query it gives me following error:
A database error occured. The database error text is: The MDX query SELECT { [Measures].[4EGM09GXGU939C3RJH2G9DOQY] } ON COLUMNS , NON EMPTY CROSSJOIN( [Z_WM_IS01___F1].[LEVEL01].MEMBERS, [Z_WM_IS01___F12].[LEVEL01].MEMBERS ) DIMENSION PROPERTIES [Z_WM_IS01___F12].[2Z_WM_IS01___F12], [Z_WM_IS01___F1].[2Z_WM_IS01___F1] ON ROWS FROM [ZWM_M02/Z_ZWM_M02_Q001] failed to execute with the error Unknown error. (WIS 10901)
But if i create the Universe on Query which is built on DSO then WebI is working fine.
Is there any restrictions on using Query on multiprovider?
Or do I have to make any configuration at BO server?
How do I configure logging for WebI and Designer to check the Log records?
Do I have to change anything related to any MDX Parser in BO Server?
We are using folowing versions:
SAP BI 7.0 and BOXIR3.1
Request to pls help me to solve this problem.Thanks Ravi for ur inputs.
The report is working fine now.
There was the problem with the Mandatory prompts defined in SAP BI Query on which universe was developed.
U should have only those Prompts as mandatory in SAp BI Query which are Universe level prompt, if some mandatory prompts defined as Class level promts in universe then the MDX Query generated based on WEBI report will not Execute. -
Issue in multiprovider/query data
Hi all,
I'm seeing an issue with my data in multiprovider/query which I cannot understand.
I have a multiprovider with a cube. I'm able to see data in the cube with a certain restriction but when I put the same restriction in the multiprovider I'm not able to see the data. I have a query with the same restriction as well and there too the results are not showing.
I have checked the assignment in the multiprovider and it is correctly assigned i.e. from the cube from where I want the data.
When I tried to display data in the multiprovider without any key figures selected then the data shows up correctly. Why is this happening and what can I do to fix this?
ThanksHi,
First check report data by using 0infoprov iobj in multi provider and restrict with cube . check either you are getting same data or not as cube including kfg's.
able to see data in the cube with a certain restriction : what type of restriction's applied if possible give detail.
Thanks. -
Hello APEX people,
I posted my problem here:
Designing LOV Query Problem
What I have is a sequence like this:
CREATE SEQUENCE
DR_SEQ_FIRST_SCHEDULE_GROUP
MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
CACHE 6 ORDER CYCLE ;
What I need would be a SQL query returning all possible values oft my sequence like:
1
2
3
4
5
6
7
I want to use it as a source for a LOV...
The reason why I use the cycling sequence is: My app uses it to cycle scheduling priorities every month to groups identified by this number (1-7).
In the Admin Form, I want to restrict the assignment in a user friendly way - a LOV.
Thanks
JohannHere ist the solution (posted by michales in the PL/SQL forum):
SQL> CREATE SEQUENCE
dr_seq_first_schedule_group
MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
CACHE 6 ORDER CYCLE
Sequence created.
SQL> SELECT LEVEL sn
FROM DUAL
CONNECT BY LEVEL <= (SELECT max_value
FROM user_sequences
WHERE sequence_name = 'DR_SEQ_FIRST_SCHEDULE_GROUP')
SN
1
2
3
4
5
6
7
7 rows selected. -
SQL+-MULTI TABLE QUERY PROBLEM
HAI ALL,
ANY SUGGESTION PLEASE?
SUB: SQL+-MULTI TABLE QUERY PROBLEM
SQL+ QUERY GIVEN:
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
DLC_POLYMORPHS_NORMAL_VALUE FROM PATIENTS_MASTER1, HAEMATOLOGY1,
DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM AND PATIENT_NUM = DLC_PATIENT_NUM AND PATIENT_NUM
= &PATIENT_NUM;
RESULT GOT:
&PATIENT_NUM =1
no rows selected
&PATIENT_NUM=2
no rows selected
&PATIENT_NUM=3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 4
HMTLY_RBC_NORMAL 4.6-6.0
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
ACTUAL WILL BE:
&PATIENT_NUM=1
PATIENT_NUM 1
PATIENT_NAME BBBB
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 5
HMTLY_RBC_NORMAL 4.6-6.0
&PATIENT_NUM=2
PATIENT_NUM 2
PATIENT_NAME GGGG
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 42
DLC_POLYMORPHS_NORMAL_VALUE 40-65
&PATIENT_NUM=3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 4
HMTLY_RBC_NORMAL 4.6-6.0
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
4 TABLES FOR CLINICAL LAB FOR INPUT DATA AND GET REPORT ONLY FOR TESTS MADE FOR PARTICULAR
PATIENT.
TABLE1:PATIENTS_MASTER1
COLUMNS:PATIENT_NUM, PATIENT_NAME,
VALUES:
PATIENT_NUM
1
2
3
4
PATIENT_NAME
BBBB
GGGG
KKKK
PPPP
TABLE2:TESTS_MASTER1
COLUMNS:TEST_NUM, TEST_NAME
VALUES:
TEST_NUM
1
2
TEST_NAME
HAEMATOLOGY
DIFFERENTIAL LEUCOCYTE COUNT
TABLE3:HAEMATOLOGY1
COLUMNS:
HMTLY_NUM,HMTLY_PATIENT_NUM,HMTLY_TEST_NAME,HMTLY_RBC_VALUE,HMTLY_RBC_NORMAL_VALUE
VALUES:
HMTLY_NUM
1
2
HMTLY_PATIENT_NUM
1
3
MTLY_TEST_NAME
HAEMATOLOGY
HAEMATOLOGY
HMTLY_RBC_VALUE
5
4
HMTLY_RBC_NORMAL_VALUE
4.6-6.0
4.6-6.0
TABLE4:DIFFERENTIAL_LEUCOCYTE_COUNT1
COLUMNS:DLC_NUM,DLC_PATIENT_NUM,DLC_TEST_NAME,DLC_POLYMORPHS_VALUE,DLC_POLYMORPHS_
NORMAL_VALUE,
VALUES:
DLC_NUM
1
2
DLC_PATIENT_NUM
2
3
DLC_TEST_NAME
DIFFERENTIAL LEUCOCYTE COUNT
DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE
42
60
DLC_POLYMORPHS_NORMAL_VALUE
40-65
40-65
THANKS
RCS
E-MAIL:[email protected]
--------I think you want an OUTER JOIN
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
DLC_POLYMORPHS_NORMAL_VALUE
FROM PATIENTS_MASTER1, HAEMATOLOGY1, DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM (+)
AND PATIENT_NUM = DLC_PATIENT_NUM (+)
AND PATIENT_NUM = &PATIENT_NUM;Edited by: shoblock on Nov 5, 2008 12:17 PM
outer join marks became stupid emoticons or something. attempting to fix -
Problem in Multiprovider Query
Hi Experts,
I had developed an query on Multiprovider, which is on MM & PP Cube. In the Query Designer,i had created some new selection with two characteristics restriction ( MOvement Type & Trans/Ev Type) and with a key figure.In the restriction part first i have'nt restricted any "#" value.when I run the query i'm not able to see any value as an output.But If I restrict with "#"..I'm able to see values only to #.
But there are Characteristics values for the restriction value.
Please help me to over come this problem.
Regards,
SPSSPS,
First I would ask you to validate your multiprovider , are you sure that the joins are right ?
One way to check the same is to have data from all concerned objects in one query and this should include the field(s) of union ( which you have specified in the identification part )
If you get the data in one single row without any mismatches , then your design is right and you can go ahead with trouble shooting the query.
Arun
Assign points if useful -
Hi All,
Just need some help on this:
Scenario: I created a query on the stats multiprovider.
The query shows exceptions (red / green) indicating that data is loaded successfully to data targets or not.Red for failure and green for success.It is just supposed to show colors as it is used by end users.
Problem : What happens is at times wen data is loaded fine to the data targets but 0 records updated its showing red! which is a concern as its quite misleading for users. they are taking it to be data load failed though its actually a zero records update through full -update.Now i checked the table RSDDSTATWHM for such requests.There seems to be no entries in that table too.
Is it connected or can some one suggest how to handle this scenario.Its again a production environment and needs quick resolution.....tell me if you want to knw more about it..........Check your traffic light settings in transaction SPRO?
It's under the following path or similar path:
SAP BIW => Automated Processes => Monitor Settings => Set Traffic Light Color.
Don't forget the points if that helps...
Ken -
Multiprovider query : Display issue
Hi BWers,
I have a query based on a multiprovider. Multiprovider consists of 2 cubes, which have Sales Order & Item No in common. Example data is at the end of post.
When Sales Order & Item are displayed, I can display any char/keyfigure from any cube without problem (via constant selection)
BUT when I remove the drilldown for sales order and item, I can't display correct results for the rest characteristics/keyfigures.
Is it not possible, <b>not to display the common characteristics</b> and display <b>the total results for other infoobjects</b> ??
Thanks,
Rozz
Cube 1
Sales Order No Sales Item No Quantity
100 10 75
100 20 25
110 10 40
Cube 2
Sales Order No Sales Item No Color
100 10 Blue
100 20 Red
110 10 Blue
Sales Order No Sales Item No Quantity
100 10 75
100 20 25
110 10 40
<b>Desired Report</b>
Color Quantity
Blue 115 (75 + 40)
Red 25
Message was edited by: RozzHi again,
Thanks for your responses.
I can get the right values if I display Order & Item on query.. They exist in both cubes.No problem till here.
What I need is, to display other values <b>without</b> displaying Order & Item details. For example, how many materials did I sell for every color type, without order /item detail.
Hope it's more clear now..
Rozz -
Let me explain you the Multiprovider report with example .
Multiprovider is created based on Basic cube and DSO . Basic cube has Billing doc number in line item dimension .
DSO has Billing document number , Item number and Partner function as primary key.
I have Created one diemension on Multiprovider where I have assigned Billing document number , and other 2 data fields from DSO which are not available in Cube . Is it correct design ?
DSO have below records .. - Doc no , Item and PF are primary key of DSO .
Billing doc no Partner function Personal Number Customer number
100 ER 1
100 Y1 555
100 Y2 111
In Cube I have below records -
Billing doc no Sales Org Netvalue Total sale
100 001 $ 3000 $3200
200 001 $ 5000 $5100
When I execute the report based on MP by partner function i should get below result.
Billing doc PF Personal Number Customer number Netvalue Total sales
100 ER 1 555 3000 3200
Is it possible ?
Let me know if my question is not clear .
RegardHi
Multiprovider is a union of infoproviders.So you can achieve the report you want by building a Multiprovider with the Cube and DSO.You have to assign the Billing doc no to both Cube and DSO during the craetion of the Multiprovider.
When you execute the report on the MP on Purchase Order, all the values of Billing doc no will be fetched from both cube and DSO(as MP is a union).
According you can set a filter to fetch only specfic data from a specific part-provider of the Multiprovider.
Also At query Designer level a InfoObject : 0INFOPROV will be available which will give and option to fetch the data only from a specifi part provider of MP if required.
help link : http://help.sap.com/saphelp_erp2004/helpdata/EN/52/1ddc37a3f57a07e10000009b38f889/content.htm
Hope this helps!!
Regards, Hyma -
Reg: Query Problem for New Posting Period
Hi Xperts,
While I try to Map the A/P Invoices with their respective Outgoing Payment,
I used the following Query and it's Query Printlayout
SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date],
T0.CardCode, T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
T2.NumatCard [Bill No.], T2.DocDate [Bill Date], T1.selfInv,
T1.SumApplied, T1.WtAppld, T0.NoDocsum
FROM [dbo].[OVPM] T0 INNER JOIN
[dbo].[VPM2] T1 ON T1.[DocNum] = T0.DocNum
INNER JOIN [dbo].[OPCH] T2 ON T2.[DocEntry] = T1.DocEntry
WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and
T0.DocNum='[%2]'
I got the above query from our Expert Mr.Sambath only.
Now what is the problem is the query is retrieving the payment details of old Posting Period only and not the current posting period.
In detail, I used 'Primary' Series for FY08-09, Period indicator 'Default'
Now I'm using 'Primary1' Series for FY09-10, Period indicator '0910'
Thanx in adv.
Regards,
BalaHi Bala,
Looking at your query, it is not query issue ,it is your data issue.
Please check if you have data in VPM2 table which is bank transfer payment method
Thank you
Bishal
Edited by: Bishal Adhikari on Apr 9, 2009 8:48 AM -
Hi Greg,
I had created a view on a table which doesn't have Primary Key, but it has Unique and Not Null constraints on required columns.
I had wrote a procedure to query the data on VIEW. I have experienced strange problem, very first call to procedure will take more time than succeeding requests. For example from second request onwards, it returns data in < 2 Sec, but first transaction is taking 12 Sec to 30 Sec.
I thought that very first time VIEW is taking time to refresh it self. So, I added FORCE keyword in CREATE VIEW stattement. However, that doesn't helped out.
In my further investigation I came to know that base table on which VIEW created, has to be loaded in to memory before querying on VIEW.
So, I had executed a simple select statement on base table, before I execute VIEW query in procedure.
With this change I got results consistently < 2 Sec all the times.
My question is instead of executing the select statement on base table is there a way to load base tables data in memory before querying on VIEW?
Thanks,
SubbaraoHi,
A view is nothing but parsed SQL statements stored in the database, a view may or may not run faster. If you execute the SQL used to define the view how much time is it taking. If you want try looking at MATERIALIZED VIEW , that may help you.
thanks -
Date range query problem in report
Hi all,
I have created a report based on query and i want to put date range selection but query giving problem.
If i am creating select list selection then it is working fine means it will display all records on the particular date.
But what i need is that user will enter date range as creation_date1,creation_date2 and query should return all the records between these date range. i want to pass it by creating items, i created two items and passing creation_date range to display all records but not displaying and if not passing date then should take null as default and display all records
Here is the query:
/* Formatted on 2006/12/10 20:01 (Formatter Plus v4.8.0) */
SELECT tsh."SR_HEADER_ID", tsh."SALES_DEPT_NUMBER", tsh."COUNTRY",
tsh."LOCAL_REPORT_NUMBER", tsh."ISSUE_DATE", tsh."SUBJECT",
tsh."MACHINE_SERIAL_NUMBER", tsh."MACHINE_TYPE", tsh."MACHINE_HOURS",
tsh."STATUS"
FROM "TRX_SR_HEADERS" tsh, "TRX_SR_PARTS" tsp
WHERE (tsh.status LIKE :p23_status_sp OR tsh.status IS NULL)
AND (tsh.machine_type LIKE :p23_machine_type_sp)
AND ( tsh.machine_serial_number LIKE
TO_CHAR (:p23_machine_serial_number_sp)
OR tsh.machine_serial_number IS NULL
AND ( TO_CHAR (tsh.failure_date, 'DD-MON-YY') LIKE
TO_CHAR (:p23_failure_date_sp)
OR TO_CHAR (tsh.failure_date, 'DD-MON-YY') IS NULL
AND ( TO_CHAR (tsh.creation_date, 'DD-MON-YY')
BETWEEN TO_CHAR (:p23_creation_date_sp)
AND TO_CHAR (:p23_creation_date_sp1)
OR TO_CHAR (tsh.creation_date, 'DD-MON-YY') IS NULL
AND (tsh.issue_date LIKE :p23_date_of_issue_sp OR tsh.issue_date IS NULL)
AND (tsh.country LIKE :p23_country_sp OR tsh.country IS NULL)
AND ( tsh.local_report_number LIKE TO_CHAR (:p23_local_rep_num_sp)
OR tsh.local_report_number IS NULL
AND ( tsp.part_number LIKE TO_CHAR (:p23_part_number_sp)
OR tsp.part_number IS NULL
AND tsh.machine_type IN (
SELECT DISTINCT machine_type
FROM trx_sales_dept_machine_list
WHERE sales_department_id IN (
SELECT DISTINCT sales_department_id
FROM trx_user_sales_department
WHERE UPPER (user_name) =
UPPER ('&APP_USER.'))
AND SYSDATE >= valid_from)
AND tsh.sr_header_id = tsp.sr_header_id
can any one tell me wat is wroung in this query.
Any other way to write this?
Thank You,
AmitHi User....
Here is some date range SQL that my teams uses with some success:
For date columns that do not contain NULL values, try this (note the TRUNC, it might help with your "today" problem).
The hard coded dates allow users to leave the FROM and TO dates blank and still get sensible results (ie a blank TO date field asks for all dates in the future.
AND TRUNC(DATE_IN_DATABASE)
BETWEEN
decode( :P1_DATE_FROM,
TO_DATE('01-JAN-1900'),
:P1_DATE_FROM)
AND
decode( :P1_DATE_TO,
TO_DATE('31-DEC-3000'),:
:P1_DATE_TO)
For date columns that contain NULL values, try this (a little bit trickier):
AND nvl(TRUNC(DATE_IN_DATABASE),
decode( :P1_DATE_FROM,
decode( :P1_DATE_TO,
TO_DATE('30-DEC-3000'),
NULL),
NULL)
BETWEEN
decode( :P1_DATE_FROM,
TO_DATE('01-JAN-1900'),
:P1_DATE_FROM)
AND
decode( :P1_DATE_TO,
TO_DATE('31-DEC-3000'),
:P1_DATE_TO)
Note the 30-DEC-3000 versus 31-DEC-3000. This trick returns the NULL dates when the FROM and TO date range items are both blank.
I hope this helps.
By the way, does anyone have a better way of doing this? The requirement is given a date column in a database and a FROM and a TO date item on a page,
find all of the dates in the database between the FROM and TO dates. If the FROM date is blank, assume the user want all dates in the past (excluding NULL dates). If the TO date is blank, assume that the user wants all of the dates in the future (excluding NULL dates). If both FROM and TO dates are blank, return all of the dates in the databse (including NULL dates).
Cheers,
Patrick -
Multiprovider assigning problem
Hi all,
There are 4 DSOs assigned to a Multiprovider.
One DSO is showing data at DSO level.But it is not showing for Multiprovider.
Moreover if we check 0infoprov in multiprovider.
It is not showing that DSO.
Please sugegst.
Thanks in advanceHi Pallavi,
Do you have common characterestics in all the 4 DSOs you are suing in the MP? If not you may face this kind of situation whike executing the query. Please have a look at the posts on Multi Provider in SDN, may be they will give you some idea on this. -
Hi All,
I have a multiprovider which is based on two cubes.There are some characterstics which are simliar in cubes like sales doc,item,ship_to,sold_to.The scenario is as follows:- The key figure on which I am reporting is from Cube2 and there is mix of charecterstiics from both the cubes used in the report,The problem is that cube 2 is not having SHIP_TO party informtion for all the sales doc,items but Cube1 always has ship_to info.So while reporting for some records blank value is coming for ship_to which coild be avoided if the report always take ship_to from Cube1.How it can be achieved?HI ,
you can overcome this issue , follow the steps in the how to document by sreekanth
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70dcd7b5-6a3d-2d10-c984-e835e37071a2?quicklink=index&overridelayout=true
Hope this helps,
Sathya -
Multiprovider transport problem
Hello Friends ,
While transporting the multiprovider from BW Development to BW Testing system I am getting following error in the Log display of BW Testing System,
R3TRMPRO***(Multiprovider name) was repaired in this system.
The log display for the Delevelopment system shows messages 'Feedback after export or import'--'Successfully Completed'
But the problem occurs in BW Testing system ,
and we are getting the above error message ,
Import--(8) Ended with errors
please suggest solution .
Thanks in advance.Hello A.H.P ,
Thanks for valuable suggestion.
I think someone has directly repair this multiprovider in Testing system.
I will do the required steps as suggested by you.
Agains thanks very much .
Message was edited by: Amol Kulkarni
Maybe you are looking for
-
Problems with Comodo Kill Switch, Windows Services & Bitlocker Encryption on Asus N56VZ
Hi All, So recently I found myself stuck in a different scenario than before, and after many hours researching and efforts to fix this I still find myself stuck yet with a few options still to fix. What is the problem? So as a security cautious user
-
hi - how do i use iTunes to create ring tones using music in my library, hi - how do i use iTunes to create ring tones using music in my library
-
IPhoto: No option to edit in external editor
I'm running iPhoto 08 under Mavericks on my MacBook Pro. The option to open photos in an external editor is grayed out when I right click on a thumbnail in the main window. In another post I read that in order to do this you first had to select the e
-
hi good day one and all. i have a hp deskjet ink advantage 3540 e-all-in one series printer. i was trying to scan a pic measuring 2"x2" and instead of getting a digital image of the same size i got a 2"x1.57" image instead. i used the scan dialogue a
-
File Sender Dynamic Message Types, is that possible?
Hello everyone, I have the next requirement and I'm thinking on how to do it, maybe you could give some advices, ideas or suggestions, my scenario should be as follosw: File -> XI BPM -> R/3 BAPI's Execution -> JDBC Post result from BAPI's now the pr