How to split a file into two small file

Hi All,
          I want to raed a file from FTP server.Then i have to split a file into two small file.File format look like this.
         R01!service_order!item_guid!resource_guid!assignment_guid
         R02!Service_order!product_id!product_discription!quantity
         R02!Service_order!product_id!product_discription!quantity
         R02!Service_order!product_id!product_discription!quantity
i want split file into 2 file,according to header and item details.one table containt header information (label R01) and second table containt (label R02).
can anybody help me for this.how can i split into 2 file.
Thanks
Vishwas Sahu

Create 2 internal tables. sat it_header, it_detail
Check for 1st 3 characters and if it is R01 then send it into it_header and if it comes out to be R02 then send it to it_detail.
Once done... You can either attach these tables into mail as two seperate files
Or you can download each internal table using GUI_DOWNLOAD.
Hope this helps!!
Kanchan

Similar Messages

  • How to split invoice/document  into two venders?

    Can anyone please tell me how to split invoice/document into two vendors.  Like if I get an invoice for $1000 and it needs to be splitted between father and son, $500 to each.  How would I set that up in SAP?  I am not sure if this will be an invoice split or a document split.
    Thanks
    Monika

    If you are using an FI  entry F-43 to generate invoice this can be done by giving the same invoice ref. in the Inv. Ref. field  for two vendors. This is manual
    Document Split will split the document between two profit center and not between vendors.

  • How to split  the records into two parts

    Hi experts,
    I have a field with 75 char length, this field have records also, Now i want to split the field into two differnt fields. That means upto first 40 char goes to one field, from 41st char to 70 char goes to another field, for that how to split record into two parts.
    Plz advice this,
    Mohana

    Hi,
    Do the following:
    f1 = fsource(40).
    f2 = fsource+40(30).
    where fsource is the 70 character original string and target strings are f1 (length 40) and f2 (length 30).
    Cheers,
    Aditya
    Edited by: Aditya Laud on Feb 22, 2008 2:10 AM

  • PRE9: How to split one clip into two (or more) clips?

    I can't believe this is so hard to do... But HOW?

    You don't necessarily need to separate the file into individual clips.  When you do a cut on the timeline, this is a virtual cut, leaving the original file untouched but determining what will appear in the output.  You can split the clip into multiple pieces, delete the bits you don't want, add transitions, insert new bits, whatever you want, all without affecting the original file in any way.  Once you're happy, you output a new file using the Share options, and you get a new video file, with your original files still untouched.
    If you want to split your file into multiple individual files, you can use the sliders on the time scale, and export (Share) using the Share Work Area Only checkbox.  If you're doing this for purposes of reassembly, it would be better to save the individual clips in as lossless a format as possible, the default AVI format taking considerably more space but not losing quality.  Hint: the sliders can be positioned to the time marker using Alt-[ and Alt-].  Once you've done this, note that your original file will still be there, untouched.
    There is also VideoRedo Plus, a cheap program which gives frame-accurate selection and allows rapid subdivision of a piece of footage.  It doesn't re-render as PE9 would (this is where loss of image quality creeps in using compressed formats such as MPEG), copying the original frames.  You can then reassemble the bits using your video editor.

  • How to split one monitor into two, differently configured desktops

    Hello,
    I have a 27" iMac. I would like to split the screen into two differently configured desktops or monitors. Apps like TwoUp or Divy don't exactly do this. I'll explain it with an example:
    Suppose I'm working on a document and I need to open many folders to retrieve files. One common problem is that opened folders overlap each other and sometimes they overlap with the document I'm working on, or they go underneath the document. I would like to split the screen vertically in, say, two virtual, independent desktops/monitors, like this:
    - one window/space on one side (say, on the left) of the screen would contain the document  from top to bottom, with no dock bar on the bottom
    - the other window/space (right) would behave as a regular, full desktop, with the entire dock on the bottom
    In this way, if I need to navigate to find a file to use in the document, I would move the cursor to the right. The Finder would work only in this window/space, thus windows or other applications would never overlap or clutter the left side of the screen. Drag-and-drop from right to left should be possible.
    One way to imagine it is as if the 16x9 monitor were comprised by two vertical, 8x9 independent monitors side by side, each with its own configuration.
    Is this possible? Can anyone recommend an application or type of setup?
    Thank you,
    -celso

    Looking for something like this?
    You can tell Display Maid to save the positions of your open windows across many apps and later restore those positions when things become a mess. With Display Maid you don’t have to restore windows one at a time, or even one app at a time. Display Maid restores all saved window positions across all apps with one command. It will also restore window positions automatically when it detects a workspace change.
    http://www.funk-isoft.com/index.php/display-maid

  • Compressing large file into several small files

    what can i use to compress a 5gb file in several smaller files, and that will easy rejoined at a later date?
    thanks

    Hi, Simon.
    Actually, what it sounds like you want to do is take a large file and break it up into several compressed files that can later be rejoined.
    Two ideas for you:
    1. Put a copy of the file in a folder of its own, then create a disk image of that folder. You can then create a segmented disk image using the segment verb of the hditutil command in Terminal. Disk Utility provides a graphical user interface (GUI) to some of the functions in hdiutil, but unfortunately not the segment verb, so you have to use hditutil in Terminal to segment a disk image.
    2. If you have StuffIt Deluxe, you can create a segmented archive. This takes one large StuffIt archive and breaks it into smaller segments of a size you define.2.1. You first make a StuffIt archive of the large file, then use StuffIt's Segment function to break this into segments.
    2.2. Copying all the segments back to your hard drive and Unstuffing the first segment (which is readily identifiable) will unpack all the segments and recreate the original, large file.I'm not sure if StufIt Standard Edition supports creating segmented archives, but I know StuffIt Deluxe does as I have that product.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to split a big file into several small files using XI

    Hi,
    Is there any way to split a huge file into small files using XI.
    Thanks
    Mukesh

    There is a how to guide for using file adapters, an "sdn search" will get you the document.
    Based on that , read a file into XI, Use strings to store the file content and do the split
    here is some code to get you started
    ===========
    Pseudocode:
    ===========
    // This can be passed in - however many output files to which the source is split
    numOutputFiles = 5;
    // Create the same number of filehandles as numOutputFiles specifies
    open file1, file2, file3, file4, file5;
    // Create an Array to hold the references to those filehandles
    Array[5] fileHandles = {file1, file2, file3, file5, file5};
    // Initialize a loop counter
    int loopCounter = 0;
    // a temporary holder to "point" the output stream to the correct output file
    File currentOutputFile = null;
    // loop through your input file
    while (sourceFile.nextLine != null)
    loopCounter++;
    if (loopCounter == (numOutputFiles +1) // you've reached 5, loop back
    loopCounter = 1;
    currentOutputFile = fileHandles[loopCounter]; // gets the output file at that index of the array
    currentOutputFile.write(sourceFile.nextLine);
    regards
    krishna

  • How to split column wise into separate flat files in ssis

    IN SSIS...
    1.---->I have a sales table country wise regions  like (india, usa, srilanka) ....
    india usa
    srilanka
    a b
    c
    d e
    f
    so i want output like in
    flat file1.txt has india               flat file2.txt has usa             flat file3.txt has srilanka
         a b
    c
         d e
    f
    2.----->i dont know how many regions in my table....dynamically split into separate flat files ....
     pls help me.....thank u

    I think what you can do is this
    1. Do a query based on UNPIVOT to get the data as rows instead of columns
    For that you can use a query like this
    IF OBJECT_ID('temp') IS NOT NULL DROP TABLE temp
    CREATE TABLE temp
    Country varchar(100),
    Val decimal(25,5)
    DECLARE @CountryList varchar(3000),@SQL varchar(max)
    SELECT @CountryList = STUFF((SELECT ',[' + Column_Name + ']' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '<SalesTableNameHere>' FOR XML PATH('')),1,1,'')
    SET @SQL= 'SELECT * FROM <SalesTableNameHere> t UNPIVOT (Val FOR Country IN (' + @CountryList + '))p'
    INSERT temp
    EXEC (@SQL)
    Once this is done you'll get data unpivoted to table
    Then you can use a execute sql task with query like above
    SELECT DISTINCT Country FROM Temp
    Use resultset option as full resultset and store the result to an object variable
    Then add a ForEach loop container with ADO enumerator and map to the object variable created above. Have variables inside loop to get inidvidual country values out.
    Inside loop place a data flow task. Use a variable to store source query , make EvaluateAsExpression true for it and set Expression as below
    "SELECT Val FROM Temp WHERE Country = " + @[User::LoopVariable]
    Where LoopVariable is variable created inside loop for getting iterated values
    Inside data flow task place a oledb source, choose option as  SQL command from variable and map to the above query variable.
    Link this to flat file destination create a flat file connection manager. Set a dynamic flat file connection using expression builder. Make it based on a variable and set variable to increment based on loop iteration
    The core logic looks similar to this
    http://visakhm.blogspot.ae/2013/09/exporting-sqlserver-data-to-multiple.html
    dynamic file naming can be seen here
    http://jahaines.blogspot.ae/2009/07/ssis-dynamically-naming-destination.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to split XML document into two

    I want to create new docuemnt by taking part of the existent XML document under the node document_text
    vNodeList := xmldom.getElementsByTagName(vdoc, 'document_text');
    vNode := xmldom.item(vNodeList, 0); -- The xmldom.getNodeName(vNode) of this node is exactly what i am
    -- looking for
    vdoc:= xmldom.makeDocument( vNode);
    insert into cltab values (empty_clob()) returning cl into cl;
    xmldom.writeToClob(vdoc_txt, cl);
    But after that i am still getting the whole document tree, - copy of the whole document.
    What am i doing wrong? What functions should i use for this kind of task? xmldom.clonenode?
    Could you recommend any good description of the xmldom package?
    Thanks,
    Roman

    If you are using an FI  entry F-43 to generate invoice this can be done by giving the same invoice ref. in the Inv. Ref. field  for two vendors. This is manual
    Document Split will split the document between two profit center and not between vendors.

  • How to split Large file into Multiple small files..

    Hi,
       My source file is simple  XML structure...and target side also i need to send in XML files  .. but in the source file I'm getting all the data at a time.. so source file  is more than 1000 records.. but i want to process  50 records at a time...
    bu using FCC (RecordSet per Message)  we can   solve this.. but I dont want to  do any File conversion.. i want to send  in XML file only...
    for this.. how we can handle....
    Regards
    Jain

    Jain,
    Please see the below screenshots.
    http://www.flickr.com/photos/23855877@N07/2991137391/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991137441/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991988028/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991988084/sizes/o/
    For No, Name, City Map Directly.
    In the example, I've given 5 records to split. If you want 50 records to split, then instead of 5 give 50 in the constant.
    raj.

  • How to Split Master File into Multiple Small Files?

    Sorry if this has been addressed - I'm having a hard time finding the answer.
    I'm using FCE 4.0. I taped 4 hours of material and need to deliver the footage to someone in discrete chunks. I tried to do in/out capture but for some reason that wasn't working - something to do with the timecode. So I did full tape dumps.
    So now I have 4 huge files (4 miniDV tapes) that are too big to deliver as-is. I used DV Start/Stop Detect to set markers, then used that to create sub-clips. But of course this doesn't actually affect the master scratch files.
    What's the best way to convert these sub-clips to individual mov files? If I do an export of each file ("Using QuickTime Conversion..."), don't I risk losing information or possibly quality? Isn't there some way to highlight all my sub-clips in the bin and say "Mega-Chop Activate!" or something?
    Or, taking a step or two back, if there's another way I should've approached this, please let me know. There'll be more. Plenty more.
    Thank you.

    I'm burning mov source to DVD for FC editing by someone else.
    Your second set of questions actually gives me some ideas - that's exactly what I'm trying to figure out.
    As an example, let's say 1 tape, i.e. 1 master file, holds 5 interviews. I want to deliver 5 individual files/clips, say 3 on DVD A, 2 on DVD B. (Assume for the sake of argument that the math works out and there's no other way to deliver this.)
    - Does creating a different project for each "chunk" result in a different file in the scratch folder that can be burned to DVD?
    - Does "Print to Video" create QT files? I thought this output back onto tape.
    - By "Export to QuickTime" are you referring to Export->QuickTime Movie (as opposed to Export->Using QuickTime Conversion)?
    - Does Export->QuickTime Movie result in lossy conversion or does it automatically retain the original capture quality?
    - Is there a way to do all 5 exports at once or must they be done individually?
    Thanks for the fast response!

  • How to Split the Frames into two halfs

    Hi,
    In this program i used trees, to display ldif file.. and all the dn's and their properties are displaying but my need is if i click on Nodes then the properties of that node will be displayed seperately ie; the frame had to divided in to two halfs..the properties are displayed in second half
    please help me if anyone knows..
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Set;
    import java.util.StringTokenizer;
    import javax.swing.JPanel;
    import com.sun.org.apache.xpath.internal.patterns.NodeTest;
    import javax.swing.*;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import javax.swing.tree.DefaultMutableTreeNode;
    import java.io.StringReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.FileReader;
    public class LDIFTree
    public LDIFTree() throws FileNotFoundException
    FileReader fr;
    fr = new FileReader("c://data.ldif");
    //FileReader fr= new FileReader("c://data.ldif");
    JFrame f = new JFrame("LDIFTree");
    BufferedReader reader = new BufferedReader(fr);
    JTree tree = new JTree(new DefaultTreeModel(buildModel(reader)));
    f.getContentPane().add(new JScrollPane(tree));
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(400, 400);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    private TreeNode buildModel(BufferedReader reader)
    DefaultMutableTreeNode root = new DefaultMutableTreeNode("root", true);
    DefaultMutableTreeNode currentChild = null;
    try
    String line = reader.readLine();
    while(line != null)
    line = line.trim();
    if (line.startsWith("dn"))
    // add the current dn to the root
    currentChild = new DefaultMutableTreeNode(line, true);
    root.add(currentChild);
    // else if (line.startsWith("-") || line.length() < 1)
    // { // skip it
    //} else
    // add the property to the current dn
    DefaultMutableTreeNode propertyNode = new DefaultMutableTreeNode(line, false);
    currentChild.add(propertyNode);
    line = reader.readLine();
    catch (IOException x)
    x.printStackTrace();
    return root;
    public static void main(String[] args) throws FileNotFoundException
    new LDIFTree();
    Thanks,
    Raga

    Use a JSplitPane to divide your JFrame
    // tree
    JTree tree = new JTree();
    createTree(tree);
    JScrollPane scrollPane = new JScrollPane(tree);
    // view panel
    JPanel viewPanel = new JPanel();
    // put th etree on th eright, and the view panel on the left
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT , scrollPane, viewPanel);
    // create the frame and put the component together
    JFrame frame = new JFrame();
    Container c = frame.getContentPane();
    c.add(splitPane, BorderLayout.CENTER);
    check out the java tutorial on creating a tree. you add a TreeSelectionListener to listen to event generated when the use click on the node
    The Java alamac site has a simple tutorial .. you can start from there.

  • How to split 'Full Name' into two columns for 'First' and 'Last' name??

    Any ideas on how to achieve this? http://office.microsoft.com/en-us/excel-help/split-names-by-using-convert-text-t o-columns-HA001149851.aspx

    If:
    A1 = Fistname Lastname
    For firstname:
    (First Name) B1 =SUBSTITUTE($A1," " & $C1, "")
    For the Last name:
    (Last Name) C1 =RIGHT(A1,LEN(A1)-FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
    If
    A1 = Lastname, Firstname
    (Last Name) B1 =SUBSTITUTE($A1,", " & $C1, "")
    (First Name) C1 =RIGHT($A1,LEN($A1)-FIND("#",SUBSTITUTE($A1," ","#",LEN($A1)-LEN(SUBSTITUTE($A1," ","")))))
    Let me know if you need one that traps multiple commas or middle names.

  • Compressing a large file into a small file.

    So i have a pretty large file that i am trying to make very small with good quality. the file before exporting it is about 1gig. I need to make it 100mbs. Right now i've tried compressing it with the h.264 compressing type, and i am having to go as low as 300kbits. I use aac 48 for the audio. It is just way to pixelated to submit something like this. But i guess i could make the actual video a smaller size something like 720x480 and just letterboxing it to keep it widescreen? Any hints on a good way to make this 21 minute video around 100mbs?

    There are three ways to decrease the file size of a video.
    1. Reduce the image size. For example, the change of a 720x480 DV image to a 320x240 will decrease the size by a factor of 4
    2. Reduce the frame rate. For example, changing from a 30 fps to 15 fps will decrease the size by a factor of 2
    3. Increase the compression/ change code. This is the black magic part of online material. Only you can decide what's good enough.
    x

  • Help needed with SQL to split huge data into two excel or text files.

    Hi,
    I have a table which has around 1850000 records. I want to split the data into two sets and import the data in .txt or execl file.
    How can i break upthe records using rownum or any thing
    select * from tablename where rownum<940000 fetched some records
    but
    when i gave select * from tablename where rownum>940000 it was not fetching records.
    Guideme

    when i gave select * from tablename where rownum>940000 it was not fetching records.try this
    select * from (select tablename.*, rownum rn from tablename) where rn >940000

Maybe you are looking for

  • Why keyboard and mouse right click not working in Solaris and Linux?

    Hi all, I have two problems: 1) I am working on AWT/Swing application and its working fine in window enviornment,but while running on solaris and linux mouse right-click option window not poping up. 2) Ctrl+c,Ctrl+v,Home and End keyboard key are not

  • How do I add another contact to a group on a text message

    How do I add another contact to a group that has already been used on a text message ?

  • Mac as a router

    I know how to setup my mac as a router. Given the fact that my macbook is connected to the ethernet. However, is it possible while my mac is connected to a router (via Airport) and at the same time share my internet to other computer via airport as w

  • Error while starting Development Server.

    Dear Gurus, While starting my development server it is giving the following error: Details: OS: AIX 5.3 DB: 10.2.0.2 SAP: ECC6 Listner control is starting, but while starting SAP it is giving me the following eror: hgdevsrv:hdsadm 1> startsap Checkin

  • Charing Nokia N70 with usb data cable?

    Hello, I am interested if it is possible to charge my nokia n70 ME through usb data cable, and if it is, what is the required software for that? Doesn't seem like PC Suite is offering this kinda of feature.