How and put data frrom DB into JFrame.tables ?

hello,
I tried to get rows from a DB into a table. Therefore I created a class(A) with a function(a1) throws SQLException. Connect and select rows from the DB runs perfectly. Now I want to put this data into a table. I created another class(B) extends JFrame with an inner class(icB1) extends AbstractTableModel. From here I tried call A.a1 to get the rows but
1. the return type should be StringArray, how should i declare a function returning type stringarray and
2. I tried to put the data into a String, so that the return value is String(Iwould try sort the data after returning values) like
" icB1 extends AbstractTableModel { A.a1(); }" then i get the error msg: "java.sql.SQLException; must caught or declared to be thrown". Then i tried with this: " try { statement } catch { statement }" but it also doesnt func .. So how put I data from a DB into a table ? the main idea is to show and manage DB tables from the web. Many Thanks
regards erkan

Hi Erkan
Here's parts of a simple tutorial style app that shows how to easily get data from a DB into a table. Note that the code is incomplete and may have typos.
public class SQLHandler {
  public List getData(String sql, List headers) {
    List result = new ArrayList();
    ResultSet rs = connection.executeQuery(sql);
    // Get column details
    ResultSetMetaData rsmd = rs.getMetaData();
    int columns = rsmd.getColumnCount();
    for (int i=0;i<columns;i++) {
      headers.add(rsmd.getColumnLabel(i+1));
    while(rs.next()) {
      Object array = new Object[columns];
      for(int i=0;i<columns;i++) {
        array[i] = rs.getObject(i+1); 
      list.add(array):
    return result;
public class SQLDataTableModel implements AbstractTableModel {
  private List data;
  private List headers = new ArrayList();
  public SQLDataTableModel(String sql) {
     data = sqlHandler.getData(sql,headers);
  // abstract methods
  public int getRowCount() {
    return list.size();
  public int getColumnCount() {
    return headers.size();
  public Object getValueAt(int row, int column) {
    Object[] array = data.get(row);
    return array[column];
// Create JTable and assign a model
JTable table = new JTable();
table.setModel( new SQLDataTableModel("select * from table")):cheers
Dave

Similar Messages

  • How to put data from database into array

    I need to answer hot to put data from database directly into array.
    I tried like the code below but the error message said: java.lang.ArrayIndexOutOfBoundsException: 0, and it points to this line: numbers [row][0]= rs.getString("ID");
    Hope you can help.
    ResultSet rs = stmt.executeQuery(query);
         int row=0;
         String [] [] numbers=new String [row][10];
         // output resultset
         while ( rs.next() )
              numbers [row][0]= rs.getString("ID");
              numbers [row][1]= rs.getString("name");
         row++;
         // close resultset
         rs.close();
    thanks,Devi

    The exception is been thrown simply because you assigned '0' to the 'row' variable, indicating a zero length of the array. In fact you should assign the row count to it.
    After all, don't do that. Make use of the Collection framework and map the ResultSet to a Collection of DTO's.
    List<User> users = new ArrayList<User>();
    while (resultSet.next()) {
        User user = new User();
        user.setID(resultSet.getString("ID"));
        user.setName(resultSet.getString("name"));
        users.add(user);
    }

  • How to transfer data of RFC into Internal Table inside a WD4A program?

    Hi Experts,
    I have created WD4A program. This program calls RFC. The output of RFC has to populate  a UI table. THe different cells of the table should have different color based on data.
    I have gone through following link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1
    The above link fetches data from directly from table. Then it passes the data into internal table.
    If I am using RFC, then how I can insert data of RFC into a internal table in WD4A program (se80 In drop down Web Dynpro Comp / Intf)
    My motto is to have table ouput whose different cells should have different color based on data.
    Please help.
    Regards,
    Gary
    Edited by: Jason Lax on Dec 28, 2011 2:52 PM (Fixed broken link)

    Hi Experts,
    I have resolved the issue. I have created WD4A program. This WD4A program calls the RFC.
    The RFC has a structure as export parameters called 'RESULT_FINAL'. I have altered the associated type of this table export parameter. I added Component 'Color' of component type 'WDUI_TABLE_CELL_DESIGN'.
    In the RFC I have added some code. The code is as below:
    loop  at it_t1.
          select pernr from pa0000 into table it_t2 where  pernr = it_t1-pernr  and stat2 ='3'
          and begda <= sy-datum AND endda >= sy-datum.
          if sy-subrc = 0.
            result_final-org_unit = result_objec-objid.
            result_final-pernr = it_t1-pernr.
            result_final-name = it_t1-name.
            result_final-color = '02'.       append result_final.
          endif.
        endloop.
    The line   result_final-color = '02'.   
    code returns Color.
    In the WD4A program, I have changed the Cell Design property of selected table coloumn to Color.
    This resolved the issue.
    Thanks every one for the reply.
    I have added above information for other SDN users.
    I am closing this thread,
    Regards,
    Gary

  • How to import Data (For Dummies) into a table

    I have a excel spreadsheet that is an export of an oracle database table. I want to now import that data into another Oracle Database (same table and format). What is the best way to do that. Someone told me t ouse SQL*Loader, but that is not as straightforward as I had hoped. I tried to use access, but I got an invalid argument on one attempt, and a Reserved Error (-2007) on another attempt.
    Any help would be appreciated.

    Now it seemed to run w/o the INSERT error this time, but now when I look at the log, i see the following errors:
    SQL*Loader: Release 9.2.0.1.0 - Production on Tue Jun 27 10:29:01 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Control File: sqlloader-ctrl.ctl
    Data File: import.txt
    Bad File: import.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table INQUIRIES, loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    INQUIRYID FIRST * WHT O(") CHARACTER
    PERSONID NEXT * WHT O(") CHARACTER
    FIRSTNAME NEXT * WHT O(") CHARACTER
    LASTNAME NEXT * WHT O(") CHARACTER
    ADDRESS1 NEXT * WHT O(") CHARACTER
    ADDRESS2 NEXT * WHT O(") CHARACTER
    ADDRESS3 NEXT * WHT O(") CHARACTER
    CITY NEXT * WHT O(") CHARACTER
    STATE NEXT * WHT O(") CHARACTER
    ZIPCODE NEXT * WHT O(") CHARACTER
    COUNTRY NEXT * WHT O(") CHARACTER
    SEX NEXT * WHT O(") CHARACTER
    MATRICDATE NEXT * WHT O(") CHARACTER
    DEGREEPROGRAM NEXT * WHT O(") CHARACTER
    PACKETCODE NEXT * WHT O(") CHARACTER
    SOURCECODE NEXT * WHT O(") CHARACTER
    NONUS NEXT * WHT O(") CHARACTER
    DUPLICATE NEXT * WHT O(") CHARACTER
    EMAIL NEXT * WHT O(") CHARACTER
    INQUIRYDATE NEXT * WHT O(") CHARACTER
    NOTES NEXT * WHT O(") CHARACTER
    GOODCANDIDATE NEXT * WHT O(") CHARACTER
    POSTED NEXT * WHT O(") CHARACTER
    LABELPRINTED NEXT * WHT O(") CHARACTER
    PHONE NEXT * WHT O(") CHARACTER
    PERMANENTRESIDENCE NEXT * WHT O(") CHARACTER
    LABELPRINTDATE NEXT * WHT O(") CHARACTER
    LASTMODIFIED NEXT * WHT O(") CHARACTER
    MODIFYINGUSER NEXT * WHT O(") CHARACTER
    APPRECEIVED NEXT * WHT O(") CHARACTER
    INTERVIEWED NEXT * WHT O(") CHARACTER
    INTERVIEWEDDATESCHEDULED NEXT * WHT O(") CHARACTER
    INTERVIEWEDDATE NEXT * WHT O(") CHARACTER
    INTERVIEWEDBY NEXT * WHT O(") CHARACTER
    INTERVIEWEDRATING NEXT * WHT O(") CHARACTER
    DUALDEGREE NEXT * WHT O(") CHARACTER
    Record 1: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 3: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 4: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 5: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 6: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 7: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 8: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 9: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 10: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 11: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 12: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 13: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 14: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 15: Rejected - Error on table INQUIRIES, column PERMANENTRESIDENCE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 16: Rejected - Error on table INQUIRIES, column PHONE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 17: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 18: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 19: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 20: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 21: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 22: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 23: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 24: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 25: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 26: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 27: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 28: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 29: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 30: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 31: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 32: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 33: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 34: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 35: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 36: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 37: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 38: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 39: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 40: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 41: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 42: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 43: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 44: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 45: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 46: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 47: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 48: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 49: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 50: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 51: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table INQUIRIES:
    0 Rows successfully loaded.
    51 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 250776 bytes(27 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 51
    Total logical records rejected: 51
    Total logical records discarded: 0
    Run began on Tue Jun 27 10:29:01 2006
    Run ended on Tue Jun 27 10:29:01 2006
    Elapsed time was: 00:00:00.21
    CPU time was: 00:00:00.05
    So now i need to do some google searching to see what those erros mean...... ahh the life of IT... ya gotta love it

  • How and When Sub-Ledger Data is populated into XLA_DISTRIBUTION_LINKS Table

    Hello Gurus
    I have been working on a Sub-Ledger Accounting and I could get a fair idea of how data is being transferred from XLA_DISTRIBUTION_LINKS to XLA_AE_LINES and XLA_AE_HEADERS. As per my understanding, During "Create Accounting" process, data from XLA_DISTRIBUTION_LINKS will be summed up based on JOUNRAL_LINE_TYPES rules and conditions to load into XLA_AE_LINES and XLA_AE_HEADERS. Then during "Transfer to GL" process, data from XLA_AE_LINES and XLA_AE_HEADERS is transferred to GL Tables. What I didn't understand is how and When data gets loaded into XLA_DISTRIBUTION_LINKS. What are the rules and conditions and during which step data will be loaded to XLA_DISTRIBUTION_LINKS table? Can somebody please explain me how data is transferred from Sub-Ledger Distribution Tables to SLA Distribution Table?
    Thanks,
    Sunny.

    Above Notes are good.
    But I just wanted to add a staight point.
    xla_distribution_links and xla_ae_lines will get populated at the same time.
    Both goes on JLTs and their conditions. One is detailed and the other is summarized / merged.
    xla_ae_lines will have extra balancing lines and xla_distirbution_links will have extra gain / loss lines, which end up with zero amount.
    Also check the links for the setup of distribution identifiers.
    http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextacattg
    http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextdisidg
    By
    Vamsi

  • I loaded my ipad photos from camera and all the pictures sorted by date.  Next, I did a sync with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files?

    I loaded my ipad photos from camera and all the pictures sorted by date.  I later sync my ipad with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files other than reloading all of them from camera?

    What version of iPhoto?
    Select one and rotate it. Then rotate it back. Does that make it appear? 
    A much better work flow is the keep the photos after importing.  Check the success the import, wait for at least one successful backup cycle then use you camera's format command to reformat the card
    LN

  • When I import a commercial CD itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the other album by it self. How can I combine them all into one album and why is itunes doing this?

    When I import a commerical CD Itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the second album that it created.  Why is itunes doing this and what can I do to combine them into one album?

    I found this to be somewhat helpful: Grouping Tracks into Albums
    What I did was to put in the same name for Album Artist in every track.  That seemed to do the trick (previously all those fields were empty).  It seems like a lot of work for a simple thing.
    iTunes knows (or should know) that these tracks were imported from one CD. So why is it relying on incomplete data from the gracenote database?

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • How to get and put data in HTTP header in Client Side

    One JSP's function is to display data records page by page. Client users could click "First page" or "Previous Page" or "Next Page" or "Last Page" button to let the JSP to show the corresponding page. So the JSP must remember the current page number. Due to there are a number of client users maybe access the JSP at the same time, keep the current page number in session, there will be a lot of session is created at the same time, this will impact system's performance. So using session to keep data method is not used. I plan to use request header and response header to pass the current page number. I know use the response.addHeader to put data in response header and also know use request.getHeader to get data in request header in server side, but I donot know how to put data in request header and how to get data in response header in client side. Could you please give me a help? If donot use these method, are there any other method? Thanks a lot.

    Why not pass it as a parameter with the URL?
    at the beginning of the page..
    <%
    int pageNumber = Integer.parseInt(request.getParameter("page"));
    %>
    then when defining your links
    <a href="thisPage.jsp?page=<%= (pageNumber-1)%>">Previous</a>
    <a href="thisPage.jsp?page=<%= (pageNumber+1)%>">Next</a>

  • How to put IPOD Shuffle I into Disk Mode ?

    How to put Ipod Shuffle I into diskmode ?

    When connected, in iTunes click on shuffle icon in Devices, then click on Settings tab. Scroll down and click the square in front of "Enable disk use", the adjust slider for amount of flash memory to reserve for data. Click Apply, and you're done!
    When you use iPod shuffle as a disk, the status light on the front of iPod shuffle blinks orange continuously, and the iPod shuffle disk icon appears on the desktop on the Mac, or as the next available drive letter in Windows Explorer on a Windows PC. Drag files to and from iPod shuffle to copy them.
    Ejecting iPod shuffle Important: If the iPod shuffle status light is blinking orange, you must eject iPod shuffle before disconnecting it from your computer. If you don’t eject iPod shuffle before disconnecting it, you could damage files on iPod shuffle.
    To eject iPod shuffle:
    Click the Eject (C ) button next to iPod shuffle in the iTunes Source list. If you’re using a Mac, you can also eject iPod shuffle by dragging the iPod shuffle icon on the desktop to the Trash.
    If you’re using a Windows PC, you can eject iPod shuffle by clicking the Safely Remove Hardware icon in the Windows system tray and selecting your iPod shuffle.

  • How to put datas from database in html�s forms?

    Does anyone have any idea how to put datas from the database using JSP???

    One option: put your data into a JavaBean and then put that into the session. You can then access it from your JSP. You can access the properties of the bean using the basic JSP scripting elements, or if you want to get fancy, both JSTL and Struts have a bunch of custom tags for working with JavaBeans.

  • I want to back up an Iphone 3G and put all the content into Iphone 4. When Iphone 4 is connected to Itunes I do not get an Option to restore from Iphone 3G. IOS 3G - 4.2.1

    I want to back up an Iphone 3G and put all the content into Iphone 4. After I have backed up the Ipone 3G and then when Iphone 4 is connected to Itunes I do not get an Option to restore back up from Iphone 3G. The only devive is see in the drop down list is my Iphone 4. The IOS on Iphone 3G is 4.2.1 and on Iphone 4 is 4.1.
    Please share if anyone has any solution to such a problem.

    You will first have to update your iPhone 4 in order to restore it from the backup of your 3G. Follow the directions here:
    http://support.apple.com/kb/HT4972
    This is an erase/restore deal, so make sure all of your data is on your computer before you begin. iOS 6.1.2 will be installed on your iPhone 4.
    Once done, on your iPhone 4: Settings>General>Reset>Erase All Content & Settings. You'll now be able to restore your 3G backup to your iPhone 4.

  • How to put the alv output into the spool request?

    Hi guys,
    How to put the alv output into the spool request?
    Thanks!

    Hi
    Sending an ALV List screen output to SPOOL
    Convert ALV list to PDF and send mails to respective persons
    Regards
    Pavan

  • How to read the method and put that code in 1 internal table

    Hi,
    Actually in the normal ABAP, if we want to read the report,  then we will write read report statement.
    If we want to read method then this statement will not work.
    So, to read the method and put that code in 1 internal table , which statement we need to write?
    Regards,
    Radhika

    Hi Naimesh,
    Thanks for your reply.
    As, i am not aware of ABAP Objects i am having some issues:
    Actually that is working for some methods in some classes.
    Here 1 issue is there:
    In se24 1 method is there in 1 class.
    Even by using that FM in SE37 i am able to get the program name by giving class and method name,
    but while using that FM in the program i am not able to get that program name.
    so, i am unable to read the source code of the program?
    1 example here:
    Class name is CL_GUI_FRONTEND_SERVICES.
    in this class, methods like FILE_EXIST , FILE_GET_SIZE, etc are there.
    By giving the class name and method name i am able to get the program name also,
    but while using that FM in the program i am not able to get that program name.
    so, i am unable to read the source code of the program?
    Here is my code:
    REPORT  Z16059_SCAN_METHOD.
    DATA: BEGIN OF I_PROGRAM OCCURS 0,
          LINE(256) TYPE C,
          END OF I_PROGRAM.
    DATA METHOD TYPE PROGRAM.
    DATA: BEGIN OF I_STRUCTURE,
          CLS_NAME(30) TYPE C,
          METH_NAME(61) TYPE C,
          END OF I_STRUCTURE.
    I_STRUCTURE-CLS_NAME = 'CL_GUI_FRONTEND_SERVICES'.
    I_STRUCTURE-METH_NAME = 'CL_GUI_FRONTEND_SERVICES-FILE_EXIST'.
    CALL FUNCTION 'SEO_METHOD_GET_INCLUDE_BY_NAME'
      EXPORTING
      MTDKEY             =  I_STRUCTURE
    IMPORTING
       PROGNAME          = METHOD
    EXCEPTIONS
       INTERNALMETHOD_NOT_EXISTING      = 1
       OTHERS                             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ REPORT METHOD INTO I_PROGRAM.
    Please help me out in this regard.
    Thanks & Regards,
    Radhika

Maybe you are looking for