Blank lines inserted at the end of the flat file generated

Hi,
my scenario is idoc to flat file. for each item node in the idoc, one flat file has to be generated. i have used FCC with variable substitution method.
structure is something like this
<TOItem>
  <field1>
  <field2>
</TOItem>
<FieldNode>
< Filename>
the filename value is used to generate the file name  in variable substitution. this field should not appear in the output file. so we have used
Filenode.fieldFixedLengths = 0 and FileNode.fixedLengthTooShortHandling=Cut
with this 2 blank lines are being inserted in the output file.
these lines should not appear in the output file. can anyone guide me how to achive.
Best Regards
Deepika

Do not add this as a separate node. Keep it inside the field strucuture at the end and mentione the length of the field 0. Your problem will be solved.
VJ

Similar Messages

  • Extra blank line inserted after page break

    Hello,
    I am currently having trouble with alignment using templates in BI Publisher.
    I am trying to create a template that will be printed on a pre-printed form.
    Each group in the report should be separated by page so the group has a <?split-by-page-break:?> right before <?end-for-each?>.
    However, when the next page begins, there is a blank line inserted. This messes up the alignment altogether.
    Code is like this:
    <?for-each-group:G_Document;./DOCUMENT?><?sort:current-group()/DOCUMENT;'ascending';data-type='text'?><?for-each:current-group()?>
    ----INSERT Table TEMPLATE HERE---
    <?split-by-page-break:?><?end-for-each?>
    Output turns out like this:
    (Page1)<TABLE TEMPLATE>
    <Page Break>
    (Page 2)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    (Page 3)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    I have found this old thread Split-By-Page-Break inserting extra line that has the exact same problem, however, I have tried all suggested solutions even the last one, and I still am encountering the problem.
    Any help would be greatly appreciated.
    Regards,
    Jovee

    Thanks Varma, for the solution you provided.
    The code for page break was inserted right after the for-each tag, and looks like this:
    <?for-each:current-group()?><xsl:attribute name="break-before">page</attribute>
    Template now works without the extra blank line.

  • 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

  • How to skip blank line (EOF char) at the end of the file while creating ?

    Hi,
    In my program I have to create a file in Text mode using OPEN DATASET statement. This file is being sent to a third party system for their processing. I came to know while creating the file using OPEN DATASET, one LF character is inserted end of the file resulting a blank line end of the file. Thus if my internal table contains 5 reocrds, in the created text file I can see 6 lines where last is a blank. My question is how to remove this blank line which is causing issue in the thirdparty system.
    Here is the Code I have used.
       TRY.
    Write the file in Text Mode
            OPEN DATASET lv_outpf FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE
                                 WITH SMART LINEFEED
                                  MESSAGE lv_msg.
            IF lv_msg IS NOT INITIAL.
              WRITE / lv_msg.
              EXIT.
            ENDIF.
            LOOP AT itab_new INTO st.
              TRANSFER st TO lv_outpf.
            ENDLOOP.
            CLOSE DATASET   lv_outpf.
          CATCH cx_root.                                    "#EC No Handler
        ENDTRY.

    an effective way to do it:
    open your dataset in binary mode, transfer the records but between each record transfer the LF (or CRLF according to your need)
    after the last record you don't transfer the LF

  • Unwanted blank lines inserted into the page bean

    For some reason after using the visual editor and then switching to the java view, I notice that there are extra blank lines inserted between lines in the file. The extra lines can accumulate making the file very large and unusable. This has only started happening after installing the latest hot fix. Is there a fix for this?
    Thanks,

    Hi mitsu,
    We did send out some updates via UpdateCenter just two days back. One of the fixes in there would fix the extra empty lines issue.
    Please get this update downloaded and installed on your Creator Installation.
    It should fix your issue.
    Could you please confirm if this fixes your issue?
    Regards,
    Sakthi

  • 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

  • Is it possible to INSERT a blank page Between existing pages?  Everytime I try it inserts the page at the END of the document.

    Everytime I try it inserts the page at the END of the document.  The HELP is no help, and I can't find any other documentation on being able to do this.  Appreciate the feedback.  Thanks!  - ph

    AP,
    As Fruhulda notes, a Section Break is an Inline character that will move all text below it to the next page. With a combination of graphics and text, and with the graphics having the property of Object Causes Wrap turned on, you will get these apparently odd behaviors. This is why I often favor the Page Layout mode myself. As many experienced users will say, you can do anything in a WP doc that you can do in a PL doc, but in my opinion the WP features often get in the way of simple operation when graphics are involved.
    Glad you are on track now.
    Jerry

  • IDoc to file - how to delete a blank record at the end of the file.

    Hi,
    My senario is IDoc to file.  I have successfully implemented this using FCC. But when i checked the flat file, it has a blank record at the end of the file( i think PI adds one blank line/record at the end of the file).  Please suggest me What i need to do, to delete the blank record .
    Thanks & regards
    Sreeni

    Kindly Check below.
    Check whether the problem is at mapping level of  adapter level.. to do this count no. of rows/IDOC before mapping and after mapping in IE and no. of rows in the output file.
    Thnx
    Subbu

  • 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.

  • 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 to generate blank spaces at end of the record in a flat file with fixed

    Hi,
    I am generating a flat file with fixed length.
    In my ABAP program, i am able to see the spaces at the end of the recors in debug but when download to applicaiton server i am not able to see those spaces.
    How can i generate blank spaces at the end of the record in a flat file?
    Please update
    Thank you

    How are you downloading the file?  And, How are you looking at the file on the application server?
    Can you provide snippets of your code?
    Cheers
    John

  • 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

  • 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.

  • How do I insert a page in the middle of a section in iBook. The insert always puts it at the end of the section.

    I am writing an iBook, and I need to insert a page in the middle of the section without disrupting the layouts on the following pages.  I keep trying to insert, but it always sticks a new page at the end of the section.  Is there any way to add a page, or move pages around in an iBook?

    Using the thumbnail view on the left, select the page you want a new one after, then right click and choose 'Insert Page'....that should do it.

Maybe you are looking for

  • 50mm Macro Life Size Adapter/Converter

    I own the 50mm f:2.5 macro lens.  This lens will focus to 1/2 life size but to get to life size Canon states that I need to buy their unique adapter which costs an arm and a leg.  What is the advantage of using the Canon adapter/converter instead of

  • Message no. MSITEM024 - List contains no data

    Hi everybody, I am facing a strange issue in FBL1N. Just today, when FBL1N is run the above message comes up. The Trade Creditors (Reconciliation) a/c is lint item managed. There are data. At the bottom it is displayed as xxxxx items selected, but no

  • Legend Calendar view of VC doesn't work

    Hello, I have created a model which returning start date and end date of planned maintenance dates. I can show these dates in calendar view but when I try to add legend to this calendar not only I am not able to see any legend but also calendar is al

  • VGA monitor connector

    I can get my monitor connector to play videos only. How do I get the VGA connector to work to fully interactively display all my activity from my iPad to a vga monitor or digital projector. For instance I can not display keynote nor any photos or a P

  • How does one know if Flash is legitimate?

    This is mainly a paranoid question, but how do I know if a Flash installer is legitimate? When I opened Safari today, I got prompted to update Flash. However, the window prompting the Flash update could have been launched from some open browser tab i