How to map a query with the Multiprovider?
Hello All,
Can any one please tell me how to map a query with a multiprovider?
Appreciate your help.
Regards,
Soumya.
Hi,
Can you please elaborate , do you mean how to create a query with multiprovider. if that is your question it is very simple just create the query on the multiprovider.
What is the purpose for mapping the query with multiprovider
Similar Messages
-
How to build this query with the minumum number of sub-selects?
The question I am trying to answer is analogous to this:
Give me all projects that: (have no employees assigned and are small) or (have only employees with the the last name = "Smith")
Thanks,
RomanThank you :
1- I am in 9.0.4.8 version and can not use allOf expression (availible in beta version)
2- I not find .notIn(subQuery) operator in 9.0.4.8 version and i replace it by .in(subQuery).not() !
My new query retrieve Customer who have 0 (zéro) Orders !
How to retrieve only customer (with orders + with orders without "television") ?
My new query is :
<div align="left" class="java">
<font color="#7f0055"><b>static </b></font><font color="#7f0055"><b>void </b></font><font color="#000000">findCustNoComputer </font><font color="#000000">(){</font>
<font color="#ffffff"> </font><font color="#000000">ClientSession cs = TopLinkSession.acquireClientSession</font><font color="#000000">()</font><font color="#000000">;</font>
<font color="#ffffff"></font>
<font color="#ffffff"></font>
<font color="#ffffff"> </font><font color="#000000">ReadAllQuery query = </font><font color="#7f0055"><b>new </b></font><font color="#000000">ReadAllQuery</font><font color="#000000">(</font><font color="#000000">Customer.</font><font color="#7f0055"><b>class</b></font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">ExpressionBuilder queryBuilder = query.getExpressionBuilder</font><font color="#000000">()</font><font color="#000000">;</font>
<font color="#ffffff"></font>
<font color="#ffffff"> </font><font color="#000000">ExpressionBuilder subqueryBuilder = </font><font color="#7f0055"><b>new </b></font><font color="#000000">ExpressionBuilder</font><font color="#000000">(</font><font color="#000000">Customer.</font><font color="#7f0055"><b>class</b></font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">ReportQuery subQuery = </font><font color="#7f0055"><b>new </b></font><font color="#000000">ReportQuery</font><font color="#000000">(</font><font color="#000000">Customer.class, subqueryBuilder</font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">subQuery.addAttribute</font><font color="#000000">(</font><font color="#2a00ff">"id"</font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">subQuery.setSelectionCriteria</font><font color="#000000">(</font><font color="#000000">subqueryBuilder.anyOf</font><font color="#000000">(</font><font color="#2a00ff">"Orders"</font><font color="#000000">)</font><font color="#000000">.anyOf</font><font color="#000000">(</font><font color="#2a00ff">"OrderItems"</font><font color="#000000">)</font><font color="#000000">.get</font><font color="#000000">(</font><font color="#2a00ff">"product"</font><font color="#000000">)</font><font color="#000000">.get</font><font color="#000000">(</font><font color="#2a00ff">"productName"</font><font color="#000000">)</font><font color="#000000">.equal</font><font color="#000000">(</font><font color="#2a00ff">"Computer"</font><font color="#000000">))</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">query.setSelectionCriteria</font><font color="#000000">(</font><font color="#000000">queryBuilder.get</font><font color="#000000">(</font><font color="#2a00ff">"id"</font><font color="#000000">)</font><font color="#000000">.in</font><font color="#000000">(</font><font color="#000000">subQuery</font><font color="#000000">)</font><font color="#000000">.not</font><font color="#000000">())</font><font color="#000000">;</font>
<font color="#ffffff"></font>
<font color="#ffffff"> </font><font color="#000000">Vector allCustomers = </font><font color="#000000">(</font><font color="#000000">Vector</font><font color="#000000">)</font><font color="#000000">cs.executeQuery</font><font color="#000000">(</font><font color="#000000">query</font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">Iterator allCustomersIterator = allCustomers.iterator</font><font color="#000000">()</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#7f0055"><b>while </b></font><font color="#000000">(</font><font color="#000000">allCustomersIterator.hasNext</font><font color="#000000">()) </font>
<font color="#ffffff"> </font><font color="#000000">{</font>
<font color="#ffffff"> </font><font color="#000000">Customer tempCustomer = </font><font color="#000000">(</font><font color="#000000">Customer</font><font color="#000000">)</font><font color="#000000">allCustomersIterator.next</font><font color="#000000">()</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">System.out.println</font><font color="#000000">(</font><font color="#000000">tempCustomer</font><font color="#000000">)</font><font color="#000000">;</font>
<font color="#ffffff"> </font><font color="#000000">}</font>
<font color="#ffffff"> </font><font color="#000000">cs.release</font><font color="#000000">()</font><font color="#000000">;</font>
<font color="#000000">}</font>
<font color="#ffffff"></font>
<font color="#ffffff"></font>
Sql of query :
SELECT
t0.CUST_LAST_NAME, t0.CUST_FIRST_NAME, t0.CREDIT_LIMIT, t0.CUST_EMAIL, t0.CUSTOMER_ID, t0.PHONE_NUMBER2, t0.PHONE_NUMBER1, t0.CUST_STREET_ADDRESS1, t0.CUST_CITY, t0.CUST_STREET_ADDRESS2, t0.CUST_STATE, t0.CUST_POSTAL_CODE
FROM TL_CUSTOMER t0
WHERE NOT (
(t0.CUSTOMER_ID IN
(SELECT DISTINCT t1.CUSTOMER_ID
FROM TL_CUSTOMER_ORDER t4, TL_ORDER_ITEM t3, TL_PRODUCT t2, TL_CUSTOMER t1
WHERE (
(t2.PRODUCT_NAME = ?) AND
((t2.PRODUCT_ID = t3.PRODUCT_ID) AND
((t3.ORDER_ID = t4.ORDER_ID) AND (t4.CUSTOMER_ID = t1.CUSTOMER_ID)))))))
Regards -
How to map a calculation with the session ID
Hi,
we have been using HBR and as usual many a times we have concurrent rules that are being executed .
now i can view the sessions in the admin services but i am not able to make out that which rule is the one thats running right now.
is there any way that we can map the session Id that is apperaing in the sessions with the intersection on which that rule was executed or the name of the rule.for instance if we could get the session id details in th eHBR Launch log files then we can make out which rule is being executed whith which session ID.you have a detailed information under planning's job console and for more information you can match the time stamp with essbase session.
Can help you up to some extant. -
How to insert some strings in a query with the clausule 'in' in a procedure
Hello fellows.
Do you know how to insert some strings in a query with the clausule 'in' in a procedure (with a variable)?.
I tell us my problem with an example:
I want to use this select but introducing a variable instead the 'value1', 'value2':
select * from table1 where field1 in ('value1', 'value2');
if I declare the variable var1 as:
TC_VAR1 CONSTANT VARCHAR2(50) := '''value1'',''value2'''
and I use it as:
select * from table1 where field1 in (TC_VAR1);
It doesn't work because Oracle takes TC_VAR1 as an all string. I think Oracle takes it as this:
select * from table1 where field1 in ('value1, value2');
If I use the data type TABLE, I don't know how to use well:
TYPE varchar2_table IS TABLE OF VARCHAR2(10);
tb_var varchar2_table;
select * from table1 where field1 in (tb_var);->It returns an error and there ins't an method that it returns all values.
A curious case is that if I have a sql script (for example script1.sh) with this query:
select * fromt able1 where field1 in (&1)
and I invoke this script as
script1.sh "'''value1'',''value2'''". It works
Can anybody helps me?.
Thanks.Thanks to all. Really.
First, sorry for my English. It's horrible. Thank to all for understand it (my English).
I've resolved my problem with these links:
ORA-22905: cannot access rows from a non-nested table item
and
http://stackoverflow.com/questions/896356/oracle-error-ora-22905-cannot-access-rows-from-a-non-nested-table-item
At last, I have used someting like this:
DECLARE
number_table_tmp NUM_ARRAY:=NUM_ARRAY(410673, 414303, 414454, 413977, 414042, 414115, 413972, 414104, 414062);
BEGIN
FOR c1 IN (SELECT par_id, 1 acc_vdo_id FROM SIG_VIS_CAM
WHERE par_id IN (SELECT * FROM TABLE(number_table_tmp))
UNION ALL
SELECT par_id, 2 acc_vdo_id FROM SIG_ACCAO a
WHERE par_id IN (SELECT * FROM TABLE(number_table_tmp))) LOOP
NULL;
END LOOP;
END;
but first I had to create the type NUM_ARRAY like this:
CREATE TYPE subjectid_tab AS TABLE OF NUMBER INDEX BY binary_integer;
THANK YOU, GUYS. YOU ARE THE BESTS. ;-)
Edited by: user12249099 on 08-sep-2011 7:37
Edited by: user12249099 on 08-sep-2011 7:37 -
Design issue with the multiprovider
Design issue with the multiprovider :
I have the following problem when using my multiprovider.
The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
And from another s-system I am also loading the masterdata for IobjectA
Now I have created the multiprovider based on the cube and IobjectA.
However, surprisingly join in not workign in multiprovider correctly.
Scenario :
Record from the Cube.
IObjectA= 1AAA
IObjectB = 2BBB
IObjectC = 3CCC
Records from IobjectA =1AAA.
I expect the record should be like this :
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
However, I am getting the record like this:
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
1AAA : # :#
In the Identification section I have selected both the entries for IobjectA still I am getting this error.
My BW Version is 3.0B and the SP is 31.
Thanks in advance for your suggestion.May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
My Expectation from Multi Provider is :
IObjectA
1AAA
(From InfoObject)
Union
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
(From Cube)
The record in the multiprovider should be :
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
Thank you very much in advance for your responses.
Best Regards.,
Praveen. -
Problem in query with the u0091Document numberu0092
Hi,
I got problem in query with the Document number
There are three columns in the cube 1) Document number 2) Country 3) Count
In the cube there are multiple entries for same document number as below.
Document number country Count
10000 US 1
10001 US 1
10002 US 1
10002 US 1
10002 US 1
10003 UK 1
10004 IN 1
10004 IN 1
When I ran the query on this cube for country US it shows count as 5 but I want count as 3 (i.e. it has to take count only once for the same document nos)
Similarly for country IN I want count as 1Hi,
You have to create a counter based on the document number (exception aggregation). There is a How-to paper available for this. It is called: How-to...count the occurences of a characteristic.
Regards,
P. -
How to map Idoc fields with external file
Hi All,
How to map Idoc fields with external file.
I want to check the settings where Idoc fields are mapped with external file.
Thanks in advance.
Regards,
Govind.If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment
-
How to write sql query with many parameter in ireport
hai,
i'm a new user in ireport.how to write sql query with many parameters in ireport's report query?i already know to create a parameter like(select * from payment where entity=$P{entity}.
but i don't know to create query if more than 1 parameter.i also have parameter such as
$P{entity},$P{id},$P{ic}.please help me for this.
thanksYou are in the wrong place. The ireport support forum may be found here
http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=9 -
How to create sap query with "or" relationship
dear experts,
I need a report to display the employee whoese WSR is
changed in the month for infotype 0007.
that is ,we want to search with selection
begda OR endda between 2008-01-01 and 2008-01-31.
how to create sap query with "or" relationship?hi use like this,
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = p_pernr
infty = '0007'
BEGDA = p_date1
ENDDA = p_date2
TABLES
infty_tab = itab .
hi use this by passing the pernr to fm and giving the dates low and high in the p_date1 and p_date2.
loop at itab where condition.
endloop.
may it helps u,
regards,
venkat. -
How to configure portal server with the Backend Oracle database
Hi Portal Experts,
we are planning to install Netweaver 04s sp stack 9 full java edition with Oracle 8i on windows platform.
we have the installation docs of portal but we didn't have any idea about how to configure Portal server with the Backend Oracle database at the time of installation or after ost installation of portal.can anyone provide the documentation about this or guide me how to achieve this.
PLZ share ur views---your help would be highly appreciable.
Regds
Phani.HI
if you r working in Sap enterprise portal use for connection url
jdbc:sap:sqlserver://ilsql01.tlv.sap.corp:1433;DatabaseName=Northwind
ilsql01.tlv.sap.corp:1433 this is your portal url with port number
Northwind is your database name.
for dirver you need to give
com.sap.portals.jdbc.sqlserver.SQLServerDriver
in case if you r working on other than sap say windows along with oracle try to use
Connection URL as jdbc:oracle:<drivertype>:@<database>
Driver name as oracle.jdbc.driver.OracleDriver
ex jdbc:oracle:thick:@localhost:3036:mydb
Oracle implements two types of JDBC drivers:
Thick JDBC drivers built on top of the C-based Net8 client, as well as a Thin (Pure Java) JDBC driver to support downloadable applets. Oracle JDBC drivers are used to create JDBC applications to communicate with Oracle databases.
Oracle extensions to JDBC include the following features:
Data access and manipulation
LOB access and manipulation
Oracle object type mapping
Object reference access and manipulation
Array access and manipulation
Application performance enhancement
*************if the information is helpful to you please reward points************ -
How to accomplish these Updates with the Tool?
How to accomplish these Updates with the Tool?
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'X'
WHERE STATE_CODE IN ('AE', 'AP', 'AA', 'MP', 'GU', 'PW', 'FM', 'MH');
commit;
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'E'
WHERE STATE_CODE IN ('CT', 'DC', 'DE', 'GA', 'MA', 'MD', 'ME', 'MI', 'NC', 'NH', 'NJ', 'NY', 'OH', 'PA', 'PR', 'SC', 'VA', 'VI', 'VT', 'WV');
commit;
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'M'
WHERE STATE_CODE IN ('AZ', 'CO', 'MT', 'NM', 'UT', 'WY');
commit;
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'P'
WHERE STATE_CODE IN ('CA', 'NV', 'WA');
commit;
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'H'
WHERE STATE_CODE IN ('HI');
commit;
UPDATE aimp.TIME_ZONE_BY_STATE_TYPE
SET TIME_ZONE = 'A'
WHERE STATE_CODE IN ('AK');
commit;
Thanks,
Carol-AnnGood morning Carol-Ann,
* Pick table operator for table TIME_ZONE_BY_STATE_TYPE twice, once as source and once as target.
* Pick an expression operator.
* Drag STATE_CODE as input to expression
* Create output column TIME_ZONE in outgroup
* With the attribute properties of this output, choose Expression
* Enter here a case statement 'translating' all state_codes to time_zones, e.g. CASE
WHEN INGRP1.STATE_CODE IN ('AE', 'AP', 'AA', 'MP', 'GU', 'PW', 'FM', 'MH')
THEN 'X'
WHEN INGRP1.IN ('CT', 'DC', 'DE', 'GA', 'MA', 'MD', 'ME', 'MI', 'NC', 'NH', 'NJ', 'NY', 'OH', 'PA', 'PR', 'SC', 'VA', 'VI', 'VT', 'WV')
THEN 'E'
etc.
END* Map this output column to TIME_ZONE column of target
* Set Loading Type of target to Update, choose No Constraints.
Hope this helps.
Regards, Patrick -
HT1695 How to connect my iPhone with the printers at school? Many thanks
How to connect my iPhone with the printers at school? Many thanks
They must be Airprint capable printers... if they are not, then there is no supported way of connecting to them.
Airprint 101 -
How to use a query in the Print Layout Designer?
I created a query with the query generator:
SELECT T0.[Discount], T0.[NumOfDays], T2.[DocNum] FROM CDC1 T0, OQUT T2 INNER JOIN OCTG T3 ON T2.GroupNum = T3.GroupNum WHERE T2.[GroupNum]=T3.[GroupNum] AND T0.[CdcCode] = T3.[DiscCode]
The result shows the cash discout (the days and the percentage) of every record.
I need this query, because I want to design a sales order report.
To show the payment conditions with cash discount I need to have the table CDC1 but when I create a new database field in the report I can't see that table.
So I queried the table CDC1....
Then I created a new database field and in the list box "table" I made the following steps:
extras\customizing tools\user defined values - definition\search for saved query in user defined values
But the problem is that I don't get the result of the query into my report.
What's the problem? I don't know what I've done wrong...
please help meHi,
I am creating the layout for a sales order which will be send to a customer.
In that order the customer can see the payment conditions.
It should look like this:
net price: 1000,00 EUR
19,00% taxes: 190,00 EUR
gross price: 1190,00 EUR
payment conditions:
payable within 30 days net: 1190,00 EUR
payable within 14 days with discount of 2 %: 1166,20 EUR
to get the bold marked digits I need to have access on the following tables:
OCTG and CDC1
In the OCTG table I get the days (in this example 30)
In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
So what can I do to get this? -
I have CDs that I want to import onto my new MacBook Pro to my iPhone. I am not use to the new iTunes with the Mountain Lion software. I had an old PowerMac that had the Leopard software and I was able to drag those songs to my iPhone. I can't find that option. When I find the song I want to add to my iPhone, I tried dragging it to the top when it shows that my iPhone is connected with iTunes. Or how do i do this with the Cloud? I am new to that as well. Seems like it just held my purchased songs from iTunes.
iCloud only has content purchased (or free) from iTunes. Ripped music or music from other sources is only on your computer. As the iPhone can only sync with one computer at a time you should copy the iTunes folder from the old computer to the new one. It's in the Music folder on the old one, just copy the entire folder to the Music on the new computer. When you first sync your iPhone content will be replaced by the content of the new computer.
You can optionally enable iTunes Match. This searches the non-iTunes content in iTunes or on your iPhone and finds the original digital version on the Internet if it exists. This then becomes your backup. If you have music that it cannot find it will upload it to your cloud storage, but you may have to pay for the storage if it is over 5 GB total (along with your backup). iTunes content and Match content are not included in the 5 GB free limit.
Usually to fix mail issues just delete the account, reset (reboot) the phone by holding HOME and SLEEP until an Apple logo appears, and adding the email account(s) back. -
I updated my ipod and it deleted my entire library. How do I restore it with the backup I have so all songs will be available in the cloud; which I paid extra Money to increase memory for?
The backup that iTunes makes does not include apps, music, synced videos and photos. Se:
iTunes: About iOS backups
You will have to sync the items back form yur computer/iTunes library to the iPod via iTunes. If they are not on the computer you can redownloa d some iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Maybe you are looking for
-
How can I compress the audiofiles on my hard drive as it is full.
I have just bought a Classic and have been busy converting my audiofiles to AAC files to sync to my iPOD. However, my hard drive is now full but I am under the impression that if I copy any files back to my external hard drive I will lose them when I
-
hello, i getting the following error message in event id while backing up my SQL db by third party backing tool BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'CA_BAB_MSSQL_e85860_10001_2085d987_ERP_DATABASE_ST_1'. Opera
-
Hi, Just transferred from a macbook 2008 to a brand new mac mini 2014. My backup was on an external drive, but when it's plugged to the mac mini, its not detected, but it is on my macbook .... what can I do ?
-
How do I insert additional clips into my video timeline in Elements 13? When clicking 'add media' it added the clips at end of video rather than in their appropriate position. Could not 'cut and paste'.
-
Providing user id and password in web service model
hi, i hv created a web dynpro application using web service model. The WSDL link had user id and password. even i had to provide the user id and password at the time of coding. what is the disadvantage of using userid and password at llink and also a