Using Import manager with XI
Hi,
I am working with Import manager without any connection with XI. So, I have created by myself a XML file and a its corresponding XSD file, and I have put the XSD file into the console using XML Schemas Table.
Finally, I choose into the MDM Import manager the next options:
- Type: XML Schema.
- Client System: MDM.
- XML Schema: the XML Schema declared.
- File name: the XML file created.
The import manager imports the XML file correctly. But, my question is:
It's the same using XI? I mean, How works MDM Import manager using XI?
For instance, If I want to work with a CRM client system:
1. XI works with CRM and tranforms its IDocs to XML.
2. XI puts its XML file into any folder (than doesn't correspond with the ports declared into the MDM Console).
3. Finally, XML takes the XML file in to that folder (exactly in the same way that I did before)
4. MDM Import manager then imports the XML file into the repository.
Is that correct or the process is absolutely different using XI?
Thanks in advance,
Marta.
Each time you create a <b>Port</b> in the MDM Console directories are created on the server to hold data being exported and imported via the Import Server and the Syndication Server. If you log into your server you can find these directories in a heirarchy similar to this:
/opt/MDM/Distributions/ServerName/Repository/
So for example, a directory for one of your <b>Ports</b> may be:
/opt/MDM/Distributions/MDM_ORA/Material/Inbound/ECC(clientsystem)/In_ECC(portname)/
In that directory you will find several folders. One of which is the <b>Ready</b> folder. That is where the import server looks to find files to import. You can change the settings for the Import Server in its .ini file. This file is probably located in either your /opt/MDM folder or /opt/MDM/bin depending on how the installation was set up. There you can set how frequently you want the import server to check that port directory. If you are on unix you start the import server by navigating to the /opt/MDM/bin directory and running the command:
./mdis
Then check that it's running via command:
ps -ef | grep mdis
If you are on a Windows server you simply have to right click -> start the service in <b>Services</b> panel. Also make sure to check the /Exceptions folder in the port directory (same location as the Ready folder), because if the import fails, a file will show up there and lock the port from further use until that file is removed from the Exceptions folder.
Good luck
Message was edited by:
Harrison Holland
Similar Messages
-
Tuple Loads using Import Manager
Running on 7.1 SP05 using the SAP supplied Vendor Master repostory archive.
Attempting to load company code data in the Vendors main table. Company Code Data is set-up as a tuple table in Console.
When defining the map in Import Manager it will only allow me to select Vendor Number as the matching field. And, as a result, it will not load all of the data in my load file - it loads the first value of Vendor Number and skips the other records where Vendor Number is duplicated. This makes sense; however, I need to be able to select both Vendor Number and Company Code as my matching fields when defining the map. These two fields are the unique identifier for the load file and all the data would be loaded correctly if I was able to select Company Code as well.
I read where you can set the tuple update option and I did this by adding Company Code, but for some reason, it is still only using Vendor Number as the matching field and not including Company Code with it.
Does anyone know how to get Company Code to appear in the "Mapped destination fields" so that I can match on both Vendor Number and Company Code? Or do other options exist where I could accurately load the tuple table?You match on the correct vendor in the Match Records tab. This positions you at the correct vendor.
To match on the correct Company Code you use the update tuple option (as you have done). The Company Code should be the only field that you use to match on the Company Code tuple. So, when the incoming record has the same Company Code the tuple will get updated. If the incoming record has a different Company Code, then you can set the options to either create a new tuple or skip the input record.
You can not match on the Company Code in the Match Records tab.
Edited by: Tom Belcher on Feb 18, 2011 10:13 AM -
Hierarchy Loads using Import Manager
Running on 7.1 SP05 using the SAP supplied Vendor Master repostory archive.
Attempting to load the Regions hierarchy table which contains three fields: Country (lookup flat), Region Code (text) and Region Name (text). When defining the map in Import Manager it will only allow me to select Region Name as the matching field. And, as a result, it will not load all of the data in my load file - it loads the first value of Region Name and skips the other records where Region Name is duplicated. This makes sense; however, I need to be able to select both Region Name and Country as my matching fields when defining the map. These two fields are the unique identifier for the load file and all the data would be loaded correctly if I was able to select Country as well. I have tried making Country both a unique field and a display field in Console, but to no avail.
Does anyone know how to get Country to appear in the "Mapped destination fields" so that I can match on both Region Name and Country?Hi Reinhardt,
I think you can achieve it by setting country field also as Display field (DF) along with existing Region name (DF) in Regions Hierarchy Table of MDM console.
Regards,
Mandeep Saini -
Updating Qualifiers using import manager
I am having difficulties with updating my data in qualified lookup tables. I have a qualified lookup table Produkt Market Data with market as a display field (hierarchical lookup).
All other fields in this table are qualifiers, most of them multi valued. I have loaded the non multi value fields in the table first, so there is an entry for eg product 4711, market Health Care.
When i try to update a field text (multi valued flat lookup) using the import manager, the record 4711-Health Care is not updated but a lot of entries 4711-Health Care are created extra, each of them containing one line of text. I used the option update all mapped fields (and have mapped only product, market and text). When I choose the option update Null fields only, nothing happens: only the lookup table for the text is updated.
can anyone tell me what i am doing wrong. It should be possible to update qualified fields using the import manager instead of creating new entries shouldn't it??
Regards,
BertHi,
See the below example.
HeirarchyT [Hierrachy Table]
Name Text[5]
Data in Hierarchy Table
Hier1
-H1
--H3
-H2
--H4
MainT[Main Table]
Field1[Text5]
QField1[Lookup Qualified multivaled]
LT1 [ Flat Table 1]
NameLT1 Text[100]
CodeLT1 Text[2]
Data in this Table
LT1Val1 LT1Code1
LT1Val2 LT1Code2
LT1Val3 LT1Code3
LT1Val4 LT1Code4
LT2 [ Flat Table 2]
NameLT2 Text[100]
CodeLT2 Text[2]
Data in this Table
LT2Val1 LT2Code1
LT2Val2 LT2Code2
LT2Val3 LT2Code3
LT2Val4 LT2Code4
QualTable[Qualified Table]
QH1 Lookup[hierarchy]
No(Qualifier) Yes(DisplayField)
QMLV1 Lookup[Flat]
Yes(qualifier) LookupTable[LT1]
Yes(Multivalue)
QMLV2 Lookup[Flat]
Yes(qualifier) LookupTable[LT2]
Yes(Multivalue)
Intial data in the repository:
Record 1: N1
Qualified Data:
QH1 : H3
QMLV1: LT1Val1,LT1Val3
QMLV2: LT2Val2,LT2Val4
Record 2: N2
Qualified Data:
QH1 : H4
QMLV1: LT1Val2,LT1Val4
QMLV2: LT2Val1,LT2Val3
Lets say u have source data in Excel sheet like below.
N1 H4 LT1Val2,LT1Val4 LT2Val1,LT2Val3
N2 H3 LT1Val3,LT1Val1 LT2Val2,LT2Val4
Follow the instructions given by Rajani till step 5.
In the Step 6 selct The default import action as <b>"Replace".</b>
I hope this helps.
Thanks and Regards
Subbu -
Error while using Import Manager in MDM 7.1 SP7
Hi,
We are using MDM 7.1 SP7. I am trying to import a Tab delimited flat file through import manager. When I try to connect the source file, I get the following error * Logon Error: Found non-complaint CSV format in input stream [Encoding:UTF16].96*
If I try to import through an excel there is not problem. Can someone help to solve this error while importing in Tab delimited flat file through import manager.
Best Regards
ManojHello Mandip,
I had tried doing it before posting my question. I saved it in UTF8 and then tried importing. Saving in UTF8 format made the import manager accept characters like Ä and the original error was solved, but when then a new error came which called for UTF16 format. When I digged into it I found that it is due to the double quotes(" ") in the flat file. When I removed the quote import manager accepted it.
So the conclusion is there should be a way to save the flat file in UTF16 format or the workaround is importing it in excel but again excel has limitation of importing 100000 records in one file.
Can you suggest how to save the flat file in UTF16.
Best Regards
Manoj -
Various problems using extension manager with command line
Hello all,
We are installing our plugins to CS4/5/5.1 version of Adobe Photoshop as part of our installer and allow the users to select specific versions of Photoshop to install the panel for. There are a few old problems that I wanted to rant about for quite some while and now with a whole bunch of problems that the 5.1 update introduced I feel I just have to voice them. I will limit it to PC only as it seems to be the most troubled platform
#1 As we cannot install our plugin only by using the Extension Manager (simply because it cannot handle all we've to do upon the installation) we have to run commands from within the our installer, non-interactively, of course.
The interface to command line installation is xmancommand.exe (or "Extension manager (Version). exe" - not sure whether it makes any difference. ). Now the first question is how to find this executable on the target machine, from an installer. Users may specify different locations to install the Creative Suite and it certainly does NOT have to be C:\Program Files\...(or %PRGRAMFILES% in general). ATM we are using an odd place in the registry to to find the path to the most recent Extension Manager but first its sometimes overwritten by another installation and in any case it only shows ONE version of the extension manager which of course cannot handle other versions (see #2)
#2 Why the most recent version of Adobe Extension Manager (5.5) cannot install the extension for 5.0? Well, install it actually does, however its disabled for CS5 and it seems that the only way to enable it on this platform is to find previous (CS5) extension manager and to enable it. Oh, actually no - it doesn't work! The only way that I found here working is to find CS5 extension manager first, install the extension there and then use CS5.5 extension manager to enable it. Why do I need both utilities to manage my extensions?!
#3 The program is severely lacking in documentation AND it doesn't produce reasonable output messages, so determining what it can actually support is a puzzle. For example, why "Dreamweaver CS5" is a correct product name and "Photoshop CS5" is not (don't different teams talk to each other)? Ok, lets forget the consistency, but how do I make the utility output the list of all products it supports, in their magic token form that it will actually be understood if passed in in the command line? By trial and error? This menthod btw is also extremely painful: nany times when specifying wrong parameters the program doesn't provide any output and just shrugs "whatever, go figure it yourself"...
#4 Why the only way to enable/disable an extension in Photoshop seems to be using magic "productfamily" keyword that is not even listed on Adobe's help page for command line options (here: http://help.adobe.com/en_US/extensionmanager/cs/using/WSB4845EDD-14E5-476a-B749-FF328830D1 4F.html).? E.g. "xmancommand.exe" -suppress -remove product=Photoshop extension=OurExtension" will ALWAYS fail with a lovely "'Photoshop is not supported by Extension Manager CS5.5." error; I've tried "PhotoshopCS5", "Photoshop CS5", "PhotoshopCS5.1" "Photoshop CS5.1", "Photoshop-12" (mentioned in examples section in http://help.adobe.com/en_US/extensionmanager/cs/using/packaging_extension.pdf ) and a whole bunch of other permutations - none seem to work (see #3). Magic "productfamily=Photoshop" does work. But then it only aims the current version ("CS5.1") and I need it to work for CS5 (I'm not even mentioning CS4...."). Would there be any suggestions?
Really, the question is, how do we, third-party developers, are supposed to interact with the command-line utility without knowing where it is, what product names is capable to work with and without being able to target specific platforms (i86 vs x64 anyone (http://forums.adobe.com/thread/672537)? CS5 vs CS5.1 (above)?). I don't know what your test cases are for the command line tool (if any!), but this is simply insane, folks, simply insane.I am sorry for the poor documentation of Extension Manager which causes you so much trouble.
1. You can use BridgeTalk API to ask specific version of Extension Manager to do something. There is sample in packaging_extension.pdf about this. You don't need to know the installation path of Extension Manager. One thing to note is that the value of bt.target is version specific, i.e. "exman-5.0", "exman-5.5" send this message to different version of Extension Manager, so you can change this value to install/enable/disable/remove extensions using different version of Extension Manager. More detailed documentation of BridgeTalk can be found by clicking "Help" menu then clicking "Javascript Tools Guide CS5" in "Adobe ExtendScript Toolkit CS5".
2. Specific version of Extension Manager only manage extensions for corresponding version of product. You should use Extension Manager CS5 to install extensions for Photoshop CS5. The reason that the extension you installed for Photoshop CS5.1 using Extension Manager CS5.5 is displayed for Photoshop CS5 in Extension Manager CS5 is that two versions of Photoshop specified the same directory for Extension Manager to manage extensions. This is a defect and will cause some problems if multiple versions of Photoshop co-existed in one machine. But "to find previous (CS5) extension manager and to enable it" should work for you, I guess you use command line to enable it and specify wrong product name (see #3) so that it doesn't work.
3. When using command line, you should specify "product" attribute with the name displayed at the left panel of Extension Manager. So "Photoshop CS5 32" is correct. Remember to enclose it with double quote because of existence of space character.
4. As above mentioned, use display name of Photoshop, and call proper version of Extension Manager by BridgeTalk. -
Simple guide for using SQLite Manager with Mac Firefox browsing history
Is there a basic beginner step-by-step guide (rather then a detailed user manual) on using SQLite Manager to work with Mac Firefox browsing history? Thank you!
Firefox doesn't have many option to mange the History.
You can only delete items or copy and paste them to bookmarks.
Using the SQLite Manager extension to make changes to the History is not really recommended because a lot of tables are involved.<br />
The extension is suited to inspect or export specific entries occasionally, but not for doing more complicated operations. -
Create key mapping using import manager for lookup table FROM EXCEL file
hello,
i would like create key mapping while importing the values via excel file.
the source file containing the key, but how do i map it to the lookup table?
the properties of the table has enable the creation of mapping key. but during the mapping in import manager, i cant find any way to map the key mapping..
eg
lookup table contains:
Material Group
Code
excel file contain
MatGroup1 Code System
Thanks!
ShantiHi Shanti,
Assuming you have already defined below listed points
1) Key Mapping "Yes" to your lookup table in MDM Console
2) Created a New Remote System in MDM console
3) proper rights for your account for updating the remote key values in to data manager through import manager.
Your sample file can have Material Group and Code alone which can be exported from Data Manager by File-> Export To -> Excel, if you have data already in Data Manager.
Open your sample file through Import Manager by selecting the remote system for which you want to import the Key mapping.
(Do Not select MDM as Remote System, which do not allows you to maintain key mapping values) and also the file type as Excel
Now select your Soruce and Destination tables, under the destination fields you will be seeing a new field called [Remote Key]
Map you source and destination fields correspondingly and Clone your source field code by right clicking on code in the source hierarchy and map it to Remote Key if you want the code to be in the remote key values.
And in the matching criteria select destination field code as a Matching field and change the default import action to Update NULL fields or UPDATED MAPPED FIELDS as required,
After sucessfull import you can check the Remote Key values in Data Manager.
Hope this helps
Thanks
Sowseel -
How to use import script with FDM using adapter ERPI?
Hi,
I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
Data loaded from eBS are YTD data.
I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
Thanks in advance for your help
FannyHello Fanny,
No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
Thank you, -
Order to import data in to SAP MDM using import manager
HI All,
Is this the order to import data in to SAP MDM?
Import look up tables
Import Hierarchy Tables
Import Taxonomy Tables -
Non -Qualifiers
Then import main table----map Qualifers along with Mian table and import...
Can we import entire taxonomy tables (Qualifiers, Non-Qualifers) along with main table after importing look up tables?
Thanks
RajeevHi Rajeev
The sequence mentioned by you is correct for importing data in MDM- flat lookup, hierarchy first followed by Main table.
Can we import entire taxonomy tables (Qualifiers, Non-Qualifers) along with main table after importing look up tables?
I am assuming that you are implying Qualified table here.
Import to qualified tables can be done in 2 ways-
1. Import separately using the unique field for the main table for linkages to the main table records.
2. Import can be clubbed with the main table import itself. In the import map we can use Join functionality to do a lookup based on the unique field for the main table.
For more details on the mechanism please go through the threads below-
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8090941f-a5a7-2a10-3ba6-b4af5ec6d97b
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/308c62a2-5faa-2a10-fda6-fa4aa7169734
thanks
Ravi -
Error Using Connection Manager with InfoSwing
Hi,
Im trying to connect to an Oracle 8.0.5 DB through the
Connection Manager. I succeed in connecting with tools like SQL+
and Toad but not with my applet.
The dosbox says:
oracle.jbo.rt.cs.CSException
oracle.jbo.rt.GenericDataException: JBO-100: A generic exception
occurred during Data access
Exception: java.sql.SqlException:Refused:
at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
Code>
at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
Code>
at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
Code>
at oracle.jbo.rt.cs.JBOSessionFactory.create<Compiled Code>
at oracle.jbo.rt.cs.JBOSessionFactory.create<Compiled Code>
at oracle.dafc.dataset.SessionInfo.connect<Compiled Code>
at oracle.dafc.dataset.SessionInfo.open<Compiled Code>
at oracle.dafc.dataset.SessionInfo.publishSession<Compiled Code>
at package4.Applet1.jbInit<Compiled Code>
at package4.Applet1.init<Compiled Code>
at sun.applet.Appletpanel.run<Compiled Code>
at java.lang.Thread.run<Compiled Code>
...and my java-source look like
theConnectString = "@(DESCRIPTION =(ADDRESS_LIST ="+
"(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.122)(PORT =
1610))"+
"(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.122)(PORT =
1521)))"+
"(CONNECT_DATA = (SID = ORCL))(SOURCE_ROUTE = YES))";
sessionInfo1.setConnection(new SessInfoDescriptor
("scott","tiger",SessionInfo.THIN,theConnectString));
Anyone a suggestion to make it work. My goal is to bypass the
applet-security.
Thanks in advance!
nullHans,
There are two issues here:
1. Connecting to the db from JDeveloper (the correct driver?)
2. Connecting to the db from an Applet
In order to narrow down the problem domain, try connecting from
the InfoBus Wizard using the correct dirver (for driver info see
posting on March 22 titled "JDeveloper can't connect to Oracle")
Hope this helps.
Regards,
Hans Duijn (guest) wrote:
: Hi,
: Im trying to connect to an Oracle 8.0.5 DB through the
: Connection Manager. I succeed in connecting with tools like
SQL+
: and Toad but not with my applet.
: The dosbox says:
: oracle.jbo.rt.cs.CSException
: oracle.jbo.rt.GenericDataException: JBO-100: A generic
exception
: occurred during Data access
: Exception: java.sql.SqlException:Refused:
: at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
: Code>
: at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
: Code>
: at oracle.jbo.rt.cs.local.JBOSessionFactoryImpl.create<Compiled
: Code>
: at oracle.jbo.rt.cs.JBOSessionFactory.create<Compiled Code>
: at oracle.jbo.rt.cs.JBOSessionFactory.create<Compiled Code>
: at oracle.dafc.dataset.SessionInfo.connect<Compiled Code>
: at oracle.dafc.dataset.SessionInfo.open<Compiled Code>
: at oracle.dafc.dataset.SessionInfo.publishSession<Compiled
Code>
: at package4.Applet1.jbInit<Compiled Code>
: at package4.Applet1.init<Compiled Code>
: at sun.applet.Appletpanel.run<Compiled Code>
: at java.lang.Thread.run<Compiled Code>
: ...and my java-source look like
: theConnectString = "@(DESCRIPTION =(ADDRESS_LIST ="+
: "(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.122)(PORT =
: 1610))"+
: "(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.122)(PORT =
: 1521)))"+
: "(CONNECT_DATA = (SID = ORCL))(SOURCE_ROUTE = YES))";
: sessionInfo1.setConnection(new SessInfoDescriptor
: ("scott","tiger",SessionInfo.THIN,theConnectString));
: Anyone a suggestion to make it work. My goal is to bypass the
: applet-security.
: Thanks in advance!
null -
Using IPTV Manager With IIS??
Has any one tried configuring the IPTV Manager to work with IIS?
OK, Just being curious.
The documentation has some examples for creating web pages using embedded plugins, including program directories (in a drop-down menu).
I have a standing demo at work that uses the web page / embedded plug-ins that's pretty much just the demos in the book edited to match our system.
That'll cover the user-side; I'm not sure if the Content Manager functions can be re-mapped to another system. Most of the actual functions are handled in perl, so I suppose it's just a matter of linking up the perl scripts to a different page.
Another approach may be to use the Windows Media Streaming system to control the addition of content, and use the web page w/ plug-ins to stream it to the end users. IPTV and WIndows Media system will work cooperatively. Basically, they just share a single content directory.
If I get a chance, I'll play with it and see what I can come up with. We have at least one of each Cisco IPTV units in the Lab, along with some MS W2K servers.
Good Luck
Scott -
Use Sync Manager with Vista Search Fold
Hi,
I've setup a custom search in Vista based on MP3 tags and I'm trying to setup the Creative Sync Manager to sync with files that are indexed by this search, Sync manager lets me select the search folder as a sync option but then doesnt find any files to sync with.
Anyone tried or have any success with this, or know of any software that might do the trick?
Thanks in advance,
NickIf the sync process hangs on a PIM category, it usually means there is data corruption.
There may be database corruption causing the issue. Click on the following link for the program called DbFixiT. This program has a trial version that you can download and install on your Palm OS device. The trial version will scan for database corruption and then report the corruption. You can then find the records causing the problem and fix them yourself or you can purchase the program and have it automatically fix the records.
http://www.pimlicosoftware.com/dbfixit.htm
Click on the following link to the kb.palm.com webpage for the article regarding sync'ing to multiple computers.
http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=29452
For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
http://kb.palm.com/SRVS/NUA/launchTab.asp?t=home&fn=tungsten&mn=e2&cn=unlocked
There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.
To avoid any problems with Palm desktop, make sure you are using the same version of Palm desktop on both PC's.
Post relates to: Palm i705 -
How to Modify Hierarchy Filed Values by using Import Manager
Hi All,
I have some lookup table values in my source file in 1st attempt I have updated successfully. But, after cross checks the same i found that hierarchy level are incorrect at the destination side.
Source Hierarchy lookup values
Item1
Item 2
Item 3
Item4
Destination Hierarchy lookup values
Item1
Item 2
Item 3
Item4
Note: After Adding the Source filed hierarchy structure by selecting the Add Branch as child opting in the value mapping area
I am getting unique constraint Violated error message while importing the values.
So, how can I update the Source Hierarchy fields structure to Destination Hierarchy Field structure?
Thanks in Advance.
MaheshHi Mahesh,
While importing the values if you get the error unique constraint Violated, that means that the same value has been mapped twice.
when you try to map the values of the hierarchy, NULL would have been automatically mapped.
When you select all the records and do add branch as child, the same NULL would have been added and mapped again.
If not with NULL, this could be the case with some other value.
Just check if some value is added and mapped twice in your value mapping.
This should solve your issue.
Try and let me know the result.
Regards,
Sravan -
What is difference when using import statement with static keyword ?
10. package com.sun.scjp;
11. public class Geodetics {
12. public static final double DIAMETER = 12756.32; // kilometers
13. }
Which two correctly access the DIAMETER member of the Geodetics class? (Choose two.)
A. import com.sun.scjp.Geodetics;
public class TerraCarta {
public double halfway()
{ return Geodetics.DIAMETER/2.0; }
B. import static com.sun.scjp.Geodetics;
public class TerraCarta{
public double halfway() { return DIAMETER/2.0; } }
C. import static com.sun.scjp.Geodetics.*;
public class TerraCarta {
public double halfway() { return DIAMETER/2.0; } }
D. package com.sun.scjp;
public class TerraCarta {
public double halfway() { return DIAMETER/2.0; } }
The correct answer is A,C.I understood how A is the answer ,but can anyone explain me about package import using static keyword.The above example can be used as a reference.
Thanks for your consideration.amtidumpti wrote:
10. package com.sun.scjp;
11. public class Geodetics {
12. public static final double DIAMETER = 12756.32; // kilometers
13. }
Which two correctly access the DIAMETER member of the Geodetics class? (Choose two.)
A. import com.sun.scjp.Geodetics;
public class TerraCarta {
public double halfway()
{ return Geodetics.DIAMETER/2.0; }
B. import static com.sun.scjp.Geodetics;
public class TerraCarta{
public double halfway() { return DIAMETER/2.0; } }
C. import static com.sun.scjp.Geodetics.*;
public class TerraCarta {
public double halfway() { return DIAMETER/2.0; } }
D. package com.sun.scjp;
public class TerraCarta {
public double halfway() { return DIAMETER/2.0; } }
The correct answer is A,C.I understood how A is the answer ,but can anyone explain me about package import using static keyword.The above example can be used as a reference.
Thanks for your consideration.here's a link to a small tutorial:
[http://www.deitel.com/articles/java_tutorials/20060211/index.html]
Maybe you are looking for
-
HP Laserjet Pro 400 MFP M425dn for Windows XP Profesional SP 3 not installed
At the beginning of the installation appears error message "HP CSI Shell - found an error" but the installation continues, but after a few seconds the following message appears "HP installer - found error". The installation continues, and soon appear
-
How do I look for a date that corresponds to a particular Week Number in a table?
Hello, I have a table (Table A) that looks like this (I am only including the first 5 months to keep image size down): The numbers in the table are dates, with custom formatting to just show the day. I have another table with all of the Week Numbers
-
What're the differences between JSP, Java Script, and Java Applet?
I am confused by the concepts: JSP (Java Server Page), Java Script, and Java Applet? What are their main differences?
-
Generating Dynamic form from static context.
Hi All I have static context node structure Section (Node) QuestionText (Attribute) AnsText (Attribute) I have populated the values in this node from an RFC in my code . Now i need to create a form dynamically with QuestionText as la
-
Unable to create image-based pop-up menu
Working in FW MX (yes, I know I'm behind the times!). Created a pop-up menu; want to experiment with image-based options, rather than html. When I choose IMAGE on the Appearance tab of the pop-up editor, no styles are available in the style choosers