Downloading data from MS exchange server

Hello Gurus,
i have a requirement to download user email information (first name, last name, nt id and email etc..) from Microsoft Exchange server (Outlook). Is there a way to do this in PL/SQL?

I'm assuming you mean "and into an Oracle database".
Exchange uses a proprietry format, you are very unlikely to connect to it directly. You could use some .Net tools out there, but the better option is to query the Active Directory server that runs it using LDAP.
It depends of course on your language - but I've used Perl and the standard LDAP query module to query this sort of info from Active Directory in just a few lines of code. It wouldn't take much to then insert to a database.

Similar Messages

  • How do I export public folder data from inactive exchange server?

    I have migrated from SBS2003 (old) to SBS2008 (new)
    Used migration wizard / answer etc...  All went well, expect for the public folders; which failed.
    Question: How do I retrieve the public folder information from the OLD (inactive) server and import it to the NEW server?
    The OLD server has been removed from the domain. I have backups of the OLD server and its original hard drive; where the public store info is located.
    I tried PDDAVAdmin.exe; did not work for me.
    All help is greatly appreciated.
    Bill

    Hi Amit,
    I did as Zoltán said; searched the Internet for edb recovery tools and found a number of companies and Software Products which might help. I also considered your option as well but I have limited experience with building a recovery server and it sounds time consuming.
    Our office is small we have 10 users; we keep contact lists in the public folders. I want to restore the contact lists from the inactive source server to the active destination.
    I believe the process is called "rehoming" (from the web -- "In a Windows environment, rehoming is the process of moving public folders from one Exchange server to another. It involves the creation of a replica of the public folders on the target destination server, waiting for replication to complete, and then removing the public folders from the original source server.")
    Background:
    We have two servers FHHSERVER (the source, SBS2003) and FHHSERVER2 (the destination, SBS2008).
    I used the SBS2008 migration wizard. The important stuff in the exchange database transferred ok; all emails, schedules, tasks, notes, etc. Everything appeared to work; including public folders.
    Microsoft allows a 21 day grace period to complete the migration. I believed the migration was successful so on the 21st day, I followed Microsoft’s instructions and demoted the source server, removing it from the domain. 
    That’s when the trouble started….
    Unknown to me; the public folders remained on the old source server. I did not detect this problem since, during the 21 day migration grace period, the destination server was using the old source server to replicate public folders. As long as the old source server was active, eveyone could open public folder contact lists. After the source server was demoted, the destination server lost its replicate and now our users cannot access that information.
    Another problem is that the inactive server is n o longer licensed and the Exchange console cannot connect to its stores.
    It would seem to me that this problem should be relatively simple to fix. I need some way to open the public folder stores and export the contact lists. I’m not even sure where the public folder database is located on the hard drive.
    I hope this explains the situation in greater detail and that you may be able to offer some insight on how I might resolve this issue.
    Oh, I also tried using EXMerge but cannot seem to make it work either. <http://www.microsoft.com/downloads/details.aspx?familyid=429163EC-DCDF-47DC-96DA-1C12D67327D5&displaylang=en>
    Thanks!
    Bill

  • Download data from IT to Locl Server

    Hi Friends,
    I have writte the entire code for my purposr. All i have to do is download data from an Internal table to the local server as a text file.
    I am having problems in appending statement.
    I am not getting the proper data into it_outfile.
    *Tables
    TABLES : zz0010.
    *Internal tables Decleration
    DATA : it_zz0010 LIKE zz0010 OCCURS 0 WITH HEADER LINE.
    DATA : g_repid LIKE sy-repid.
    DATA : it_outfile(200)  OCCURS 0 WITH HEADER LINE.
    *Selection-Screen
    SELECTION-SCREEN: BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
    PARAMETERS :      p_file LIKE rlgrap-filename.
    SELECTION-SCREEN: END OF BLOCK 1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name = g_repid
        IMPORTING
          file_name    = p_file.
    START-OF-SELECTION.
      SELECT *
             FROM zz0010
             INTO TABLE it_zz0010.
    END-OF-SELECTION.
      LOOP AT it_zz0010.
        it_outfile       = it_zz0010-mandt.
        it_outfile+(3)   = it_zz0010-matnr.
        it_outfile+(21)  = it_zz0010-auart.
        it_outfile+(25)  = it_zz0010-datab.
        it_outfile+(33)  = it_zz0010-datbi.
        it_outfile+(41)  = it_zz0010-zzcoe.
        it_outfile+(45)  = it_zz0010-zzend.
        it_outfile+(63)  = it_zz0010-zzfide.
        it_outfile+(73)  = it_zz0010-zzdos.
        it_outfile+(88)  = it_zz0010-zzusl.
        APPEND it_outfile.
        CLEAR : it_outfile.
      ENDLOOP.
    *Local File
      CALL FUNCTION 'DOWNLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'ASC'
        TABLES
          data_tab                = it_outfile
        EXCEPTIONS
          invalid_filesize        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          customer_error          = 7
          OTHERS                  = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Any suggestions or changes to the code.
    Shejal.

    Hi,
    I think it should like this.
    LOOP AT it_zz0010.
    <b>it_outfile(3) = it_zz0010-mandt.
    it_outfile+3(18) = it_zz0010-matnr.
    it_outfile+21(4) = it_zz0010-auart.</b>
    APPEND it_outfile.
    CLEAR : it_outfile.
    Regards,
    Ferry Lianto

  • Reterieve/download email attachments from MS Exchange Server

    Hi,
    Is there a way to check for new emails and download any attachements from MS Exchange Server. I want to check for any new emails from some specific contact, then check if there are any attachments, if any attachments i.e. .txt,.doc,.zip etc. I then want to download and save them on a filesystem. Can someone please help me out how to proceed and small example will help. Thanks

    Hi,
    I tried connecting to he server but keeps getting the following error.
    javax.mail.AuthenticationFailedException: There is no such mailbox on this server
         at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
         at javax.mail.Service.connect(Service.java:256)
         at javax.mail.Service.connect(Service.java:135)
         at javax.mail.Service.connect(Service.java:87)
         at mypackage.Fetch.main(Fetch.java:26)Here is the sample I am using:
    package mypackage17;
    import java.io.*;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.Flags.*;
    import javax.mail.internet.*;
    public class Fetch {
      public static void main (String args[])
          throws Exception {
        String host = "mail.some.com";
        // Get system properties
        Properties props = System.getProperties();
        props.put("mail.pop3.host", host);
        // Setup authentication, get session
        Authenticator auth = new PopupAuthenticator();
        Session session = Session.getDefaultInstance(props, auth);
        // Get the store
        Store store = session.getStore("pop3");
        store.connect();
        // Get folder
        Folder folder = store.getFolder("INBOX");
        folder.open(Folder.READ_WRITE);
        // Get directory
        Message message[] = folder.getMessages();
        for (int i=0, n=message.length; i<n; i++)
           System.out.println(i + ": " + message.getFrom()[0] + "\t" + message[i].getSubject());
    try
    Object o = message[i].getContent();
    /*On Mail system when you recive a mail with attachment the format of the message is a multipart/mixed*/
    if (message[i].isMimeType("multipart/mixed"))
    Multipart mp = (Multipart) o;
    int cnt = mp.getCount();
    for (int j = 0; j < cnt; j++)
    Part part = mp.getBodyPart(j);
    System.out.println("********** " + part.getFileName());
    String disposition = part.getDisposition();
    if ((disposition != null) && ((disposition.equals(Part.ATTACHMENT) || disposition.equals(Part.INLINE))))
    InputStream is = null;
    File tempFile = new File("C:\\Samples\\" + part.getFileName());
    FileOutputStream fos = null;
    try
    fos = new FileOutputStream(tempFile);
    is = part.getInputStream();
    int byteCount = 0;
    byte[] bytes = new byte[128];
    while ((byteCount = is.read(bytes, 0, bytes.length)) > -1)
    { //use full read() method for GZIPInputStream to be treated correctly
    fos.write(bytes, 0, byteCount);
    finally
    try
    if (fos != null) fos.close();
    catch (IOException ioe) {}
    try
    if (is != null) is.close();
    catch (IOException ioe) {}
    message[i].setFlag(Flags.Flag.DELETED,true);
    System.out.println("Deleting Message");
    catch (MessagingException mex)
    //Work with the exception
    catch (java.io.IOException ioe)
    //Work with the exception
    folder.close(true);
    store.close();
    System.exit(0);
    package mypackage;
    import javax.mail.*;
    import javax.swing.*;
    import java.util.*;
    public class PopupAuthenticator
        extends Authenticator {
      public PasswordAuthentication
          getPasswordAuthentication() {
        String username, password;
        String result = JOptionPane.showInputDialog(
          "Enter 'username,password'");
        StringTokenizer st =
          new StringTokenizer(result, ",");
        username = st.nextToken();
        password = st.nextToken();
        return new PasswordAuthentication(
          username, password);
    }Can someone help what is wrong that I am unable to connect. Thanks

  • Download data from itab to excel in background (POINTS WILL BE REWARDED )

    Hi Guys...
    Is it possible to transfer data from an internal table to excel through a report which runs in background...???
    thnx in advance...

    Please refer following code.
    LOOP AT IT_EXCEL_LAYOUT.
      CONCATENATE: IT_EXCEL_LAYOUT-SLNO             ','
                   IT_EXCEL_LAYOUT-HERST            ','
                   IT_EXCEL_LAYOUT-QMNUM            ','
                   IT_EXCEL_LAYOUT-QERDAT           ','
                   IT_EXCEL_LAYOUT-AUFNR            ','
                   IT_EXCEL_LAYOUT-ERDAT            ','
                   IT_EXCEL_LAYOUT-EBELN            ','
                   IT_EXCEL_LAYOUT-AEDAT            ','
                   IT_EXCEL_LAYOUT-BELNR_M          ','
                   IT_EXCEL_LAYOUT-BSART            ','
                   IT_EXCEL_LAYOUT-MATNR            ','
                   IT_EXCEL_LAYOUT-TXZ01            ','
                   IT_EXCEL_LAYOUT-MTART            ','
                   IT_EXCEL_LAYOUT-MENGE            ','
                   IT_EXCEL_LAYOUT-CBAMT            ','
                   IT_EXCEL_LAYOUT-MMCRAMT          ','
                   IT_EXCEL_LAYOUT-CRN_NO           ','
                   IT_EXCEL_LAYOUT-MMDBAMT          ','
                   IT_EXCEL_LAYOUT-DBN_NO           ','
                   IT_EXCEL_LAYOUT-REJAMOUNT        ','
                   IT_EXCEL_LAYOUT-DBN_REJ_CODE_TEXT','
                   IT_EXCEL_LAYOUT-STAMT            ','
                   IT_EXCEL_LAYOUT-STXCAMT          ','
                   IT_EXCEL_LAYOUT-CRNNO            ','
                   IT_EXCEL_LAYOUT-LRNO             ','
                   IT_EXCEL_LAYOUT-LRDATE           ','
                   IT_EXCEL_LAYOUT-TRANSPORTERNAME
            INTO   IT_EXCEL-FLD.
          APPEND   IT_EXCEL.
    ENDLOOP.
    DATA:w_filename LIKE  CFFILE-FILENAME.
    CONCATENATE '/usr/sap/EC2/SYS/global/backup/'SY-UNAME '.csv' INTO w_filename.
    OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC = 0.
      LOOP AT IT_EXCEL.
         TRANSFER IT_EXCEL TO w_filename.
      ENDLOOP.
    ENDIF.
    CLOSE DATASET w_filename.
    It will help u to download data on to application server in csv format
    Regards,
    Swarup

  • Download data from memory to Excel format.

    Hi Gurus,
        How can I download data from Memory( not in application server ) to Excel format ? Now I am using below function modules  but not coming in proper format.
    CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                listobject = listobject
           EXCEPTIONS
                OTHERS     = 1.
    CALL FUNCTION 'LIST_TO_ASCI'      "report to ASCII text
             TABLES
                  listasci           = listasci
                  listobject         = listobject
             EXCEPTIONS
                  empty_list         = 1
                  list_index_invalid = 2
                  OTHERS             = 3.

    Hi,
    use this function module.
    CALL FUNCTION  'SAPGUI_PROGRESS_INDICATOR'
    Regards,
    NNR.

  • Export data from MS sql server table to an oracle table

    I need to move data from a sql server table to an oracle table and when ever the sql server table is updated it needs to automatically update the oracle table. Is there procedure to do this or do I migrate the data once and set up a trigger on the sql server table to update the oracle table? If the trigger is the answer how do I do that?

    You might want to check out Oracle's heterogeneous services functionality if you haven't done so already. Here are a few links:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/majfeat.htm#sthref74
    Also, consulting the Oracle streams manual may be helpful -- particularly Chapter 5.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/toc.htm
    Perhaps someone who is more familiar with SQL Server could provide a more helpful answer.

  • How to download data from abap-ouput to excel sheet with logo

    how to download data from abap-ouput to excel sheet with standard logo
    Edited by: Harish Kasyap on Nov 18, 2008 8:19 AM
    Edited by: Harish Kasyap on Nov 18, 2008 8:20 AM

    For saving the report you can goto System -> List -> Save -> Local File -> Location where you want to save in your presentation server.
    You can also give a option in your selection screen to save the file to Presentation server using FM GUI_DOWNLOAD.
    Hope it helps.
    Thanks,
    Jayant.

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

  • How can I back up Contacts synced from an Exchange server into iCloud?

    Hi everybody. I would like to back up into iCloud my Contact (and Calendars too) which I have  previously synced to the device ( that is an iPad air running iOS 8.2.1) from an Exchange server. The green flags in Settings / ICloud are duly switched on but no contact will appear under Groups/all iCloud. Is this feature feasible at all or is there something missing in the procedure I follow ? I'll appreciate any clues. Piero

    Hi Brendan. Thanks for your clue but unfortunately that did not solve the problem. Prior to posting my query I had already checked out the article you're referring me to (whose URL is http://support.apple.com/kb/PH3605). It may well be that I'm not being crystal clear owing to my far from perfect English but the whole point is precisely that I'm not able to import contacts  which ALREADY appear on my iPad - being the outcome of syncing my remote MS Exchange account with the device - into iCloud. The procedure described in the quoted article simply doesn't work (for that matter, no such Setting sign pops up under ICloud contacts). In fact, it appears that the only contacts which I'm able to keep under iCloud are those which I directly create from scratch within iCloud Group itself. Since I'm likely to have my MS outlook account  ( which is mirrored into a MS Exchange one for remote usage) forcibly deleted in one month time or so, I started  worrying about how to keep my contacts alive/ intact after that deletion. Hope the issue got clearer now ... Cheers, Piero.

  • How to download data from a an external hard drive ?j

    How to download data from an external hd ?

    You need to copy the data onto your computer and transfer it via that (either via iTunes, or if the app that you want to transfer the data to supports, via wifi). Like the previous reply said, you can't do it directly without a computer being involved.

  • I would like to use DDE to send data from a Lookout Server to an Excel

    Hello National Instruments,
    I would like to use DDE to send data from a Lookout Server to an Excel
    Spreadsheet.
    I have Lookout 6.1 on a server connected to 4 client workstations
    The operating system on the server is Windows Server 2003 R2; Standard Edition;
    Service Pack 2
    I have opened DDE Share but after filing in Share Name; Static Application
    Name; Static Topic Name
    I get a message, "Can't bind to DSDM service"
    I also get this message when I press add a Share
    What are the steps to setting up this type of communications link?
    Thanks,
    David Lopez
    Scada Functional Analyst

    Ryan,
    I have followed the steps on the Knowledge Base "How do I use DDE To Send Data Across the Network To Excel From Lookout?" but what I am seeing is that the computer with excel (Computer B)hangs up displaying an hour glass continuously leaving me no option but to go into task manager to stop excel.  It appears to me that the dde share is not working properly on my windows xp where lookout resides or I do not have a certain service turned on.  I do have the DDE services turned on both computers.  I have my computer set up as computer A with Lookout and Process1 as the process with a pot set up as pot1.  On my computer (Computer A) I also have the dde share set up per the KB example.
    On computer B I have the dde services turned on and I am typing the following into an excel worksheet Cell  ='\\TAG23232\NDDE$'|'Process1$'!Pot1
    TAG 23232 is Computer A's Name
    Do you have any suggestions???

  • Trying to use FTP to get data from a different server

    Hi Friends,
        I have to use FTP to get data from a different server and upload it on SAP server. Now my problem is when I m trying to do ftp through command line it brings the file but with no data.
       Through ABAP program nothing is happening.
    Here's my code--
      V_PASSWORD = 'test@123'.
      V_PWD_LEN = STRLEN( V_PASSWORD ).
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = V_PASSWORD
          SOURCELEN   = V_PWD_LEN
          KEY         = CS_KEY_500098
        IMPORTING
          DESTINATION = V_PASSWORD.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          USER            = 'test'
          PASSWORD        = V_PASSWORD
          HOST            = '176.0.1.6'
          RFC_DESTINATION = 'SAPFTPA'
        IMPORTING
          HANDLE          = MI_HANDLE
        EXCEPTIONS
          NOT_CONNECTED   = 1
          OTHERS          = 2.
      CHECK SY-SUBRC = 0.
      cmd = 'lcd d:\ftp'. .
      PERFORM FTP_COMMAND USING CMD.
      CMD = 'asc'.
      PERFORM FTP_COMMAND USING CMD.
      CONCATENATE 'dir' 'ftpt*' INTO CMD SEPARATED BY SPACE.
      PERFORM FTP_COMMAND USING CMD.
      cmd = 'ls'.
    concatenate 'ls' INTO CMD SEPARATED BY SPACE.
      PERFORM FTP_COMMAND USING CMD.
      cmd = 'mget trial.txt'.
    CONCATENATE 'mget' 'trial.txt' INTO CMD SEPARATED BY SPACE.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          HANDLE        = MI_HANDLE
          COMMAND       = CMD
        TABLES
          DATA          = MTAB_DATA1
        EXCEPTIONS
          TCPIP_ERROR   = 1
          COMMAND_ERROR = 2
          DATA_ERROR    = 3
          OTHERS        = 4.
      IF SY-SUBRC = 0.
        LOOP AT MTAB_DATA1.
          WRITE: / MTAB_DATA1.
        ENDLOOP.
      ELSE.
        CONCATENATE 'Error in FTP Command while executing' CMD INTO ERROR SEPARATED BY SPACE.
        WRITE: / ERROR.
      ENDIF.

    Hi
    try this.....in one of my reqt, i done this successfully....
    FORM FTPCON.
    FTP-------------------------------------------------------*
      CLEAR DSTLEN.
      SET EXTENDED CHECK OFF.
      DSTLEN = STRLEN( S_PWD ).     -
    >  (S_PWD (password) is a selection screen field )                  
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = S_PWD
          SOURCELEN   = DSTLEN
          KEY         = KEY
        IMPORTING
          DESTINATION = S_PWD.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          USER            = P_USER                   -
    > Username
          PASSWORD        = S_PWD             -
    > password
          HOST            = P_HOST                  -
    > Host
          RFC_DESTINATION = P_DEST         -
    > Destination
        IMPORTING
          HANDLE          = HDL
        EXCEPTIONS
          NOT_CONNECTED   = 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.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          HANDLE        = HDL
          COMMAND       = 'set passive on'
        TABLES
          DATA          = RESULT
        EXCEPTIONS
          TCPIP_ERROR   = 1
          COMMAND_ERROR = 2
          DATA_ERROR    = 3.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = HDL
          FNAME          = G_FCNAME
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = T_FILE1
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = HDL
          FNAME          = G_FCNAME1
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = T_FILE2
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'FTP_DISCONNECT'
        EXPORTING
          HANDLE = HDL.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
          EXPORTING
            DESTINATION          = P_DEST
          EXCEPTIONS
            DESTINATION_NOT_OPEN = 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.
    ENDFORM.                    " FTPCON
    Hope it helps.....

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 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.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Error message: when downloading data from 2nd display tag table

    I am using disaply tag to display data in jsp page. I am using three different section to display the data with three display tag table. The data is displaying correctlly. The display tag downlod excel sheet is working for first display tag table. When i am trying to download data from 2nd and 3rd display tag table i am getting following error:
    Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refer to the displaytag documentation on how to configure the export filter (requires j2ee 1.3).
         at org.displaytag.tags.TableTag.writeExport(TableTag.java:1438)
         at org.displaytag.tags.TableTag.doExport(TableTag.java:1364)
         at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1215)
         at org.apache.jsp.InstalBase_005fReport_jsp._jspService(InstalBase_005fReport_jsp.java:974)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    As per the Exception i don't have any jsp tag before the display tag.
    Please help me if any body has any solution for the above exception.
    Thanks in advance.
    Smruti..

    See also http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

Maybe you are looking for

  • Which iso is right one for Athlon XP 1.8G?

    I will have ethernet connection while installing but which  CD iso do I need?  Sorry about the real newbie question. A. archlinux-2009.08-netinstall-i686.iso               i686/32bit CD-ISO B. archlinux-2009.08-netinstall-x86_64.iso          x86_64/6

  • Djvu conversion

    Does anyone know a good way to convert a djvu file to some more standard format like a pdf? I have MacDjView which lets me view the file on my computer, but the print option is greyed out so I can't save it as a pdf that way. Thanks!

  • Theme does not load completely

    Hi The theme does not get loaded completely into the Portal page when we click on the links to the WebDynpro ABAP ( eg. ECC, BW). Also the portal font gets distorted. And this happens 50 % of the time. We have to log back in and try our luck. Any ide

  • Deploying Javabeans on a different server such as JBoss

    Hi I have got a very simple bean, taken from sun site. The bean works fine when it is deployed on the j2ee server that comes with the jdk. But when i move the code over to a different server such as JBoss i get a null pointer exception on the page. O

  • Activating Photoshop Elements for Students and Teachers

    Dear community, I am from Switzerland and just bought the Photoshop students version. As the test-license is not anymore valid, i would like to activate my full-access. First I think I have to get my serial number. As I know, I have to send an e-mail