Need to download a file which si space delimted and has fixed length char

Hi,
I have a custom report which downloads an output file in text format.I need the contents to be space delimited.My file data contains numbers as well as characters.I ahve pased the parameter WRITE_FIELD_SEPARATOR = ' ' in the FM.Hwoever the space is introduced only oif the column value is a character.If its a number/digit,the columns are not seperated by space.
Now my data appears like that:
0000101310179.28 +0827200808 DHLBSRF VISA AUG 2008US021SW111 RYAN,BICOVNY
I want my data to be like this :
0000101310 179.28 + 0827200808 DHLBSRF VISA AUG 2008 US02 1SW111 RYAN,BICOVNY
DO I need to pass any additinal parametre?Also for fixed length characrets,do i need to pack/unpack data before passing to the FM ?
Thanks.

Hi,
try this way.
REPORT ztest_notepad.
DATA: BEGIN OF it_download OCCURS 0,
       data TYPE string,
      END OF it_download.
DATA: BEGIN OF it_vbrk OCCURS 0,
        vbeln TYPE vbrk-vbeln,
        fkart TYPE vbrk-fkart,
        fktyp TYPE vbrk-fktyp,
        netwr TYPE vbrk-netwr,
      END OF it_vbrk.
DATA : l_netwr TYPE char21.
"START-OF-SELECTION.
START-OF-SELECTION.
  SELECT  vbeln
          fkart
          fktyp
          netwr
   FROM vbrk
   INTO CORRESPONDING FIELDS OF TABLE it_vbrk
   UP TO 100 ROWS.
  LOOP AT it_vbrk.
    l_netwr = it_vbrk-netwr.
    CONCATENATE it_vbrk-vbeln
                it_vbrk-fkart
                it_vbrk-fktyp
                l_netwr
        INTO it_download-data
        SEPARATED BY space.
    APPEND it_download.
    CLEAR  it_download.
  ENDLOOP.
  CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
            filename = 'C:\test.txt'
            filetype = 'ASC'
       TABLES
            data_tab = it_download.
Thanks
Venkat.O

Similar Messages

  • I can't update my 3gs iPhone through itunes as it says I need to download latest versions which I've done so I'm in a loop. I'm using a Macbook Pro 10.5.8

    I can't update my 3gs iPhone through itunes as it says I need to download latest versions which I've done so I'm in a loop. I'm using a Macbook Pro 10.5.8

    Ahhh, the mysteries of software updating...glad it is working for you now.  Sometimes you just have to be persistent until iTunes figures out you aren't going to go away.
    So, are you now updating the iPhone to iOS 5.0.1?
    If you already have 5.0 and a wireless connection you don't need to use iTunes to update to 5.0.1...the wireless update only means a file of about 38 MB, while via iTunes it is the entire iOS and about 730 MB...big time difference.
    Hope all goes well for you.

  • If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and gi

    If i download any file which is prepare on microsoft office 2007 . The file have been download without extension of the prog. Means if files name is "1,docx" when i download from firefox it download in that form "1". after download i have to rename and give the extension name is plz tell me the way that office files are compatible with it.
    == This happened ==
    Every time Firefox opened
    == when i download the office files

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I get my safari 5.1.10 to download the java update so I won't continue to get notices that my browser is out of date and I need to download the update, which then won't download.  Cannot view anything in youtube or most other places.

    Jeez.  Trying to view items in youtube.  I keep getting a blacked out picture telling me my browser is out of date and I need to download the update.  I do that and then it doesn't connect so I'm back at square one. 

    Hi MiMattheMac, you probably won't have any problems but just be aware upgrading from Snow Leopard to anything later is a big leap. Old, PowerPC - only programs won't work, for example, and even more recently developed programs won't work if their developers have not been updating them for recent OS X versions.
    If you haven't made a backup of your Mac yet, and you consider the information on it important, please consider doing that. It is the only practicable way to "undo" an OS X upgrade should you want to. Merely having a backup seems to preclude the need to ever use it.
    If the information on your Mac is not important to you, upgrading to Mavericks is even easier since you can completely erase the Mac first.
    In any event let the download complete.
    If this raises any concerns about installing it, and you need to ask questions to alleviate those concerns, you can just close this window when it eventually appears:
    The 5 GB downloaded file will not be deleted and will remain available until you actually install Mavericks. You can do that at any time convenient for you.

  • [b]Need to access a file which is not specified in the classpath[/b]

    Hi everybody ,
    I need your help to proceed with my application. I've tried accessing a file without setting it in Classpath using getResourceAsStream(..), but i'm getting an error.
    error :
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at abc.func(LoadProp.java:13)
    at LoadProp.main(LoadProp.java:35)
    Application :-
    import java.io.* ;
    class test
    public void func(String file )
    String thisLine ;
    try
    InputStream is = test.class.getClassLoader().getResourceAsStream(file);
    System.out.println("File load successful");
    BufferedReader myInput = new BufferedReader(new InputStreamReader(is));
    while ((thisLine = myInput.readLine()) != null) {
    System.out.println(thisLine);
    catch (Exception e)
    System.out.println("Inside Catch");
    e.printStackTrace();
    public class LoadProp
    public static void main(String args[])
    String testname = System.getProperty("propfile");
    System.out.println(testname);
    test t = new test() ;
    t.func(testname) ;
    System.out.println("End Main!") ;
    Output:-
    test.properties
    File load successful
    Inside Catch
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at test.func(LoadProp.java:13)
    at LoadProp.main(LoadProp.java:35)
    End Main!
    Anyone of you help me to get rid of this problem..
    Thanks & Regards
    BK

    It has to be in the classpath for getResourceAsStream
    to "get" it.So if your question is really about needing to read a file which is not in the classpath and won't be, then as long as you have the path to that file, just use FileInputStream to read it.
    InputStream is = new FileInputStream(pathToFileHere);

  • I have a Macpro13 version 10.6.8 and need to download Autocad 2015 which needs min version 10.8, but I cannot get the upgrade?

    I have a Macpro13 version 10.6.8 and need to download Autocad 2015 which needs min version 10.8, but I cannot get the upgrade?

    If your Mac meets the specs you can order it from here. You will receive a 'redem code' that should allow you to download it:
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion

  • I need to download installation files for my Adobe Acrobat Standard 9.5.5.

    I need to download installation files for my Adobe Acrobat Standard 9.5.5. There are no links to be found for this version on the adobe site..
    I have two licenses for adobe acrobat, but cannot find my software. Any help with a direct link to the standard version would be helpful.
    The professional version does not work with the standard licens.

    if you purchased from adobe, log in to your account and check your order history, https://www.adobe.com/account.html
    if you acquired via dell, https://smartsource.dell.com/
    if you purchased elsewhere, contact the vendor.

  • Need to download JAR files from more than ONE HTTP-server ?

    Hello,
    We have a need to download JAR files for an application, from more than ONE HTTP-server, i.e. any specified HTTP-server in an extremely secure network.
    Does a solution exist for this requirement ? Is it possible to design a solution our selfes for this problem ?
    Best Regards
    Peter

    We have a need to download JAR files for an
    application, from more than ONE
    HTTP-server, That can be done using the extension element
    from within the resources element of the main JNLP.
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#resources
    The extension element should refer to another JNLP
    (on the other site) that refers to the Jars. The jar files
    in any such (foreign) JNLP need to be signed, and the
    JNLP files should declare itself as a <component-desc>.
    For any level of detail on using extensions/components,
    download the spec. mentioned in the second paragraph
    of that section linked above. Unfortunately I can find no
    web browsable form of the information.
    Here is an example though..
    http://www.javasaver.com/testjs/jws/04/glclock.jnlp
    This (sandboxed) screenaver demo comes off my
    javasaver site. It refers to the JOGL API via an
    extension element in the JNLP, that points directly
    to the JOGL site. You might notice the security
    warning that is produced mentions..
    Name:      JOGL
    Publisher: sun microsystems, inc
    Source:    https://jogl.dev.java.net
    ..i.e. any specified HTTP-server in an
    extremely secure network. I do not know about an extremely secure network,
    but if it is OK to launch a normal JNLP for an
    application with a 'main()' from the server, I guess
    it should be OK to launch extensions off it - you
    might need to set up some tests.

  • The file contains file info data which cannot be read and has been ignored

    We have been sending images out to contractors, and sometimes when they come back the files are having this error:
    the file contains file info data which cannot be read and has been ignored
    When I then try to Photoshop Script the file info it throws errors.  Does anyone know what causes this error to happen?
    Thank you

    ok, Thanks!, BUT here's the bigger issue:
    We use a lot of Photoshop Scripting, and the file info is how we direct all of our workflows.  when a file comes back with "the file contains file info data which cannot be read and has been ignored" error, the scripts are unable to read/write to any of the file info ever again.  So not only did we lose all the info already in the file, but we can't use the file at all after this.
    Additonally, we tried copying and pasting to new blank documents, but realized we needed all the paths, channels, and sampler points too.
    Is there anything anyone can think of to get around this probelm?  A setting, or a program to fix the metadata, etc?
    Thanks!!!

  • I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    video
    What version of Premiere Elements do you have and on what computer operating system is it running?
    Please review the following workflow.
    ATR Premiere Elements Troubleshooting: PE11: Project Assets Organization for Scene and Highlight Grabs from Collection o…
    But please also determine if your project goal is supported by
    a. format of your source
    and
    b. computer resources
    More later based on details that you will post.
    ATR

  • I need to create buttons in which the color changes, and stays on after you release the button

    I need to create buttons in which the color changes, and stays on after you release the button. The hard part is the buttons must change independently of each other.
    To get an idea of some of things I’ve tried I’ve tried making the movie with two frames.
    When I click the button it switched to the new frame which would show a movie clip,
    Unfortunately all buttons would change color together and don’t see how to make it so that they change independently.

    you must use movieclip buttons and code for their frame changes.

  • ITunes began downloading a file I didn't order and don't want. I stopped it before the download was complete. What do I do now?

    iTunes began downloading a file I didn't order and don't want. I stopped it before the download was complete. What do I do now?

    Download past purchases - Apple Support
    I wold try to connect in a different WiFi setting

  • Can you help me handing me some direction where I can download an antivirus for MacBook Pro compatible and has no cost

    can you help me handing me some direction where I can download an antivirus for MacBook Pro compatible and has no cost

    Sure - just download the free ClamXav from here - http://www.clamxav.com/.
    Be sure to read the documentation.
    It's the only av app you'll ever need and the price is right. Whatever you wish to donate.
    Clinton

  • ITunes won't download to my laptop, its an MSI and has windows 7. It works for everything but iTunes fails to download, help please

    iTunes wont download to my laptop,its an MSI and has windows 7, its works for everything else. Please help

    Do you get an error message when you try to download iTunes? If so, what does it say? (Precise text, please.)

  • Downloading a file which is stored in FTP

    Hi,
    I am developing a webdynpro application where i need to display the flenames in the table which are stored in FTP. And by clickng the filename,it should be downloadable.
    Can anyone Please tell how to download a file through webdynpro application (the file should come from FTP)
    Thank You,
    Madhavi.T

    1) Create an FTP connection from NW java App. server to the FTP server.
    or
    2) Use ftp location, username & password in URL and read the file.
    or
    3) Use any .jar file which reads from ftp.
    follow the thread listed below:
    Image Upload and Download
    How to access the remote file from webdynpro
    Uploading and Transferring Files in Web Dynpro
    regards,
    Nikhil Bose

Maybe you are looking for

  • Deinterlace for Menus (in Photoshop, Motion, and DVDSP)?

    I have a slide show built as menus (people like their buttons, so i'm not using the built-in slideshow) and I'm not sure what settings to use in Photoshop for the Deinterlace filter. The options are: Eliminate: Even or Odd Fields? Create New Fields b

  • Adding on previous TM backups to current TC

    Dear all, In my ignorance, I have posted the above message in the Snow Leopard column, despite using Leopard. The link is as below http://discussions.apple.com/thread.jspa?threadID=2235962&tstart=0 Would appreciate any expert opinion. Thanks.

  • Incomplete WSDL file generated

    Hi, I am testing synchronous processes deployed to BPEL PM 10.1.2.0.2 running on Linux. There are 20 processes deployed, and randomly I encounter the following problem: when testing a process (may be any one), the caller encounters a WSDL validation

  • Illustrator: improve the anchor and direction points as also the direction lines.

    The work with anchor and direction points, as well as their direction lines is often frustrating. This is caused by two main problems. a) Anchor and direction points are visually not different enough, hence give us many options to do that please, e.g

  • Strange linking problem - Only part of word will link

    I created a website for my boss to sell his home but there is one link on the entire site that does not work. I haven't seen this problem before. The URL is www.foxpointhouse.com and the link in question is the text link on the right sidebar called "