Access my flat file, which is located on client machine

Hi all,
I have configure Webutil on ApplicationServer to access flat file contents which is located on client machine also configure all of the required parameter.
file open Dialog box open successfuly but after selecting flat file from client machine ,content of text file is not read
but if flat file exists on application server it is working properly;
code is here
begin
:file_name:= CLIENT_GET_FILE_NAME('c:/', File_Filter=>'Text Files (*.txt)|*.txt|');
get_file_contents(:file_name);
exception when others then
message(sqlerrm);
end;
Edited by: user581546 on Apr 1, 2010 5:02 AM

In webutil.pll there is a function CLIENT_TEXT_IO. By using this function you can read the client text file.
Search on forum by CLIENT_TEXT_IO
-Ammad

Similar Messages

  • I want to write in a XML file which is located on the TOMCAT server

    hello all,
    can anybody tell me or give me code snippet for writing some data through my application i.e from client side on te file which is located on the TOMCAT server(especially XML file).
    tell me how can i do that?
    it is urgent
    cya
    sush

    Hello sush,,,,
    I am sending you some API / classes that will definetely help you for writing XML file through java.
    1) TransformerFactory.newInstance();
    2)Transformer serializer
    3)StreamResult
    4)serializer.transform(source,result);
    5)DOMSource
    From Vikas_khengare
    [ [email protected] ]

  • How to retrieve data from an Excel file which is located on server

    hi everybody,
                    I am using SAP NWDS 2004s .     
                I have done an application on how to export the table data into an Excel .
    Now i want to get the data from an Excel file which is located in server and display that data which is in excel in a View for example a Sample view in Webdynpro  .
    In Sample view i took a uielement textview to display the data ....   
    can any one help how to procced further
    Thanks in advance
    Madhavi

    Options to read Excel data to WebDynpro context
    Reading Excel Sheet from Java without using any Framework
    Reading Multiple Sheets of Excel Sheet from Java
    Few Threads
    How to Display the content of Excel file into Webdynpro Table
    Is it possible to upload data from excel file(.xls)
    Re: How to export the data as integer into excel sheet?
    regards
       Vinod

  • How to load data from a  flat file which is there in the application server

    HI All,
              how to load data from a  flat file which is there in the application server..

    Hi,
    Firstly you will need to place the file(s) in the AL11 path. Then in your infopackage in "Extraction" tab you need to select "Application Server" option. Then you need to specify the path as well as the exact file you want to load by using the browsing button.
    If your file name keeps changing on a daily basis i.e. name_ddmmyyyy.csv, then in the Extraction tab you have the option to write an ABAP routine that generates the file name. Here you will need to append sy-datum to "name" and then append ".csv" to generate complete filename.
    Please let me know if this is helpful or if you need any more inputs.
    Thanks & Regards,
    Nishant Tatkar.

  • To Read the contents of the properties file which is located in webserver

    Hi,
    I have one requirement where I have to read the contents of a property file which is located in some path in server. Say for example, when you click on link abcd then contents of abcd.properties file should be displayed in one text view in webdynpro . I am trying to implement this in webdynpro for java. The main thing is like I am not able to retrieve the server path of the file and hence not getting the file contents. I tried using methods like  getApplicationPath() or getRealPath() but its not working. So can you guys please help me on to how to read the server file contents.
    Thanks and regards,
    Sai

    Hi Romano,
    Thanks a lot for your reply. However, I forgot to mention one thing in my question. Its like the path will be different everytime. Say, we have systems like development, acceptance, production. So when the user clicks on the link abcd, it should take the path of development system and similarly when the user clicks on the link in acceptance or production, the path will be different. say for example, in development the path will be
    usr/cluster/dev/abcd.properties but it acceptance it will be usr/cluster/acc/abcd.properties. So just want to know whether this will work? Anyway, I will give this a try.
    Thanks once again,
    Sai

  • Load some flat files from ftp location

    HI,
    I have requirement, i want to load the some flat files from ftp location. but problem is in that ftp location i have multiple files.i want to load flat files starts with file name with numeric. otherwise i have apart from these start with numeric files .
    i have remain 2 flat files with constant name. i need to load flat files starts with file name with numeric or i need to leave these 2 constant files then need to load remain start with numeric files. how to achive this in ssis for each loop container.

    See these two examples:
    http://microsoft-ssis.blogspot.com/2012/01/custom-ssis-component-foreach-ftp-file.html
    http://microsoft-ssis.blogspot.com/2011/08/foreach-ftp-file-enumerator.html
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Cannot update, repair, uninstall itunes in Windows7-64bit. Have itunes v10.5.0.142 installed but is missing "itunes64.msi" file .  Need copy of itunes64.msi file which is located in the file folder ProgramData\Apple Computer\Installer Cache. Thanks.

    Cannot update, repair, uninstall itunes in Windows 7-64bit.  I have itunes version 10.5.0.142 installed but is missing the "itunes64.msi" file.  Would like to obtain a copy of this file which is located in the file folder ProgramData\Apple Computer\Installer Cache.  If someone could supply a copy of this file on this site, it would really be appreciated.  Thanks in advance. 

    See Troubleshooting issues with iTunes for Windows updates for general advice.
    If you want to install an older version of iTunes see http://support.apple.com/downloads/#itunes or OldApps.com.
    tt2

  • Plz send simple bdc  code with flat file which is executable

    plz send a simple code for upload bdc with flat file which is executable.

    plz send a simple code for upload bdc with flat file which is executable.

  • How to upload a flat file which is saved as .html format.

    hi techies,
    I have to upload a flat file which is saved in .HTML format. Is there any function moudles seperately to
    upload html flat file or using GUI_UPLOAD.. can we upload it ???
    Please need a suggestion...
    Rgds.,
    subash

    hi gautam,
    this FM is taking html string as input and giving the output, not the file...
    any more suggesstions dude..
    Rgds.,
    subash

  • Accessing my picture files in iPhoto library on Time Machine

    Ordinarily when I need to access my photo files in the iPhoto library I control click to get the menu where I can go to "show package contents." Once inside that I can get access to the files.
    However, when on Time Machine and I try to control click on the iPhoto library nothing happens.
    Anyone know how I get access to the photo files.
    It seems to defeat the purpose of Time Machine if I can't access old files.
    Thanks in advance.
    Russell

    Ordinarily when I need to access my photo files in the iPhoto library I control click to get the menu where I can go to "show package contents." Once inside that I can get access to the files.
    Why one earth would you risk corrupting your library doing that when any of the following will work:
    There are three ways (at least) to get files from the iPhoto Window.
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    To upload to MySpace or any site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser. Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Also, for 10.5 users: If you use the extended Open or Attach dialogue (with Column View) you can scroll to the bottom of the Shortcuts and find the Media browser there. Select any pic you want from there.
    Regards
    TD

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • Reducing the time interval in file Adpt to write a flat file at a location

    Hi All,
    I hav a scenario where i hav to write a flat file (<b>XXX.txt</b>) to a location. b4 doing that, i hav to check whether <b>XXX.txt</b> already exists or not. If it doesn't exists then i hav to write the <b>XXX.txt</b> file there. if it already exists, then i hav to wait until that <b>xxx.txt</b> file gets deleted.
    In the receiver file adapter v hav an option <b>file construction mode = <u><i>create</i></u></b> which does the same thing. but the problem here is it is taking too long (<b>more than 5 min</b>) which is not at all acceptable in my case (it is ok <b>if it takes 1 min</b>).
    Is there any way to <b>reduce the time interval</b> using the same option?
    Or do we hav any <b>work around solution</b> for acheiving the same scenario?
    any help wud b appreciated.
    Thnx in Adv.
    Anil

    Anil
    As far as my knowledge goes I think it is not possible because we are not going to do anything from our end. XI is doing processing and creating a file for you. But you might be sending a large file at a time. So you have to improve the performance in your scenario. You check this urls on how to improve performance in XI:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    Improving performence in XI
    Maximum Permitted File Size in XI
    ---Satish

  • How ot move an flat file from one location to another

    Hi all,
    My requirement is that i am having a flat file in my C drive(ex:- C:\123.txt) i have to move that file into One of the folders of the My Netqork places using ABAP Programing
    How can i do this...Can we do this using OPEN DATASET   Plese give me sample code if having
    Regards
    Ajay

    Hi Ajay,
      There is no need for using Open Dataset.
    First you upload your text file using GUI_UPLOAD  from the present location.
    Then you download the file using GUI_DOWNLOAD into the required location(Netwrk Places).
    Check this link for GUI_UPLOAD and GUI_DOWNLOAD.
    http://abaplovers.blogspot.com/2008/03/function-modules-guiupload-guidownload.html
    If you are moving it onto Application Server, then go for
    Open Dataset
    Check this link for Open Dataset:
    http://help.sap.com/saphelp_40b/helpdata/ru/34/55cad198482bc0e10000009b38f91f/content.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Adapter Module for Sender File Adapter to access a Flat file

    Hi,
    We have a scenario where the source is a flat file.I want to develop an Adapter Module to make a small change to every line in the Flat file.
    Now how do we read a flat file in the Adapter Module?Coz the flat file will be converted to XML file by the Standard Adapter Module of the File adapter.
    Please help me out with this.
    Thank you,
    Anu.

    Hi Anu,
    If you are not using Content Conversion option Standard Adapter Module does not convert the Flat file to XML .
    You can directly access the payload as it is in flat file in the Adapter Module and make changes.
    Use the Standard classes ModuleData & moduleContext to fetch the Payload.
    chk this :
    Customized Sender Adapter Module
    XI: Read data from PDF file in Sender Adapter
    regards
    Ganga

  • Can't able to access the Jar files which is kept inside the folder.

    Hi,
    I am using the eclipse IDE, my project folder contains the folders src, bin, .metadata, .settings
    if i place the jar file in the same location of the above mentioned folder means i can able to use the Jar file in eclipse(in my project).
    But i create one folder in the same location in the name of Jar or anything and all jar files are placed inside the folder,then i can't able to access the jar file in eclipse(in my project).
    How i can solve this problem?

    RajivGuna wrote:
    ..How i can solve this problem?Put Eclipse aside for the moment and learn how the SDK tools work at the level of the command line, then you will be much better placed to figure how to do it in the IDE. If you are still having problems, I suggest you ask on an [Eclipse forum|http://www.eclipse.org/forums/].

Maybe you are looking for