Bank File without removing blanks.

hi xprts,
I'm developing a program wich it's main function it's to download data to a plain file from reguh table. I need to insert a complete line of data without separations from each field. But i need to send an exactly row with a measure of 167 bytes. To do this i need to not remove the blank space of a field. Ex : The Field SGTXT it is a field of 50 length, but sometimes the data does not fullfill the lenght, so if the field has 35 chars i need to not remove the 25 left, but abap allways remove it. Any idea.
Tnxs for your help

Check the documentation of Function module. Here is a part of that for parameter TRUNC_TRAILING_BLANKS-
Do not Write Blank at the End of Char Fields
Description
By default, possible blanks at the end of a text column are not transferred. You can use this parameter to change the behavior to keep the blanks. However, this does not include the blanks at the end of the last column. If you want to keep them as well, use parameter TRUNC_TRAILING_BLANKS_EOL instead.
Value range
'X': Blanks are removed.
SPACE: Blanks are transferred.
Default
'X
Hope this helps
ashish

Similar Messages

  • How to wipe all Windows 7 (Bootcamp) files, without removing the operating system?

    I have accumulated a lot of junk while using Windows 7 for a while, and I'd like a fresh start. Normally I would just delete the partition and reinstall. However, the only Windows licenses I have are a Windows XP license, and a Windows 7 UPGRADE License, meaning in order to install Windows 7 from scratch, I would need to install Windows XP first, which I do not think is possible anymore.
    So, I was wondering if there was a way to get rid of all the files, as if I had freshly installed Windows 7, but keep the partitions and OS intact.
    Thanks for any help

    I would use a program like Acronis to do the job. http://www.acronis.com/

  • Data Merge - Not removing blank lines when more than one in a row

    I am having the same problem as mentioned here: http://forums.adobe.com/message/2109531#2109531  That post is for some reason set as "answered" though the poster said the latest update did not resolve the issue.  Has anyone found a solution to this issue?
    Thanks much,

    I"d suggest you try running the merge WITHOUT removing blank lines, then use  GREP to remove empty paragraphs. There's a pre-written saved query in the list.
    Peter

  • How to open iWork 08 blank file without headers?

    Hi, couldn't find an answer for my question on the forms, so here it goes...
    Is there a way to set Numbers '08 to open new files without Column and Row Headers? I know how to remove and/or delete them, but this is not what I'm looking for. I want to start all new documents without the headers. Is it possible?
    Thanks, Vlad.

    Hello Vlad,
    Whenever you begin a new document, you are opening a Template. Often we use the blank template provided with Numbers, but we are free to make our own templates without Headers and with any settings we find convenient. Prepare a document that is just the way you would always like to begin your work and then File > Save as Template.
    When you want to start a new document, File > New from Template > My Templates, choose your special template.
    Regards,
    Jerry

  • How to replace or remove last 500 bytes of a file without rewriting all the file?

    Hi everyone,
    Usually I only ask for help when I can't find a solution for several days or weeks... And guess what? That just happen!
    So, this is what i am trying to do:
    I have a program to ZIP folder and protect them with password, then it encrypts the zip file.
    That it's working fine, until the user forgets his password.
    So, what I want to do is give the user a Recovery Password option for each ZIP file created. I can't use the Windows Registry because the idea is to be able to recover the password in any computer.So i came up with an idea...
    In simple terms, this will work like this:
    0 - Choose folder to ZIP
    1 - Ask user for recover details (date of birth, email etc)
    2 - ZIP folder with password
    3 - Encrypt ZIP file
    4 - Encrypt recover details and convert it to HEX
    5 - Add recover details (in HEX) to the end of the ZIP file (last bytes)
    6 - Add "5265636F76657244657461696C73" which is the text "RecoverDetails" in HEX
    7 - Add "504B0506000000000000000000000000000000000000" this is the final bytes of a ZIP file and will make the Operating System think that is a ZIP file (i know that will give an error when we try to open it.. the ideia is to change the
    extension later and use my software to do all the work to access this ZIP/folder again)
    So, explaining what it's here, I want to say that I managed how to do all of this so far. The point number 6 will help us to determine where the recover details are in the file, or if they actually exist because user can choose not to use them.
    In order to unlock this ZIP and extract it's contents, I need to reverse what I've done. That means, that  need to read only the last 500 bytes (or less if the file is smaller) of the ZIP and remove those extra bytes I added so the program can check
    if the user is inputing a correct password, and if so decrypt contents and extract them.
    But, if the user insert a wrong password I need to re-add those bytes with the recover details again to the ZIP file.
    The second thing is, if the user forgets his password and asks to recover it, a form will be shown asking to insert the recover detail (date of birth, email etc), so we need to reed the last 500 bytes of the ZIP, find the bytes in number 6 and remove the
    bytes before number 6, remove bytes in number 6 and number 7, and we will have the recover details to match against the user details input.
    I have all done so far with the locking process. But i need help with the unlocking.
    I am not sure if it's possible, but this what i am looking for:
    Read last 500 bytes of a file, remove the bytes with recover details and save the file. Without reading the whole file, because if we have a 1GB file that will take a very long time. Also, i don't want to "waste" hard drive space creating a new
    clone file with 1GB and then delete the original.
    And then add them back "in case user fails the password" which should be exactly the same.
    This sounds a bit confusing I know, even to me, I am writing and trying to explain this the better I can.. Also my English is not the best..
    Here it goes some code to better understanding:
    'READ LAST 500 BYTES OF ZIP FILE TO CHECK IF IT CONTAINS RECOVER DETAILS
    Dim oFileStream As New FileStream(TextBox_ZIP_to_Protect.Text & ".zip", FileMode.Open, FileAccess.Read)
    Dim oBinaryReader As New BinaryReader(oFileStream)
    Dim lBytes As Long = oFileStream.Length
    oBinaryReader.BaseStream.Position = lBytes - 500
    Dim fileData As Byte() = oBinaryReader.ReadBytes(500)
    oBinaryReader.Close()
    oFileStream.Close()
    Dim txtTemp As New System.Text.StringBuilder()
    For Each myByte As Byte In fileData
    txtTemp.Append(myByte.ToString("X2"))
    Next
    Dim RecoveryDetailsPass_Holder = txtTemp.ToString()
    'Dim Temp_2 = txtTemp.ToString()
    'RichTextBox1.Text = txtTemp.ToString()
    If txtTemp.ToString.Contains("505245434F47414653") Then
    'we have password recovery details(the numbers mean RecoverDetails in HEX)
    'next we will get rid of everything before and after of string "cut_at"
    Dim mystr As String = RecoveryDetailsPass_Holder 'RichTextBox1.Text
    Dim cut_at As String = "505245434F47414653"
    Dim x As Integer = InStr(mystr, cut_at)
    ' Dim string_before As String = mystr.Substring(0, x - 1)
    Dim string_after As String = mystr.Substring(x + cut_at.Length - 1)
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace(string_after.ToString, "")
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace("505245434F47414653", "") ' this is RecoverDetails in HEX
    RecoveryDetailsPass_Holder = RecoveryDetailsPass_Holder.Replace("504B0506000000000000000000000000000000000000", "") ' this is the bytes of an empty zip file
    'AT THIS POINT WE HAVE ONLY THE RECOVER PASSWORD DETAILS (date of birth, email etc) IN THE VARIABLE "RecoveryDetailsPass_Holder"
    '////////////////////////////////////////////////////// TO DEBUG
    'MsgBox(string_after.ToString & "505245434F47414653")
    'InputBox("", "", string_after.ToString)
    '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ TO DEBUG
    'Temp_2 = Temp_2.Replace(RecoveryDetailsPass_Holder.ToString, "")
    Now that we have the recover details, we need to remove them from ZIP in order to the software try to unzip it with the password provided by the user on the GUI.
    If the user needs to recover the password we have the details already in RecoveryDetailsPass_Holder variable and just need to match them against user input details.
    If the user fails, we need to put the RecoveryDetailsPass_Holder back on the file.
    Any question just ask, it's a bit trick to explain i think, but please ask.
    Anyone know how to do this?
    Many thanks in advanced.
    Nothing is impossible!
    @ Portugal
    Vote if it's helpfull :)

    @ ALL
    Thank you very much for you help. I know that if I'm "playing" with bytes you should assume that I know a lot of VB.net, but I don't know that much unfortunately. I am not a beginner but I am still very fresh and I probably do stuff that work but
    probably not in the best way...
    Anyway, I will explain the idea of this little software I'm making. Once I wanted to create a program to protect folders with password, and I came up with something to change folder permissions to lock access to them, and that actually worked fine and quickly.
    However, I managed how to "crack" the protection by going to folder properties, security tab and then give permissions back to my username. So that, to me, wasn't a safer system to protect folders, also I want the ability to use passwords. So I search
    and search online for a way to do it, and someone replied (to someone with the same question as me) that the best option would be to create a zip with all contents of the folder, with password and then change the extension from .zip to .whatever and register
    the new extension .whatever on the Windows Registry, so that file will have an icon and open with my software.
    So I did...The program zips everything, change the extension and I added the encryption to avoid people changing the extension to ZIP or trying to open with 7-Zip or similar and be able to see the protected files names in the .zip/.whatever
    Answering to all of you now:
    @Armi
    "System.IO.FileStream.SetLength"
    I know I tried that but I erased the code because it didn't work for some reason, I don't remember why sorry, was long time before I created this post.
    The last code I was trying to use was this:
    ' Set the stream position to the desired location of the stream.
    Dim fileStream As IO.FileStream = _
    New IO.FileStream(TextBox_ZIP_to_Protect.Text & ".zip", IO.FileMode.Append)
    Try
    ' Set the stream (OFFSET) position to the desired location of the stream.
    fileStream.Seek(210, IO.SeekOrigin.Current)
    Dim Bytes_do_ZE As Byte() = HexStringToByteArray(Temp_2.ToString)
    'Write Characters ASCII
    For Each Byte_Do_Zeca As Byte In Bytes_do_ZE
    fileStream.WriteByte(Byte_Do_Zeca)
    Next
    Finally
    fileStream.Close()
    End Try
    and we need this:
    Private Shared Function HexStringToByteArray(ByRef strInput As String) As Byte()
    Dim length As Integer
    Dim bOutput As Byte()
    Dim c(1) As Integer
    length = strInput.Length / 2
    ReDim bOutput(length - 1)
    For i As Integer = 0 To (length - 1)
    For j As Integer = 0 To 1
    c(j) = Asc(strInput.Chars(i * 2 + j))
    If ((c(j) >= Asc("0")) And (c(j) <= Asc("9"))) Then
    c(j) = c(j) - Asc("0")
    ElseIf ((c(j) >= Asc("A")) And (c(j) <= Asc("F"))) Then
    c(j) = c(j) - Asc("A") + &HA
    ElseIf ((c(j) >= Asc("a")) And (c(j) <= Asc("f"))) Then
    c(j) = c(j) - Asc("a") + &HA
    End If
    Next j
    bOutput(i) = (c(0) * &H10 + c(1))
    Next i
    Return (bOutput)
    End Function
    That code, as I understand, is to search for the OFFSET of the bytes in the file and start to write from there... That OFFSET should be the beginning of the 500 bytes read on the code before. I got the OFFSET position "210" reading the file with
    the HEX editor "HxD - Hexeditor v1.7.7.0" but using the OFFSET won't work because every file, password, recover details and so on, are different and so the file size, changing the OFFSET I
    think.
    @Reed Kimble
    Does that sound like something which might work for you?
    Thanks for your help. That might be some solution, however it seams a bit of the same problem where we need to read the bytes again to get the recover details. But, as I said in this post, because this is meant to password protect folders, do you think that
    will apply as well?
    @Crazypennie
    Thanks for your reply.
    All this appears really weak. The user has your application since he need it to open the file .... and the code in the application contain the code to read the file without knowing the password. Therefore anyone can read your code and retrieve the
    data without the password ... if he knows VB.
    The application can only open the file if the user didn't use a password to protect the file. Because the file is encrypted and needs to be unencrypted first.
    When the application tries to open/read the file, will need to decrypt it first and then check for a password and do the validation. Also the application is with the code masked/protected which i think it might not be easy for reverse engineering.
    - You need to use a web server and a symmetric key encryption
    This a good idea, besides I don't know how to implement it. However the idea is to be able to:
    1 - Protect a folder anywhere in any Windows computer (portable app)
    2 - Recover password details (security question) in any computer, online and offline
    And I think we need a computer always connected to the Internet to use that method, right?
    @ Mr. Monkeyboy
    Thank you very much for your effort.
    I just wanted to let you know that the zip method you are using is no longer supported.
    I didn't actually knew that. Thanks for letting me know.
    Do you require the compressed encrypted files to actually be Zip files or could they just be compressed files that have nothing to do with Zip?
    No, it doesn't need to be a .zip extension. I am actually using my own extension. It starts as a Zip but then I changed to my own extension which I have registered on the Windows Registry.
    @ ALL
    Thanks again to all for trying and spending time helping me.
    By the way, I might not be able to answer or try any code during the weekend... It's easter break and family is around. Have a nice easter everyone. :)
    Nothing is impossible! Imagination is the limit!

  • I have allowed my iTunes Match subscription to expire, because of a limited data plan so can't listen to music outside my house. My music files were removed from my computer and are inaccessible without renewing the subscription. How do I get them back?

    I have allowed my iTunes Match subscription to expire, because of a limited data plan so can't listen to music outside my house. My music files were removed from my computer and are inaccessible without renewing the subscription. How do I get them back?

    Hi,
    I presume you deleted the original files as match would not have done so. Do you have a back up. If so, restore your music from that. If not, your will have lost all your music as this needed to be on your hard drive when you unsubscribed.
    Jim

  • HT204025 Can I remove files from my computer without removing them from iCloud?

    Can I remove files from my computer without removing them from iCloud?

    Reason I'm asking: I did move a folder over, and then went to iCloud.com, and looked in that folder, and it said it was empty. Thanks
    When you move a folder to iCloud Drive, it will upload the contents of this folder to iCloud Drive, but it may take a long tome, even for small items. You may see progress bars, while the contents is uploading.  And the folder may look empty, until it will be updated from iCloud.  For example - shortly after adding the folder "neueBilder" to iCloud Drive.

  • Can I install it without removing any programs and files?

    Is it possible to install Lion without removing programs, files, plugins?
    Or Is there only an option for a clean install?
    Thanks

    You can just upgrade without removing programs But if you have Photoshop, they advise you disable plugins. Programs that run under Power Macs (use Rosetta) won't work after upgrade e.g MS Office 2004, Photoshop 2 (not sure about PS 3),  Also Before you install lion Make A copy of your Lion App using Disc Utility (not Direct from Finder) on to a DVD or USB Flash. Here's the link to tell you how to do it
        http://reviews.cnet.com/8301-13727_7-20080989-263/how-to...
    If you install without doing this first you will lose the Lion App and won't be able to reinstall in the future

  • Can't remove blank icons next to bookmarks

    Recently upgraded from Firefox 3.x to 15 (I know, but 4+ is terrible IMO). Anyway - I want to remove the favicons next to bookmarks in the bookmarks tab AND the toolbar and it doesn't seem to be possible. Currently they are all showing an empty dotted box instead of the icons themselves. It seems doing this fix for old versions (http://www.ghacks.net/2009/05/11/how-to-remove-favicons-in-firefox-bookmarks/) will remove the icon, and stop new ones from being added but will NOT remove this annoying box.
    http://i45.tinypic.com/6sck08.jpg
    http://i47.tinypic.com/30lm1ow.jpg
    I looked into the .css fix but my .css files are completely blank for some reason. How can I remove all of these boxes completely without an addon?

    You're welcome
    You can leave out the code of the .tab-throbber:not([pinned]), but that will cause the text to move if the throbber gets active.
    <pre><nowiki>.tab-icon-image:not([pinned]) { display:none !important; }
    </nowiki></pre>
    If you do not want the text to jump, but have an empty space then hide the favicon instead.
    <pre><nowiki>.tab-icon-image:not([pinned]) { visibility:hidden !important; }
    </nowiki></pre>

  • How do I open old files without application extensions on them?

    I have lots of 1995 or so files written from a mac on 3.5 diskets most of which I have read onto disk.
    But they have no extensions and I can't seem to open them.
    If I had to guess I would say they are canvas, possibly powerpoint but using powerpoint 98and canvas 7 I can"t seem to open them.
    I have a G3 powerbook.  a G3 tower both running OS9, a powerPC macmini running OS10 and OS9 in emulation, a PC portable running System10 and another PC portable running XP.
    What are my options short of seppuku?
    I need to get these files to teach a course.
    Thanks

    When I use OS 9 and previous Mac systems I use CanOpener for problems such as you present. It is still available too.
    http://www.abbottsys.com/co.html
    Use CanOpener to get into just about any file.
    Powerful Mac data recovery software. Our famous universal file opener lets you read any file -- and extract what you need including text, icons, PICS and more. It's perfect for browsing all types of files, including old files, foreign files and files your Mac can't open, and it's indispensable for recovering text from damaged files - a lifesaver!
    Plus, CanOpener lets you view virus infected files without launching the virus. So you can safely check suspect files and recover text from them - a powerful way to avoid virus infections!
    CanOpener has special text filters that let you...
    *Extract Names, Phone Numbers, URLs, Email, Web and IP Addresses.
    *Strip HTML Coding. Remove extra Carriage Returns and blank spaces from email and Web text.
    *Extract important sentences such as questions or anything containing $'s and numbers.
    *Rapidly find clean text in files that contain huge amounts of 'garbage'
    CanOpener Extractor.
    Now you are not limited to opening files individually. You can drag and drop any file, or a folder full of files, to do bulk extraction using any of the special text extraction filters! A fantastic time saver!

  • Removing songs from itunes without removing them from ipod

    Is it possible to remove songs from iTunes without removing them from iPod? When I attempt to delete songs from iTunes I get a warning that they'll be deleted from iPod as well. I've got Manually manage music and videos checked under Options in the Summary window.

    You can delete songs from your iTunes/computer hard drive after transferring them to the iPod, and for this you need to set your iPod to manage the iPod content manually.
    However, this is an extremely risky option because when (and not if) there comes a time to restore your iPod, which is a very common fix for iPod problems, then all the music would be erased. If you no longer have the music in iTunes (or any other back up), then all that music would be lost.
    What if the iPod were lost/stolen/needed repair? Again, the music would lost. I strongly recommend a back up, and if computer hard drive space is in short supply, you should seriously consider an external hard drive. They are not expensive, and the cost is well worth it when compared to the loss of all your precious music.
    At the very least back up your music to either cd or dvd before deleting it, particularly any purchased music/videos, as this would have to be bought again if it were lost. See these about backing up media.
    How to back up your media in iTunes.
    Buegie's complete back up strategy.
    To move music from iPod to computer, check out the instructions/suggestions here.
    Music from iPod to computer (using option 2). This a manual method using "hidden folders" and although it works, it can be messy.
    Much easier ways are to use one of the many 3rd party programs that copy music from the iPod to the computer.
    One of the most recommended is Yamipod. This is a free program that transfers music and playlists etc from iPod back to the computer. However, it does not transfer playcounts/ratings etc.
    Another free program is Pod Player.
    There is also CopyPod. This does preserve ratings/playcounts etc if those are important to you but this program is not free. It also supports video transfer.
    If you are using iTunes version 7 or later, then you can transfer purchased iTunes store music from the iPod to an authorized computer by using the "file/transfer purchases from iPod" menu. Note that the maximum of 5 authorized computers applies here.

  • How to remove blank pages

    Dear all,
    How can i remove blank pages in combind pdf in one short, if you have any idea or suggestion for remove blank pages in Acrobat. We need without blank pages counting for final page count purpose.
    We tried to remove blank pages option in acrobat 9.0, but it is not use single short. It is taken more time to taken for maual work.
    If you have any scripting for this? or any option having in acrobat in single short? Please help me in this regard.
    Thanks
    kanaga kumar. k

    This can be done with a script, but a script can only assume a page is
    blank if it has not text in it. It can't know if there are images or other
    graphic elements in a page.

  • How do I remove a song from an album without removing it from my computer library or another album?

    How do I remove a song from an itunes album on my MacBook without removing it from my library or from another album. It ended up in the wrong album

    When you delete the song, a menu will come up and ask you if you want to trash or keep the file. Select "keep file."   It will no longer be in your song list but it will remain on your harddrive. To add it back in use the --"add to library"--  command in the  drop down "File" Menu (you have to navigagte to where the song is stored on your hard drive and select it-- to add it back in.
    Re: it ended up in the wrong album
    If your songs are going in the wrong place go to the "Get Info" command and check the information under all the tabs (look at a song that's in the right album to see how it's listed) -- one or more of the boxes is incorrect or empty.  Just put  in the right information and close the info window. That should put it back in the right spot for you.

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • Saving a PDF file without the comments

    In Acrobat Reader, is it possible to save a copy of a PDF file without the comments.
    I'm doing a PhD, and would like to be able to send some scientific papers to colleagues without the annotation I may have added. Of course, manually removing all the comments is not a good solution.

    In the Comment panel, go to the Comments List, press Ctrl+A and then Delete.

Maybe you are looking for

  • Display Custom Error Message in OIM 11g

    Hi, I'm trying to display an error message from a validation event handler but seems that am missing something. When the "oracle.iam.platform.kernel.ValidationFailedException" is thrown from a validation handler an error message is displayed: "An err

  • Count rows from multiple tables using SQL only

    Hi, I know this has probably been answered before, but I couldn't find the answer anywhere. Please help. I'd like count(*) [rows] for all tables in database using SQL only - no PL/SQL The result should be something like: Table RowCount DBA_TABLES 100

  • Using B2B as file / ftp gateway

    We have a need to reach out various ftp servers and retrieve files. We can do it in BPEL directly, but i was wondering if it is possible for b2b server to go out to these ftp servers and retrieve the files on a scheduled basis ?

  • Where do you get your images?

    I have accounts with several different stock image online companies. But things are getting very expensive. I was wondering if there was a website that offers free images. I'm also curious, where do you get your images? I can grab my digital camera,

  • Type Conflict Error with RFC FM

    Hi Guys,               I am getting "Type conflict when calling a function module" in XI. Here is the full error. <rfc:ZFIBAPI_ACC_DOCUMENT_POST.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>T