At the end each record in a file....

hi,
I want the output as follows:
1.     50501;2010-05-27 19:48:25;1;P002;127;
whihc means it should end with colon....
i am getting the output as
1.     50501;2010-05-27 19:48:25;1;P002;127
it s all correct but at the end i dont get a semi colon as i have used concatenate... sepoarated by semicolon...
can anyone tell me how do i change this... or what additions to be made??

My first idea was  to add a semicolon to the list of field to concatenate
CONCATENATE '1. 50501' '2010-05-27 19:48:25' '1' 'P002' '127' '' ';' INTO string SEPARATED BY ';'.
giving two semicolon at end, so i fear you have to add a
CONCATENATE string ';' INTO string.
Regards,
Raymond

Similar Messages

  • # At the end of record in .txt file on server

    I am reading a .txt file on server ..
    Spliting the recoed at horizantal tab.
    everything is fine but the # at the and of record is not getting eliminated.
    I have tried with CR_LF and NEWLINE tooo ... no use....
    I have to be able to delete this..

    Hi Kalyan Mohan Venigalla,
    if you open dataset in text mode and read dataset into <textvar or string>, the linefeeds should not be read but used to distinguish lines of (possible) different line length.
    The # character just means non-displayable character. Depending on where the file comes from and how it was created and/or transfered to SAP server, this may be anything.
    In debugger, you may switch to hex view and see what it is. Compare to the attributes of CL_ABAP_CHAR_UTILITIES and choose the right one for deletion or replacement.
    Regards,
    Clemens

  • How to add spaces at the end of record

    Hi Friends,
    i am creating a file which contains more than 100 records.
    In ABAP i have internal table with on field(135) type c.
    some time record have length 120, somtime 130 its vary on each record.
    but i would like to add space at the end of each record till 135 length.
    Can you please help me how to add speace at the end of record.
    regards
    Malik

    So why did you said that in your first posting? My glass sphere is out for cleaning...
    Instead of type c use strings and add spaces until they have the appropriate length.
    loop at outtab assigning <pout>.
      while strlen( <pout>-val ) < 135.
        concatenate <pout>-val `` into <pout>-val.
      endwhile.
    endloop.

  • How to keep the ending silence of a music file?

    I am fed up...
    iTunes just always clips the ending silence of all my music. This is SO annoying, if you i.e. listen to a classic piece of music, Beethoven, Bach etc. ALWAYS iTunes bombs in the next title on the playlist milliseconds after the previous title has ended.
    I do not know, which "60 beats a second" kid has programmed such a senseless feature....?
    Of course I browsed the Internet, of course I used the search function in this forum.
    It seems really many people have the same problem, but the only solutions are like adding silent 2 seconds mp3 files into the playlist.
    This iTunes is really not a very well programmed software, if users needs these awkward workarounds...
    Is there any smart solution to this problem? Help is really appreciated.

    iTunes doesn't do anything with the "ending silence of a music file".  If you have crossfading turned on (see previous comment) each track will start playing, with a predetermined fade in, before the previous one ends.  You definitely want have that disabled.  Otherwise, each track plays through to the end and the next one starts immediately - there is no "gap".  However, you would normally expect that last few seconds of the track itself to be "silent" so that you hear a gap between each piece of music - just as you would when listening to a CD.  Are you perceiving something different?  There are a couple of somewhat obscure scenarios where the end of a track could be truncated.  One involves a very specific error that could occur if your music has been imported from CD outside iTunes and then transferred to it - but that would require a very deliberate action with certain tools used for this purpose.  In technical terms, the import ignores the "pre-gap" that may precede a track on a CD (you'd see this on some CD players as a brief - usually two second - countdown after the end of one track and before the start of the next.  Most software, iTunes included, normally treats this pre-gap as part of the preceding track.
    The other possibility is that the metadata associated with some tracks has been altered such that playback terminates before the actual end of the track.  However, it requires a specific user action for this to happen - I can't think of a way it could happen accidentally.
    Bottom line is that - unless you've hit one of these unlikely scenarios, or found a previously unreported bug (either in iTunes itself or in its interaction with audio drivers), or have that ghastly crossfade function turned on, you are hearing the music as recorded and mastered.  The only other exception is the case where you are hearing the end of one album/disc immediately followed by the start of the next.  Depending on how its been mastered, there could be a "shorter than expected" gap between them.

  • I am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • What is the best way to get the end of record from internal table?

    Hi,
    what is the best way to get the latest year and month ?
    the end of record(KD00011001H 1110 2007  11)
    Not KE00012002H, KA00012003H
    any function for MBEWH table ?
    MATNR                 BWKEY      LFGJA LFMON
    ========================================
    KE00012002H        1210             2005  12
    KE00012002H        1210             2006  12
    KA00012003H        1000             2006  12
    KD00011001H        1110             2005  12
    KD00011001H        1110             2006  12
    KD00011001H        1110             2007  05
    KD00011001H        1110             2007  08
    KD00011001H        1110             2007  09
    KD00011001H        1110             2007  10
    KD00011001H        1110             2007  11
    thank you
    dennis
    Edited by: ogawa Dennis on Jan 2, 2008 1:28 AM
    Edited by: ogawa Dennis on Jan 2, 2008 1:33 AM

    Hi dennis,
    you can try this:
    Sort <your internal_table MBEWH> BY lfgja DESCENDING lfmon DESCENDING.
    Thanks
    William Wilstroth

  • CR & LF characters at the end of records when using delimited flat file (CR is missing)

    Hi All,
    I have a requirement where data of SQL query needs to be loaded to a CSV file.
    The row delimiter of the CSV file has to be CR-LF.
    In the flat file connection manager, I have mentioned Header Row delimiter as "{CR}{LF}" and under columns section, row delimiter is specified as "{CR}{LF}".
    But when I open the detsnation CSV file using notepad++, I see only "LF" at the end of all rows.
    Can you please let me know how can I get both CR & LF at the end of each row
    Below is the screen shot of the flat file connection manager which I have used for CSV destination file:
    Raksha

    Hi Raksha,
    Just as Vaibhav said, I’m curious why you need use “CR & LF” as row delimiter in Flat File Connection Manage. Since you can use "CR" as row delimiter in Flat File Connection Manager and it worked fine, you can directly specify "CR"
    as row delimiter in Flat File Connection Manage.
    Besides, if you still want to replace “LF” with “CR & LF” in the text file, we can use Notepad++’s Find/Replace feature or Edit -> EOL Conversion to achieve the goal. Then we can specify "CR & LF" as row delimiter in Flat File
    Connection Manage.
    The following blog about conversion between “LF” and “CR & LF” row delimiter in Notepad++ is for your reference:
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/07/replacing-crlf-with-lf-using-notepad.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Determine the number of records in a file

    I want to analyse record types from a large input file and so far have managed to extract different groups and created the relevant files. All I want to do now is count the number of records in each file so I can produce a report showing the different types but cannot figure out how to do this, I know it will be simple but I cannot get any command to accomplish this, help please!

    in applescript, there are a few ways to count patterned text.  if (as jeffrey suggests) each record is a separate line, then you can use the following:
    set textContents to read "/path/to/file.txt"
    count of paragraphs of textContents
    if records are determined by some other process (such as a special delimiting character or phrase) you can use text items (replace the @ sign with the special character or phrase):
    set textContents to read "/path/to/file.txt"
    set {oldTID, my text item delimiters} to {my text item delimiters, "@"}
    set theCount to count of text items of textContents
    set my text item delimiters to oldTID

  • Help. Why has the end content of my Indesign file disappeared?

    Hi. I'm using Indesign 5.5 on a Windows 7 PC.
    I'm currently making an epub in Indesign. It is a long flowing document on a single page. I'm separating chapters with Style headings.  I've been slowly going through it and adding the image files. I've reached page 66 and the end of my document is missing. I've gone back through earlier versions and in each have seen that there is a little bit more of my text. Very puzzled I tried to copy the missing text onto the end of my current document and it doesn't appear. I'm now wondering if there is a 66 page size limit?
    If there is what can I do to complete my epub. Start a new file for the second half of my book and somehow merge them? 
    Any help appreciated as this unforseen problem is like a kick in the guts.
    Thanks.

    You need to back up and learn some basics before you get to far into ePub. (Sorry to be blunt)
    - Click the red overset symbol to load all the overset text.
    - Add one page to the end of the document.
    - At that new page, Hold the Shift key while clicking inside the page margin to flow all the overset text, adding new pages as needed. (You should see the laoded curser change appearance when the shift key is held)

  • Printing to the end of a Random Access file with FileOutputStream

    I need to use FileOutputStream or anything else to print to a text file. However I need to print to the "end" of the file and not write over existing content. Anybody, given the following how would I append the file "myFile.txt"? The code below writes over existing data in the file.
    import java.io.*
    class FileOutputDemo
    public static void mani( String argsv[])
    FileOutputStream out;
    PrintStream p;
    try
    out= new FileOutputStream("myFile.txt");
    p=new PrintStream( out ) ;
    p.println("Write this line of text to the end of the file");
    p.close();
    catch(Exception e) {*Do something */}

    One way is to use the RandomAccessFile class methods to append to the end of a file. Use the seek and length methods to go to the end of the file and use the appropriate method to write your data. Something like this:
    try {
    RandomAccessFile logFile=
    new RandomAccessFile("myFile.txt", "rw");
    logFile.seek(logFile.length());
    logFile.writeBytes(
    args[0]+"\n");
    catch (Exception e) {
    System.err.println("Error!");
    HTH

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • Oracle Load testing- Open script at the end of recording gives this error

    I am recording a script for R12 in Open scirpt , but at the end of finish record Open script Load testing gives this error"Failed to correlate script has encountered a problem"
    Steps I followed. Open Open script-New Script. Select Load testing Protocol(Automation) - Select Oracle EBS/Forms- Create a script. Now start recording. I have EBS R12 instance and the test I am doing is just login / open a form . After that I click Stop recording. Open script pops up a Window "Exception occured while correlating script:oracle.oats.scripting.transforms.TransformException:transfrom rule threw exception in TransformStep:oats.otas.scripting.modules.formsLT.correlationformsHttpVarSubstitution.Refer to the Error Log for Details". The tool is installed on Windiws 7 64 bit and using IE8 as a browser.
    Any help?

    Hi
    Thanks JB/Glen
    My Answers
    Stupid, but have you tried to create a new script?
    ANS-Yes JB . Always try with New one only not using the same. Also before I record first I try the same steps in browser to make sure it work/oepns all.The do the same via recording)
    Is that the only script that doesn't work?
    ANS-Every script that I record has this issue on this Windows - x 64 Laptop.
    Have you tried another one? Just a simple web one?
    ANS- Open script functional recording works fine.
    Have you ran the Diagnose Tool (Help Menu)?
    ANS- Yes- All came out Green
    Have you put a specific name for the script? Special characters?
    ANS-No my script name is Test1, Test2 etc
    Restart OpenScript?
    ANS- Yes Tried several times. Also I completely uninstalled/removed registry/folders, re-installed also.
    But I have another Windows XP machine where I installed now that works fine. Only issue now on this Laptop - Why /where is the issue on this Laptop?
    Open the error view which will show in the lower pane. You may find more details.
    ANS- More details shows only "Exception occurred while correlating script." a one liner
    When you manually run the "Correlate Script" option as JB has mentioned, first un-check all but one correlation rule. This is an additional choice in "Correlate Script" menu. If no error, "Revert to recorded" again, and then "Correlate Script" again though this time un-check all but two correlation rules. Continue this effort until you narrow down the correlation rule which throws the error.
    ANS- This is a simple out of the install and I ccan see only two Rules. HTTPS Libraries and Oracle Load Form Libraries. If we leave Oracle Load form libraries checked and correlate that is where it is failing. I believe we need that Library correct?
    Thanks

  • Trailing Space at the end of Record

    Hi,
    I need a blank space at end of header record when transferring data to a file on application server.
    Appreciate help.
    Code:
      wa_header-empty         = space.           " Length 4 type char
      wa_header-rec_type     = 'ZREF'.           " Length 4 , constant
      wa_header-partner_id   = '1234'             " Length 35 type char
      wa_header-i_usr_id      = 'COMPANY'.   " Length 35 type char
      wa_header-p_id_qualf   = space.            " Length 4 type char
      TRANSFER  wa_header  TO  g_out_file.
    Desired output: enclosed in brackets.
    [    ZREF1234                               COMPANY                                ]
    The desired output has 28 trailing space after the text 'COMPANY'.

    Hi,
    Have you Tried the SHIFT hope it will solve out your problem,
    or use Concatenate To insert Spaces to Right Side inside a loop.
    Hi, Please Go Through the following Thread too hope will help you out.
    [How to retain spaces in a string|Re: How to retain spaces in a string...really urgent]
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 18, 2009 1:33 AM

  • Can i record the acquisted data down into a file ?

    Hi everyone, currently my pda can display 2 channels of data using * Cont Acq&Graph Multiple Voltages-Int Clk.vi *.
    How do i record down the data i'm displaying n place it in a file ?
    Regards,
    Lance

    Hi Stephanie, i cant find *****Help » Find Examples... and then browsing to Hardware Input and Output » DAQmx » Analog Measurements » Voltage.
    i only have help>find examplers>hardware input and output only, i have attached a print screen of my labview. in the meanwhile, i will try to use File I/O palette (Programming » File I/O) as adviced.
    I need a Cont Acq&Graph Multiple Voltages-Int Clk.vi that can display 2 channels of data and can save the 2 channels of data into an array and at the end write it to a file.
    Thanks!
    Regards,
    Chengwee
    Attachments:
    m3mories.JPG ‏128 KB

  • PI removing blank spaces at the end of the lines in a plain text file

    Hi -
    I have an interface that transfers a file via FTP. I defined both the sender and receiver to transfer either Text or Binary but the interface removes every blank space I have after the last character. The file is a fixed lenght file.
    Example:
    Original file:
    Hello world(space)(space)(space)(space)(space)(space)(space)(space)(eol)
    where (space) is the space character and (eol) is the end of line char.
    File after it is received.
    Hello world(eol)
    I already defined the parameter Row.fieldFixedLenghts with 10164 which is the lenght of the lines of the file.
    Any ideas why it may be happening?
    Thanks,
    Carlos.

    Hi -
    I tried both the parameters:
    xml.fieldContentFormatting
    structure.fieldContentFormatting
    The received file still has the problem. All the blank spaces are cleared out.
    The file is a plain text file not an XML file. May this be the issue?
    Thanks,
    Carlos.

Maybe you are looking for