How to import a lookup table
Hi all,
I am trying to import a simple XML file using import manager with the following information:
- NAME: STRING
- LAST NAME: STRING
- CITY: STRING
I have in my repository the next information:
- NAME: TEXT.
- LAST NAME: TEXT.
- CITY: LOOKUP TABLE (CITY TABLE)
CITY TABLE is a lookup table with just a fiel called 'NAME:TEXT'.
With import manager I select the XML field CITY:STRING and I clone it. After that, I select the lookup table called TABLE CITY and I make the following map:
- <b>Remote key</b> (Repository) maps with <b>City clone</b> (XML file)
- <b>name</b> (Repository) maps with <b>city</b> (XML file).
Finally, I select the Products table from the repository and I make a new map between CITY:LOOKUP TABLE (from the repository) and city (from the XML File).
The import status fails. What is wrong?
Thanks in advance,
Marta
Hi Marta,
you have to import the lookup table before importing the main table data using an extra import map.
But if I understand your description correctly, you only have one field in your city repository, which is the display field. This way, you can also load into the city lookup table using only the main table import.
When you select 'city' in the field mapping (destination table is the main table), you will see the distinct values in the value mapping area below.
In the destination pane of the value mapping, there shouldn't be any values for the initial import. So you have to select all your source values and 'ADD' them to your repository.
If this still doesn't work, try the two maps aproach and import the cities prior to the main table records, then you can automap them later with the main table import.
Please tell me if this still doesn't work.
Regards,
Christiane
Similar Messages
-
How to import the internal table into subroutine as parameter
how to import the internal table into subroutine as parameter, and its structure can be recognized inside the subroutine
Hi Yong,
try this:
parameters: p_tabnm like dd03l-tabname.
field-symbols: <fs_tabname> type standard table.
data: itab_ref type ref to data.
create data itab_ref type standard table of (p_tabnm)
with default key.
assign itab_ref->* to <fs_tabname>.
select * from (p_tabnm) into table <fs_tabname>.
perform subroutine tables <fs_tabname>
using p_tabnm.
*& Form subroutine
text
-->P_<FS_TABNAME> text
-->P_P_TABNM text
form subroutine tables p_tabname type standard table
using p_tabnm.
Here p_tabname already has the structure of the table you gave as input
parameter
endform. " subroutine -
How to create a lookup table in flex
Hi,
I am not sure how to construct and use a lookup table in flex, i have a string which needs to replaced with a string in the lookup table. Can someone let me know can i can do this.
Thanks@learningflex,
Here is the simple example of doing this..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreationComplete();">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import flash.utils.setInterval;
import mx.controls.Alert;
[Bindable]
private var dataList:ArrayCollection = new ArrayCollection([
{name:'Person'},
{name:'Student'},
{name:'Teacher'},
{name:'Employee'}]);
private function onCreationComplete():void
for(var i:int=0;i<dataList.length;i++)
var obj:Object = dataList.getItemAt(i);
obj.abbr = getAbbrevatedName(obj.name);
dataList.setItemAt(obj,i);
dataGrid.dataProvider = dataList;
private function getAbbrevatedName(name:String):String
switch(name)
case "Person":
return "prsn";
case "Student":
return "sdt";
case "Teacher":
return "tcr";
case "Employee":
return "emp";
default:
return "";
]]>
</mx:Script>
<mx:DataGrid id="dataGrid" x="10" y="177" visible="true">
<mx:columns>
<mx:DataGridColumn headerText="Actual Name" dataField="name"/>
<mx:DataGridColumn width="150" headerText="Abbrevated Name" dataField="abbr"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
See I have displayed both the FullNames in one column and also the abbrevated names in another column. So you can make use of the second column.
Thanks,
Bhasker -
How to Import customized internal table to smartform from Print Program
Hi Gurus,
I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
With regards,
S.SaravananThere is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
Regards,
Raymond -
How to Import/Export database tables from one server to other in oracle8i
Hello friend,
Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
Its very urgent so please someone help me.At command prompt (source db)
set ORACLE_SID=db_name
exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
At command prompt (target db)
set ORACLE_SID=db_name
imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
Message was edited by:
FeNiCrC_Neil -
Hi
I have been looking and trying to figure this out for a few days and after awhile you just head no where.
What I need to do is use a lookup table and change gray code to an angular reading.
I have an 11 bit encoder I am also using LabVIEW 7.1 with a USB-6259. I can read the decimal and the Hex values but just can not seem to figure out how to get the angular measurements that I need. I have attached a simple .vi to get the hex and decimals as well as a .txt file with the gray code any help will be appreciated.
Thanks
Gerald
Attachments:
Encoder Test 8-14-06.llb 26 KB
test3.txt 51 KBNew problem. Have duplicated the VI and hooked up the second sensor. Sensor 1 still works fine sensor 2 does not. I think the problem is that it is reading 22bit and I only need 11 bit. I have both sensors wired into port0 sensor 1 is wired to port0/line0:10 sensor 2 is wired port0/line11:21. Is there a way to ignore the fist 11bits (line 0:10) or a way that would work. It shows up as 1100111110100000000000 and a dec. as 3401728. Please see attached.
Thanks in advance
Gerald
Attachments:
Encoder Test 8-16-06.llb 72 KB
test6.txt 25 KB -
How To Import Into A Table with Multi-Value Fields
Hello:
I have a table with a multi-value field that contains states in which a company does business. It is multi-value because there can be more than one state. I tried to import a text tab-delimited file in which the data was arranged as follows:
Field1 Tab Field 2 Tab OR, WA, CA Tab
The "State field contained the multiple entries separated by a comma (like they appear in a query of the multi-value field), but it won't accept it. Does anyone know how to import into a multi-value field?
Thanks,
Rich Locus, Logicwurks, LLCJoana:
Here's the code I used to populate a multi-value field from a parsed field. The parsing routine could be greatly improved by using the Split function, but at that time, I had not used it yet. FYI... the field name of the multi-value field in
the table was "DBAInStatesMultiValue", which you can see in the example below how it is integrated into the code.
Option Compare Database
Option Explicit
Option Base 1
Dim strInputString As String
Dim intNumberOfArrayEntries As Integer
Dim strStateArray(6) As String
' Loop Through A Table With A Multi-Value Field
' And Insert Values Into the Multi-Value Field From A
' Parsed Regular Text Field
Public Function InsertIntoMultiValueField()
Dim db As DAO.Database
' Main Recordset Contains a Multi-Value Field
Dim rsBusiness As DAO.Recordset2
' Now Define the Multi-Value Fields as a RecordSet
Dim rsDBAInStatesMultiValue As DAO.Recordset2
' The Values of the Field Are Contained in a Field Object
Dim fldDBAInStatesMultiValue As DAO.Field2
Dim i As Integer
' Open the Parent File
Set db = CurrentDb()
Set rsBusiness = db.OpenRecordset("tblBusiness")
' Set The Multi-Value Field
Set fldDBAInStatesMultiValue = rsBusiness("DBAInStatesMultiValue")
' Check to Make Sure it is Multi-Value
If Not (fldDBAInStatesMultiValue.IsComplex) Then
MsgBox ("Not A Multi-Value Field")
rsBusiness.Close
Set rsBusiness = Nothing
Set fldDBAInStatesMultiValue = Nothing
Exit Function
End If
On Error Resume Next
' Loop Through
Do While Not rsBusiness.EOF
' Parse Regular Text Field into Array For Insertion into Multi-Value
strInputString = rsBusiness!DBAInStatesText
Call ParseInputString
' If Entries Are Present, Add Them To The Multi-Value Field
If intNumberOfArrayEntries > 0 Then
Set rsDBAInStatesMultiValue = fldDBAInStatesMultiValue.Value
rsBusiness.Edit
For i = 1 To intNumberOfArrayEntries
rsDBAInStatesMultiValue.AddNew
rsDBAInStatesMultiValue("Value") = strStateArray(i)
rsDBAInStatesMultiValue.Update
Next i
rsDBAInStatesMultiValue.Close
rsBusiness.Update
End If
rsBusiness.MoveNext
Loop
On Error GoTo 0
rsBusiness.Close
Set rsBusiness = Nothing
Set rsDBAInStatesMultiValue = Nothing
End Function
Public Function ParseInputString()
Dim intLength As Integer
Dim intStartSearch As Integer
Dim intNextComma As Integer
Dim intStartOfItem As Integer
Dim intLengthOfItem As Integer
Dim strComma As String
strComma = ","
intNumberOfArrayEntries = 0
strInputString = Trim(strInputString)
intLength = Len(strInputString)
' Skip Zero Length Strings
If intLength = 0 Then
Exit Function
End If
' Strip Any Leading Comma
If Mid(strInputString, 1, 1) = "," Then
Mid(strInputString, 1, 1) = " "
strInputString = Trim(strInputString)
intLength = Len(strInputString)
If intLength = 0 Then
Exit Function
End If
End If
' Strip Any Trailing Comma
If Mid(strInputString, intLength, 1) = "," Then
Mid(strInputString, intLength, 1) = " "
strInputString = Trim(strInputString)
intLength = Len(strInputString)
If intLength = 0 Then
Exit Function
End If
End If
intStartSearch = 1
' Loop Through And Parse All the Items
Do
intNextComma = InStr(intStartSearch, strInputString, strComma)
If intNextComma <> 0 Then
intNumberOfArrayEntries = intNumberOfArrayEntries + 1
intStartOfItem = intStartSearch
intLengthOfItem = intNextComma - intStartOfItem
strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
intStartSearch = intNextComma + 1
Else
intNumberOfArrayEntries = intNumberOfArrayEntries + 1
intStartOfItem = intStartSearch
intLengthOfItem = intLength - intStartSearch + 1
strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
End If
Loop Until intNextComma = 0
End Function
Regards,
Rich Locus, Logicwurks, LLC
http://www.logicwurks.com -
How to import a single table?
Simple question: I have done an export some weeks ago of a table.
exp user/pass@database file=c:\table001.dmp log=table001.log tables=TABLE001 rows=yes indexes=no
Now I want to recover only this table, what is the command to do it?
imp user/pass@database file=c:\table001.dmp??
Will the data contained in table001 be deleted and then oracle will insert the data of my dmp file?
Will it just add it to the content with possible PK violations?
If the table has been droped do I have to recreate it again before doing the import?Will the data contained in table001 be deleted and
then oracle will insert the data of my dmp file?No, import will not drop table nor delete records. It will fail if table exists, unless import with IGNORE=Y.
Will it just add it to the content with possible PK
violations?Yes, if there's PK constraint voilation you will find error in logfile. import will disregards the record.
If the table has been droped do I have to recreate it
again before doing the import?No, you don't have to recreate it. -
How to import an excel table into iWEb
I am trying to post results from a race. I have an excel file that lists participants by gender age and distance. I would like to add this list as a link from one of my web pages.
Mark & Drew ~ Welcome to the Support Communities. Let me ...Well, see for yourself by clicking HERE. There's also this tutorial:
ASC — Searching -
How can Import Mysql my database and Table into website -
Hi,
friend i am using CS3 ,i made all need tables in database ,I need to know
how can import that database /table into website.
I know in domin there is admin Mysql inside i have found impotr/export/ but
when I click import i do not know where my database/table been save to import itIf all you are trying to do is change an existing tablepace from a single datafile to multiple datafiles, then a simple import will work fine. Just create the tablespace in the new database with multiple files, then do the import normally.
If you want to move segments into different tablespaces, or change the names of the tablespaces, then you will need to precreate the tables before importing. Then, do the export with indexes=N and constraints=N. Run import with the resulting file, then re-create the constraints and indexes in the new tablespaces.
TTFN
John -
How to fill Lookup table run time with desired values in project server 2010.
HI,
is this possible to fill LookUp Table with some Desired Values at Runtime ??
Or How to bind a LookUp table with DataBase Table??Dear Rohan,
You need to do this via PSI script for lookup table.
Follow this blog Chris Boyd:
http://blogs.msdn.com/b/project_programmability/archive/2006/11/08/adding-a-project-to-a-category.aspx
Regards,
Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. -
How to import new tables from database
I have relational source in OWB. I had added a new table in teh database, now I donot know how to import this new table in OWB9i?
I will appreciate your help.
Thanks
SyedMark,
I am sorry I did not explain the problem clearly. I created module of the relationa source and then using DB link I had imported all the tables from schema A , but my question is that I had created a new table in the Schema A and I want to just import that table in my relation resource module. Is there a way to do it in OWB? How do we create just on etable in OWB module?
Thanks
Syed -
How to import/export data in pl/sql developer
how to import/export data,table script in pl/sql developer.
By using the export functionality i am getting the dump file.I want a sql file.How do i do it?
And i want the data in csv file and table script in a sep sql file.How do i do it?<li>run your query in "Query Builder"
<li>Right-Click on the Query-Results
<li>Click "Export"
<li>Click on the "Drop-Down" in front of "Format" and choose "insert"
<li>Provide the location and name of ther "sql" file.
If you want output in CSV format, choose "csv" from the "format" drop-down.
HTH -
Hello,
I basically have only fact tables that I need for my analysis. No dimensions, no hierarchies.
When add two tables in OBI Answers to start the analysis I see this error:
[nQSError: 14025] No fact table exists at the requested level of detail
I have them defined as lookup tables. How can I join lookup tables?
In order to pre-filter them using the user_name session variable.Hi Nagireddy.
As described:
open your rpd. go to "manage" -> Variable Manager / New / Session / Variable. so to create a new session variable in the .rpd.
then you create a variable NO_FORCE_TO_DETAIL_BIN and se the default to 1.
BUT....this did actually not do the trick
I have created a logical table that is a table made up of the two that I just want to join and as soon as I create a bi answers report that contain columns from those two tables I see the error 14025. -
Creating Lookup table in Labview 7.1
For a particular input voltage, the output is distance in cm. For example if the the voltage is 6.2mV the output should be 2.5cm, for 6mV the output is 6cm. Whenever an input voltage between any of these values is given, the output should be interpolated and displayed in cm. I would like to maintain a lookup table for this purpose in Labview 7.1. The graph between input and ouput is a linear graph. I would to know how to create a lookup table and configure it in Labview 7.1..
Well since it is still AE Week here is an AE implementation of a LUT
Inititalize it with an array of raw values along with an array of the tranlsated values.
Use the Lookup action to translate raw to tranalsted.
Itr uses the threshold and interpolate VI to do the translation.
Ben
Message Edited by Ben on 04-12-2007 12:45 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
LUT.JPG 42 KB
Look-up_Table.vi 38 KB
Actions.ctl 7 KB
Maybe you are looking for
-
Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. The reports
-
Hi, I have Final Cut Pro set for external hard drives but for the life of me I cannot get color to do the same. I see all my applications, desktop but I cannot see my LaCie external hard drives. How do I set color to go there? Hope this makes sense!
-
Hi, I would like to build an application with the FTDI FT2232 Chip which should communicate over SPI with an external device. I am using Labview and have implemented predefined VIs from the FTDI Webpage. I think, i have configured all important param
-
i am trying tu update my ipod software to 5.0 but when i do it tells me that the connection times out i look at my downloads and it says err=-3259 what do i do?
-
XML problem in 8.0.5
Hi I am using Oracle 8.0.5. Just now downloaded "XML SQL Utility for Java". Well. when I try to execute the file ( I am working on Solaris, and jdk1.1.6) oraclexmlsqlload.csh it is giving me the following error: Loading jar files... Loading xmlparser