Problem on Join in ODI
Hi,
I'm working on a migration case as follows:
I have 1 source table, 1 reference table and 1 target table (All are in ORACLE). While the interface execution, the source will join the reference to get the UID from the reference table (FK to the target table) and put into the target. As the result, some source data is not migrated due to the join. Since that's not an error to constraint, thsoe 'not joined' data will not be able to fall into the E$ table. How ODI tell which data is not migrated from teh source?
Remarks: the target field is not an not null field.
Thanks a lot!!
Tao
ODI didn't say nothing about which data is not migrated.
If you have selected CKM options in order to retrieve in the E$ table records with inconsistant null FK you could pass your join in Outer mode instead of Inner.
All the null value retrieve by the query (in your source table but not in the reference one) will be send to the E$ table.
If all your source table are in ORACLE, if I were you I would extract the SQL code from the Operator (at LKM or IKM time) to execute it on a query tool.
You will see which records are forgotten.
hope to help
Brice
Similar Messages
-
I am trying to do left outer join in ODI for the source tables in SQLserver.
I have created a join between 2 columns and made it left outer join by checking the box in join properties.
It is not working as expected. In the query it just does T1.Col1=T2.col1 and makes it as equi join.
Any suggestions?
ThanksI have the same problem..
For example:
Interface:
SOURCE: tbl_employee, tbl_positions
TARGET: tbl_persons
In ANSI SQL it would be:
INSERT INTO tbl_persons (..., position_name)
select ..., tbl_positions.name from tbl_employee left join tbl_positions on tbl_employee.pos_id = tbl_positions.id
But when I execute Interface, inserted data as JOIN, didn't inserted "NULL" in position_name.
"LEFT JOIN" is in Interface's script...
How decide this problem? -
Problem in join with hrp1000 and hrp1001???
Hi all, I am pasting code sAmpLE, i am having problem with join, without join the query is working. Help out.
IF per_no IS NOT INITIAL.
SELECT objid sobid objid INTO TABLE lt_st_p1
FROM hrp1001 WHERE otype EQ 'P' AND objid IN per_no
AND plvar EQ lv_plan_version AND rsign EQ 'B' AND relat EQ '008' AND istat EQ '1'
AND subty EQ 'B008' AND sclas EQ 'S'.
LOOP AT lt_st_p1 INTO ls_st_p1_tem.
ls_st_p1_tem-sobid1 = ls_st_p1_tem-pernr.
MODIFY lt_st_p1 FROM ls_st_p1_tem TRANSPORTING sobid1.
ENDLOOP.
check lt_st_p1 is not INITIAL.
SELECT h1objid h1sobid h0~stext INTO TABLE lt_st_p1_temp
FROM hrp1001 AS h1 JOIN hrp1000 as h0 on ( h1objid eq h0objid and h1rsign eq h0otype )
FOR ALL ENTRIES IN lt_st_p1
WHERE h1otype EQ 'O' AND h1sobid = lt_st_p1-sobid
AND h1plvar EQ lv_plan_version AND h1relat EQ '003'
AND h1rsign EQ 'B' AND h1istat EQ '1' AND h1subty EQ 'B003' AND h1sclas EQ 'S'
I want to get the stext of the braNCH. THE lt_st_p1 is having the emp id and position. and i want to get branch , position and stext( of branch) in lt_st_p1_temp by the help of join. I am implementing this qauery, but is getting subrc 4, what is the problem in this , please rectifuy if any problem found ?You may want to change:
check lt_st_p1 is not INITIAL.
to
check lt_st_p1[] is not INITIAL.
This depends on whether or not the internal table was defined with a header line.
Rob
Edited by: Rob Burbank on Jan 2, 2012 2:45 PM -
Hi All,
Here I am facing the problem in Joining table I have S031,s032,makt,marc,I need a field ATWRT field from CAWN table,I did't find any link for this above from tables, any one please help me how to find out.
REPORT ZMMTEST.
tables:s031,s032,makt,marc.
DATA : BEGIN OF itab1 OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
END OF itab1.
DATA : BEGIN OF itab2 OCCURS 0,
matnr like makt-matnr,
maktx like makt-maktx,
END OF itab2.
DATA : BEGIN OF itab3 OCCURS 0,
matnr TYPE marc-matnr,
werks type marc-werks,
ekgrp type marc-ekgrp,
END OF itab3.
DATA : BEGIN OF itab4 OCCURS 0 ,
matnr TYPE s032-matnr,
lgort TYPE s032-lgort,
werks TYPE s032-werks,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
END OF itab4.
data : begin of itab5 occurs 0,
objek type ausp-objek,
atwrt type cawn-atwrt,
end of itab5.
DATA : BEGIN OF itab_final1 OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
maktx TYPE makt-maktx,
ekgrp type marc-ekgrp,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
END OF itab_final1.
DATA : BEGIN OF itab_final OCCURS 0,
matnr TYPE s031-matnr,
lgort TYPE s031-lgort,
werks TYPE s031-werks,
spmon TYPE s031-spmon,
magbb type S031-magbb,
wagbb type S031-wagbb,
azubb type S031-azubb,
aagbb type S031-aagbb,
maktx TYPE makt-maktx,
ekgrp type marc-ekgrp,
mbwbest type s032-mbwbest,
wbwbest type s032-wbwbest,
atwrt type cawn-atwrt,
END OF itab_final.
select-options:s_matnr for s031-matnr.
start-of-selection.
select matnr lgort werks spmon magbb wagbb azubb aagbb
from s031 into table itab1
where matnr in s_matnr.
if not itab1[] is initial.
select matnr maktx from makt into table itab2 for all entries in itab1 where matnr = itab1-matnr.
if not itab2[] is initial.
select matnr werks ekgrp from marc into table itab3 for all entries in itab2 where matnr = itab2-matnr.
if not itab3[] is initial.
select matnr werks mbwbest wbwbest from s032 into corresponding fields of table itab4 for all entries in itab3 where matnr = itab3-matnr.
*if not itab4[] is initial.
select atwrt from cawn into corresponding fields of table itab5.*
endif.
endif.
endif.
endif.
end-of-selection.
loop at itab3.
itab_final-matnr = itab3-matnr.
read table itab2 with key matnr = itab3-matnr.
if sy-subrc = 0.
itab_final-maktx = itab2-maktx.
read table itab1 with key matnr = itab2-matnr.
if sy-subrc = 0.
itab_final-lgort = itab1-lgort.
itab_final-werks = itab1-werks.
itab_final-spmon = itab1-spmon.
itab_final-magbb = itab1-magbb.
itab_final-wagbb = itab1-wagbb.
itab_final-azubb = itab1-azubb.
itab_final-aagbb = itab1-aagbb.
endif.
endif.
itab_final-ekgrp = itab3-ekgrp.
read table itab4 with key matnr = itab3-matnr.
if sy-subrc = 0.
itab_final-mbwbest = itab4-mbwbest.
endif.
itab_final-wbwbest = itab4-wbwbest.
append itab_final.
clear itab_final.
endloop.
WRITE: /2 'material', 23 'storagelocation',29 'plant',35 'date',44 'val.stock.issue',66 'val.stock.issue.value',86 'no.of.stock.receipts',97 'no.of.stock.issues',150 'material.des', 160 'pur.group',190 'stock.val',210 'stock.quan'.
ULINE.
loop at itab_final.
WRITE: /2 itab_final-matnr, 23 itab_final-lgort,29 itab_final-werks,35 itab_final-spmon,44 itab_final-magbb,66 itab_final-wagbb,86 itab_final-azubb,97 itab_final-aagbb,
150 itab_final-maktx, 160 itab_final-ekgrp,190 itab_final-wbwbest,210 itab_final-mbwbest,itab_final-atwrt.
ENDLOOP.
Thanks®ds,
Sree.Hi sree,
take join between s031-sptag ,ausp-datuvthen fetch records based on this condition.(itab1)
After retrieve records based on join condition between
ausp-atinn,ausp-adzhl and cawn-atinn,cawn-adzhl.(itab2)
Retrieve records using for all entries bet first join condition and second join condition.
use for all entries between itab1 and itab2.
it will work surely.
reaward points -
AP 2700 - 2 MAC addresses - problem with joining to the WLC
Hi,
I had a problem with joining my new AP 2700 to the controller. I've found workaround but I would like to ask you if you know if this behavior is a some kind of bug or maybe feature :)
I have DHCP server which assigns IP address base on the binding MAC address with the IP address. Without binding, IP won't be assigned so I added MAC address from the AP sticker (MAC and SN number is on the sticker at the back of each AP) to the DHCP, connected AP to the switch port which was configured exactly the same way like other ports on this switch where older AP are working fine and.... nothing. IP address was not assigned. There was no DHCP request in the DHCP server logs.
During the investigation I've found that AP present 2 MAC addresses on the switch interface:
switch#sh mac address-table interface fa1/1
Mac Address Table
Vlan Mac Address Type Ports
11 58f3.54c1.2cb3 DYNAMIC Fa1/1
11 58f3.54c1.2cb4 DYNAMIC Fa1/1
The first one (58f3.54c1.2cb3) is a "sticker" MAC address but the second one (58f3.54c1.2cb4) is something new. Looking in to the DHCP logs I've found log that this second MAC address (58f3.54c1.2cb4) tried to get IP address but it was not possible because this MAC was not binding with any IP address so DHCP server refuse. I added this second MAC (58f3.54c1.2cb4) to the DHCP server, AP get IP address, join to the WLC, download software, reboot and ... this MAC address disappear.
switch#sh mac address-table interface fa1/1
Mac Address Table
Vlan Mac Address Type Ports
11 58f3.54c1.2cb3 DYNAMIC Fa1/1
Software I had on the AP before joining to the WLC was:
Version :
Cisco IOS Software, C2700 Software (AP3G2-RCVK9W8-M), Version 15.2(4)JB5, RELEASE SOFTWARE (fc1)
now I have (after downloaded from the WLC)
Version :
Cisco IOS Software, C2700 Software (AP3G2-K9W8-M), Version 15.2(4)JB6, RELEASE SOFTWARE (fc1)
Do anyone know what happen?(WLC1) >show sysinfo
Manufacturer's Name.............................. Cisco Systems Inc.
Product Name..................................... Cisco Controller
Product Version.................................. 7.6.130.0
Bootloader Version............................... 1.0.20
Field Recovery Image Version..................... 7.6.95.16
Firmware Version................................. FPGA 1.7, Env 1.8, USB console 2.2
Build Type....................................... DATA + WPS
System Name...................................... WLC1
System Location..................................
System Contact...................................
System ObjectID.................................. 1.3.6.1.4.1.9.1.1069
Redundancy Mode.................................. Disabled
IP Address....................................... 10.10.10.10
Last Reset....................................... Software reset
System Up Time................................... 25 days 2 hrs 53 mins 5 secs
System Timezone Location.........................
System Stats Realtime Interval................... 5
System Stats Normal Interval..................... 180
Configured Country............................... US - United States
Operating Environment............................ Commercial (0 to 40 C)
Internal Temp Alarm Limits....................... 0 to 65 C
Internal Temperature............................. +44 C
External Temperature............................. +22 C
Fan Status....................................... OK
State of 802.11b Network......................... Enabled
State of 802.11a Network......................... Disabled
Number of WLANs.................................. 6
Number of Active Clients......................... 25
Burned-in MAC Address............................ XX:XX:XX:XX:XX:XX
Power Supply 1................................... Present, OK
Power Supply 2................................... Present, OK
Maximum number of APs supported.................. 25
(WLC1) >show time
Time............................................. Thu Apr 9 13:51:00 2015
Timezone delta................................... 0:0
Timezone location................................
NTP Servers
NTP Polling Interval......................... 3600
Index NTP Key Index NTP Server NTP Msg Auth Status
1 0 10.10.10.11 AUTH DISABLED
It's look like AP doesn't allow for console login or commands it just only show activity. After rebooting the WLC I get information:
Cisco IOS Software, C2700 Software (AP3G2-RCVK9W8-M), Version 15.2(4)JB5, RELEASE SOFTWARE (fc1) -
"there was a problem re-joining the wireless network or finding the device"
I get this error when trying to have my Airport (for wireless printer sharing) join my current O2 Broadband wireless network:
*AirPort Utility was unable to find your Apple wireless device after restarting.*
*The settings for this Apple wireless device have been successfully updated, but there was a problem re-joining the wireless network or finding the Apple wireless device. You may need to select your network from the AirPort menu and try again.*
Anyone have any idea how to fix this?This has been a total joke...Same problems as many here and zero response from Apple! I've had an AX for 3 years or so and it has worked fine, that is until it dropped its connection 2 days ago. I went to reset and the utility prompted me to do some updates...then magically it all went down the tubes!
*"The settings for this Apple wireless device have been successfully updated, but there was a problem re-joining the wireless network or finding the Apple wireless device. You may need to select your network from the AirPort menu and try again."*...look familiar? Well, I tried everything including the many possible fixes listed here at the discussions...and of coarse NOTHING. I decided that maybe it had just out-lived itself and bought a brand new AX yesterday...funny SAME PROBLEM. Now all the tinkering is affecting my network. I returned the new AX today, and surprise the people at the Apple Store had never heard of the issues, let alone have idea of what to do next! VERY MAD!
Any new solutions would be great! THX. -
Dear Sir/Madam
I'm a student who is interested in Oracle Database and
I have some problems with JOIN and Sub-query.
I hope so many of you could help me.
if i use JOIN without sub-query, may it be faster or not?
SELECT field1, field2 FROM tableA INNER JOIN tableB
if i use JOIN with sub-query, may it be faster or not?
SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
Thanks in advance!Hi,
fac30d8e-74d3-42aa-b643-e30a3780e00f wrote:
Dear Sir/Madam
I'm a student who is interested in Oracle Database and
I have some problems with JOIN and Sub-query.
I hope so many of you could help me.
if i use JOIN without sub-query, may it be faster or not?
SELECT field1, field2 FROM tableA INNER JOIN tableB
if i use JOIN with sub-query, may it be faster or not?
SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
Thanks in advance!
As the others have said, the execution plan will give you a better idea about which is faster.
If you're trying to see how using (or not using) a sub-query affects performance, make the rest of the queries as similar as possible. For example, include field3 in both queries, or ignore field3 in both queries.
In this particular case, I guess the optimizer would do the same thing either way, but that's just a guess. I can't see your execution plans.
In general, simpler code is faster, and better in other ways, too. In this case
tableB
is simpler than
(SELECT field1, field2 FROM tableB)
Why do you want a sub-query in this example? -
Problem with Join Queries using PHP and an Orcale Database
Ok, I am trying to build a simple php querying tool for my oracle database and for the most part it is working however I am having a problem getting data from my join queries. If I run the following query :
QUERY:
SELECT lastfirst,EnteredBy,Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
Lastfirst EnteredBy Debit
caiu, test 204 1
But when I run the query correctly I get no results
QUERY:
SELECT sts.lastfirst,gl.EnteredBy,gl.Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
sts.lastfirst gl.EnteredBy gl.Debit
and if I run the query combining the two above methods and adding a field (schoolid) that has the same name on both table I get the following result sets
QUERY:
SELECT lastfirst,EnteredBy,Debit,sts.schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
lastfirst EnteredBy Debit sts.schoolid
caiu, test 204 1
QUERY:
SELECT lastfirst,EnteredBy,Debit,schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
NONE
Therefore, I have to have something written incorrectly in my php code and I just can not figure it out. My entire code is pasted below please provide me with an assistance you might have to offer. I have change the odbc_connec line so I could post it to this forum. In addition, I had to phrase out the column headers there for when you write the column headers you have to use ~ instead of , as the separator and then I turn back into the correct format for sql.
//These scripts just open help windows if somone clicks on the icon
<script>
function submit()
{document.sqlform.submit();}
</script>
<script>
function colwin(){
window.open("colnames.php",null,"height=300,width=400,scrollbars=1");}
</script>
<script>
function tabwin(){
window.open("tablenames.php",null,"height=300,width=400,scrollbars=1");}
</script>
<script>
function help(){
window.open("http://www.w3schools.com/sql/default.asp",null,"height=500,width=700,scrollbars=1");}
</script>
<form method="post" action="<?php echo $PHP_SELF;?>" name="sqlform">
<?php
//Cookie to check for authorization to the site
if($_COOKIE['cookie']=="CheckCookieForAuth")
//These get the values of the textareas after the form has been submitted
$sqlSELECT = $_POST["SELECT"];
$sqlFROM = $_POST["FROM"];
$sqlJOIN = $_POST["JOIN"];
$sqlWHERE = $_POST["WHERE"];
$sqlOTHER = $_POST["OTHER"];
$sqlSELECTTYPE = $_POST["SELECTTYPE"];
//This is the variable used to parse out my headers the user entered
$sqlColNames = split('~',$sqlSELECT);
//This converts the ~ separator to , so I can actually use it as part of my sql string
$search = array('~');
$replace = array(',');
$mystring = $sqlSELECT;
$sqlString = str_replace($search, $replace, $mystring);
//These are the textareas and the drop down options that the end users has to create queries
echo "<table border=0>";
echo "<tr><td valign='top'>";
echo "<B>SELECT TYPE</B> <BR><SELECT NAME=SELECTTYPE>
<OPTION VALUE='SELECT' SELECTED>SELECT</OPTION>
<OPTION VALUE='SELECT DISTINCT'>SELECT DISTINCT</OPTION>
<OPTION VALUE='INSERT'>INSERT</OPTION>
<OPTION VALUE='UPDATE'>UPDATE</OPTION>
<OPTION VALUE='DELETE'>DELETE</OPTION>
</SELECT>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=SELECT wrap=physical>$sqlSELECT</textarea>";
echo "</td><td valign='top'>";
echo "<img src='images/sqlC.jpg' width='25' height='25' onclick='colwin()'>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>FROM</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=FROM wrap=physical>$sqlFROM</textarea>";
echo "</td><td valign='top'>";
echo "<img src='images/sqlT.jpg' width='25' height='25' border=0 onclick='tabwin()'>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>JOIN</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=JOIN wrap=physical>$sqlJOIN</textarea>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>WHERE</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=WHERE wrap=physical>$sqlWHERE</textarea>";
echo "</td></tr>";
//This is where the end user would enter group by, having, order by, etc..
echo "<tr><td valign='top'>";
echo "<b>OTHER</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=OTHER wrap=physical>$sqlOTHER</textarea>";
echo "</td></tr>";
This is a run query icon and a help icon
echo "<tr><td colspan=2 align=right>";
echo "<img src='images/RunQuery.jpg' width='30' height='28' onclick='submit()'> <img src='images/qm.jpg' border=0 width='25' height='25' onclick='help()'>";
echo "</td></tr></table>";
echo "<br>";
echo "<br>";
//This is where I connect to my remote oracle database
$conn=odbc_connect('ODBC_ConnectionName','USERNAME','PASSWORD');
//This is the sql string created by the end users
$sql="$sqlSELECTTYPE $sqlString FROM $sqlFROM $sqlJOIN $sqlWHERE $sqlOTHER";
//This executes the connection string and the sql string
$rs=odbc_exec($conn,$sql);
//This will display the query or a message if the query is empty
if($rs!=NULL){
echo "<table border=1>";
echo "<tr>";
//This loops through the string array the end user enter the field name text area to get column headers
for($i=0; $i<count($sqlColNames); $i++)
echo "<td>";
print_r($sqlColNames[$i]);
echo "</td>";
echo "</tr><tr>";
//This actually fetchs the rows from the statement and then display the data based on the column names the end user speificed
while (odbc_fetch_row($rs))
for($i=0; $i<count($sqlColNames); $i++)
$results=odbc_result($rs,$sqlColNames[$i]);
echo "<td>$results</td>";
echo "</tr>";
odbc_close($conn);
echo "</table>";}else{echo "Results will be displayed here";}
echo "<br><br>";
echo $sql;
else
echo "Not logged in";
?>
</form>This looks more like a SQL question than a PHP issue. There are a couple of JOIN examples at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066611 that might you work through the problem.
-
I am having the same issue as posted in http://social.technet.microsoft.com/Forums/windows/en-US/6ea57e5f-6e9d-49bd-9dd7-832ea84c0276/windows-81-pro-will-not-join-domain?forum=w8itpronetworking
There are a few other people have the same issues. However there was no real solution provided although the post was marked as answered. I am posting it here again and hopefully I can get some help to solve this issue.
We got two new PCs, one with windows 7 and the other with windows 8.1 Pro. In the same network with domain, the windows 7 pc has no problem at all to join the domain. However the windows 8.1 Pro won't join the domain. On the windows 8.1 Pro computer,
I can ping the other computers in the network. The error message says:
An Active Directory Domain Controller (AD DC) for the domain "cmi" could not be contacted. ...
In my case, the domain name is "CMI". I am sure the DNS setting is correct. What did I do wrong? Any help is greatly appreciated. Thanks.I tried the solution in that article.
In HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters folder, there is no
NeutralizeNT4Emulator. So I followed the instructions and created one, and set the value to 1. Then I restarted the computer and tried to join the domain again. I got the same error. Below is more from the netsetup log file:
06/04/2014 21:36:37:256 -----------------------------------------------------------------
06/04/2014 21:36:37:256 NetpValidateName: checking to see if 'XPS8700' is valid as type 1 name
06/04/2014 21:36:40:256 NetpCheckNetBiosNameNotInUse for 'XPS8700' [MACHINE] returned 0x0
06/04/2014 21:36:40:256 NetpValidateName: name 'XPS8700' is valid for type 1
06/04/2014 21:36:40:256 -----------------------------------------------------------------
06/04/2014 21:36:40:256 NetpValidateName: checking to see if 'XPS8700' is valid as type 5 name
06/04/2014 21:36:40:256 NetpValidateName: name 'XPS8700' is valid for type 5
06/04/2014 21:36:40:256 -----------------------------------------------------------------
06/04/2014 21:36:40:256 NetpValidateName: checking to see if 'cmi' is valid as type 3 name
06/04/2014 21:36:40:272 NetpCheckDomainNameIsValid for cmi returned 0x54b, last error is 0x0
06/04/2014 21:36:40:272 NetpCheckDomainNameIsValid [ Exists ] for 'cmi' returned 0x54b
----------------below is the error message from the pop up window
Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt.
The domain name "cmi" might be a NetBIOS domain name. If this is the case, verify that the domain name is properly registered with WINS.
If you are certain that the name is not a NetBIOS domain name, then the following information can help you troubleshoot your DNS configuration.
DNS was successfully queried for the service location (SRV) resource record used to locate a domain controller for domain "cmi":
The query was for the SRV record for _ldap._tcp.dc._msdcs.cmi
The following domain controllers were identified by the query:
cmi-dc2.cmi
cmi-dc1.cmi
However no domain controllers could be contacted.
Thanks. -
Hi,
I have the following join cond on ekko, ekpo, ekkn tables.
SELECT m~ebeln m~procstat m~rlwrt m~frgke m~bukrs
c~ebelp c~txz01 c~knttp c~netwr
c1~nplnr c1~kostl c1~anln1 c1~sakto c1~prctr c1~aufnr c1~imkey c1~ps_psp_pnr c1~zekkn
FROM ekko AS m INNER JOIN ekpo AS c ON
c~ebeln = m~ebeln
INNER JOIN ekkn AS c1 ON
c1~ebeln = m~ebeln AND
c1~ebelp = c~ebelp
INTO CORRESPONDING FIELDS OF TABLE it_outtab
WHERE m~bukrs IN s_bukrs AND
m~bsart IN s_bsart AND
m~aedat IN s_date AND
m~lifnr IN s_lifnr AND
m~ebeln IN s_ebeln AND
c1~kostl IN s_kostl AND
c1~ps_psp_pnr IN s_posid AND
c1~nplnr IN s_aufnr AND
c1~aufpl IN s_vornr.
Now my problem is whenever there are no enteries in ekpo or ekkn table i'ts not showing those PO's in the final output bcoz I have used inner join logic. But I want those PO'S also. How can i do that.
Thanks,Change your query like this:
SELECT m~ebeln m~procstat m~rlwrt m~frgke m~bukrs
c~ebelp c~txz01 c~knttp c~netwr
c1~nplnr c1~kostl c1~anln1 c1~sakto c1~prctr c1~aufnr c1~imkey c1~ps_psp_pnr c1~zekkn
FROM ekko AS m LEFT OUTER JOIN ekpo AS c ON " << LEFT OUTER
c~ebeln = m~ebeln
INNER JOIN ekkn AS c1 ON
c1~ebeln = m~ebeln AND
c1~ebelp = c~ebelp
INTO CORRESPONDING FIELDS OF TABLE it_outtab
WHERE m~bukrs IN s_bukrs AND
m~bsart IN s_bsart AND
m~aedat IN s_date AND
m~lifnr IN s_lifnr AND
m~ebeln IN s_ebeln AND
c1~kostl IN s_kostl AND
c1~ps_psp_pnr IN s_posid AND
c1~nplnr IN s_aufnr AND
c1~aufpl IN s_vornr.
Regards,
Naimesh Patel -
Hi,
I have this following code; which I think there is a problem with the Joins. It is working fine when commenting the following fields:
T4.ocrCode as 'Profit Centre', T4.U_eEmpID as 'Employee ID',T4.Freetxt as 'Free Text'; but when I include these fields; data is being replicated.
Any ideas?
Thanks
select distinct
t0.docnum as 'PO No',
t0.docdate,
t0.docstatus as 'PO Status',
T0.CardCode,
T0.CardName,
T1.ItemCode,
T1.Dscription,
T1.Quantity,
T1.U_eFromDate as 'From Date',
T1.U_eToDate as 'To Date',
T1.Freetxt as 'Free Text',
T1.ocrCode as 'Profit Centre',
T1.U_eEmpID as 'Employee ID',
T2.DocEntry as 'GRN No.',
T2.DocStatus as 'GRN Status',
T2.DocDate,
t2.CardCode as 'Supplier Code',
T2.CardName as 'Supplier Name',
T4.U_eFromDate as 'From Date',
T4.U_eToDate as 'To Date',
T4.ItemCode,
T4.Dscription,
T4.Quantity,
T4.ocrCode as 'Profit Centre',
T4.U_eEmpID as 'Employee ID',
T4.Freetxt as 'Free Text'
FROM OPOR T0 JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
JOIN OPDN T2 ON T2.DocEntry = T1.TrgetEntry
JOIN pdn1 t4 on t4.DocEntry = T2.Docentry
JOIN OITM T3 ON T3.ItemCode = T1.ItemCode
where T3.ItemCode = 'TRA000001' }Hi,
are your two tables attribute master data tables? Can you paste the names here?
If as you mention you ae using the same IObj 0MATERIAL, the data in should be the same, unless you didn't turn the conversion routine in the TRules of your second IObj (table vno/matno)
Please describe with more detail the infoObjects related to your two tables and the TRules associated.
As a very first check, verify if your material has MATN1 conversion routine and if you have activated it in both TRules; if not, do that, reload your master data, activate it and check it again.
hope this helps...
Olivier. -
Problem with joined piece under Exchange
I have two mail box one in Notes8.5 and a new one in Exchage 2010. When I receive a mail with a joined peice like a pdf when I want to use it by press it, in Notes no problem I can select the Application but under Exchange it's charged charged but nothing I can select application. It's a problem with Exchange or I have to do something with applications?
UPDATE: The problem has been fixed. It turned out I had a different alias than my login in my account, which was confusing things. Getting rid of it fixed the problem.
-
Standalone lookup - How to join in ODI - SQL Server
Hi All,
My Sql server query is joining as follows
Select ...................
From A.DBO.MAIN
Inner Join A.DBO.LOOKUP_STANDALONE on 1=1
How will I convert this in ODI?
Thank you for the time and help.Hello,
I think that what you want to do is a cartesian join (join all rows from MAIN with all rows from LOOKUP_STANDALONE).
You can do that in ODI by drag one random column from MAIN onto one column of LOOKUP_STANDALONE (no matter which columns). Then click on your join et select the "Cross" Checkbox.
Hope it helps,
JeromeFr -
Diff b/w lookup and join in odi
Hi friends,
I am new to ODI ,
Please can anyone explain the difference between "join" and "lookup" ?
Thanks in advance !
CnuHi,
Have a look
https://forums.oracle.com/thread/2470379
Thanks -
How to use multiple outer join in ODI
SELECT
Count(*)
FROM
student S,
department D,
course C
WHERE
D.S_Name=S.S_Name
AND D.Dept_Name = C.Dept_Name (+)
and S.C_Name =C.C_Name (+)
And (D.Dept_ID = 1);
I run this query. I got an ORA-01417 error.In topology change the join option to Ordered ISO
then rewrite your query with ANSI syntax.
SELECT
Count(*)
FROM
student S join department D on D.S_Name=S.S_Name,
student S right outer join course C on S.C_Name =C.C_Name,
department D right outer join course C on S.C_Name =C.C_Name
where
(D.Dept_ID = 1);
First verify the code in sql client befor implementing it in ODI
Thanks,
Sutirtha
Maybe you are looking for
-
REPORT FOR SOURCE LIST OF MATERIAL WITH VENDOR DESCRIPTION
Dear All Let me know is any transaction where i will get the material source list similar as me03 transaction but with vendor name also . Regards, Rajendra Sawant.
-
Looking for a better way to backup end users
Hello there. Not sure if this the best forum for this post but here goes. Last week my company had a break in and a couple of laptops got lifted. Not a big deal as I had backups of the machines on tape. It did take a while to recover the files though
-
Can FCP X export .m4v directly?
Can FCP X export .m4v directly without usig Compressor?
-
Seem to have lost my required field option in Business Catalyst
Hi there, I have set up a business catalyst form and formatted it but in the process have lost the required field functionality http://aom002.businesscatalyst.com/registration_copy.htm The form should not be able to be able to be submitted if the ter
-
Hi, is it possible to store songs by folder ways in ipod Nano?
Hi, is it possible to store songs by folder ways in ipod Nano?