How to remove the last blank line in the downloaded text file?

Hi All,
I am downloading the one internal table content using the GUI_DOWNLOAD to a text file(.txt). The cursor is in last position of the text file where there is no content. For example consider the below is downloaded txt file:
This is test file.
Downloaded from the internal table
using GUI_DOWNLOAD
| <----
In above the internal table content first three lines..
Once I press page down in the text file, the cursor goes below the third line..(i.e., next to the last line)
How to avoid that ?
Thanks in Advance,
Regards,
Raghu

I solved this problem with BIN mode.
See this code example
DATA: FILESIZE TYPE I.
CALL FUNCTION 'SCMS_TEXT_TO_BINARY'
IMPORTING
   OUTPUT_LENGTH         = filesize
  TABLES
    TEXT_TAB              =   i_record
    BINARY_TAB            = i_Record
      filesize = filesize - 1. "TRUNCATED LAST LINE!!!
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      BIN_FILESIZE = filesize
      filename                = l_file
      filetype                = 'BIN'
     TRUNC_TRAILING_BLANKS = 'X'
     TRUNC_TRAILING_BLANKS_EOL = 'X'
     WRITE_LF_AFTER_LAST_LINE = ' '
   TABLES
      data_tab                = i_record
Hope this can help you.

Similar Messages

  • How to add a SPACE as suffix to the last field in the downloaded text file?

    Hi Experts,
    By using GUI_DOWNLOAD am saving the data(only 3 fields) in a text file on my desk top.
    fine.
    example current record1 : 010001                      354.999            26.000
    here, after 3rd field 26.000, immediately the cursor is jumping to next line in text file.
    but, wanna a SINGLE SPACE after 26.000, say 26.000+space.
    tried with CONCATENATE, OFFSETTING, but no use(may b am using incorrectly)
    so, pls. suggect me, How to add a SPACE as suffix to the last field in the downloaded text file?
    thanq

    Sorry...Typo error...Too many in the last few days -:(
    Wanted to say AFTER -:)
    Do it like this...
    FIELD1 TYPE XXX,
    FIELD2 TYPE XXX,
    FIELD3 TYPE XXX,
    SPACE(1) TYPE C,
    That way you should end with...
    26.000+SPACE
    Greetings,
    Blag.

  • How to read the whole text file lines using FTP adapter

    Hi all,
    How to read the whole text file lines when error occured middle of the text file reading.
    after it is not reading the remaining lines . how to read the whole text file using FTP adapter
    pls can you help me

    Yes there is you need to use the uniqueMessageSeparator property. Have a look at the following link for its implementation.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIACDAAC
    cheers
    James

  • How to remove the note text for column (portal)

    Hi to All,
    Just i wanted to know how to remove the note (text) which is coming infrond the column in the appraisal template in portal view.
    My client doest want the text "note" (which i highlighted in the yellow) comming infrond the coulum. Pls can anyone tell me how can i remove only the  "note" text from the template?
    Kind regards,
    Saritha

    Hi Saritha,
    In SE80, Choose Web Dynpro Component HAP_DOCUMENT_BODY and you will find the component controller node, double click it and goto methods tab. Here you can find the method CONVERT_CONTEXT_TO_UI, this method will be triggered twice. Search for the code "CALL METHOD lo_nd_t_cells->get_static_attributes_table", this is the method which defaults the "Note" based on the row and column iid. You can overwrite the code by writing the implicit enhancement.
    Hope it will help you and revert back in case of queries.
    With Regards,
    Giriesh M

  • How to remove the copyright Text

    Hi,
    I wan to remove the copyright text(*Copyright (c) 2006, Oracle. All rights reserved.*) from the OAF page.
    How to do that?
    Any help would be highly appreciated..
    Thanks...

    Hi,
    If it is custom region then set "Autofooter" property in pagelayout to false.
    This removes the privacy statement and copyright information from the page.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                               

  • In SAP Webdynpro using ABAP,how to colour the downloaded excel file?

    Hi all Experts'
    I have downloaded the data from the webdynpro application into an excel file in the presentation server using a custom button in a layout of a view in the webdynpro component.
    Now the requirement is to colour the column heading names and the downloaded excel file should show the full column length.
    Could anybody help me on this how to do this two things.
    Thanks in advance.

    Hi,
    You can use this function GUI_EXEC.
    Let say you want to use winzip to zip the file then what you should do like this:
    use this command --> ' -min -a D:\WALCOTT.ZIP D:\MBARANG.TXT'
    D:\MBARANG.TXT --> path to the file you want to Zip
    D:\WALCOTT.ZIP --> result zip file
    The command above is depends on the software you use to zip.
    then
      DATA: cmdguiexec(150).
      cmdguiexec = cmd.
      CALL FUNCTION 'GUI_EXEC'
        EXPORTING
          command          = cmdguiexec.
    Hope this help you.
    Best Regards,
    Victor.

  • How can I remove the preceding blank lines in the downloaded text file?

    I have created a jsp that writes to a file and then prompts a dialog box to have an option to view or save the file. However when i view the file, there are blank lines before the actual content of the file. How can i remove these lines?
    Below is part of my code:
         response.setContentType("application/x-download");
         response.setHeader("Content-Disposition","attachment; filename=\""+ fileName + "\"");

    Hi,
    Those blank lines are normally because of the scriptlet code at the start of your jsp page.
    Remove any new lines between page directives or any include directives that you have at the top of your page.
    Look at the generated servlet code to see what exactly is causing the newline to be inserted (look for out.println("\n");)

  • How to remove the old context files after upgrade to R12.1.1

    Hi,
    I upgraded 11.5.9 (DB 9.2.0.4) to 12.1.1 (DB 11.2.0.2).
    In the Applications Manager under AutoConfig menu, I noticed that I have 4 context files: 2 for DB Tier and 2 for Apps Tier. Apparently two of them are old from the 11i system. How can delete them so I have two listed on this page. I need to add custom parameters. When I tried to do it, it errored out saying "Customization is not allowed on different versions of configuration files.".
    Thanks,
    Sinan

    Make sure none of the old context files are available on the servers (delete them), also make sure you have proper entries in the FND_NODES table.
    For the error you get, please see these docs.
    Create a Custom Parameter Fails With - Customization Is Not Allowed On Different Versions of Configuration Files [ID 762590.1]
    CUSTOMIZATIONS NOT ALLOWED ON DIFFERENT VERSIONS OF CONFIGURATION FILES [ID 351969.1]
    Thanks,
    Hussein

  • Removing the CORRECT iTunes files from a hard drive

    Help! Does anyone have any idea how to remove the old iTunes files. I want to delete them to free up space on my computer. I tried to move my library from this computer to a laptop. See below. I went through all the steps to move my iTunes library using my iPod. It didn't work. So now I have 2 versions of my iTunes library. I am afraid to delete the wrong one. I think it's just great(not) that iTunes will tell one how to "do something" but no one at Apple can tell one me how to undo it. This is an excerpt from "How to use your Ipod to move music to a new computer:
    Click OK. Note: Clicking OK will cause iTunes to copy all of your music files to another location on your computer. You will need to manually remove the files from their previous locations if you are concerned about space_. If your computer does not have enough hard-drive space this process will not work correctly. Please speak to your computer manufacturer or Microsoft for more information on how to obtain more space to perform this action.

    I downloaded audio files from a CD to an external
    hard drive. Now I would like to put those files in
    Itunes. I tried click and drag and cut and paste, no
    luck.
    What EXACTLY do you mean by you "downloaded" the files?
    Did you transcode them into a form iTunes knows about? (e.g., MP3)
    If you ripped them to MP3 or other compatible file format you should hust be able to drag and drop them onto the Music portion of your iTunes display. I do this hundreds of times a day - it's the logical equivalent of Add File or Add Folder to Library.

  • How to remove the Blue Fuzzy Line in Spry Collapsible Panels

    Do anyone know exactly how to remove the blue fuzzy line that appears when a tab is focussed on in the Collapsible Panels feature?
    I heard there was some code that could be implemented into one of the style sheets which could solve this but I am yet to find a solution
    Thanks

    .CollapsiblePanelTab { outline:none; }
    Try that.

  • How to Remove the underline from the selection screen parameter

    How to remove the underline from a selection screen parameter ?

    >
    Anoop Menon wrote:
    > hi Avinash,
    >
    > I am not able to understand the use of the 'comment line properly.
    >
    > The last part of the statement which says modif id is confusing.
    >
    > Please clarify..... I am unable to activate my code when I put the selection screen commebnt statement.
    Use this and update it to your requierement !
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 1(30) comm.
    PARAMETERS test(1) type c.
      SELECTION-SCREEN end of line.
    INITIALIZATION.
      comm = 'test'.

  • How to remove the '#'symbols for infoobject movement types in bex reporting

    Hi All,
      I have a problem in Bex reporting. The problem is when ever executing the report  that time some of the characteristic values is shown in layout '#' Symbols. i want to remove the '#' valuse in report.
    is it possible please give me step by step procedure for how to remove the '#' Symbols in reporing layout.
    this is very urgent please help to me on this issue.
    Thanks & Regards,
    Guna.

    Hi Guna,
    To achieve this issue, we need to replace the value of ‘#’, we need to change the description while retrieving the data from tables. So we need to write some ABAP code in SE38. Go to RSA1 transaction and go to Info objects tab. Then go to context menu for ‘cProject Key Figures’ as shown below. Click on the ‘Object Overview’ to get the overview of all the info objects. Here you can see the field names which are used to know the table names.
    In SE11, type the table name in ‘Database Table’ field. Now press ‘F4’, then you will get the next screen to select one of the P/Q/S/T tables.
    Now click on the button rounded in the below screen to view the data in the table.
    Now click the execute button or press ‘F8’ to view the records.
    Now go to Tcode: SE38. Create a source code and give some program name for that source code. To write code, you need access key. Contact your BASIS for this.
    Now write the below code for that particular table in which you want to change the value ‘#’ to description ‘Blank’. In the below source code, we are updating particular table, setting the field as ‘Blank’ where it is null or no value. Here the field will automatically get updated to ‘#’ if there is no value or null.
    update /BIC/PXXXXX set /BIC/ZXXXX = 'Blank' where /BIC/ZXXXXX is null or /BIC/ZXXXX = ''.
    if sy-subrc eq 0.
    write 'successful'.
    commit work.
    else.
    write 'unsuccessful'.
    endif.
    OR
    If this # is because of the missing master data than,
    right click that IO -> maintain master
    you will see first row as a blank.
    whatever value you maintain in this row that will come in the report for all Not assigned # values of the master data in the report.
    maintain it according to your requirement, save and activate the master data
    Hope this helps u...
    Regards,
    KK.

  • How to remove the credit card from the Apple id?

    how to remove the credit card from the Apple id?
    plz ITS urgently

    If the option to select "None" isn't appearing when you attempt to edit your payment information, then there is likely a billing issue with your last iTunes Store purchase(iTunes didn't receive payment from your credit card company for that order). Before you can remove your credit card, you have to pay for the unpaid order. You can call your credit card company and troubleshoot the billing issue with them, or try another card, or if you live in a country that supports iTunes Gift Cards, you can redeem one of those to pay for the order. Once you have done that, you should be able to remove your credit card info as outlined in http://support.apple.com/kb/ht1918

  • How can I remove the 'Qty' text from individual product descriptions?

    I didn't know if this was possible or not... I've recently taken the reins of handling an ecommerce site that had been published before I got on board. My boss wants me to remove the 'Qty:' description from some products because the image shown for some products is a misleading description of the actual quantity available (i.e. there is a picture that shows a stack of conveyors parts, and it says 'Qty: 1' to represent one 'stack' of conveyor parts - this confuses customers into thinking there's only one individual conveyor part available however). To avoid any confusion he requested that I remove the 'Qty' text from similar images. I see that you can change the 'In Stock' amount of a particular product underneath the 'Inventory' tab of the 'Products' menu, but I didn't know if it was possible just to remove the quantity description altogether without just typing the quantity in at zero. This is likely a strange question but I didn't know where else to ask! I would appreciate any help or advice Thank you

    Hi ewhelhalu,
    I just figured out a way to do it, but it's a little weird and complex, and I have no idea what the consequences for editing this .plist string might be. I'm thinking it'll be OK, but you never know what might happen when you screw around with Apple's intentions.
    So if you have the Developer Tools on your install of OS X, you can use the Property List Editor to edit the Dock files. (If you don't have this program, you can use a program like [Pacifist|http://www.charlessoft.com> to selectively install stuff from your Leopard disk).
    The file you're interested in is within Macintosh HD > Users > Your Username > Library > Preferences, and it's called com.apple.dock.plist. Open that up with Property List Editor, and open the arrow drop-down next to "Root." The lines you're looking for are "persistent-apps" (the left side of your Dock) and "persistent-others" (the right side). If you open the drop-down arrows, you'll see there are numbers below each. The numbers correspond to your Dock items, from left to right.
    If you click on drop-arrows by the numbers, a sample hierarchy looks like this: 0 > tile-data > file-label. It's the "file-label" string that you want to edit. Just make it ("it" being the name of the icon under the "value" column) blank, save the file, go into Terminal and type "killall Dock" without the quotes, and your Dock icon should appear without a name. You'll have to do this for all of them.
    I should insert the usual caveats here about backing up beforehand and making sure that you have a copy of the .plist file before you start tweaking it so that you can replace it if things go wrong. And perhaps someone with more knowledge of Terminal or third-party apps than I have will come along and suggest a simpler solution. But that's the only one I have.
    Hope that helps!
    —Hazy

  • In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    I think the warning is very clear.
    What warning? Where do you say that this plan you suggest will lose at least some, and possibly a whole lot of metadata, plus  the original files of edited photos. This is significant dataloss. And you should warn people that this is the case.
    While your metadata and originals may not be important to you, that is not necessarily the case for other users.
    Fourthly, and last, cleaning the iPhoto library should be done at least once per year
    This is nonsense. The iPhoto Library has no need of "cleaning" and certainly not in any way that trashes a whole lot of data.
    I'm very impressed that you assess the application based on the sound of the name. It's not a common way to review applications, but I'm sure it has some merit.
    FWIW it has been recommended on this - and other - sites for many years and has proven safe and effective.
    Regards
    TD

Maybe you are looking for