Could anyone explain the question i faced about required language?

i got an interesting question about the language.
how to define required language in SO/DN/TO document
could anyone help me?
when i was creating a SO and DN, the system warned me :
"Material *** is not defined for sales org.**,  distr.chan.*, language ZH"
than i changed the material language to ZH in additional data.
the problem solved
the question is when i was creating a TO(transfor oder), the system warned me
"The material does not exist or is not activated"
then i tried many ways to solve the problem, but they didn't work,
today i changed the material language back to EN, then the problem solved, I can save the TO.
but i can't explain why, i am a little confused.
could anyone told me? thanks a lot. 
how to define required language in SO/DN/TO document

Hi Lee,
Change the language to en at Sales org. & plant level.
For SO :- Goto SPRO -> ENTERPRISE STRUCTURE-> definition ->sales & distribution-> check,copy sales org. ->
select your sales org. & goto address (shift+F5), change the language to EN
For Plant :- Goto SPRO -> ENTERPRISE STRUCTURE-> definition ->logistics general->define plant-> select you plant &
goto address (shift+F5), change the language to EN.
Regards
San

Similar Messages

  • Can anyone explain the function BAPI_PROJECT_GETINFO

    Hi
    Can anyone explain the function BAPI_PROJECT_GETINFO.
    Can anyone explain the import and export parameters of this function module.
    What is the logic.
    I'm getting the output as 'No data record exists'.
    This is immediately required.Please help me.
    Thanking you
    Chandrika.

    hi
    good
    go trhough this
    Short text
    Read detailed information for work breakdown structures
    Functionality
    You use this method to read detailed information about project definitions and the WBS elements of certain projects from the system.
    Notes
    Enter the project definitions and/or the WBS elements, which you want detailed information about, in the parameter PROJECT_DEFINITION or I_WBS_ELEMENT_TABLE respectively.
    If you only enter project definitions, the details of all the WBS that belong to the project definitions are read including the hierarchy. If you explicitly enter WBS elements, only these are read.
    Messages are returned in Return parameters. For information about the return values and their meaning, see the parameter documentation.
    Parameter
    PROJECT_DEFINITION
    WITH_ACTIVITIES
    WITH_MILESTONES
    WITH_SUBTREE
    E_PROJECT_DEFINITION
    RETURN
    I_WBS_ELEMENT_TABLE
    E_WBS_ELEMENT_TABLE
    E_WBS_MILESTONE_TABLE
    E_WBS_HIERARCHIE_TABLE
    E_ACTIVITY_TABLE
    E_MESSAGE_TABLE
    thanks
    mrutyun^

  • Can anyone explain the functionality of FM f4ut_parameter_get_values ?

    Can anyone explain the functionality of FM f4ut_parameter_get_values ?
    This is used in search help to retrive values from screen.This doesnt seem to work for me

    hi,
    check this
    F4UT_PARAMETER_VALUE_GET
    Short Text
    Standard search help exit for determining contents of a srch help par.
    FunctionalityBy calling this module in a search help exit, you can find out the current contents of a search help parameter . To do this, you must pass the name of the parameter in PARAMETER.
    You must distinguish between the parameter contents that are used in the selection process of the input help process and the parameter contents that are determined by the selection process and the user selection.
    Parameter contents that are used in the selection process are default values of search help parameters, values that are included in the input help process by attaching the search help to the screen from field contents of the screen or its module pool, and possibly complex restrictions made by the user in the dialog box for restricting value. Such parameter contents can also be included in the input help process by the search help exit itself.
    The contents of the specified parameter used in the selection process are stored as complex restrictions in SELOPT_TAB after the call. If exactly one value is defined by these complex restrictions (for example if the restrictions have exactly one row and if SIGN = 'I' and OPTION = 'EQ' for this row), this unique value can be found in VALUE.
    Parameter contents that are determined by selection process and user selection are the parameter contents that are shown in the dialog box for displaying the hit list or returned on the screen. They are managed by the F4 processor in RECORD_TAB.
    This module enables you to transfer the information about the specified parameters from RECORD_TAB to RESULTS_TAB in edited form.
    Pass the name of the field of RESULTS_TAB that should contain the contents of the parameter to the function module in parameter FIELDNAME. If the row type of RESULTS_TAB is elementary, pass the value '*' in FIELDNAME. The rest of RESULTS_TAB is not changed. The values are copied row by row. By removing rows at the end or by adding intiial rows you can make sure that RESULTS_TAB has exactly as many rows as RECOD_TAB.
    Example
    You can find an example of the second kind of use of the module in the search help exit SAPBC_GLOBAL_F4_SFLIGHT of search help SFLIGHT.
    Both types of use can be found in the search help exit SAPBC_GLOBAL_F4_SFLIGHT_MIN_FR of search help SFLIGHT_MIN_FREE .
    Notes
    1. Parameters OFF_RESULT and LEN_RESULT should not be used any more since there are basic problems when using UNICODE. The contents of these parameter are still analyzed when parameter FILEDNAME is initial for compatibility reasons.
    2. Only the dialog box for restricting values can normally produce complex restrictions for a parameter.
    3. If VALUE has the value SPACE, this means that either there are complex restrictions for the parameter or the unique contents are SPACE. SELOPT_TAB must be evaluated in order to determine which of these is the case.
    4. If the search help does not have any parameter with the given name, the exception PARAMETER_UNKNOWN is triggered.
    5. Only parameter contents for the search help displayed in the hit list or the EXPORT parameters of the search help are first managed in RECORD_TAB. If the specified parameter does not satisfy one of these conditions and if parameter RESULTS_TAB is specified in the call, the exception PARAMETER_UNKNOWN can also be triggered. This is not true, however, if results were already entered for the parameter with function module F4UT_PARAMETER_RESULTS_PUT or if space was reserved for the parameter in RECORD_TAB with function module F4UT_PARAMETER_ALLOCATE. The parameter therefore should only be defined if information about the parameter contents are really required.
    6. The header lines of the specified parameter are also transferred from RECORD_TAB to RESULTS_TAB.
    7. The other parameters of this module must be defined as the parameters of the search help exit having the same name, but they are not changed by this module.
    8. RESULTS_TAB should be a standard table.
    9. The contents of the specified parameter in RECORD_TAB are copied to the specified field of table RESULTS_TAB with a MOVE of the correct type. If this is not possible, the target field is assigned the initial value.
    10. If RESULTS_TAB has no field with the name specified by FIELDNAME, only the number of rows of RESULTS_TAB is adjusted to those of RECORD_TAB as described.
    Parameters
    PARAMETER
    OFF_RESULT
    LEN_RESULT
    FIELDNAME
    VALUE
    SHLP
    CALLCONTROL
    SHLP_TAB
    RECORD_TAB
    SELOPT_TAB
    RESULTS_TAB
    Exceptions
    PARAMETER_UNKNOWN
    Function Group
    SF4U
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Can anyone explain the advantage of iPod vs iPad over Kobo Vox for reading iBooks?

    Can anyone explain the advantage of iPod vs iPad over Kobo Vox for reading iBooks?

    Thank you Alan and  know you are right. I really can do all I need with my netbook and ereader and do not need the ipad. I think I just wanted something new and felt I may enjoy using it a lttle more than the netook. But it would be a waste just to buy one when I donlt acutally need it  And, donl't think it is worth the extra money for me the get the 4g wireless capability since I doubt I would really need it often.
    I may treat myself to the Ipad for the color, touchpad and fun to use but it is very expensive considering how little it will do for me no more than the things I want it for. It woudl be and expensive luxuray, I can do without. I actually  need t learn how to use more of the function avaiable first.  Maybe I should take up playing games and learning to take digital pictures so I can at least load them. If I could learn to do that and take a decent picture, I could start selling back all the "stuff" I have purchased on ebay. haha - I do have a nice doll collection, I would like to sell. I just do not have room for anything else. That was the primary purpose for the Kindle Ereader I bought and enjoy so much,
    But, I will hold onto the thought for a while and see how it goes and what other comments I get, If I think I cannot live without it, then I will have to rethink which one to buy, I coud get the 32 g if I did not have to pay for the 4g wireless. And, if I knew I could get help to teach me how to use and enjoy all the functions, I would give it more serious consideration. My granddaugther got one for Christmas and that was what got me interested in it. I love the size of the screen and it had good color and was fast. She even had an application where she could write her notes and it would convert into typed words. That was a neat feature, If you could print it?
    But thanks again for your comments and I will check later to see I get any other feedback.
    Sunny:)

  • Can anyone explain the main differences between CRM 2007 and CRM 7?.

    Can anyone explain the main differences between CRM 2007 and CRM 7?.
    Does CRM 2007 use the WebUI?.
    Jason

    My fault for not putting my question forward correctly.
    I have worked with CRM 7 a few times now, but my experience has jumped me from CRM 5 straight to CRM 7, having never touched CRM 2007.
    I now have an opening to work on CRM 2007 so I was intrigued to know what it physically looked like. I assume it does not use the WebUI interface?.
    Jas

  • Could u explain the business process

    hi guru's
    could u explain the business process scenario ,  how it works in bw . could u explain detailed, suppose to take CLINT NOKIA MOBILE AND MY EMPLOYER SOME  XX COMPANY,
    CAN U EXPLAIN DETAILED?

    Hi Prabha,
    Aggregate Definition :
    An aggregate is a materialized, aggregated view of the data in an InfoCube. In an aggregate, the dataset of an InfoCube is saved redundantly and persistently in a consolidated form on the database.
    Use
    Aggregates allow quick access to InfoCube data during reporting. Similar to database indexes, they serve to improve performance.
    An aggregate is made up of the characteristics and navigation attributes that belong to an InfoCube. Characteristics that are not used in the aggregate are compressed.
    Each component of an aggregate has to be assigned to a selection type. A selection type indicates the degree of detail to which the data in the underlying InfoCube is aggregated. You can choose one of the following selection types:
    All characteristic values ("*"): The data is grouped by all values of the
    characteristic or navigation attributes .
    Hierarchy level (“H”): The data is grouped by the hierarchy level node. You can
    also store values on the hierarchy levels of an external hierarchy .
    Fixed value (‘F’): The data is filtered by a single value .
    For each InfoCube, you can set whether the aggregates of the InfoCube are compressed automatically when it is filled with data or after the roll up of data packages (requests).
    1. You are in the Data Warehousing Workbench in the Modeling functional
    area. In the InfoProvider tree, navigate to the required InfoCube.
    2. In the context menu of the InfoCube, choose Manage.
    3. In the lower part of the screen, select the Roll Up tab page.
    4. Under the Aggregates group header, set the corresponding indicator in
    the Compress After Roll Up field.
    Standard Aggregation : This means how the key figure is going to be summarized normally for a specific set of characteristics .
    Eg : Quantity across all the purchase items for a purchase Order
    Exceptional Aggregation : You define how the aggregation should happen basing on a particular characteristic ( Usually time characteristic ) .
    Eg : head count ( No of Employees ) in a organisation ..--> this should not be summarized on a daily basis..instead this should give a final value at the end of the month .
    Aggregation is basically for keyfigures .
    take a look at this doc, you will find all your answer:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cbd2d390-0201-0010-8eab-a8a9269a23c2
    Refer this for aggregates
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    Aggregates versus Physical Cube Splits?
    http://help.sap.com/saphelp_bw33/helpdata/en/c5/40813b680c250fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/ca/aa6437e7a4080ee10000009b38f842/frameset.htm
    Question1: how we will see the based on aggreagate what querys are running
    I think "aggreegate maintance screen ---proposal -
    query proposal" i am right ,if it is worng pls correct me?
    Answer 1:
    There are two tools that are used to analyze which aggregate is suitable for which navigation step.
    You optimize the start screen of a query with the query Monitor (transaction RSRT) if you execute the function Execute + Debug.
    With the trace tool (transaction RSRTRACE) you can draw several navigation steps, and process them again using the function DB Debugging (exact path: Transaction RSRTRACE > Goto > User Logs or All Logs > double-click on the log you want > DB Debugging).
    Refer The OSS note 99010
    Question 2: When i am creating a aggregate what charteristics we choose i mean based on report/some thing else?
    Answer 2:
    By refering the Statistical data and comparing the Proposed Aggregates we can create the aggregates.
    The above RSRT and RSTRACE will be more useful tools to plan an Aggregate.
    Refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a67abe07211d2acb80000e829fbfe/content.htm
    and other option is:
    Refer page 36 in this PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    Question 3:
    When we are crearting a agreegate one message box will apper in that we one option "proposed aggregate" wht does it mean how it work??
    Answer 3:
    Based on the Statistical data and query-aggregate data system will propose the new aggregate definitions.
    Question 4:
    under what senario we apply for query performance aggregates??
    Answer 4:
    Refer this PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cbd2d390-0201-0010-8eab-a8a9269a23c2
    For more info refer:
    http://help.sap.com/saphelp_nw04/helpdata/EN/7d/eb683cc5e8ca68e10000000a114084/frameset.htm
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D133%26threadID%3D51253%26messageID%3D526450%23526450
    You have a aggregate document by SAP in http://service.sap.com/bi -> BI Infoindex which would answer all your questions.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/eb683cc5e8ca68e10000000a114084/content.htm
    It would be very useful for you to go through the performance tuning with aggregates documents here:
    Business Intelligence Performance Tuning [original link is broken]
    Look at the thread below for index:
    Indexes, Aggregates , partitioning of cube
    Hope this helps.
    Regards,
    Ravikanth

  • Can anyone explain the use of PhantomReference

    Can anyone explain the use of PhantomReference( if possible by an example..).

    Payment request is a noted document and as such does not pass any accounting entry. For effecting a payment to a
    Against the payment request you can effect the down payment. Suppose u have completly automated payment system and if you want to effect a down payment, you can do it only by payment request.
    Payment requests can be controlled through workflow for proper autorization.

  • Hi, can anyone explain the difference between the models A1457 and ME432B/A of the iPone 5s. Thanks

    Hi, can anyone explain the difference between the models A1457 and ME432B/A of the iPone 5s.

    Hi Gary,
    Model # A1457 designates that it's the European market model, which I believe works on EE, Vodafone and O2 in the UK.
    ME432B/A is the part # that, in your case, I believe, desginates a 16GB Space Grey Unlocked version...
    Someone can correct me if I'm wrong on that
    Kev

  • HT201363 When I sign in to my Apple ID in "My Apple ID" and go to "Passwod and Security" I should answer the security questions but I don't remeber them and the bar that says "send to rescue email" doesn't show !! How could I recover the questions??

    When I sign in to my Apple ID in "My Apple ID" and go to "Passwod and Security" I should answer the security questions but I don't remeber them and the bar that says "send to rescue email" doesn't show !! How could I recover the questions??

    You will have to contact iTunes Support and tell them you have forgotten your Security Questions and need them reset. They will respond to you by email, usually within 24 hours. Here are two links to contact iTunes Support:
    http://www.apple.com/support/itunes/ww/
    or by email:
    http://www.apple.com/emea/support/itunes/contact.html
    Cheers,
    GB

  • Could not run the script. This command requires an active document.

    Hi,
    I'm receiving a confusing glitch running a batch process in
    FW MX 2004.
    I want to resize images in one folder and export them to
    another. I step through the batch wizard and on commencement of the
    batch receive an error:
    quote:
    Could not run the script. This command requires an active
    document.
    FW is telling me it can't run the commands on empty
    documents, yet the batch is running on all images selected using
    Add All during the batch wizard. Confusing. Similar batches have
    worked fine in recent days.
    Any ideas?
    Thx

    tkatcher wrote:
    > Thank you. Some of them had brackets and percentage
    marks.
    You are welcome.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Could anyone provide the complete manual of SAP Query Creation

    Hi,
    Now I am learning to create SAP Query.
    I viewed many questions and answers about SAP Query.
    Some mentioned this,and some did that...
    Could anyone provide a complete manual of SAP Query Creation for developers.
    I can create SAP Queries step by step with it.

    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    useful
    http://www.erpgenie.com/abap/code/abap47.htm
    regards,
    Prabhu
    reward if it is helpful

  • Can anyone explain the logic

    {color:#ff0000}class Test{color} {
             public static void main(String[] args) {
                        {color:#ff0000}for (int i = 0; i <args.length; i++){color}
                                    System.out.print {color:#ff0000}(i !=0  ?  args[i]  : " " + args) ;
    {color} System.out.println() ;
    class Test {
    public static void main(String[] args) {
    for {color:#ff0000}(int i = 0; i <args.length; i++){color}
    System.out.print {color:#ff0000}(i ==0 ? args[i] : " " + args[i]) ;
    {color} System.out.println() ;
    class Test {
    public static void main(String[] args) {
    for {color:#ff0000}(int i = 0; i <args.length; i++)
    {color} System.out.print {color:#ff0000}(i ==1 ? args[i] : " " + args[i]) ;{color}
    System.out.println() ;
    Hi All,
    With same arguement but with different option for print
    Case 1.  Run >> java Test 1 2 3
                 output >> 123 >>no space between 1and 2 and 3
                 Also,  java Test 123
                 output >> 123 >> here also  no space
    Case2   Run >> java Test 123
                output >> 123
                Also, >> java Test 1 2 3
                output >> 1 2 3
    Case3  Run >> java Test 1 2 3
               output >> 12 3
               Also, java Test 123
               output >>123
    Would anyone explain proper reason?
    Regards,
    damp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hello,
    first do not use html code generator apps within this forum.
    FIRST
    class Test {
             public static void main(String[] args) {
                        for (int i = 0; i <args.length; i++)
                                    System.out.print (i !=0  ?  args[i]  : " " + args) ;
    System.out.println() ;
    The statement System.out.print(i != 0 ? args[i] : " " + args[i]);
    could also be written like thisString tmp = (i != 0) /* condition */
    ? args[i] /* if true use this value */
    : " " + args[i]; /* if !true use that value */
    System.out.print(tmp);
    Which means String tmp = null;
    if (i != 0) {
    tmp = args[i];
    } else {
    tmp = " " + args[i];
    System.out.print(tmp);
    You should now know how this type of conditional statement works.
    Regards,
    Florian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • JList and ListModel, can anyone explain the basics?

    Hi
    I have an object A containing a Vector X of objects. I want to display them in a JList. I could always use DefaultListModel and copy the items of the Vector X into the default list model using addElement. But that would create a copy of the information in vector X. That is exactly why one should use a custom list model to ensure that the data is in sync with the GUI .
    I want to add and remove items from the JList, and simultaious add and remove items from the Vector X. Can anyone proviede a samll example of how to do this.
    I have tryed myselfe, but I can not get the JList updated with the changes of the listmodel. I have read the documentation about ListDataListener, but I just don't get it. A small example would realy be appreciated!
    // Mattias

    Yse I have read the tutorial. But I don't understand it.
    Here is a small example program. Can anyone change the code so the list is updated with the canges that obviously take place (as one can see by pressing the "Dump button")
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    class ListTest extends JFrame implements ActionListener , ListDataListener {
        JList list;
        MyListModel myListModel;
        MyDataObject myDataObject;
        ListTest() {
            JPanel p = new JPanel();
            myDataObject = new MyDataObject();
            myListModel = new MyListModel(myDataObject.x);
            list = new JList(myListModel);
            myListModel.addListDataListener(this);
            JScrollPane listScrollPane = new JScrollPane(list);
            listScrollPane.setPreferredSize(new Dimension(200, 100));
            p.add(listScrollPane);
            JButton b1 = new JButton("Add");
            b1.addActionListener(this);
            p.add(b1);
            JButton b2 = new JButton("Remove");
            b2.addActionListener(this);
            p.add(b2);
            JButton b3 = new JButton("Dump");
            b3.addActionListener(this);
            p.add(b3);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            getContentPane().add(p);
            pack();
            show();
        public void actionPerformed(ActionEvent e) {
            if (e.getActionCommand().equals("Add")) {
                myListModel.addElement(""+ (1+myListModel.getSize()) );
                System.out.println("Added a row to the list");
            if (e.getActionCommand().equals("Remove")) {
                if (myListModel.getSize()>0) {
                    myListModel.remove(myListModel.getSize()-1);
                    System.out.println("Removed last element from the list");
                else {
                    System.out.println("No more elements to remove");
            if (e.getActionCommand().equals("Dump")) {
                System.out.println("\n\nData in the list model:");
                for (int i=0; i<myListModel.getSize() ; i++) {
                    System.out.println(myListModel.getElementAt(i));
                System.out.println("That should be the same as the vector x in the object myDataObject  :");
                for (int i=0; i<myListModel.getSize() ; i++) {
                    System.out.println(myDataObject.x.get(i));
        public void contentsChanged(ListDataEvent e) {
            System.out.println("contentsChanged");
        public void intervalAdded(ListDataEvent e) {
            System.out.println("intervalAdded");
        public void intervalRemoved(ListDataEvent e) {
            System.out.println("intervalRemoved");
        public static void main(String args[]) {
            new ListTest();
    class MyDataObject {
        Vector x;
        MyDataObject() {
            x=new Vector();
            x.addElement("1");
            x.addElement("2");
    class MyListModel extends AbstractListModel {
        Vector v;
        MyListModel(Vector v) {
            this.v=v;
        public void addElement(Object o) {
            v.addElement(o);
        public Object remove(int index) {
            return v.remove(index);
        public Object getElementAt(int index) {
            return v.get(index);
        public int getSize() {
            return v.size();
    </pre>

  • Could anyone explain this behaiour

    Hi,
    Can anyone please explain the below behaviour. Is it some binary conversion issue?
    public class Test
    public static void main(String args[]) throws IllegalArgumentException, Exception
    double disc1 = 9.00;
    double disc2 = 5.19;
    double totaldiscount = 0.0;
    totaldiscount = disc1 + disc2;
    System.out.println("Sum of the discounts"+totaldiscount);
    }output
    Sum of the discounts 14.190000000000001
    Thanks
    Neel

    It's rounding error.
    You know how you can't represent 1/3 exactly in base-10? Well, in the same fashion, many numbers that can be represented exactly in base-10 can't be represented exactly in base-2 (for example, 0.1).
    SOME THINGS YOU SHOULD KNOW ABOUT FLOATING-POINT ARITHMETIC
    What Every Computer Scientist Should Know About Floating-Point Arithmetic
    Another good (slightly simpler) FP explanation:
    http://mindprod.com/jgloss/floatingpoint.html

  • HT4436 I don't see the point of having to create another email account - could someone explain the thinking behind this please?

    For iCloud syncing there are a few items that require a new iCoud email address to be created (eg. Notes and email), whilst the majority of other options do not require this.
    My question is simply why do these items need yet another email address to be created?  I would have though the Apple Id would have been sufficient to hang everything together...
    If someone could explain the thinking behind this please I will hopefully be more comfortable with it and probably more likely to start using these features!
    Thanks in advance!
    Stuart

    If TCP port 25 isn't open, then SMTP services won't work.  That's the port that all SMTP servers use to communicate amongst themselves.    (Sure, you can change the port your SMTP server is listening on, but you'd also have to change the port processing on all of the other SMTP servers around — and if you did manage to implement that change everywhere, the local network folks would likely just block the new port for the same reasons they blocked the old port.)
    If you have a public static IP address and have correct forward and reverse translations — host domain to IP address, and IP address to host domain name — then you don't need and very likely don't want to run your own DNS server. 
    More to help you learn how these pieces fit together and not something I'd expect you would need given you have a public static IP and public DNS here is a detailed DNS server configuration article for OS X Server; enable Show All Records and it applies to Server.app on 10.7 and later.  If you have questions after reading that, I can certainly answer them and also update the article to try to reduce the confusion or answer the question.
    Your host didn't have valid reverse DNS, so you'll want to get that cleared up, and you'll want to get the port blocks cleared, or work with the local network folks to set up a relay through one of the existing mail servers.

Maybe you are looking for