MATMAS05 Idoc to Flat File : Multiple material into same file

Hi ,
  I am struck in simple scenario .Sending Materail Master data to flat file using idoc MATMAS05.  I made following changes to MATMAS05.xml file.
I added MaxOccurs -=Unbounded and imported it in the interface mapping.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="MATMAS05"><xsd:complexType><xsd:sequence><xsd:element name="IDOC" type="MATMAS.MATMAS05" maxOccurs="unbounded"
I am able to get multiple materials extracted in same file .However the XML fails to open the file completely saying there is error.
Can anybody send me an xml file of Material Master having 2 matrials so I can compare it?
Regards
Prashanta

Hello Prasanta,
If I understand correctly you are sending MATMAS from SAP to File.
And you want to split the Matmas into multiple files .
If this is the case then do not change the Idoc field occurance on the target side. In the Message mapping , messages tab change the occurance of the target to unbounded.
And use enhanced interface determination for the same.
Cheers,
Himadri

Similar Messages

  • Scaning multiple pages into one file on a 4630

    Using HP 4630 printer, windows 8.1, wireless connection.
    Want to scan multiple pages into one file.
    Per user manual, I work from the computer not the printer.
    When first page is scanned am asked if I want to save, I click yes and name file.
    When I scan second page am again asked if I want to save, my file name appears, I am told it already exists and asks if I want  to keep or replace it.
    Whichever one I click, only the second page is saved.
    What am I doing wrong?
    Question: How do I scan mutiple pages into a single document?
    This question was solved.
    View Solution.

    I accept this solution with many thanks!  It was so obvious and I didn't see it.  The User Manual should mention this.

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • HP Officejet 6500A How do I scan a document with multiple pages into one file?

    HP Officejet 6500A Plus e-All-in-One Printer - E710n
    Windows 7 (64 bit)
    How do I scan a document with multiple pages into one file?  My old printer (psc 2110) asked after each scan if I wanted to scan another page.  At the end I had one pdf file with multiple pages.
    This new one creates one file for each page and I cannot find a way to create one pdf file with multiple pages.
    This question was solved.
    View Solution.

    Hi mpw101,
    If you load the papers into the ADF - Automatic Document Feeder, and then select Document to PDF then they will all be scanning into one file. Let me know if this works for you?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • MPEG Layer 3 audio files have changed into MP3^^ files,What is ^^

    MPEG Layer 3 audio files have changed into MP3^^ files,What is ^^ and why wont the music files play anymore??

    I reinstalled OSX on my macbook which previously played all avi files with no difficulties. Now I am having difficulties playing Avi files with quicktime PRO that use the Mpeg layer 3 codec. I have done the following with no success: downloaded flip 4 mac, divx, xvid, 3ivx, Xvid codecs, changed MIME settings, and deleted and reinstalled.
    Depending on the specific version and sometimes the ordering in which they were installed, you may have created a conflict among the components here. While most current VidX components should be able to play MPEG Layer-3 audio, v5.1.1 is the only free VidX codec that is bi-directional. If that is not a problem, then I would recommend you remove (or "hide") all components in the main "Library > QuickTime" folder. Next I would determine if one (or more) of the AVI associated components can actually play the specific files mentioned on their own. You do this by installing a compenent to be tested, opening the player with one of the problem movies, and checking for correct audio and video playback. Log your results, close the player, remove the tested component, and move on to the next component to be tested. Once you deterime which component(s) may function correctly, I would then move on to determine which specific components are in conflict by repeating the tests but leaving the components installed after each test. In this case start with a component that is known to work and is the one you most desire to use (if more than one works). If the player stops working, then you have located a potential conflict. Set the offending component aside and continue testing until all components have been tested and are either installed or set aside. The last step is to simply evaluate component alternatives and configure you system for those files most often played. In my case the VidX v6 Pro components did not seem to get along with the 3ivX D4 v4.5 and/or Casio AVI and/or XVIDDelegate component combination.

  • Scanning multiple pages into one file using MAC

    How do I scan multiple pages and save them into one file or document using a MacBook Pro laptop?  My printer is an HP Photosmart 7520.  When I use this printer and scan from my PC, it does allow me to scan multiple copies and save as one document by just adding pages as I scan.  When I scan with my MacBook Pro, it scans each page, however, I don't get any option or choice to save as one document.  It automatically saves each page as a separate document.

    Try scanning from your Mac. Use Image Capture app in your Applications folder.
    Click once on the scanner on the left side, then click on Show Details along the bottom. Along the right side you will see LOTS of options for scanning and saving.
    One of those is Format, make the Format PDF.  Just below that will be a check box allowing you to scan multiple pages to one file.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Saving multiples objects into a file

    I want to create a single file that has multiples things inside, like pictures (png) and texts. Does someone knows how it will be the structure of the binary file?
    I'm programming a draw software like photoshop, where my layers are BufferedImages. Theses bufferedImages must be saved into a file to re-open later and edit.
    Please I want just ideas....
    thanks

    If the objects that you store in your file are fairly independent of each other, one thing that comes
    to mind is to make your file a zip file of component files. That way you can use standard tools to examine
    it and edit it if you wish.
    Another thing to note is that if your file is largely a series of images, some image file formats,
    like tiff , jpeg and gif allow you to store sequences of images in one file.
    Here's a demo that creates a tiff file holding four images, then reads the file and displays the images.
    Stardard software like Kodak's "Imaging Preview" will allow you to flip through the images in the file.
    By the way, if you don't have readers/writers for format tiff, you can get them here.
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    public class IOExample {
        public static void main(String[] args) throws IOException {
            String urlPrefix = "http://www3.us.porsche.com/english/usa/carreragt/modelinformation/experience/desktop/bilder/icon";
            String urlSuffix = "_800x600.jpg";
            int SIZE = 4;
            BufferedImage[] images = new BufferedImage[SIZE];
            for(int i=1; i<=SIZE; ++i)
                images[i-1] = ImageIO.read(new URL(urlPrefix + i + urlSuffix));
            File file = new File("test.tiff");
            file.delete();
            int count = writeImages(images, file);
            if (count < SIZE)
                throw new IOException("Only " + count + " images written");
            images = null;
            images = readImages(file);
            if (images.length < SIZE)
                throw new IOException("Only " + images.length + " images read");
            display(images);
        public static void display(BufferedImage[] images) {
            JFrame f = new JFrame("IOExample");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel p = new JPanel(new GridLayout(0,1));
            for(int j=0; j<images.length; ++j) {
                JLabel label = new JLabel(new ImageIcon(images[j]));
                label.setBorder(BorderFactory.createEtchedBorder());
                p.add(label);
            f.getContentPane().add(new JScrollPane(p));
            f.setSize(400,300);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        //suffix is "jpeg", "gif", "png", etc... according to your service providers
        public static ImageWriter getWriter(String suffix) throws IOException {
            Iterator writers = ImageIO.getImageWritersBySuffix(suffix);
            if (!writers.hasNext())
                throw new IOException("no writers for suffix " + suffix);
            return (ImageWriter) writers.next();
        public static ImageReader getReader(String suffix) throws IOException {
            Iterator readers = ImageIO.getImageReadersBySuffix(suffix);
            if (!readers.hasNext())
                throw new IOException("no reader for suffix " + suffix);
            return (ImageReader) readers.next();
        public static int writeImages(BufferedImage[] sources, File destination) throws IOException {
            if (sources.length == 0) {
                System.out.println("Sources is empty!");
                return 0;
            } else {
                ImageWriter writer = getWriter(getSuffix(destination));
                ImageOutputStream out = ImageIO.createImageOutputStream(destination);
                writer.setOutput(out);
                writer.prepareWriteSequence(null);
                for(int i=0; i<sources.length; ++i)
                    writer.writeToSequence(new IIOImage(sources, null, null), null);
    writer.endWriteSequence();
    return sources.length;
    public static BufferedImage[] readImages(File source) throws IOException {
    ImageReader reader = getReader(getSuffix(source));
    ImageInputStream in = ImageIO.createImageInputStream(source);
    reader.setInput(in);
    ArrayList images = new ArrayList();
    GraphicsConfiguration gc = getDefaultConfiguration();
    try {
    for(int j=0; true; ++j)
    images.add(toCompatibleImage(reader.read(j), gc));
    } catch(IndexOutOfBoundsException e) {
    return (BufferedImage[]) images.toArray(new BufferedImage[images.size()]);
    public static String getSuffix(File file) throws IOException {
    String filename = file.getName();
    int index = filename.lastIndexOf('.');
    if (index == -1)
    throw new IOException("No suffix given for file " + file);
    return filename.substring(1+index);
    //make compatible with gc for faster rendering
    public static BufferedImage toCompatibleImage(BufferedImage image, GraphicsConfiguration gc) {
    int w = image.getWidth(), h = image.getHeight();
    int transparency = image.getColorModel().getTransparency();
    BufferedImage result = gc.createCompatibleImage(w, h, transparency);
    Graphics2D g = result.createGraphics();
    g.drawRenderedImage(image, null);
    g.dispose();
    return result;
    public static GraphicsConfiguration getDefaultConfiguration() {
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice gd = ge.getDefaultScreenDevice();
    return gd.getDefaultConfiguration();

  • Saving multiple records into text file

    Can I save multiple records into a text file at one go?
    My application has a list of data displayed there and when the user clicks on the save button it will save all the records on the screen.
    It works but it only saves the last record.
    Here are my codes
    // this is to display the list of data
    private JLabel[] subjects=new JLabel[20];
    private JLabel[] subTotal=new JLabel[20];
    private JLabel[] codes=new JLabel[20];
    private JLabel[] getTotal=new JLabel[20];
    String moduleCodes;
    String getPrice;
    double price;
    int noOfNotes;
    public testapp(Subjects[] subList)
    int j=0;
                double CalTotal=0;
              for (int i=0; i<subList.length; i++)
                   subjects[i] = new JLabel();
                   subTotal[i] = new JLabel();
                   codes=new JLabel();
                   getTotal[i]=new JLabel();
                   if (subList[i].isSelected)
                        System.out.println(i+"is selected");
                        subjects[i].setText(subList[i].title);
                        subjects[i].setBounds(30, 140 + (j*30), 400, 40);
                        subTotal[i].setText("$"+subList[i].price);
                        subTotal[i].setBounds(430,140+(j*30),100,40);
                        codes[i].setText(subList[i].code);
                        getTotal[i].setText(subList[i].price+"");
                        CalTotal+=subList[i].price;
                        contain.add(subjects[i]);
                        contain.add(subTotal[i]);
                        j++;
                        moduleCodes=codes[i].getText();                              
                        getPrice=getTotal[i].getText();
                        noOfNotes=1;
    // this is where the records are saved
         public void readRecords(String moduleCodes,String getPrice,int notes)throws IOException
              price=Double.parseDouble(getPrice);
              String outputFile = "testing.txt";
              FileOutputStream out = new FileOutputStream(outputFile, true);      
         PrintStream fileOutput = new PrintStream(out);
              SalesData[] sales=new SalesData[7];
              for(int i=0;i<sales.length ;i++)
                   sales[i]=new SalesData(moduleCodes,price,notes);
                   fileOutput.println(sales[i].getRecord());
              out.close();

    I suggest writing a method that takes a SalesData[]
    parameter and a filename. Example:
    public void writeRecords(SalesData[] data,
    String filename) throws IOException
    BufferedWriter out = new BufferedWriter(new
    FileWriter(filename, true));
    for (int i = 0; i < data.length; i++)
    out.write(data.getRecord());
    out.newLine();
    out.close();
    And it's good to get in the habit of doing things like closing resources in finally blocks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • Embed same SWF file multiple times in Flash file

    I want to include the same SWF file multiple times in the same flash file. I have a plain box that is clear, that becomes visible when clicked. I want to create a grid of them (about 50+). If I copy the layers and actions, they interfere with each other so I want to embed multiple SWF files into one file and then save it to embed in an interactive PDF. If I save one square and embed it into the PDF multiple times, the file becomes too big to work. How can I embed interactive SWF files over and over into 1 SWF file? I don't have a ton of knowledge with Flash....

    you edit your html file to embed multiple copies of your swf.
    it's generally easier to control the layout if you use swfobject (but you can just copy the code published by flash pro) to embed the swf.

  • How to export edited 5D material into same Format

    Hello ppl!
    Just maybe someone can help me with this one...
    I know it is more of Technical side of 5D, but my Q has something to do with it;
    As we know, 5D shoots video, compresses it with H.264 codec and saves it in .MOV container!
    For EDITING purposes I use ADOBE CS5 (strong working station with CUDA Mercury engine and everything)...
    Anyhow, I was just shooting "Making Of" for some Feature film - and what I wanna do is CLEAR FOOTAGE MATERIALS of unnecessary parts - and then export it back to HDD and give it to Film production
    But how do I get to export edited material in the same container and with same properties as originally shot footage was????
    ADOBE has quite powerful MEDIA ENCODER, but you can't save h.264 file to have .MOV extension!!!
    You can choose H.264, but then your file will have [b]*.mp4[/b] extension... -- Further on - will that file be of the same quality as the file I downloaded from my CF-card???
    Any ideas about that - or maybe an advice for some other ENCODER???? ----- Just don't suggest MAC cause I can't afford it at the moment!!!!
    What I can do is use AVID MEDIA COMPOSER 4 or 5 (also on my Windows workstation) - but since AVID recodes all footage as the first step when importing it, I am not sure it would fullfill my needs!!!!!
    Hope someone will know how to handle it!!!!
    Cheers!
    V:

    -You see, the problem is that my Premier, actually my Adobe Media Encoder can't export to any MOV file higher than Standard Def... Why is it so, I don't know, maybe cause my QT isn't PRO???? Do you think that going PRO would help this matter?
    No, you don't need QT Pro for export (or import, for that matter). Are you selecting Preset or Video Codec in the Export Settings window? Like this:
    Do you have these, or at least most of them?
    -- you also mention ProRes and Proxy here as well, but I am stuck with PC - I wonder how are those AVID QT CODECS gonna work with PREMIERE - are they also gonna re-encode the entire material???
    The Avid codecs work fine with Premiere on a PC--I use them frequently myself. But, yes--regardless of the codec you use to export these files, they will be transcoded/re-encoded. I just checked with an FCP buddy, and he said that his Canon T2i clips (similar/same format to the 5D) will import directly into FCP, so if that's what you're using on the Mac, you can forgo the transcoding. That said, transcoding to DNxHD (or ProRes) is not going to incur a visual quality hit, though the files will be larger.
    - which Format (codec) are the final files gonna be???
    H.264! They're the same as the originals, just trimmed to length.
    - Thanx for that one! I hope it works on Windows as well, since Windows is my OS - and thnx for coupon code:))))
    Well, you use this plug-in on the Mac; it enables you to read NTFS-formatted drives on the Mac. You'd just continue to do what you've always done, and the Mac user would need the plug-in. If you want to read HFS formatted drives on a PC, you can use Paragon HFS for Windows or MacDrive. Either of those will be good for HFS drives on a PC. Of course, you only need one of these drivers; either NTFS on Mac, or HFS on PC.
    There was some mention of using Quick Time PRO as only solution here... Do you have any idea what is that all about??? What can be done - editing wise - with QT PRO??? Or is it just bringing up some more Codecs into the game????
    I prefer MPEG Streamclip; it does all the editing (well, the editing you need) that QT Pro does, and it doesn't cost anything. I recommend checking that out first before sending Steve Jobs any money

  • Multiple copies of same files in my hard drive

    hello:
    Somehow I have managed to fill up my hard drive with multiple copies of
    the same files. So, these copies are filling up drive space.
    Does anyone know of a software that can point out the copies? Something that will make it easier for me to determine that I have copies of the same file and so I can delete the copies.
    thanks!!

    thanks for the reply.
    I have tried Spotlight already.
    But it's not a good solution.
    First of all, I don't even know which files i have multiple copies of.
    And even though I may have files and folders with the same name, I don't know if the contents are identical ....etc.
    It's just a mess.

  • Problem while copying two files into same file

    Hi,
    I want to copy n number of files into the same file.I am using the below code for the purpose.
    private void testFiles(){
              FileOutputStream fos = null;
              String file1  = "C:"+File.separator+"test1.doc";
              String file2 = "C:"+File.separator+"test2.doc";
              String file = "C:"+File.separator+"test123.doc";
              File testFile = new File(file);
              ArrayList arrFiles = new ArrayList();
              arrFiles.add(file1);
              arrFiles.add(file2);
              try {
                    fos = new FileOutputStream(file,true);
                   for(int i = 0; i < arrFiles.size();i++){
                        int ReadBytes = 0;
                        int BUFSIZ = 4096;
                        long fileSize ;
                        long copiedBytes=0;
                        String curFileName = (String) arrFiles.get(i);
                        File srcFile = new File(curFileName);
                        FileInputStream fis = new FileInputStream(srcFile);
                         fileSize = srcFile.length();
                        byte Buf[] = new byte[BUFSIZ];
                        while(copiedBytes < fileSize)
                             ReadBytes = fis.read(Buf, 0, BUFSIZ);
                             fos.write(Buf,0,ReadBytes);
                             copiedBytes +=ReadBytes;
                        System.out.println("copied files::"+curFileName);
                   fis.close();
                   fos.flush();
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally{
                   try {
                        if(fos != null){
                             fos.flush();
                             fos.close();
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
         }Iam expecting that both the files will be copied sucessfully.But iam able to see only one file.But the file size of the destination file is the sum of both the source files copied.So that means the content is copied.Any ideas on possible causes/solutions.
    Thanks in advance.

    Hi,
    Just a thought, if you build a sequence of inputstream using SequenceInputStream something like that
                    String file1  = "C:"+File.separator+"test1.doc";
              String file2 = "C:"+File.separator+"test2.doc";
              FileInputStream s1 = new FileInputStream(file1); 
              FileInputStream s2 = new FileInputStream(file2);
              FileInputStream[] array = new FileInputStream[2];
              array[0] = s1;
              array[1] = s2;
              EnumerationImpl enumeration = new EnumerationImpl(array);
              SequenceInputStream sequence = new SequenceInputStream(enumeration);
                   //code here the read to go through the sequence of inputstream and write them  into FileOutputStream
    // and your Enumberation implementation class as below
    public class EnumerationImpl implements Enumeration<FileInputStream> {
        private FileInputStream[] array;
        private int index;
        public EnumerationImpl(FileInputStream[] array) {
            this.array = array;
        public boolean hasMoreElements() {
            return index < array.length;
        public FileInputStream nextElement() {
            if (index < array.length) {
                return array[index++];
            throw new NoSuchElementException();
    } Regards,
    Alan Mehio
    London, UK

Maybe you are looking for

  • IE 5.0 or later only...

    Hi, Anyone who knows how to get around the "Internet Explorer 5.0 or later only" issue on some websites with Safari? I have tried all (known to me) browsers on the market for MAC OS X but without success. IE for Mac OS X is not an option as I'm using

  • 806 routers don't work

    During my Cisco Academy days I bought the Cisco 806 Broadband Router - a fixed-configuration dual Ethernet platform. I turned the unit off for the summer semester and when it was turned back on - it no longer worked. The TX/RX lights on both the Inte

  • Ipod nano 4thgen - help!  just been given one of these now what do I do?

    How do I get music already stored on my computer onto it please?  Do I need to download something - some sort of ITune app?  Am not technically minded so very simple language please! 

  • Updation problem in custom infotypes.

    HI ALL, I have created two custom infotypes, and the process is that one infotype updates the other infotype. When i open the first infotype by pa30 and then open the second and changes some value which update the first infotype table. now when i go

  • Q&A Database in SAP AFS

    Hello, Please provide me the Q&A related to SAP AFS. What questionare has to be prepared in SAP AFS. Regards, Kumar