Remove Line feed at the end of the file while using file adapter

Hi All,
I have a requirement. We are sending a file from SAP to FTP using file adapter. we are successful in sending the file to FTP but at the end of the file a extra blank line is created .
Can anyone please suggest how to remove the extra line feed at the end of the file.
Thanks and Regards,
LRK.

check this:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
Also there are solved threads which deal with same problem....you can even check them out...
regards,
Abhishek.

Similar Messages

  • Utl_file.utl_raw adds a line feed at the end of the line. How to avoid it.

    utl_file.utl_raw adds a line feed at the end of the line. I have to send some binary files to my vendor and they do not want a line feed at the end of the line.
    When I execute the sample program below, it creates a file with a line feed(chr(10)) at the end of the line. When I do dump in hexa, it shows a character x0A
    How to avoid the line feed at end of line?
    We are using Oracle 9i on unix platform.
    declare
    l_output           utl_file.file_type;
    v_raw      raw(32767);
    v_trlr_rec_code      VARCHAR2(2);
    v_trlr_evnt_title      VARCHAR2(6);
    begin
    l_output := utl_file.fopen( 'RM_MHE_IN_DIR', 'abc.dat', 'w', 14 );
    v_trlr_rec_code      := '99';
    v_trlr_evnt_title      := 'STARTD';
    v_raw := HEXTORAW(v_trlr_rec_code) || utl_raw.cast_to_raw(v_trlr_evnt_title);
    utl_file.put_raw( l_output, v_raw );
    utl_file.fflush( l_output );
    utl_file.fclose( l_output );
    dbms_output.put_line( utl_raw.cast_to_varchar2( v_raw ) );
    EXCEPTION
    WHEN OTHERS THEN
         dbms_output.put_line( sqlerrm );
    end;
    /

    oops, sorry i overlooked the fact that the db is 9i; thanks for pointing it out Solomon.
    Not sure about this, but a workaround could be to remove the "\n" characters at the end of each line using one of the many Unix utilities after the file has been created.
    isotope

  • How to remove the blank lines at the end of the JTextArea .

    Hi,
    I need to remove the blank lines in the JTextArea at the end. Suppose i am giving 'A' in the first line and press the enter key two times, after i am giving the 'B' in the third line and press enter key for two times. I need to remove, the last two lines of JTextAreae, . How i can remove these lines?

    String#trim() removes all whitespace from both ends of the String.
    The requirement was to remove line breaks from the end of the String only.
    String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

  • How do I remove bookmarks when the star at the end of the bar is white, not blue?

    I am trying to clean out my bookmarks and certain ones will not go away. The bookmarks that continue to appear even after I have clicked "remove bookmark" are those that do not have a blue star at the end of the website address line. The star at the end of these addresses is visible, but is white (or unfilled), not blue like the ones that have been deleted.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *http://kb.mozillazine.org/Bookmarks_not_saved

  • How to find end of the Page in Crystal ? or I need to add one Horizontal line at the end of the page.--- URGENT HELP NEEDED

    Hi friends,
    I need to add one horizontal line  for the detail section at the end of the page.
    I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
    Is there any feature to find end of the Page.
    I want report format like this.
    set id  |  set name |  date  Name
      1         x           dddd   vijay
                            dddd   sarathi
                            dddd    reddy
    (End of the page)
    Thanks in advance...
    vijay.

    Do you know how many detail records are showing up per page?
    If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
    The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper.

  • How can I Read lines of data from a file starting at the end of the file??

    Can anyone help me with how to read lines of data starting from the end of a file instead of the beginning?? I do not want to load the entire file into memory as the files are very rather large. Instead I want to start at the end of the file and read lines backward , until I find the particular data item i am searching for, then stop.
    Can this be done in Java ? I know it can be done in Perl.
    Thanks.

    Thanks for your suggestion about the RandomAccessFile, I did actually thought about that approach , but wasn't sure it would work.
    I do not want to read the file in a sequential forward manner because the files contain large number of lines of data that have already been processed and therefore there is no need to reprocess these lines of data.
    The Unprocessed lines are always at the the end of the file and these are the data lines I am interesting in getting at without having to read the entire file. Therefore, i figure that if I can read the data from the end of the file then this would be much more efficient.

  • When saving an image in PS CS 6, and going back to Lightroom 5. The original image and the edited image are at the end of the line up.

    I'm using a Mac, Lightroom 5 and Photoshop CS 6. I've started having an issue with the line up in Lightroom 5 after saving an image from PS CS 6. For some reason when I save the edited image form CS 6 it's taking the edited image and the original image and putting it at the end of the line up in Lightroom. If I take the edited image and move it to the right of the original it will put both of them back in the line up where they should be. How do I fix this. I've been looking in the menu for some kind of setting  with no luck.

    Change the sort order. View->Sort

  • How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?

    Hi there,
    How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?
    It is not convenient to remove it every time I sign a document. So, is there a way to turn this off?
    Thank you

    I think you cannot, because for many people it is so important to keep the unsigned document, and most do not realise this until it is too late.

  • Extra Blank line inserted at the end of the target file

    Hi,
    This is File to File senario and target files created with a extra blank line at the end of the file.
    Below is the source file structure and the content.
    <ns0:MT_MOD_FL xmlns:ns0="http://file2file/MES">
       <EMPLOYEE>
          <ID>12</ID>
          <Name>SREENI</Name>
          <Designation>M2</Designation>
       </EMPLOYEE>
       <EMPLOYEE>
          <ID>121</ID>
          <Name>RAJA</Name>
          <Designation>M3</Designation>
       </EMPLOYEE>
    </ns0:MT_MOD_FL>
    Below is the generated target file
    12     SREENI     M2
    121     RAJA     M3
    Here Generated target file suppose to have only two line instead of 3.
    What exactly do i need to change to generate the file with 2 line.
    I am not using any mapping as both source and target message structure are same.
    IN FCC i used only fieldSeparator, even i have not used endSeparator.
    Thanks in Advanace...

    Hi! Raghu,
    Just go through the below Help..documantation
    [http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
    NameA.endSeparator
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    NameA.fieldSeparator
    If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
    If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
    If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
    Regards::
    Amar Srinivas Eli

  • My new version of Firefox (downloaded automatically) on my Mac displays long paragraphs in emails as a single line, so the end of the paragraph is off the screen. How can I make it automatically wrap to fit the screen?

    Long paragraphs in incoming emails display as a single line, with the end of the paragraph running off the screen. I want to make it wrap automatically to fit the screen.

    For the browser window, just drag it to the top left of the screen (click and hold on the top bar with the traffic lights to drag), then in the bottom right of the window you'll see a rectangle with diagonal hatching. Click and hold on that and drag the window to the size you want.
    Clicking on the green dot at top left will expand the window to fit the screen, clicking it again will shrink it back to where it was (this doesn't work in Finder windows quite the same).
    The menu bar size is set in the bowels of the OS, though there may be third-party applications which can alter it.
    As it's size is relative to the screen resolution, you could try reducing the resolution in System Preferences > Displays to see if that would suit you better.

  • Empty lines at the end of the payload generated in FTP server

    Hi All,
    I am facing an issue in one of the use cases that I am trying to implement.
    I am getting a purchase order from one of the trading partners through Oracle B2B.
    B2B forwards this B2BM (B2B message ) to AIAB2BInterface. From AIAB2BInterface my BPEL process gets invoked, which in turn invokes the AdapterComposite which has a FTP adapter that writes the purchase order to a FTP server. PFB the end to end flow.
    PurchaseOrder from ABC trading pertner--> Oracle B2B --> AIAB2BInterface --> TestInputProvABCS --> TestInputAdapter -> Host trading partner picks up the file from FTP location
    In the ProvABCS I retrieve the actual payload from the B2BM and convert it into a string using ora:getContentasString. I am then invoking the adapter composite and sending the string as the input to FTP adapter. At the adapter composite I use a simple native schema (for validation of the input string) which has only one element PO_Info of the type string. But when the file gets generated in the FTP server there are empty lines and junk characters at the end of the file.
    Need some advice on this. Why are the empty lines coming in the end of the file? Please help!
    Thanks

    OK, I cannot figure out a way to modify the JTable (in an extended class) directly.
    So, what I did was to add a wrapper around the TreeTableModel which shows an empty row at the end.
    For those of you who are in a similar situation, the methods that I had to modify are
    public boolean isCellEditable(Object node, int column);
    public int getIndexOfChild(Object parent, Object child);
    public int getChildCount(Object node);
    public Object getChild(Object node, int i);
    These other methods are required if you are using a TreeTable instead of just a table (see http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html)
    public Object getValueAt(Object node, int row, int column);
    public Object getValueAt(Object node, int row, String columnName);
    public void setValueAt(Object node, int row, int column, Object newValue);
    public void setValueAt(Object node, int row, String columnName, Object newValue);
    The signature of above methods is slightly different than the ones at: http://java.sun.com/products/jfc/tsc/articles/treetable2/src/TreeTableModel.java
    This is due to the fact that, if you want to display the serial no. (as in row number), then getValue() can just return the row number. IndexedTreeTableModel is another wrapper around the TreeTableModel which can add an extra column to display the serial number.

  • My midi/audio interface Edirol PCR 1  won't work with Yosemite and Roland have no driver update. Is this the end of the line for this device.

    My midi/audio interface ( Edirol PCR1) will not interface with Yosemite 10.10 and Roland have no driver update, is there any fix for the problem or is the end of the line for this device.

    Same problem here, what a shame as this has been my favorite portable keyboard for ages. Whenever I see one in a store(very rarely) I'll grab it.

  • Ios updates to first generation iPad ?  Is 5.1.1 the end of the line ??

    ios updates to first generation iPad ?  Is 5.1.1 the end of the line ??

    That's not so good!  I found 5.1 was fairly stable but since upgrading to 5.1.1, Safari crashes frequently and it totally refuses to read some PDF's that have been readable in iBooks previously.
    My local Apple Store said the problem was that my IPad (2 years old) is obsolete and I should buy a new one!
    I know people have complained about IOS6 because of the mapping - but I would welcome anything that made it crash less!
    Maybe related but I used to charge the battery every three days (I just use it for email &amp; web in the evenings).  Since the upgrade, I have to charge every day.  3 hours use tonight and it's down to 20%.
    I've completely disabled iCloud (again a shame because I really liked the syncing with my iPhone4s) and the only two apps that are ever active are Safari &amp; Email. 
    Any ideas?  Should I just accept defeat, eBay this one and buy a new one?
    Si

  • HT4623 hey,my iphone (5) is in recovery mode so I downloaded ios 7 from the laptop then after the download was completed the laptop was extracting the software and at the end of the loading line it writes an unknown error occurred (3194) please help me th

    he download was completed the laptop was extracting the software and at the end of the loading line it writes an unknown error occurred (3194) please help me thank you

    3194  =  https://discussions.apple.com/message/18851577#18851577

  • How do you scroll to the end of the address line (url)?

    This has been a frustration for me because there are times I need to erase part of the end, or add to the end.  If I have to erase, I don't want to start in the middle and let it scroll to me as I delete because most of the time, I'm deleting parts that I want to keep.  And I need to be able to add to the end, for example, when I'm searching for the date a web article was written.
    This may have a simple answer because I've searched for this for awhile and I can't find anyone who has this problem. So, I may be a dummy but I really need to know how to do this.  Thanks for your help.

    Snickersnake wrote:
    I don't want to start in the middle and let it scroll to me
    I know of no other way to do it. I tap and hold down until the magnifying glass pops up and then move the magnifying glass all the way to the right to get to the end of the address. I have never found another way to do it.
    This may have a simple answer because I've searched for this for awhile and I can't find anyone who has this problem. So, I may be a dummy but I really need to know how to do this. 
    I wish there was another answer. I guess we must both be dummies because I can't figure another way to do it either in Safari.
    Actually, my solution is to not use Safari. I don't like it and I never did. It is faster than any other iOS browser that I have tried, and I have tried about 8 of them. I keep 6 of them on my iPad and I use iCab Mobile 99.9% of the time. I only use Safari when and if I have to - like when you click on a link in an email and Safari launches as the default browser. Safari pales in comparison when comparing features with other browsers....but I digress.

Maybe you are looking for

  • Ajuda por favor\Help please

    Comprei esse Iphone 4 do imei: 01 326700 516327 4 iccid: 8955 0536 6300 0497 4767 numero de serie: DV6JC01LDP0N de uma amiga que ela ia viajar para o rio de janeiro para estudos, e usei o aparelho normalmente, mas não entendia muito ai resolvi restau

  • How can I install beacons in a place?

    Hi, is there an "easy way" to install beacons in a place and set them without using third-party services like these ones: http://www.fosbury.co/beacon-comparison Thank you for your info Eric

  • Multiple documents with the same Name

    We had a problem reported where an xquery to the xml db returned multiple records. Upon reading the full db (getAllDocuments) and printing each document's name we found out that all the documents had the same the same Name!!! We are using 2.3.10 This

  • Query Selection Screen in Report Designer/WAD

    Hi Gurus, Please help. Iam try to copy two BEx queries into one report using Report Designer & Web Application Designer. Iam sucessfull in it, however when I execute the report either by report designer or WAD, the report does not populate the select

  • InDesign Form Exported Looks Different in Acrobat

    I am trying to keep my form elements looking the same in Acrobat as they do in the InDesign doc that created them. The fields and radio buttons are showing a bluish purple tint when they should be white. Also the radio buttons are larger in Acrobat t