Common key to join Opportunity, Quotes & Orders
Hi Gurus,
I am working on a Siebel CRM and OBIEE environment, with OBIEE as OOTB. Currently in the RPD there is no link between Opportunity, Quotes and Orders. My requirement is that wherenever we pull any data for any of Opportunity or Quotes or Orders we should be able to bring in the related data.
What is the best approach to do this. I believe this link or rather a surrogate key should be created in OBAW(Oracle Business Analytics Warehouse). As i am not a database guy gettting confused which table and how the link with the old data.
Any pointers will be very helpful..
Thanks
Amit
Hi amith,
Relation with quotes,opportunities and orders is not directly related.Try to build query based on some tables you find in RPD.I took some here for quotes and days table and this days can be joined to opportunities.Same way you check for orders and frame the query so you can establish in warehouse.
W_DAY_D T557827 ,
W_QUOTE_D T32271,
W_QUOTEITEM_F T32175,
W_OPTY_D T31547,
W_DAY_D T31328 ,
W_PIPELINE_F T37269
where T32175.EFF_START_DT_WID = T557827.ROW_WID
and T32175.QUOTE_WID = T32271.ROW_WID
and T31547.ROW_WID = T37269.OPTY_WID
and T31328.ROW_WID = T37269.SNAPSHOT_DT_WID
UPDATED POST
try to take these tables and joins and figure out can we join it in OW...if its possible well and good.
If not you need to go with opaque view only.
UPDATE POST-2
I have given the joins for other 2 tables in your other post
hope helps you.
Cheers,
KK
Edited by: Kranthi.K on Jun 16, 2011 11:18 PM
Edited by: Kranthi.K on Jun 27, 2011 9:48 PM
Similar Messages
-
HT2376 Why is my key not listed in the order history for QuickTime Pro?
Why is my key not listed in the order history for QuickTime Pro?
Why is my key not listed in the order history for QuickTime Pro?
You would have to ask Apple to get a "real" answer. This is a peer-to-peer user foum and anything we say would be pure speculation. -
For all entries from 2 tables that have no common key
Hello
I have the next querry that i want to write in abap
AUFK -
>aufk-aufnr = afko- aufnr----> AFKO
AUFK---->aufk-pspel = afvc-projn -
>AFVC
AFKO-----> afko-rsnum = resb-rsnum -
> RESB
AFVC-----> afvc-aufpl = resb-aufpl -
> RESB
AFVC-----> afvc-vornr = resb-vornr -
> RESB
So that i have to start with AUFK and from there i read AFKO and AFVC and with the entries from AFKO and AFVC i have to do a select on RESB.
How can i do this
select from RESB
for all entries in AFKO
where ...
for all entries in AFVC
where... ?
I do not have any common key between AFVC and AFKO. How can i select the correct entries from RESB?
I have to mention that i have 1-1 entries for AUFK and AFKO
and 1-N entries for AUFK and AFVC
Thank youWhy don't you use afko-aufpl = afvc-aufpl ?
Regards,
Raymond -
I'd like to join two quoted path to form one string, each quoted.
Here is my code.
*+display dialog quoted form of "/Users/t1cnm/Desktop/Test 1/" & quoted form of "/Users/t1cnm/Desktop/Test 2"+*
This results in '/Users/t1cnm/Desktop/Test 1/''/Users/t1cnm/Desktop/Test 2' being displayed.
I'd like it to display '/Users/t1cnm/Desktop/Test 1/' '/Users/t1cnm/Desktop/Test 2' instead, with a space between the two paths.
This is strictly a syntax question. I'm not looking for an alternative way to do this, just the proper syntax to make this particular example work.
Thanks!Just use & space:
display dialog quoted form of "/Users/t1cnm/Desktop/Test 1/" & space & quoted form of "/Users/t1cnm/Desktop/Test 2" -
Keys and Join description at physical layer does not reflect in BI Answer?
Hi All ,
While creating a RPD , the description about keys and join information using
description and hint property which we define at physical layer, those informations do not reflect BI Answer when i query to metadata dictionary.
Any ideas in this regard?
-- AshishHi All ,
Here i give little bit more description what i did.
(1) I created a RPD and gave some description about Foreign Keys and using hint a gave some description about Physical joins.
(2) After then using utilities I generated the Metadata Dictionary.
(3) Now after restarting of services when i query to Metadata Dictionary using BI Answer , i am not able to see those descriptions. Rest of the information like table level and column level descriptions i am able to see.
Is there any way to get these descriptions or metadata dictionary does not keep descriptions for keys and joins?
Any ideas in this regard??
--Ashish -
Select from 2 tables with common key and than left join(unique result)
Hi,
I have 2 tables that have a common id (Customer_id) and I have a third table which contain her key consist of 3 column ( Customer_id , rms_customer_id,billind_tree_id) and have the manager_name field
I am using a left join because not all the customers have a manager.
I need to take only the manager_name field from the left join but the problem is that I am not getting a unique name results because the customer_id is not the primary key(only part of )
so I have use the following :
left join
( select * from ACCOUNT_Manager am where
rms_customer_id <= all (select rms_customer_id from ACCOUNT_Manager am2 where
am2.customer_id = am.customer_id )) am
on c.ID = am.CUSTOMER_ID (C is one of the first 2 tables with the ID as key)
Is there anyway more efficient of doing it ?
ThanksPlease consider the following when you post a question. This would help us help you better
1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
You can use the following query and do a copy past of the output.
select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
that are asked the answer is already there.
3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
I have the following table called sales
with sales
as
select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
union all
select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
select *
from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
For example in the above sales table, I want to know the total quantity and number of invoice for each product.
The output should look like this
Prod_id sum_qty count_inv
1 145 2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
use the {noformat}{noformat} tags.
The usage of the tag is like this.
<place your code here>\
7. If you are posting a *Performance Related Question*. Please read
{thread:id=501834} and {thread:id=863295}.
Following those guide will be very helpful.
8. Please keep in mind that this is a public forum. Here No question is URGENT.
So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude. -
Formatted Search - Sales Quote / Order Header
Dear all,
I am trying to get the data from the Sales Quote header to a UDF field in the sales order.
This is the query I am trying to use....
SELECT Distinct T0.Header FROM OQUT T0, ORDR T1 INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry WHERE T0.DocNUm = $[$38.44.1]
Can you see where I am going wrong - as it doesnt return any answer at all ??
(I have it set up to automatically update after doc total changes...)
This certainly works for the doc number:
SELECT Distinct T0.Docnum FROM OQUT T0, ORDR T1 INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry WHERE T0.DocNUm = $[$38.44.1]
Thanks in advance...
Jason.HI Jason
The query:
SELECT top 1 T0.Header FROM OQUT T0 where T0.DocEntry =$[$38.45.0]
Use the BaseEntry instead of BaseNum (document numbering can be restarted by year!)
Regards,
J
ps: Do not forget the Asnwered status:) -
Join, union, and order
I've been looking at some of the other posts on this and have not seen my exact problem (granted, I have not looked at all of the posts, as there are quite a few, so please forgive me if this has been covered before).
I have two tables, A & B, that I want to join. They have different data. They both contain fields 1 & 2 which I want to sort by. There are records in A that are not in B, and vice versa.
I've tried all sorts of things. The closest I've come to what I'm looking for looks like this:
select * from A, B
where A1 = B1 (+)
union
select * from A, B
where A1 (+) = B1
order by A2, A1
This gives me all the records I'm looking for, but not sorted in the right order. The problem is with records that are in B, but not in A. When sorting by A2, A1 the fields for records in B and not in A are null and appear at the end.
And yes, I've tried using numbers instead of field names in the order by. Didn't work either. I also tried using NVL to tell it to use B2 if A2 is null.
Right, left, and outer join do not work on the version I'm using.
Any ideas??here is the example
SQL> desc t
Name Null? Type
COL VARCHAR2(30 CHAR)
ID NUMBER
SQL> desc t_n
Name Null? Type
N NUMBER(38)
SQL> select * from t
2 union
select * from t_n;
select * from t
ERROR at line 1:
ORA-01789: query block has incorrect number of result columns
Note: above error coz no of columns are not same
SQL> ed
Wrote file afiedt.buf
1 select col,id from t
2 union
3* select n,null id from t_n
SQL> /
select col,id from t
ERROR at line 1:
ORA-01790: expression must have same datatype as corresponding expression
NOTE: got above error as the data type of the column are not same
SQL> ed
Wrote file afiedt.buf
1 select col,id from t
2 union
3* select null , n from t_n
SQL> /
COL ID
1#@#2#@#3 1
4#@#5#@#6 2
1
123
SQL> ed
Wrote file afiedt.buf
1 select col,id from t
2 union
3 select null , n from t_n
4* order by id
SQL> /
COL ID
1#@#2#@#3 1
1
4#@#5#@#6 2
123 -
Net Value Key figure in Service Level: Order Items OSD_C12
Hi,
I'm trying to set up the Sales Analysis Business content for my Customer but I don't get the Net Value key figure to work. My customer uses TS as price unit (1 TS = 1000 PC). The net price are set to 35EUR / 1 TS. In BW the Net value don't consider the price unit and the Net value 3700EUR on the order is displayed as 3 700 000EUR.
Another problem is that the price is not always defined in TS. Some times the price is defined by PC.
Regards KristofferHi,
I'm trying to set up the Sales Analysis Business content for my Customer but I don't get the Net Value key figure to work. My customer uses TS as price unit (1 TS = 1000 PC). The net price are set to 35EUR / 1 TS. In BW the Net value don't consider the price unit and the Net value 3700EUR on the order is displayed as 3 700 000EUR.
Another problem is that the price is not always defined in TS. Some times the price is defined by PC.
Regards Kristoffer -
What are the key questions for third party order process?
hi all,
what type of questions can i receive for third party order process?
pls.. do the needful
thanks to all.Hi arun,
Process Flow for 3rd Party Sales
Customize the third party sales in summary:
1. Create Vendor XK01
2. Create Material Material Type as "Trading Goods". Item category group as "BANS".
3. Assign Item Category TAS to Order type that you are going to use.
4. A sale order is created and when saved a PR is generated at the background
5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO
7. Goods receipt MIGO
8. Goods issue
9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and, therefore, there is no delivery process attached in the whole process of Third party sales.
10. Billing
SD - 3rd party sales order Create Sales Order
VA01
Order Type
Sales org, distr chnl, div
Enter
Sold to
PO #
Material
Quantity
Enter
Save
SD - 3rd party sales order View the PR that is created with a third party sales order
VA01
Order Number
Goto Item Overview
Item ->Schedule Item
SD - 3rd party sales order View the PR that is created
ME52N
Key in the PR number
Save
SD - 3rd party sales order Assign the PR to the vendor and create PO
ME57
Key in the PR number
Toggle the "Assigned Purchase Requisition"
Execute
Check the box next to the material
Assign Automatically button
Click on "Assignments" button
Click on "Process assignment"
The "Process Assignment Create PO" box , enter
Drag the PR and drop in the shopping basket
Save
SD - 3rd party sales order Receive Goods
MIGO_GR
PO Number
DN Number
Batch tab , click on classification
Serial Numbers tab
Date of Production
Flag Item OK
Check, just in case
Post
Save
SD - 3rd party sales order Create Invoice
MIRO
Invoice Date
Look for the PO , state the vendor and the Material
Check the box
Clilck on "Copy"
Purchase Order Number (bottom half of the screen)
Amount
State the baseline date
Simulate & Post
Invoice Number
*Invoice blocked due to date variance
SD - 3rd party sales order Create a delivery order
VL01N
In the order screen , go to the menu Sales Document , select "Deliver"
Go to "picking" tab
State the qty and save
SD - 3rd party sales order Create a billing document
VF01
Ensure that the delivery document is correct in the
Enter
Go to edit -> Log
Save
Pl. be clear on this process.
Also understand how migo and miro are handled.
The item categories used.
How the company knows of the shipment of goods to the customer.
How returns are handled.
Hope it helps. Please reward if useful.
Thanks & Regards
Sadhu Kishore -
Joining out-of-order tracks in iTunes
Is there some way to rip CD's by joining tracks out of the order in which they appear on iTunes? A lot of times, particularly with classical music I'd like to be able to do that. All help appreciated.
iTunes does not support that - it only provides a Join Tracks during CD import, and only then for consecutive tracks. There are multiple third-party applications that will do this - both dedicated "track joiners" and fully functional audio tools such as Audacity. Having said that, iTunes' track and disc numbering/ordering functions and the ability to manually order playlists should satisfy most requirements to play music in specific order without the need to manipulate the media files themselves.
-
Find the key for join between table "crhd" and "equi" for use field "answt"
I make program for read data from table "crhd" for print about machine report
but I can not find the key for link join to table "equi" for print field "answt" (acquistion value)
please help me find the key field for join between table "crhd" and "equi" for use field "answt"
thank you very much...This is how the Work Center is linked to a particular Equipment -
Functional - In IE03 ( view Equipments) You see the Work Center of a particular Equipment.
Technical - Go to view V_EQUI ( view of EQUI and EQUZ). Pass the Equipment number alongwith V_EQUI-PM_OBJTY = 'A' ( i,.e searching for the Object Type Work Center). In this way u ll get the V_EQUI-GEWRK - this is the Work Center ID.
You can pass this Work Center ID to CRHD. And you will get the Work Center text.
CRHD-OBJTY = 'A'
CRHD-OBJID = V_EQUI-GEWRK.
and u ll get the CRHD-ARBPL - this is the Work Center.
So u need to come backwards, alongwith ur CRHD-OBJTY and CRHD-OBJID , you pass the same to V_EQUI and u get the list of equipment numbers alongwith ur ANSWT(Acquisition value).
I guess it solves ur problem. -
Q41 IWrong sales order data when joining to purchase order
No matter what I try I am getting sales order numbers that are not relevant to the purchase order number, I suspect it is to do with the joins but can't figure it out..............
SELECT
t2.cardcode as 'Customer',
t2.docnum as 'Sales Order',
t0.docnum as 'Purchase Order',
t0.docduedate,
t1.itemcode,
t1.dscription as 'Item Description',
t1.quantity
FROM
opor t0
inner join por1 t1 on t0.docentry = t1.docentry
inner join ordr t2 on t0.docentry = t2.docentry
WHERE
t0.docduedate >= '[%0]' and
t0.docduedate <= '[%1]' and
t1.itemcode >= '[%2]' and
t1.itemcode <= '[%3]' and
t1.whscode = 'DSHP'
As always any help greatly appreciated.
RobinUpdated:
SELECT Distinct
t3.cardcode as 'Customer',
t3.docnum as 'Sales Order',
t0.docnum as 'Purchase Order',
t0.docduedate,
t1.itemcode,
t1.dscription as 'Item Description',
t1.quantity
FROM
opor t0
inner join por1 t1 on t0.docentry = t1.docentry
inner join rdr1 t2 on t2.PoTrgentry = t0.docentry
inner join ordr t3 on t2.Docentry = t2.docentry
WHERE
t0.docduedate >= '[%0]' and
t0.docduedate <= '[%1]' and
t1.itemcode >= '[%2]' and
t1.itemcode <= '[%3]' and
t1.whscode = 'DSHP' -
Create Keys for joining tables
Can I create a data element for a given table that can be used as a joining utility data item for extracting data from two or more tables?
I have a business area with tables that are basically non-relational because of the absence of data elements that are of common name or meaning.Hi,
it will be better if we can have the table structure, depending upon what information we have and there is no join condition between different table you could try with UNION.
--untested
CREATE VIEW VW_TEST AS
select SERIAL_NUMBER , TABLE_NAME FROM table1
UNION ALL
select SERIAL_NUMBER , TABLE_NAME
UNION ALL
select SERIAL_NUMBER , TABLE_NAME
thanks -
Changing the Availability Check key in an existent Sales Order line
Hello gurus.
Is it possible to modify the Availability Check key (VBAP-MTVFP) of a material in an existent Sales Order line?
I changed it in the material master, but since documents are not automatically updated, I wanted to modify this value in an existing sales order line. I am not even able to find the field in it.
I had to delete the order line and create it again, but then I have troubles getting the exact same confirmed date that I had before.
Any help? Thank you.You cant see at item level. To see in sale order, click from top menu bar, Environment -- Availability. Now you can see the availability check on top of the screen.
Meanwhile, I dont think, this field will be in editable mode once partial delivery is made in which case, LSMW also wont help you.
If your requirement is desperate to change the availability check, to me the available option is close the existing sale orders, create fresh orders after changing the availability check in material master. On the other hand, if you want to change only in sale order, then the option is LSMW as you cant even succeeed in TCode MASS
thanks
G. Lakshmipathi
Maybe you are looking for
-
PDF has missing 'o' from printouts
I'm running MAC OS X 10.6.8 and when I print from PREVIEW Version 5.0.3 (504.1), my lower case "o"s do not print. They do however print from ADOBE. I've updated my printer driver; firmware; checked and fixed fonts in the font book. The problem sti
-
I see alot of people talking about high temperatures with this board. I'm sitting at about 38-44 degrees Cel. depending on what I'm doing. Anyone have a problem with PC Alert 4? Everytime it comes on, I get an error since the system fan is running at
-
I'm getting the following error: After Effects error: unable to allocate space for a 5000 x 2395 image buffer. I'm exporting to either Adobe clips or quicktime. I've tried changing the values in "Memory & Cache" and I'm still getting this error. I ha
-
Hp 6700 not scanning full picture
I have an HP 6700 All In One Printer. I'm trying to scan an image that is larger than 8x5 to my Macbook Pro. The scanner is not scanning the whole image. How can I change the scanning range to get the whole image? I tried using as an everyday sca
-
Hello there. First I want to start with a little back story. My wife's parents came to canada with use for two weeks and captured about 4hrs on a sony handycam. Now they would like to put it on a DVD. I finished cutting as much as i could down to 2hr