Pls answer  this date question

--pls see this code
create table tdate
(name varchar2(5),
tdate date);
insert into tdate
values ('mat', to_date('26 may 49','DD month yy'));
insert into tdate
values ('kris', to_date('26 may 49','DD month rr'));
select name, to_char(tdate, 'DD Month YYYY HH:MM:SS') as hiredate
from tdate;
--Remember the current sysdate is 26-may-2050
--Can someone tell me what wud be the output of this query.
--Ofcourse I can run this and see myself but I m not able to change the sysdate to year 2050 (Apache server and database service r being shut down automatically when i try to do this ,dont know why.)
-- According to the textbook from oracle I m currently going through.....the output should be...
mat 26 May 2049 07:17:00
kris 26 May 2149 07:17:00 (because of using rr)
about rr format it says-if the current century is in range 50-99 and the entered century is in range 0-49 then the recorded date would be in the century next to the current one.
--pls help me out.Thanx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

The RR datetime format element is similar to the YY datetime format element, but it provides additional flexibility for storing date values in other centuries. The RR datetime format element lets you store 20th century dates in the 21st century by specifying only the last two digits of the year.
If you use the TO_DATE function with the YY datetime format element, then the year returned always has the same first 2 digits as the current year. If you use the RR datetime format element instead, then the century of the return value varies according to the specified two-digit year and the last two digits of the current year.
That is:
If the specified two-digit year is 00 to 49, then
If the last two digits of the current year are 00 to 49, then the returned year has the same first two digits as the current year.
If the last two digits of the current year are 50 to 99, then the first 2 digits of the returned year are 1 greater than the first 2 digits of the current year.
If the specified two-digit year is 50 to 99, then
If the last two digits of the current year are 00 to 49, then the first 2 digits of the returned year are 1 less than the first 2 digits of the current year.
If the last two digits of the current year are 50 to 99, then the returned year has the same first two digits as the current year.
The following examples demonstrate the behavior of the RR datetime format element.
RR Datetime Format Examples
Assume these queries are issued between 1950 and 1999:
SELECT TO_CHAR(TO_DATE('27-OCT-98', 'DD-MON-RR') ,'YYYY') "Year"
FROM DUAL;
Year
1998
SELECT TO_CHAR(TO_DATE('27-OCT-17', 'DD-MON-RR') ,'YYYY') "Year"
FROM DUAL;
Year
2017
Now assume these queries are issued between 2000 and 2049:
SELECT TO_CHAR(TO_DATE('27-OCT-98', 'DD-MON-RR') ,'YYYY') "Year"
FROM DUAL;
Year
1998
SELECT TO_CHAR(TO_DATE('27-OCT-17', 'DD-MON-RR') ,'YYYY') "Year"
FROM DUAL;
Year
2017

Similar Messages

  • Pls answer this interview question?

    Hi,
    i have attended the interview over the past few months ago so that they are asked
    like
    question 1)
    a table has 1million rows because that will take more time to retrieve user says to improve the performance of that table .... in which way you would handle in PLSQL programming or concept anyway..
    Pls revert back to me if you know anything about..............

    Bluntly put. I will tell that user that he/she has no concept about performance or tables and instead of telling me how to do my job ("make that table faster!"), to explain his/her business requirement in order for me to build a technical solution that satisfies that requirement.
    Of course, I will do that more diplomatically in an interview.
    I can guess what the interviewers were after - they were probing PL/SQL expertise ito making PL/SQL code faster. E.g. using bulk processing to reduce context switching, or (my favourite) to reduce PL/SQL and increase SQL.
    But they are missing the fact that
    a) the size of the table does not determine performance
    b) the amount of I/O does
    The amount of I/O is directly relates to:
    i) the structure of the table
    ii) the amount of data requested in the SQL selection and projection
    But no user gets away with telling me to "improve performance of a table". I do not take such input kindly. I do not tell a user or manager how they must perform their duties. I expect the same courtesy from them. Tell me the problem and I will do my best to create an optimal technical solution for it. But an and end-user, don't be so arrogant to tell me what technical solution to implement.

  • Could you pls answer this

    What all the thing should be used in order to improve the performance and what all the thing should be avoided ?
    Explain abt control brk statement ?
    Could you pls give me clear explanation for CHECK,EXIT,STOP ?
    In real time, what is the steps which is used for transfer data - BDC
    whether call transaction,session method pls explain it
    And also explain about the include statement used in BDC
    Could you pls answer this

    Hi
    All this AT NEW, AT FIRST, AT END OF and AT LAST are called control break statements of Internal tables and are used to calculate the TOTALS based on sertain key fields in that internal table
    FIrst to use these statements the ITAB has to be sorted by the key fields on whcih you need the SUM of the fields.
    Some time you will get * when moving data from this int table to other table using these commands
    so you have to use
    READ TABLE ITAB INDEX SY-TABIX in AT..ENDAT..if you are using other fields between them
    DATA: sflight_tab TYPE SORTED TABLE OF sflight
                      WITH UNIQUE KEY carrid connid fldate,
          sflight_wa  LIKE LINE OF sflight_tab.
    SELECT *
           FROM sflight
           INTO TABLE sflight_tab.
    sort sflight by carrid connid.
    LOOP AT sflight_tab INTO sflight_wa.
      AT NEW connid.
        WRITE: / sflight_wa-carrid,
                 sflight_wa-connid.
        ULINE.
      ENDAT.
      WRITE: / sflight_wa-fldate,
               sflight_wa-seatsocc.
      AT END OF connid.
        SUM.
        ULINE.
        WRITE: / 'Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
        SKIP.
      ENDAT.
      AT END OF carrid.
        SUM.
        ULINE.
        WRITE: / 'Carrier Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
        NEW-PAGE.
      ENDAT.
      AT LAST.
        SUM.
        WRITE: / 'Overall Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
      ENDAT.
    ENDLOOP.
    BDC
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    Differences between Call Transaction and Sessions Method:
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    6) generally used for back ground jobs.
    7) at atime we can update to more than one screens.
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    6) for background n fore ground jobs.
    7) at atime we can update to a single screen.
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    call Transaction or session method ?
    Regards
    anji

  • Pls answer the following questions very urgent.

    Hi Experts & Friends,
    Can comeone please answer the following questions? If possible try to give some explanation.
    1. Why we use ANALYSIS PROCESS DESIGNER??
    2. What are web templates?
    3. How the connection from SRM SOURCE SYSTEM done?
    4. How do u get data frm SQL server thru DB Connect.
    5. Process chain, two targets frm same datasource if monthly & daily
    6.how u display the scanned & unscanned pdt ?? thru variable replacement type?
    Thanks & Regards
    Siri

    Hi Siri,
    1. Analysis Process designer
    The Analysis Process Designer (APD) is the application environment for the SAP data mining solution.
    The APD workbench provides an intuitive graphical interface that enables you to visualize, transform, and deploy data from your business warehouse. It combines all these different steps into a single data process with which you can easily interact.
    Use APD to pre-process your data:
    ? Read data from different sources and write it to a single location
    ? Transform data to optimize reporting
    ? Ensure high data quality by monitoring and maintaining the information stored in your data warehouse.
    The APD is able to source data from InfoProviders such as InfoCubes, ODS objects, InfoObjects,
    database tables, BW queries, and flat files. Transformations include joins, sorts, transpositions, and with
    BW 3.5, integration with BW?s Data Mining Workbench (RSDMWB).
    Check here
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/96939c07-0901-0010-bf94-ac8b347dd541
    http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/e45e42ae1fdc54e10000000a155106/frameset.htm
    and service.sap.com/bi
    https://websmp206.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000585703&
    2. Web Templates
    Web Template
    Use
    This Web item can be used to manage consistent sections of different Web templates centrally within one Web template, which you can then insert into any Web template as required. In this way, you can define a header or footer section with the corporate logo and heading as a Web template and can integrate this Web template into your Web applications as a Web Template Web item. This Web template is then inserted during runtime. In contrast to HTML frame technology, the system does not generate a new page during this process. The context of the main template thus remains the same. In this way, you can display text elements and so on from data providers for the main template in the inserted Web template.
    Check....here....
    http://help.sap.com/saphelp_nw04/helpdata/en/69/5f8e9346c1244ea64ab580e2eea8b9/frameset.htm
    3.Srm Source system Connection
    2.3     SAP BW
    2.3.1     Define Client Administration
    Use
    This activity defines changes and transports of the client-dependent and client-independent objects.
    Procedure
    1.     To perform this activity, choose one of the following navigation options:
    SAP BW Role Menu     Local Settings ® Define Client Administration
    Transaction Code     SCC4
    SAP BW Menu     Tools ? Administration ? Administration ? Client Administration ? Client Maintenance
    2.     Switch to change mode.
    3.     Select your client.
    4.     Choose details.
    5.     In field Currency enter the ISO-code of the local currency, e.g. USD or EUR.
    6.     In field Client Role enter Customizing
    7.     Check the settings for changes and transport of client-specific objects and client-independent object changes
    If you want to use the settings made by BC-Sets or manually in other systems (other than BW), ?Automatic recording of changes? and ?Changes to Repository object and cross-client Customizing allowed? is required.
    Result
    Client administration has been defined to support the installation using Best Practices.
    2.3.2     Defining a Logical System for SAP BW (SAP BW)
    Use
    In this step, you define the logical systems in your distributed system.
    Prerequisites
    Logical systems are defined cross-client. Therefore cross-client customizing must be allowed in your client  (this can be checked in transaction SCC4).
    Procedure
    To carry out the activity, choose one of the following navigation options:
    SAP BW Role Menu     Defining a Logical System for SAP BW (SAP BW)
    Transaction Code     SPRO
    IMG Menu     SAP Reference IMG ? SAP Customizing Implementation Guide ? SAP NetWeaver ? Business Information Warehouse ? Links to other Systems ? General Connection Settings ? Define Logical System
    1.     A dialog box informs you that the table is cross-client. Choose Continue.
    2.     On the Change View ?Logical Systems?: Overview screen, choose New entries.
    3.     On the New Entries: Overview of Added Entries screen enter the following data:
    Field name     Description     R/O/C     User action and values     Note
    Log. System     Technical Name of the Logical System          Enter a name for the logical BW system that you want to create     
    Name     Textual Description of the Logical System          Enter a clear description for the logical BW system     
    4.     Choose Save.
    If a transport request for workbench and customizing is displayed choose existing requests or create new requests.
    If you want to continue with the next activity, do not leave the transaction.
    Result
    You have created a Logical System Name for your SAP BW client.
    2.3.3     Assigning Logical System to Client (SAP BW)
    Procedure
    To carry out the activity, choose one of the following navigation options:
    SAP BW
    Role Menu     Assigning Logical System to Client (SAP BW)
    Transaction Code     SCC4
    SAP BW Menu     Tools ? Administration ? Administration ? Client Administration ? Client Maintenance
    1.     In the view Display View "Clients": Overview, choose Display. ? Change
    2.     Confirm the message.
    3.     Select your BW client.
    4.     Choose Details.
    5.     In the view Change View "Clients": Details, insert your BW system in the Logical system field, for example, BS7CLNT100.
    6.     Save the entries and go back.
    2.3.4     Opening Administrator Workbench
    Procedure
    To carry out the activity, choose one of the following navigation options
    SAP BW     Modeling ? Administrator Workbench: Modeling
    Transaction Code     RSA1
    1.     In the Replicate Metadata dialog box, choose Only Activate.
    2.     If a message appears that you are only authorized to work in client ... (Brain 009) refer to SAP Note 316923 (do not import the support package, but use the description under section Workaround).
    2.3.5     Creating an RFC-User (SAP BW)
    Procedure
    To carry out the activity, choose one of the following navigation options:
    SAP BW Role Menu     Creating RFC User
    Transaction Code     SU01
    SAP BW Menu     Tools ? Administration ? User Maintenance ? Users
    Then carry out the following steps:
    1.     On the User Maintenance: Initial Screen screen:
    a.     Enter the following data:
    Field      Entry
    User     RFCUSER
    b.     Choose Create.
    2.     On the Maintain User screen:
    a.     Choose the Address tab.
    b.     Enter the following data:
    Field     Entry
    Last Name     RFCUSER
    Function     Default-User for RFC connection
    c.     Choose the Logon data tab.
    d.     Enter the following data:
    Field     Entry
    Password     LOGIN
    User type     System
    e.     Choose the Profiles tab.
    f.     Enter the following data:
    Field     Entry
    Profiles     SAP_ALL , SAP_NEW and S_BI-WHM_RFC
    g.     Choose Save.
    Do not change the password of this user as it is used in RFC connections.
    2.3.6     Define RFC-USER as default (SAP BW)
    Procedure
    To carry out the activity, choose one of the following navigation options
    SAP BW Role Menu     Define RFC-USER as default (SAP BW)
    Transaction Code     RSA1
    SAP BW Menu     Modeling ? Administrator Workbench: Modeling
    1.     On the Administrator Workbench: Modeling screen choose Settings ? Global Settings.
    2.     In the Global Settings/Customizing dialog box choose Glob. Settings.
    3.     On the Display View ?RSADMINA Maintenance View?: Details screen:
    a.     Choose Display ? Change.
    b.     Enter RFCUSER in the BW User ALE field.
    c.     Choose Save.
    Leave the transaction in order to activate the entries you have made.
    2.5     SAP SRM
    2.5.1     Define Client Administration
    Use
    This activity defines changes and transports of the client-dependent and client-independent objects.
    Procedure
    1.     Access the transaction using:
    SAP SRM/ Role Menu     Local Settings  ® SAP SRM ® Define Client Administration
    Transaction Code     SCC4
    2.     Switch to change mode.
    3.     Select your client.
    4.     Choose details.
    5.     Check the entries for currency and client role.
    6.     Check the settings for changes and transport of client-specific objects and client-independent object changes
    If you want to use the settings made by BC-Sets or manually in other systems (other than BW), Automatic recording of changes and Changes to Repository object and cross-client Customizing allowed is required.
    7.     In the Restrictions area, set the flag Allows CATT processes to be started.
    This flag must be set. Otherwise, activities using CATT procedures cannot be used for the installation.
    Result
    Client administration has been defined to support the installation using Best Practices.
    2.5.2     Define a Logical System for SAP SRM
    Use
    The logical system is important for the communication between several systems. This activity is used to define the logical systems for the Enterprise Buyer and back-end system.
    Procedure
    1.     Access the transaction using:
    IMG Menu
    Enterprise Buyer      Enterprise Buyer Professional Edition ? Technical Basic Settings ? ALE Settings (Logical System) ? Distribution (ALE) ? Sending and Receiving System ? Logical Systems ? Define Logical System.
    Transaction Code     SPRO
    2.     For the activity type, select Cross-client.
    3.     The following naming convention is recommended:
    Log. System     Name
    YYYCLNTXXX     Enterprise Buyer System
    4.     Save your entries
    You have to maintain at least two systems (local Enterprise Buyer system and the SAP R/3 back-end system)
    Naming Conventions: XXXCLNT123 (XXX = system ID, 123 = client number)
    2.5.3     Assign Logical System to Client
    Use
    The purpose of this activity is to define the
    ?     Enterprise Buyer client you will be using
    ?     Standard currency to be used
    ?     Recording of changes
    ?     Capability for your system to use CATT procedures
    Procedure
    1.     Access the transaction using:
    SAP SRM
    Role Menu     Local Settings  ® SAP SRM ® Assign Logical System to Client
    Transaction Code     SCC4
    2.     Switch to the Change mode.
    3.     Select your Enterprise Buyer client and go to the Client Details screen.
    4.     In the Logical system screen, choose the logical system for the client.
    5.     Set the currency in the Std currency field to a valid entry, such as USD or EUR.
    6.     Make the following settings:
    Setting     Values
    Changes and transports for client-specific objects     Automatic recording of changes
    Restrictions when starting CATT and eCATT     eCATT and CATT allowed
    7.     Choose Save.
    Using this transaction, you can change from the production client to the development client and back again in the Client role field.
    Result
    The logical system has been assigned to the client and CATT procedures can be executed now.
    2.5.4     Create System Users
    Use
    This task creates remote users RFCUSER, BBP_JOB, WEBLOGIN   for the SAP R/3 back-end system and for Enterprise Buyer.
    Procedure
    1.     Access the transaction using:
    SAP Menu
    Enterprise Buyer      Basis Tools ? Administration ? User Maintenance ? Users
    Transaction Code     SU01
    2.     Enter RFCUSER in the User field.
    3.     On the Address tab Choose Lastname RFCUSER.
    4.     Choose Create.
    5.     Enter the password LOGIN on the Logon data tab.
    6.     As User Type, select System.
    7.     Go to the Profiles tab.
    8.     Enter the profiles SAP_ALL ,SAP_NEW and S_BI-WX_RFC.
    9.     Save your entries.
    10.     Repeat this procedure to create the user BBP_JOB (Password: LOGIN).
    11.     Repeat this procedure to create the user WEBLOGIN (Password: SAPPHIRE).
    Result
    The following users have been created.
    Client     User     Password
    Enterprise Buyer      RFCUSER     LOGIN
    Enterprise Buyer     BBP_JOB     LOGIN
    Enterprise Buyer     WEBLOGIN     SAPPHIRE
         USER/Password from the Service File of the ITS Installation.
    3     Cross Connectivity
    This chapter describes all settings that are necessary to connect the components of the SAP.system landscape with each other. The settings for each combination of two components to be connected are described in a separate structure node. The separate section headings make it possible to identify the activities required to connect certain components with each other. The section headings for components that are not part of the installation can be skipped.
    3.1     Connecting SAP BW with SAP R/3, SAP CRM, SAP SRM
    Procedure
    To carry out the activity, choose one of the following navigation options in the SAP BW system:
    SAP BW Role Menu     Connecting SAP BW with SAP R/3, SAP CRM, SAP SRM
    Transaction code     RSA1
    SAP BW Menu     Modeling ? Administrator Workbench: Modeling
    1.     Choose Modeling.
    2.     Choose Source Systems.
    3.     Select Source Systems in the window on the right.
    4.     Choose the Context menu (right mouse click).
    5.     Choose Create.
    6.     Select SAP System from Release 3.0E (Automatic Creation).
    7.     Choose Transfer.
    8.     Make the following entries:
    Field     Entry
    Target computer (server)                            Server of the SAP R/3, SAP CRM or Sap SRM system
    System ID     System ID of the SAP R/3, SAP CRM or SAP SRM system
    System number     System number of the SAP R/3, SAP CRM or SAP SRM system
    Background user in source system     RFCUSER
    Password for source system     LOGIN
    Background user in BW     RFCUSER (can not be changed in this activity)
    Password for BW user     LOGIN
    9.     On the dialog box Please log on as an administrator in the following screen choose Continue.
    10.     Log on to the Source System with your administrator user. Choose the correct client.
    11.     On the dialog box New Source System Connection choose Continue.
    12.     On the Replicate Metadata dialog box, choose Only Activate.
    4.data frm SQL server thru DB Connect
    Check here....
    http://help.sap.com/saphelp_nw04/helpdata/en/a6/4ee0a1cd71cc45a5d0a561feeaa360/content.htm

  • Can't anyone answer this simple question?

    Guys,I want to know whether a GUI which is made using Swing can write files to disk,or ,in another way--does Swing support writing files to disk?(This is becoz applets do not support this feature)
    Thannks in advance,
    Avichal167

    One thing to note...
    Because the previous example is simple, I handled all the File IO operations in the same class as the GUI ...
    You can how ever have the File IO done in a different class and tie it in to your GUI class...
    Example... GUISample.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GUISample extends JFrame implements ActionListener{
            private JTextArea jtxArea;
            private JButton jbtn;
            private String[] bText = {"Read","Write"};
            private boolean bState = true;
            private FileHandler handler;
         public GUISample(){
                 super("GUI Sample");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLayout(new BorderLayout());
              jtxArea = new JTextArea(15,20);
              jtxArea.setEditable(true);
              jbtn = new JButton(bText[0]);
              jbtn.addActionListener(this);
              getContentPane().add(jtxArea,BorderLayout.CENTER);
              getContentPane().add(jbtn,BorderLayout.SOUTH);
              pack();
              setVisible(true);
              handler = new FileHandler(); // instantiates FileHandler
         /* both method from FileHandler return Strings to be displayed in the JTextArea */
         public void readAndDisplay(){
              jtxArea.setText(handler.readTheFile()); // calls method from FileHandler
         public void writeToFile(){
              jtxArea.setText(handler.writeTheFile(jtxArea.getText())); // calls method from FileHandler
         public void actionPerformed(ActionEvent ae){
                if ((ae.getSource() == jbtn)&&(bState)){
                      bState = false;
                      jbtn.setText(bText[1]);
                      readAndDisplay();
                 else{
                           bState = true;
                           jbtn.setText(bText[0]);
                           writeToFile();
         public static void main(String[] args){
                 GUISample gspl = new GUISample();
    }Example... FileHandler.java
    import java.io.*;
    public class FileHandler {
    private String theData;
    public String readTheFile(){ // reads and returns data or message
             try{
                 File afile = new File("test.txt");
                     FileInputStream fis = new FileInputStream(afile);
                      try{
                           byte[] strBuff = new byte[(int)afile.length()];
                           fis.read(strBuff);
                           try{
                                theData = new String(strBuff);
                                fis.close();
                           }catch(NullPointerException npe){theData = "Null Pointer Exception";}
                       }catch (IOException ioe){theData = "IO Exception";}
               }catch (FileNotFoundException fnfe){ theData = "File Not Found";}
         return theData;
         public String writeTheFile(String data){ // writes and returns a message
             try{
                 File afile = new File("test.txt");
                     FileOutputStream fos = new FileOutputStream(afile);
                   try{
                           try{
                           fos.write(data.getBytes());
                           fos.close();
                           theData = "File Saved";
                    }catch(NullPointerException npe){theData = "Null Pointer Exception";}
                       }catch (IOException ioe){theData = "IO Exception";}
               }catch (FileNotFoundException fnfe){theData = "File Not Found";}
               return theData;
    }and of course you can use the same Test.txt file...
    As you can see from this example, I have one class create and handle the GUI and the second class handles all the File IO operations...
    So to better answer your first question, Swing and AWT and Applets can be used to create GUIs... and as far as File IO, all three can have code or be couples with a class that does File IO operations...
    The only restriction is with Applets where by default the SecurityMananger does not allow File IO operations...
    Notice the word "default", this means Applets are capable of doing File IO, if you do some extra coding and policy work... ( my terminology may be off on this)
    But as stated earlier, I am not well versed enough in Applets to give you assistance in creating a Signed Applet that can... soon I will, just not at this time...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Pls answer the following questions:

    Hi friends,
    Please let me know the answers to the following abap questions:
    1. To link the loop to a table contro, we use the additon WITH CONTROL else this works as a stand-alone ___________________.
    2. TCODE to check for the consistency of workflow for ALE/ED in INbound error processing?
    3. what is the field to b used n the field catalog of an ALV report to hide the relevant column in the list?
    4. what are the standard programs to transport transaction variants and screen variants?
    5.__________________is triggered when all the data records of a node of the logical database have been read.
    6. Expand and define EDIFACT?
    7.What are the various print modes available in sap scripts?
    8. TCODE to maintain transaction variants?
    9. what s the tabale to find the Directory of Memory ID's?
    10.Maximum number of Watchpoints and breakpoints in a program?
    11.The ___________statement of the screen flow logic controls the data atransport fromt the Dynpro to the ABA program during the event PAI?
    12.What is the standard program to check the consistency of partner profiles?
    13. What is the table to find the change pointer status?
    14. You can convert pooled tables to transpartent table with the  _________________ of the techncal settings?
    15.Messages available in SE91 TCODE are stored in which table?
    16.Data records of tables having delivery class __ __ are not imported into the target system whereas data records of tables having delivery classes __ __ __ __ are imported into the target system.
    17.Is it possible to debug Field exits?
    18. In select....upto N rows statement, if N is zero then, ___________
    19. The system field ______contains the total number of table control rows displayed on the screen.
    20. Tcode to activate the change pointers for a particular message type?
    21. is it possible to alter the width of the main window on each page?
    22. what is the varialbe to be used in SAP scripts to find the total number of pagges of the print job?
    23. Command to flush the database buffer
    24. how to modify SAP standard tables?
    25. what is the function module used with BAPI to commit?
    26. what is the business object for purchase order?
    27. What is cardinality
    28. how to create a secondary index
    29. define seconday index
    30. how many secondary indexes can be created for cluster tables
    31. how many main windows we can have in a script and smartforms? where is is mandatory?
    32. what is LUW, different types of LUW.
    33.What are version management functions
    34.how many push buttons can u place on selection-screen application tool bar and what is the default function code for that buttons
    35. what are the views that can not b used to create new views
    36. how can u find out whether a record is successfully updated or not
    37.how to find if a logical databse exists for your program requirements
    38.what is a control table
    39.how customers can search the SAP information databse and find solutions for errors and problems with R/3 systems?
    40.what is DYNPRO? what are its components?
    41.using which program we can copy table across clients in scripts
    42.how to set Tablespaces and extent sizes
    43.what is the maximum number of structures that can b included in a table
    44. what is a match code
    45. what is the maximum number of match code id's that can b defined for one Match code object
    46. what specific statemnets do you use to write a drill down report
    47.you can link a search help to a preameter using syntax __________________________.
    48. how to find a standard program in SAP?

    Hi friends,
    Please let me know the answers to the following abap questions:
    1. To link the loop to a table contro, we use the additon WITH CONTROL else this works as a stand-alone ___________________.
    2. TCODE to check for the consistency of workflow for ALE/ED in INbound error processing?
    3. what is the field to b used n the field catalog of an ALV report to hide the relevant column in the list?
    4. what are the standard programs to transport transaction variants and screen variants?
    5.__________________is triggered when all the data records of a node of the logical database have been read.
    6. Expand and define EDIFACT?
    7.What are the various print modes available in sap scripts?
    8. TCODE to maintain transaction variants?
    9. what s the tabale to find the Directory of Memory ID's?
    10.Maximum number of Watchpoints and breakpoints in a program?
    11.The ___________statement of the screen flow logic controls the data atransport fromt the Dynpro to the ABA program during the event PAI?
    12.What is the standard program to check the consistency of partner profiles?
    13. What is the table to find the change pointer status?
    14. You can convert pooled tables to transpartent table with the  _________________ of the techncal settings?
    15.Messages available in SE91 TCODE are stored in which table?
    16.Data records of tables having delivery class __ __ are not imported into the target system whereas data records of tables having delivery classes __ __ __ __ are imported into the target system.
    17.Is it possible to debug Field exits?
    18. In select....upto N rows statement, if N is zero then, ___________
    19. The system field ______contains the total number of table control rows displayed on the screen.
    20. Tcode to activate the change pointers for a particular message type?
    21. is it possible to alter the width of the main window on each page?
    22. what is the varialbe to be used in SAP scripts to find the total number of pagges of the print job?
    23. Command to flush the database buffer
    24. how to modify SAP standard tables?
    25. what is the function module used with BAPI to commit?
    26. what is the business object for purchase order?
    27. What is cardinality
    28. how to create a secondary index
    29. define seconday index
    30. how many secondary indexes can be created for cluster tables
    31. how many main windows we can have in a script and smartforms? where is is mandatory?
    32. what is LUW, different types of LUW.
    33.What are version management functions
    34.how many push buttons can u place on selection-screen application tool bar and what is the default function code for that buttons
    35. what are the views that can not b used to create new views
    36. how can u find out whether a record is successfully updated or not
    37.how to find if a logical databse exists for your program requirements
    38.what is a control table
    39.how customers can search the SAP information databse and find solutions for errors and problems with R/3 systems?
    40.what is DYNPRO? what are its components?
    41.using which program we can copy table across clients in scripts
    42.how to set Tablespaces and extent sizes
    43.what is the maximum number of structures that can b included in a table
    44. what is a match code
    45. what is the maximum number of match code id's that can b defined for one Match code object
    46. what specific statemnets do you use to write a drill down report
    47.you can link a search help to a preameter using syntax __________________________.
    48. how to find a standard program in SAP?

  • Pls answer to my question in IDOC

    CAN WE DOWNLOAD THE IDOC DATA INTO A  FLAT FILE IN INBOUND OF IDOC.
    IF YES PLS, SAY THE TRANSACTION CODE. OR PROCEDURE.

    Hi,
    You can use this FM <b>IDOC_READ_COMPLETELY</b> to read the IDoc data and FM <b>IDOCS_OUTPUT_TO_FILE</b> to output to file.
    If the file is stored in application server the you can use transaction <b>CG3Y</b> to download to PC file.
    Reward points if useful,
    Thanks
    Aneesh.

  • Pls  answer  an simple question.........

    can someone tell me what's the meaning of jdbc.oracle.oci8...,
    how can load the driver?
    i used like this--
    import oracle.java.driver.*;
    Class.forName("oracle.jdbc.driver.OracleDriver");
    ......DriverManager.getconnection
    ("jdbc:oracle:oci8:bpm/bpm:@jank:1521:jank")
    it's same that something wrong with the above code!
    Is jdbc.oracle.oci8... (fat driver) a pure java driver?
    i'm not sure of that, cause i have no help docs and just being a beginner.pls give u hand......

    Hi,
    The JDBC URL is usually of the format jdbc:subprotocol:subname
    i.e In this format, this url identifies an individual database in a driver specific manner. Different drivers may need different information un the URL to specify the host database.
    For example Oracle JDBC- Thin Driver uses a URL of the form of
    jdbc:oracle:thin:@dbhost:port:sid; and teh JDBC-ODBC bridge uses jdbc:odbc:datasourcename;odbcoptions
    So the format of the url is specific to the type of driver you are using..it may be a oci driver , thin driver or any.
    Coming to ur question,
    First by specifying ur driver name in Class.forName makes your driver class to get loaded your application's JVM.
    Then you would get a connectuoin from the DriverManager using getConnection method().
    can someone tell me what's the meaning of jdbc.oracle.oci8...,
    how can load the driver?
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con = DriverManager.getconnection
    ("jdbc:oracle:oci8:@jank:1521:jank","bpm","bpm") where the first parameter is the driver specific url and second and third ate username and password to the database you are trying to connect to.
    You can refer material in Sun's Javasoft.com and look for jdbc materials to study in detail.
    Hope this helps. Also Look what Java error you are getting, while compiling. May be the driver class you are trying to load is not in the Classpath.
    Thanks
    Hari

  • Some interview questions- pls answer which ever Question you know.

    Q1. Sales order with 10 items with different delivery dates? is it possible? where is the setting?
    Q2. How you deliver a sale order item to 2 ship-to parties?
    Q3. while sale order processing can we give separate partner function? Example?
    Q4. Damaged goods company dont want to take back/return; then how we 'compensate' customer?
    Q5. In sales order what is the difference between 'header detail tabs, and 'item detail tabs?
    Q6. What is the back ground for a Routine?
    Q6. What is the necessity to maintain 'Route determination'?
    Q7. In CIN-what is 'Reconcillation'?
    Q8. In CIN- why we use 'proforma invoice', why not 'commercial invoice?
    Q9. Difference between 'capital project and revenue project'?
    Q10. Where we maintain 'Material Cost'?
    Q11. Example for SAP system interacting with Non SAP system?
    Q12. When the system knows to take up- Backward scheduling or Forward scheduling?
    Q13. Of 10 items of a sales order need to bill only 1 item, where is the setting?
    Q14. Pricing -Is it possible to change 'Calculation type' during sales order processing?
    Q15. What triggers 'Item category'?
    Q16. In which step of LSMW - we can write a program?
    Q17. All pre-requisites/settings maintained, even Rebate is not working. Where we check?
    Q18. What transfers the Requirements in - sales order processing?
    Q19. Pricing- what pricing condition types related to Accounting?
    Q20. User exit for Sales order?
    Q21. For creating 'Sales organisation'- what criterion should follow?
    Q22. If in a sales order to enter 200 line items; to speed up entering line items; what we can do?
    Q23. Is 2 items of a sales order can be delivered from 2 different plants? If so, then, Number range of the Billing documents
            should be different from plant to plant, for that same sale order. where and how we maintain setting.
    Q24. Rebates- How we settle an agent (not a customer) in rebate process?
    Q25. CIN- use of 'Exice group'?
    Thanks in advance
    Arsh

    My dear friend,for  most of the questions you requested there are many threads with same topics, i suggest you to go thru existing threads and read library once and still if you find any question unanswered post it in forum.
    balu

  • "BASIC QUESTION" !PLEASE ANSWER THIS BASIC QUESTION !

    HI EVRYONE!
    I AM AN ENGG. STUDENT N JST STARTED WITH ORACLE SQL. I HAVE A QUESTION--"IS "TAB" TABLE A MASTER TABLE?AND ARE THE TABLES,THAT WE CREATE UNDER "TAB" TABLE, THE ROWS OF "TAB" TABLE?"..OR IT CAN BE PUT LIKE "CAN WE CALL THE Tables created inside tab as rows of tab table?"...please answer ....i need it badly!! :(

    user8979199 wrote:
    HI EVRYONE!
    I AM AN ENGG. STUDENT N JST STARTED WITH ORACLE SQL. I HAVE A QUESTION--"IS "TAB" TABLE A MASTER TABLE?{code}
    SQL> select * from all_objects where object_name = 'TAB';
    OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE
    SYS TAB 2566 VIEW
    PUBLIC TAB 2568 SYNONYM
    SQL>
    {code}
    As you can see TAB is a *view* that is owned by the SYS user and is actually a view on the data dictionary of the database.
    AND ARE THE TABLES,THAT WE CREATE UNDER "TAB" TABLE, THE ROWS OF "TAB" TABLE?"..OR IT CAN BE PUT LIKE "CAN WE CALL THE Tables created inside tab as rows of tab table?"You don't create tables under the TAB view. You create tables in your schema and the TAB view will show you the tables that exist/are owned by your schema.
    The view, as with any view, when queried, returns rows showing the table names.
    ...please answer ....i need it badly!! :(Everyone wants their question answering. Why should your question take any priority over anybody elses, just because you want it badly. I'm sure if we asked the other people with questions they would also like an answer badly, but they aren't so rude as to expect people drop their own work just for them. Please don't ask questions in that manner again.

  • Maybe someone can answer this odd question...

    I've had an iBook G4 since November and this question has been killing me ever since: What are the two little hinged corner pieces on the charger for???
    When I plug my iBook into the wall, the module that actually plugs into the wall has two little corner pieces that swing out, almost like hooks. What are these for?!?!?!
    This very serious question has plagued me from day one. Thanks!

    Wow... Thanks for that enlightenment.... I never even considered the possibilities of the charging module...

  • Please answer this simple question: it plays an important role

    How to write query to retreive the latest record by using PN-BEGDA , PN-ENDDA, SYDATUM,.
    I know using RP-PROVIDE.......other method using query i require
    it is urgent

    Hi Ramana,
                     Try this one this will give the latest record in terms of time ok. sy-uzeit : display the current time ok..
    data: time like sy-uzeit.
    time = sy-uzeit + 80.
    Here 80 is SECONDS OK..
    select * from PAnnnn where begda = time.
    Reward points if helpful
    Kiran Kumar.G.A

  • Can ne 1 answer this interesting question!!! ?

    Hi,
    I have the name of the method in a String format. I want this information to get evaluated as a method/function. How can I do that?
    For example, I have a string named "setName" and another string "str". I want this information to get evaluated as :- setName(str), ie. string 'setName' should get interpreted as a method name 'setName( )'. 'setName(String str)' is a method in the same class.
    Thanks!
    -Vaibhav.

    Hi...
    import java.lang.reflect.*;
    public class Test {
         public Test (String setName, String str) {
              try {
                   Method m = this.getClass ().getMethod (setName, new Class [] {str.getClass ()});
                   m.invoke (this, new Object [] {str});
              catch (Exception e) {}
         public static void main (String [] args) {
              Test t = new Test ("setName", "Rick");
              System.out.println (t.getName ());
         public void setName (String name) {
              _name = name;
         public String getName () {
              return _name;
         String _name = "Boab";
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Someone PLEASE answer this simple question

    what are the technical specs on the line input for the audigy 2 zs? high/low impedance? voltage level? anything please, creative has no really DETAILED specs on their products.
    thanks
    L_E

    Reasonably sure it's high impedance, designed for 2v peak-peak (ie. -v peak to +v peak), with the playback volume control an analog attenuator which affects recording, and the recording volume control digital with a x2 multiplier (i.e. 0dB is approx at 50% position).
    One thing this means is that a "too-hot" signal can be attenuated to match the 2Vp-p ADC range to prevent digital clipping of it.
    Yes, CL has a reluctance to say more than necessary about internal details.
    -Dave
    [email protected]

  • Please answer this annoying question!

    What the difference between 2.4Ghz and 5Ghz?
    Whats thdifference between 20Mhz and 40Mhz?
    Are they the same thing or...
    Thank you.

    The hertz (Hz) is the SI unit of frequency equal to one cycle per second. The prefix mega (M) indicates 1 million and giga (G) 1 thousand million (1 billion).
    So a frequency of 2.4GHz (2,400,000,000 hertz) is a bit less than half of 5GHz (5,000,000,000 hertz), and 20MHz (20,000,000 hertz) exactly half of 40MHz (40,000,000 hertz).
    In electronics the terms are an indication of the operating speed of components and are certainly not the same thing; all the average user needs to know is that by and large the higher the frequency the faster the results. In radio transmission the terms are the frequency of broadcast radio waves; tuning a radio is setting it to decode a broadcast at a given frequency.
    You can click the white star next to this message if you think it was helpful.

Maybe you are looking for

  • Kernel-2.6.20-1

    hi, i just did a pacman -Suy and it upgraded my system and everything is working great so far. now when i try to compile a module for a dvb adapter i get "Could not identify kernel" when i do uname -r it splits back 2.6.20-ARCH   in /usr/src/  i have

  • "invalid column name" using resultset.getString()???

    I had a sql query against oracle db: select table1.field1, table1.field2, table2.field3 from table1, table2 where table1.field1=table2.field1; i got a valid resultset and i can enum the resultset by rs.getString(colnum). However, when i try to use rs

  • Mac Mini compatible?

    Can I use this HP Envy 23-inch Screen LED-Lit Monitor  (E1K96AA#ABA) with a new Mac Mini? Thanks! This question was solved. View Solution.

  • XML Output of Confirmation

    Hi Folks, We are working on a Standalone SRM 5.0 system. We are in the process of implementing Self Service Procurement scenario. One of the requirement is to send to an output (XML) of the Confirmation to a satellite WM system. Was wondering if anyo

  • Constant dates gets different values when instantiated using different cale

    Hi, I have a package that's like this: CREATE OR REPLACE PACKAGE DATABASE_SYS IS first_julian_day_ CONSTANT NUMBER := 2378211; last_julian_day_ CONSTANT NUMBER := 2545125; first_calendar_date_ CONSTANT DATE := to_date(first_julian_day_, 'J'); last_ca