Dynamic sender  file name Pattern and collecting into one file

Hi Experts,
Could you please let me know how to achieve below scenario.
1)     File Directory: TEMP: files: test1,test2,ign1,ign2..etc.
2)     Get the files of pattern test*
3)     Received files test1, test2.
4)     Club contents of file Hemanth1, Hemanth2.
Ex: test1 contains------REC1
      test2  contains------REC2
OUTPUT FILE contains REC1,REC2.
5)     Pass OUTPUTFILE and filenames (test1,test2) to R/3.
PS: Please dont give references of blogs..I went through most of them could n't finad anything helpful.
My concern is how to collect files into one file and sending filename pattern..
Thanks in advance..

Hi Experts,
Could you please let me know how to achieve below scenario.
1)     File Directory: TEMP: files: test1,test2,ign1,ign2..etc.
2)     Get the files of pattern test*
3)     Received files test1, test2.
4)     Club contents of file Hemanth1, Hemanth2.
Ex: test1 contains------REC1
      test2  contains------REC2
OUTPUT FILE contains REC1,REC2.
5)     Pass OUTPUTFILE and filenames (test1,test2) to R/3.
6) Suppose poling is for 2 minutes..I dont want to read the files which I already read again (I dont want to delete or modify source directory files)
PS: Please dont give references of blogs..I went through most of them could n't finad anything helpful.
Thanks in advance..

Similar Messages

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • BPM: Multiple IDOC collect into one file

    Hi
    I have done collecting multiple IDOCs of same type into one file using BPM
    I have used the following blog which is collecting different types of IDOCs.
    IDOCs (Multiple Types) Collection in BPM
    But i have done collecting of IDOCs which are same type.
    Source side it is showing successful and its reaching to BPM also . But in target i am not getting any file. Could any one please help me how to check where exactly I am failing.
    Thanks & Regards
    Sowmya

    Check whether the Outbound Status is successful or not in sxm_moni. Is there any message created from Integration Process to receiver File system.
    Check this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80a22ce8-8e72-2b10-3fba-e9511c6f0b8b
    Regards,
    Prateek

  • SQL*Loader - How to combine Flat File 3 columns and put into one single column

    Receive a flat file delimited by comma. Want to combine Flat File last 3 columns and put into one single column(Table).
    e.g.
    Flat File
    100,239,30,20,30
    While inserting into table want to combine last 3 columns and insert into invoice number column.
    302030

    It is not possible to combine the last 3 columns as those columns are seperated by commas and in the SQL Loader control file you must ve specified COMMA as an delimiter. So u better have all the columns in the table plus add one more column which holds the concatenation of the 3 columns.
    Vijay

  • Importing DV files from HD tape camera into one file

    Hi there,
    I have an old sony HD Cam using DV tapes.
    I am capturing those tapes into Final Cut Pro to keep the original files in a .mov format, but when I do that, Final Cut slices the movie in 100 little pieces.
    I would like to know if there is a way to capture the movie (approx 60mn) into one big .mov file instead of several pieces of files.
    I know there are sofwtare that can join the files later on but I would liek to avoid doing 2 operations which is time consuming instead on doing just one capture.
    Thanks for your brilliiant tips.

    Hi, Thanks for your comments.
    So that means I cannot de-activate this funciton on Final Cut Pro, I understand.
    Is there a function on Final Cut Pro to join the mov files after they are captured (without compression) ??
    If not can you recommend any good sofwtare (free or not) that could do this on Mac ??
    Thanks a lot for your prompt answer.

  • I cannot drag file over Dock and place into one of more opened windows - i.e. Mail

    I cannot drag file over Dock, i.e. MAIL, wait a second, choose one of 2 windows - MAIL APP or NEW MAIL and place this file into opened New Mail. Normally I will wait until appear 2 windows with Mail app and New mail and choose NewMail and place the file into the new mail. This does not work for now and I have no idea why... Now it will Create only NewMail with this file attachment.
    I tried:
    1. Other Existing USER account
    2. Restart with SHIFT - SafeMode
    3. Reset PRAM
    4. Delete com.apple.dock.plist and restart with default dock.list
    5. It does not work on touchpad on my MacbookAir and with external mouse Logitech MX Revolution too
    6. I have no plugins in MAIL APP

    Create an album and drag them into the album. Then you can easily select all of them in the album and email.
    OT

  • How do I transfer my catalog, files and collections into Lightroom 4 onto another computer?

    How do I transfer my catalog, files and collections into Lightroom 4 onto another computer?

    You can copy your image file  from you PC to your Mac over your home network or via DVD/CD.  You can not install you PC CS5.1 version on you Mac. Its not compatible with MAC OS.  You would need a MAC version of CS5.1 and Mac version serial number to activate it.  Adobe no longer markets CS5 so you most likely will not be able to pay for a platform switch media install.

  • I have difficulty pasting text into the file name field(prefix only) while saving files.

    OS: WinXP sp3
    FF: 3.6.3
    I have difficulty pasting text into the file name field (prefix only) while saving files. example: File name is Pic123.jpg and I want to rename it ABC123.jpg and I have ABC loaded into the WinXPsp3 clipboard. When I highlight\right-click\delete "Pic" then attempt to paste the ABC, I get either no reaction, or upon multiple paste attempts, the ABC is appended to the end of the file, after the extension, as "Pic123.jpgABC". If I delete this unwanted suffix, or repeat the process several times, eventually I can delete the unwanted portion of the prefix and paste the desired text. Sometimes it works fine first try, but mostly it takes several tries. I'm using Firefox 3.6.3 but the problem existed in whatever previous version I had too. This issue only occurs when using the delete/paste; I can always manually change the name by typing. Thank you for your help.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is that the server sends a wrong response header.
    The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.
    * https://developer.mozilla.org/en/Firefox_8_for_developers#Network

  • I received pictures in a dozen emails and saved each picture into one file in .pages.  I did not import the photos before doing this and now iPhoto won't recognize the pictures because they are in a .pages file.  How do I get the pics to iPhoto?

    I received a dozen pictures in a few emails and I saved them all into one file in pages.  I just copied and pasted.  I do not have the originals any longer.  Iphoto will not permit me to import the pictures as it does not recognize a .pages file, nor can I simply click and drag from the pages document to iphoto nor from pages to the desktop to iphoto.  How can I save each picture I guess back into a jpeg and then import them into iphoto or have i lost them to a pages document forever?  This is urgent as I need the pictures made into a book on iphoto for work by Friday!!!  Please advise!  Thank you.

    Greetings,
    Locate the Pages document wherever it's located on your computer and click once on it to highlight it.
    Go to File > Duplicate to make a backup copy of the file.
    Click once again on the file to highlight it.
    Go to File >  Get Info
    In the "Name & Extension" category remove the ".pages" extension and put in ".zip".
    Close the info window and double-click the now renamed pages file (zip file now).It will decompress into a folder which contains all the base components including all the images you added.  These can be dragged onto the iPhoto icon to import them.
    Hope that helps.

  • What's the easiest way to select all my files from all the folders on a hard drive and place into one folder?

    Hi there,
    I have about 30,000 images all in hundreds of folders. I'm wondering what the easiest way to get them all into one folder so I can select and convert them all from .psd, .tiff, etc all to jpg. The reason I'm doing this is because the folder structure is such a mess, that I'm just going to import them all into aperture to sort everything. But the .tiffs and .psds are 100 mb each so I want to scale them to jpgs that are only 4 or 5 mb before I even think about importing them into aperture.
    I tried doing a search for "kind is image" and it shows them all but a ton of them are renamed the same thing so when I try to select all and move into one folder it tells me I can skip that one or stop copying.
    Any thoughts or ideas on this?
    Thanks,
    Caleb

    Hi russelldav,
    one note on your data handling:
    When  each of the 50 participants send the same 60 "words" you don't need 3000 global variables to store them!
    You can reorganize those data into a cluster for each participant, and using an array of cluster to keep all the data in one "block".
    You can initialize this array at the start of the program for the max number of participants, no need to (dynamically) add or delete elements from this array...
    Edited:
    When all "words" have the same representation (I16 ?) you can make a 2D array instead of an array of cluster...
    Message Edited by GerdW on 10-26-2007 03:51 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I would like to get only specific channels from several .csv files and concatenate into one group.

    Hello,
    I am working with other groups and getting the data in daily .csv files.  When I use the "concatenate groups" script along with a script on importing files, I end up getting a huge file that takes about an hour to concatenate.  In order to reduce the amount of time and memory that this takes, I was hoping that someone could help me modify the script so that I could just list the channel name that I am interested in and concatinating only those channels rather than all of them. 
    For example, if voltage, temperature, pressure and time data are taken daily for 30 days, I would like to import only the temperature and time data (from .csv format) and concatenate into one group.
    I have attached the .vbs files that I use.
    Thanks in advance,
    Alan
    Attachments:
    Import and concatenate files.zip ‏9 KB

    Hi Alan,
    Actually, the feature you're asking for is already in the code of mine that you sent back. Look on line 11 of the main VBScript:    ChannelSet = "" ' "" or "1-" (DataPlugin) or "Sheet1" (EXCEL Wizard) 
    If this "ChannelSet" parameter is set to something other than "" or "1-" then it is used in line 78:
    Call DataFileLoadSel(FilePaths(i), DataPlugin, ChannelSet) 
    Yo can specify the channel indices to load with an expression like this:
    ChannelSet = "[1]/[1],[3]" 
    Let me know if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Can anyone help? Need to collect 4 or more pdf-files into one file

    Hi,
    I regurarly need to mail pdf-files. I'm searching an app or program that can collect 4 or more different pdf-files into one file. So I don't need to send them all apart.
    Can anyone help me out?
    Thanx!
    Theo

    Open Preview, open the PDFs you want to combine, select View/Show Thumbnail, drag the PDFs, you want to combine to the first PDF, then Export as PDF.
    Preview Help

  • Can send my yahoo or gmail mail into a file

    Hi Expers,
    Can i Send my Yahoo or gmail mails into a file for each file.If so What is the procedure. I am unable to now the URL for these. If any one knows the URL for Sender Mail Adapter for Yahoo or Gmail. Please send me so that i can try my scenarios.
    Points will be rewarded>>>
    Warm Regards,
    Vijay

    > I have done the settings for Gmail and used the Url
    > as pop://pop.gmail.com. Still the problem is there.
    The full address for gmail pop server is not that.
    Check this: http://mail.google.com/support/bin/answer.py?hl=en&answer=13287
    Since it is pop over SSL, port 995, you need:
    pops://pop.gmail.com/ (as 995 is default port for pops, no need to inform it).
    as per defined in note <a href="https://service.sap.com/sap/support/notes/856599">856599</a>.
    Also, make sure you enable Pop in your gmail account: http://mail.google.com/support/bin/answer.py?answer=13273
    Regards,
    Henrique.
    PS: If you are in XI 3.0, you have to follow some steps to enable SSL in receiver side: http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/frameset.htm

  • After I have combined some files together to make them into one pdf, can I add and take out files?

    After I have combined some files together to make them into one pdf, can I add and take out files?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • Inserting automatic file name, date and time in Illustrator CS3?

    hello all,
    is there an option in Illustrator where you could automatically insert inside your file the file name, date and time where it was last created or modified, etc.
    I found this option to exist in InDesign, but could not find the same menu in Illustrator. I am using CS3.
    help?
    thanks a bunch.

    Mario,
    would you please be so kind to include a reference on your site about the script? As far as I can see, the PutDateandTime.js you are providing here is a copy or a slightly modified copy of the original script that Wolfgang Reszel has provided on our site for about four years.
    It is okay that the script is available on your site, but please not without a reference. Thanks.

Maybe you are looking for

  • Error in ELM - Maintain BP - CRM_MKTLIST_STAGING013

    HI all, when i try to upload BP with ELM, SYSTEMS (CRM 7.0) show me the following error message: 0 business partners maintained message errore - CRM_MKTLIST_STAGING013 I have this problem after that i have implemented CRM_MKTLIST_BADI badi. The probl

  • Generating an excel sheet from an oracle table

    Hi, What is the easiest way to generate an .xls report from oracle i.e. when the user for example views some records in an oracle table using SQL_FORMS I want to then give them a button where they get a simple .xls report of the records in the table.

  • Having problem loading resource file in WAR

    Forgive me to post it here, I'm not sure where I should post this question.           I'm using weblogic 5.1 with sp 9. In an WAR file, I put an resource file           myapp.dtd as the follwoing:           WEB-INF/classes/myapp.dtd           WEB-INF

  • How to persist an entity with Composite primary key

    Problem Statement:- Entity A have many to one relation with Entity C Entity B have many to one relation with Entity C Entity C have a composite primary key of (Entity A PK & Entity B PK) A --< C B --< C the entites are automatic generated by Dali too

  • How do I transfer all my files,programs, etc from my 10.5.8 OS X IMAC to my new Mavericks IMac?

    I am looking to migrate all my files, photos, Word & Excel files over to my new IMac from a older 10.5.8 OS X IMac.  The Migration Assistant does not work. Can I also get my MS Office programs to move over?   I am NOT tech savvy in the least.   Is th