Need to read source file without deleting it!

Hi,
I have a scenario where
     1.  I need to pick the latest file from source folder without deleting it.
     2. I need to post the data in to EP's KM. (how can I communicate with EP)
So can any put some light as how to achieve this.
Regards,
shiva.

Ideally, Source application should not modify same file. It should create new file so that you can archive old file.
Are you using FTP/NFS? FCC???
Have you tried option "Msecs to Wait Before Modification Check"?
I m not sure if its useful for you, but just check if it works.
[http://help.sap.com/saphelp_nwpi711/helpdata/en/44/70ec8a20453abee10000000a155369/frameset.htm]
-Gouri

Similar Messages

  • Need to read source file without deleting it - Sender SFTP adapter

    Dear friends,
    The data from the source file needs to be read by PI on a daily basis. The file should not be deleted.
    Vendor  updates the file on a daily basis with file name DataFeed.xml
    How to acheive this in Sender SFTP adapter ?
    Kindly guide me
    Renu

    Hi Renu,
    Unfortunately as of latest release of SFTP adapter. Arching is not possible :(. really dont know why :).
    as a work around what you can do is  create a scenario as 1 sender and 2 reicever.
    here: 1 sender: will be the sender fileadapter which will pick the file from souce.
             1st receiver: will be a receiver file channel which will palce back the file in the source Archive folder.
             2ed Receiver: this will be the actual receiver to which the data has to be given.
    Or write a Module in Sender adapter which will archive the files in new location.
    Note: Here i am assuming that each time the source creates a new file with same name which contains new data in it everytime.
    Regards,
    Senthilprakash.

  • Is it possible to read/write to text file without deleting it?

    I know how to read from a text file and how to write to a text file. The problem that i have is i need to use a text file to store data for my application to read and also for my application to write. I would like it if i could write two programs really, one reads, the other is used to update the text file. This file is a list of verbs. I thought about using databases but i couldn't get them to work. I downloaded MySQL server 5.0 and installed it. I then downloaded the driver from http://www.mysql.com/products/driver and ran the auto installer. it said everything worked out perfectly but when i try these lines:
    Class.forName("com.mysql.jdbc.Driver");
    I get a SQLException that says no suitible driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ( I thought this driver came with the JDK but i guess not, i just read about it in a java book)
    I get a ClassNotFoundException
    that just says sun.jdbc.odbc.JdbcOdbcDriver
    So yeah, SQL is pretty much not working. I need a solution to my problem, either by using text files, or a different type of database. I heard you could use excel to create a database but i have no idea how and i hear microsoft access could also do this, however i don't have microsoft access and i don't intend on paying for it. So, here are my questions:
    1st, is there a tutorial on using excel databases in java programs
    (if not)
    2nd is there a way to read/write/update a text file without deleting it?
    (if not)
    3rd is there a way to get SQL working, i have windows vista this could be the problem
    (if not)
    4th what could i do to store information on the hd for reading and modifying later?
    thanks, lateralus

    A database might be overkill just for a list of words.
    Thoughts:
    <ul>
    <li>What is the extent of your "file updating"? If you are just appending to the file, opening it in append mode will keep the file from being clobbered.</li>
    <li>Otherwise, why not create new files instead of editting them? The file names could include a version number or timestamp, allowing the reader to select the newest one.
    </li>
    </ul>

  • Whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    Did you reinstall CS3 after CC?
    For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
    And you shouldn't need to save as IDML after opening the .inx in CC.

  • Deleting read source file

    can we delete the read source file once it is successfully transferred to target location?

    Hi,
    Yes u can do that by using API OdiFileDelete. Please follow the document for further info.
    Thanks,
    G

  • Deleting Raw Files without deleting proxy files

    Hello,
    Another newbie question, is Deleting Raw Files without deleting proxy files possible? If it is, anyone have done this? I am thinking of implementing this but cannot find a way. Any suggestion / help is highly appreciated

    If what you want to do is delete the original file without deleting the proxies, the easiest way would be to set up an device for Archives. Then you can archive the asset, which will move the original file to the archive location without deleting the proxy and database records for that Asset. Once that is done you can just delete the file from the archive location.

  • Need to read text file content and have to display it in multiline text box

    dear all,
    Need to read text file content and have to display it in multiline text box.
    actually im new to file handling. i have tried up to get_line and put_line.
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    i dont know how to assign this get_line function to text item
    pls help me in this regards,

    Simply write:
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    :block2.t1 := chr(10)||:block2.t1||chr(10)||linebuf;
    chr(10) --> is for new line character

  • I need to read Pages files but  I can't install Pages on osx 10.6

    I  need to read Pages files, but I can't install Pages because I have OSX 10.6.  Is there some version that will work?

    You can get iWork 09 on the net. You haven't had Pages before? Who is sending you Pages documents? Ask them to export the document to Word or Rtf and you will be able to read the documents in TextEdit, which you have on your computer

  • How to replace a native file without deleting it?

    I was wondering if anyone can let me know to replace a native file without deleting it.
    Thanks
    Kalyan

    John
    Thanks for replying. Ok checking in a new revision is not an option. This document belongs to a plant. They have two revisions. One revision is released and other in Genwww. We have identified the issue which has a problem which has links that do not work. So people at plant do not want to check in a new revision as it goes through a 3 step workflow and it involves approvals etc. So best option here is to replace a native file and have the same approvers as what were there for revision 1. Would batch import work? If it does, how would it?
    Thanks
    Chetan

  • Record into the middle of an existing file without deleting

    Is it possible to record into the middle of a .wav (or any format) file without audition recording right over the existing file? Is there an equivelent of using the Insert toggle in Word?

    Duane_Whitcomb wrote:
    Is it possible to record into the middle of a .wav (or any format) file without audition recording right over the existing file? Is there an equivelent of using the Insert toggle in Word?
    Okay, well let's try answering the question you actually asked...
    The answer is yes - although there's a constraint (as you've discovered...). If you pick a section in the middle of a file, and insert silence into it, you have an extra chunk of file, the length of which you can determine when you create it. Now, if you leave this section highlighted, and hit 'record' then you will be able to record only over the highlighted section.
    So the constraint is that you have to define the time you want in advance. Usually that's not a problem - just pick a bit more than you'll need and trim out what you don't use afterwards.

  • How to sync pdf  files without deleting existing ones

    Hello Everyone,
    I am new to the apple world and i recently bought an iphone 5 and an ipad mini. i am loving using them but i am facing a problem everytime i try to sync media. whenever i upload new stuff its automatically deleting the existing stuff. how do i upload new stuff ( media and pdf's) without deleting the existing ones ??
    NEED HELP ASAP !!!
    Thank you.

    "Upload"? What does that mean to you? Syncing form iTunes? Is that what you mean? If it is what you mean, you need to select all of the content that you want to sync by setting sync preferences and once you do that, your media should not be deleted every time that you sync.
    However if you are referring to Photos as media, Yoy can only sync one folder of photos from your computer at a time. Of you switch to another photos folder, the existing photos on the iPad will be erased.
    So if you would explain exactly what you mean and what you are doing, it will be easier to offer a solution.

  • Reading Outlook files without Outlook

    Hi, I'm looking for recommendations for alternative software for Outlook.  I don't have it, but I receive Outlook files I need to read.  Are there any viable alternatives to Outlook to access the files?  Thanks!

    Stalfos wrote:
    I want to be able to open up text files in Java without having to specify the encoding for the files that I'm going read, because I have no idea which encoding they will use.
    This is your problem. If you don't know what encoding the text is stored in, then the chances that the default encoding used to read it will be correct are slim.
    But even when specifying UTF-8 to be encoding of the file to read, it doesn't work correctly:There are many different character encodings, and most of them don't overlap. Anything above 127 usually causes problems.
    FileInputStream fileIS= new FileInputStream("somefile.txt");
    Reader reader = new BufferedReader(new InputStreamReader(fileIS, Charset.forName("UTF-8")));
    EVERYWHERE I look, ppl are using these codes! But it doesn't work, some characters (such as the Euro sign) are displayed as squares.The problem isn't with the code, it's that the file you're reading isn't using an encoding that's compatible with UTF-8. Assuming that using UTF-8 should work for all encodings is like assuming that someone who can read Chinese should be able to read a book written in Spanish or Greek. It doesn't work that way.
    However, I want to be able to read not only UTF-8 files but anything that Java supports. Any ideas?You need to know what encoding your files are stored in, period. There are a few ways to guess what the encoding is, but they're only reliable for a small set of encodings.
    You don't seem to truly understand what character encodings are, or how to use them, so read this:
    The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
    http://www.joelonsoftware.com/articles/Unicode.html

  • Unable to read resource files without fully qualified file names

    Hi,
    I have installed 9iAS and trying to read a few resources in the OC4J container. A few points to
    note :
    1. The <library> element in server.xml (global and
    instance specific) as well as in orion-application.xml
    can seem to only scan for jars/zips.
    2. Also we are using the Thread specific classloaders as in doc :
    http://otn.oracle.com/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf
    The issue is that so long I pass the fully qualified file name for the resource, I can read the resource. However, I am not able to find a way to include the "resource directory" in the classpath of 9iAS (global) or OC4J instance and read the resource file with just the file name. So, the following code works only when the filename has the fully qualified name for the resource file (Like F:\install\some_dir\file.txt).
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    inStream = cl.getSystemResourceAsStream(fileName);
    Can someone provide me with some pointers to how I can include resource directories in the classpath ? Any help will be appreciated.
    Thanks,
    Krishnendu

    Hi,
    Thanks for your response. Presently your solution is what we already have in place. Most of our properties are stored in a .properties file. However for all other application servers (sun one apps server, websphere, weblogic, tomcat), the classloader can read these properties without the fully qualified path but for oc4j; the code breaks.
    So, even if I change my installer to hardcode the specific property to have the fully qualified file name, I would have written some code specific to OC4J that is generic to all other containers.
    Krishnendu

  • Which version of Adobe Acrobat is needed to read .pdf files on the iPhone?

    I have Blackbaud's iBBDemo4.exe iPhone simulator for Windows XP. I'm trying to view/read various .pdf files with it. I received an error message that says, "file uses a new format that is not supported by the current version of Acrobat." Does anyone know which Acrobat version is needed for .pdf files on the iPhone and/or iPhone simualtor?

    The iPhone has it's own built in PDF reader, and doesn't need Adobe Reader. So if your simulator software isn't working then I suggest you contact Blackbaud's support. Besides, Adobe doesn't make an iPhone version of Reader.

  • Firefox gives a can't read source file message when downloading

    I have tried to download and install the Opera browser and other .exe files (because Firefox is not working correctly, as witnessed by this message). First, I have to pause and restart the downloads many times; second, after the download is apparently complete, I get the "source file could not be read". I don't know whether it is related, but pages rarely complete opening and require that I stop the loading process.
    I clicked to add troubleshooting information and couldn't do it. Connection failure with Mozilla.
    ?????

    Did you check your security software?
    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

Maybe you are looking for

  • How to read every line from a text file???

    How can i read every line from my text file ("eka.txt") now it only reads the first line and prints it out. What is wrong with this? import java.io.*; import java.util.*; class Testi{      public static void main(String []args)throws IOException {   

  • Goods Issuing Many Materials From a Single Handling Unit

    Hi Experts! I have searched threads and asked various contacts how to do this but can't get anything beyond the basics of handling units that we have already implemented. I am using handling units to pack outbound deliveries and have managed to get t

  • My iPhone 4 blinks light grey and grey when trying to connect to wifi.

    I have restarted my Wifi, no change. I have reset my network settings, no change. I have reset my phone and turned it off multiple times, no change. Other people in my household have no problem connecting to the Wifi. It has not been able to connect

  • MDM - GDS - AS2

    Hi, on one presentaiton about MDM - GDS I've noticed that SAP says: GDS provides out of the box connectivity to GDSN (via AS2 adapter) does it mean that GDS includes some As2 adapter ? as XI does include this adapter in standard or do we need to buy

  • The Best Photo Organizing Software

    Although this is probably in the wrong forum category, I couldn't find anywhere else to go so here's my problem: I would imagine this has been posted many times, so if anyone knows a link to a previous forum that would be great as well. Otherwise, I