Read Excel from sap server HDD

I want to read xls from path wich I see by FM RZL_READ_DIR_LOCAL (server space) and how to read xls format to itab from this path?
ALSM_EXCEL_TO_INTERNAL_TABLE work only on local HDD (not server space)

Hi,
You need to use the OPEN DATASET and READ DATASET statements.
Here is a sample, This program will upload a comma delimited file from app server, and break it up into specific fields of an ITAB.
report ztest_0001
no standard page heading.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.csv'.
data: begin of itab occurs 0,
fld1(20) type c,
fld2(20) type c,
fld3(20) type c,
end of itab.
data: wa(2000) type c.
start-of-selection.
open dataset d1 for input in text mode.
if sy-subrc = 0.
do.
read dataset d1 into wa.
if sy-subrc 0.
exit.
endif.
split wa at ',' into itab-fld1 itab-fld2 itab-fld3.
append itab.
enddo.
endif.
close dataset d1.
Regards,
Satish

Similar Messages

  • Fetching a image in the adobe form from sap server/appliaction layer

    hi all,
    i want to fetch a logo/image from the application layer/ sap server, so that everyone can use it in adobe form. i have already upload the image using SE78.
    I try to add the image into library, it works. But the problem is that, only from my login i can access that image, other can't. I want that image to be shared by everybudy like we use in smartform.
    But i want to fetch that image from SAP server/application layer.
    plzz help me out...
    and tell me the steps for fetching the image from sap server/application layer into the adobe form layout.

    Hi rahul,
    I too have the same requirement. Can you please tell me the steps.

  • How to transfer file from sap server to PDM server using open FT??

    Hello Sap Guru's
    I want to Trasfer a file with all supplier information from SAP server to PDM server(Thirdparty) system Using Open FT ..How can I transfer ???
    Please let me know the answer??
    Thanks In Advance
    Preethi

    Hi Preethi,
    I think it is not possible to transfer a file from SAP to PDM using open FT.
    Using RFCs, we can do the transfer.
    Other option is the file can be downloaded into UNIX. And from there using a shellscript we can transfer the file from UNIX to PDM or if your PDM has the option to grab the file from UNIX that will also work.
    Hope this helps.
    Please reward if helpful.
    Thanks,
    Srinivas

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance
    Regards

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
    BR,
    Alok

  • Is it possible to read Idocs from SAP R/3 System?

    Is it possible to read Idocs from SAP R/3 System? Instead of the aRFC

    Unless Hydra emulates ECC sending IDOCS, then you just might want to use the WSMessageListener (http://help.sap.com/saphelp_xmii120/helpdata/en/45/6a86ac88130dece10000000a11466f/frameset.htm) and configure your message processing rules accordingly.

  • Reading mails from Hmail Server

    hi all,
    I am using an java mail api to read mails from a hmail server.I was successfull in reading mails and analysing it further but the problem that i face is my program could read only the recent mails ,all the remaining unread mails were not accessible from the java code.......i am attaching my code...
    package mail.hmailserver;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    public class ReadMail_frm_hmailserver {
         int c=0;
    @SuppressWarnings("unchecked")
    public static void main(String args[]) throws Exception {
    ReadMail_frm_hmailserver mailObj=new ReadMail_frm_hmailserver();
    mailObj.readMails();
    public Vector[] readMails() throws Exception
         String host = "172.29.19.78";
    String user = "[email protected]";
    String password = "testuser1";
    // Get system properties
    Properties properties = System.getProperties();
    // Get the default Session object.
    Session session = Session.getDefaultInstance(properties,null);
    // Get a Store object that implements the specified protocol.
    Store store = session.getStore("pop3");
    //Connect to the current host using the specified username and password.
    store.connect(host, user, password);
    //Create a Folder object corresponding to the given name.
    Folder folder = store.getFolder("inbox");
    // Open the Folder.
    folder.open(Folder.READ_ONLY);
    //folder.open(Folder.READ_WRITE);
    Message[] message = folder.getMessages();
    // String [] contents=new String[10];
    Vector [] contents = new Vector[message.length];//creating array of vectors to store mails
    // Vector contents1=new Vector();
    System.out.println("No of mails : " + message.length);
    System.out.println("subject 1 : "+message[0].getSentDate());
    System.out.println("subject 2 : "+message[0].getSubject());
    // System.out.println("subject 3 : "+message[2].getSubject());
    // System.out.println("subject 4 : "+message[3].getSubject());
    //System.out.println("-----------------");
    // Display message.
    for (int i = 0; i < message.length; i++) {
              c=0;
              contents[i] = new Vector(); //since vector array is an array of arrays we hav to initilize each of the content vectors
    System.out.println("------------ Message " + (i + 1) + " ------------");
    System.out.println("SentDate : " + message.getSentDate());
    System.out.println("From : " + message[i].getFrom()[0]);
    System.out.println("Subject : " + message[i].getSubject());
    System.out.print("Message : ");
    //System.out.println(message[i].getContent());
    Multipart multipart = (Multipart) message[i].getContent();
    //System.out.println(multipart.getCount());
    String line = null;
    for (int j = 0; j < multipart.getCount(); j++) {
    //System.out.println(i);
    //System.out.println(multipart.getContentType());
    BodyPart bodyPart = multipart.getBodyPart(j);
    InputStream stream = bodyPart.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(stream));
    while (br.ready()) {         
         try {
                                  //line.append(br.readLine());
              //line=line+"\n"+br.readLine();
              line=br.readLine();
              if(line.equals("NOTICE")){
                        System.out.println("entered-----------------------------exit loop");
                        //exit();
                        c++;
                        break;
              if(c==0)
              contents[i].add(line); //adding the mails line by line to the array
                             System.out.println(line);
              //System.out.println(contents[i].get(j));
         } catch (Exception e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                                  System.out.println("Exception : "+e);
         //contents[1].add(line);
    System.out.println();
    //System.out.println(line);
    // contents[i].add(line); //adding the mails line by line to the array
    System.out.println();
    // folder.close(true);
    //store.close();
    //System.out.println(contents.length);
    //System.out.println(contents[0].get(0));
    //System.out.println(contents[0].);
    return contents;

    You might want to use IMAP to read mail from hMail Server, if you keep messages on server. It has a lot more features for managing messages on server.
    A lot of POP3 implementations (both client and server side) will automatically delete retrieved messages. I don't know exactly what JavaMail does in that regard, nor of hMailServer, but I do know some mailservers out in the wild will ALWAYS delete mails retrieved with POP3.

  • Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g

    Hi All,
    I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
    I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
    ORA-22992: cannot use LOB locators selected from remote tables
    Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
    Best Regards!
    Irfan

    Irfan,
    If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
    I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
    For the Ora-22992 problem have a look at this note in My Oracle Support -
    Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
    Regards,
    Mike

  • The attempt to read data from the server failed

    Today I was looking into an error with several IMAP accounts in Apple Mail:
    +The attempt to read data from the server "<<servername.tld>>" failed.+
    At first I thought this was an Apple Mail problem, as the accounts in question seemed to work just fine when not used in combination. One possible answer to this problem is rather short:
    Apple Mail uses IMAP caching, which uses more than 4 connections at the same time to the mail server. Some mail servers (like courier-imap in its default configuration) do not allow that much connections from the same IP address. The more accounts you are trying to connect to at the same time raises this number of connections. Meaning while you could probably check one account for new mails, the second will ultimately fail for no obvious reasons. The only solution to this problem is to raise the connections allowed by your IMAP server software. this solution only applies to people who have root access to their mail server.
    in courier-imap you have to edit /etc/courier-imap/imapd
    and change MAXPERIP=4 to a higher number (5 to 10 times the number of accounts you want to check simultaneously)
    and change MAXDAEMONS=40 to a higher number (with only one user 200 might work, whereas if you serve multiple users, something like 500 or higher might be better suited).
    of course increasing the numbers increases load on your server. this is why there are these restrictions in place.

    MY SOLUTION REPOSTED FROM ANOTHER THREAD:
    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    "The server error encountered was: The attempt to read data from the server..."
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, not IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • How to file data from sap server to third party-tibco using EDI-Idoc?

    Hi all,
    I need to send data from sap server to third party system in th form of file.
    Please guide me how to send data file from sap server to third party-tibco using edi-idoc?
    Also guide the configuration ti be done for EDI.
    Thank you.

    1)create file port
    2)TCP-IP RFC destination with a program RFCEXEC to be executed on application server
    3)Dummy distribution model
    4)Partner pofile of type other han LS

  • Server error: "The attempt to read data from the server '(null)' failed"

    Multiple times during each day my client (Mail.app) puts up a little exclamation mark "!" next to the mail account hosted on our Leopard Server. Clicking on this little alert icon pops up a message that reads:
    +There may be a problem with the mail server or network. Verify the settings for account “Leopard Server Account” or try again.+
    +The server returned the error: The attempt to read data from the server “(null)” failed.+
    I can make the "!" go away by choosing Mailbox>Synchronize>Leopard Server Account. And everything seems peachy but it inevitably pops up again in another hour or two. It's annoying because I'm not sure if mail is getting through or not when the "!" is up.
    Any ideas why this is happening?

    MY SOLUTION REPOSTED FROM ANOTHER THREAD:
    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    "The server error encountered was: The attempt to read data from the server..."
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, not IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • Attempt to read data from the server failed...

    I'm getting the following error on one of my email accounts:
    +There may be a problem with the mail server or network. Verify the settings for account “[my account]” or try again.+
    +The server returned the error: The attempt to read data from the server “[my account]” failed.+
    I'd like to find out more about the error, so that I can start to track this down and see if there is a problem with the mail server settings, or if the problem is on my end.
    I don't see any reference to this error in the logs – would it be somewhere else?

    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    The server error encountered was: The attempt to read data from the server...
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, no IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • GUI_UPLOAD NOT READING DATA FROM PRESENTATION SERVER

    H HI IN   MY APPLICATION I HAVE USED GUI _UPLOAD        TO READ DATA FROM   PRESENTATION SERVER   IT WAS WORKING FINE BUT NOW I HAVE SCHEDULED IT IN BACK BACKGROUND WHEN I   DEBUGGED IT GUI _UPLOADI NOT READING DATA FROM PRESENTATION SERVER
    Edited by: ravikumar1006 on Mar 10, 2012 1:18 PM
    Moderator message: FAQ, please search before posting, do not write in all upper case.
    Edited by: Thomas Zloch on Mar 10, 2012 3:17 PM

    The issue is that, when you schedule a program as background job runs on application server not on local pc for that program use the application server resurces  and its not possible to read files from pc. You can find a lot of answers in forum for this

  • Oracle read files from FTP Server

    Hi,
    Somebody knowns Oracle how to read files from FTP Server ? Which package I can use?

    Duplicate post
    Oracle read files from FTP Server

  • Read file from ftp SERVER(NON SAP) into an internal table

    Hi all,
    I need to read the data from an excel file which was uploaded from ftp (i.e different server) into an SAP internal table by using FTP connections.
    Actually i am already getting text file data successfully.
    But only when reading in excel file that is presented in JDA server.
    Facing problem to read excel file data from JDA server.
    Pls help me.
    How can we go ahead ?
    Kindly suggest with the help of some code.

    Hi Lokesh,
    Currently I need to interface JDA and SAP.
    Can you kindly recommend how to handle this?

  • Reading the Excel from Content Server...

    Hello Experts
    I have a requirement to read the contents of the excel from DMS content server to Internal Table.
    I tried using the function module "SCMS_DOC_READ", but it is reading only the part of the contents and remaining contents are missing in the Internal Table.
    Is there any other way to read the content of excel file stored in content server.
    Many Thanks in advance!!!
    Regards,
    Benu

    Hi Christoph,
    Many thanks for your reply...
    Now I am using the same report for downloading the document from content server but my requirement is to read the contents directly from content server without downloading it to presentation server..
    The function module mentioned in the above post is not reading the complete contents of the excel sheet.
    Regards,
    Benu

Maybe you are looking for

  • Unable to clear out the stock in SAP

    Hi Expert! Need your help. I have an issue, my user wants to clear out the stock in SAP because they are the old stock and there's no stock in actual warehouse for those materials actually. it is just in the system taht showing those materials have s

  • The operation can not be completed because of an internal failure. A secure network communicaton has not been cleaned up correctly.

    I closed Firefox after viewing this page (https://www.pcworld.com/news.html) and recieved the following notice: The operation can not be completed because of an internal failure. A secure network communicaton has not been cleaned up correctly. Is thi

  • Byte Range Requests

    Hi, Any help on this topic would be much appreciated. The following feed was recently working on iTunes, but seems to have stopped working. http://www.backpagelead.com.au/podcasts?format=feed&type=rss I understand the issue with byte-range requests a

  • Freezing MBP when inserting USB or Thunderbolt connector

    I have quite new MBP Retina, it was working very well in the beginning but now, without any reason, it is not working that well. When I connect any USB connector (printer or external HDD), thunderbolt with ethernet adapter etc. - the cursor freezes f

  • Transferring Photos from MacBook Pro to my Tower

    Need a little assistance with this. I would like to transfer the iPhoto library from my laptop to my tower. Is this a simple process? How would I go about doing this? Thank you for your help in advance.