Extra Blank Line gets added at the Beginning of the file by File Adapter...

Hello All,
I have created an RFC to File Adapter scenario in PI 7,1 and I am using Content Conversion in the File Adapter to convert the payload structure to flat text file. The input Structure is simple as follows:
<File>
<FName>some file name</Fname>
<Record>
  <Data>
      <Line>Text Lines</Line>
</Date>
</Record>
</File>
while using the following Content Conversion Parameters: While I have defined "Record" as Structure.
Record.addHeaderLine   = 0
Record.fieldSeparator      = 'nl'
Record.endSeparator      = 'nl'
Here everything is working fine except that the text file getting generated has a blank line at the beginning. I was thinking that by adding "Record.addHeaderLine   = 0" parameter, no header line will be added to the file but this seems to be not working. I tried to include the top element "File" with the same parameters and different combinations but was not able to achieve the result and it stopped the file creation altogether.
So, I'll appreciate if anyone can suggest something to get rid of the this blank line at the beginning of the file.
Regards,
Athar

Extra blank line is actually provided for the FNAME node, but not displayed because of it has different structure with Record node.
Change the structure for FNAME to :
<FName>
<Data>
<Line>some file name</Line>
</Data
</Fname>
this way "some file name" will be dispalyed in the text file at the first line of file. To remove it use this trick, define the following values in Content Conversion Parameters:
in the Recordset Structure : FName,Record
FName.fieldFixedLengths     = 0
FName.fixedLengthTooShortHandling =     Cut
FNamee.fieldSeparator = '0'
FName.endSeparator =     '0'
Record.fieldSeparator = 'nl'
Record.endSeparator = 'nl'
Rgds,
Triana

Similar Messages

  • 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

  • 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 lines in table

    I am getting an extra blank line in my table rows using the following statement:
    <?for-each-group@column:TC_CELL;ITEM_DATE?>
    <?for-each-group:current-group();PAY_TYPE?>
    <?if: PAY_TYPE = ‘R’?>
    <?if: sum(current-group()//HOURS)!= ‘0’?>
    <?sum(current-group()//HOURS)?>
    <?end if?>
    <?end if?>
    <?end for-each-group?>
    <?end for-each-group?
    When PAY_TYPE is equal to 'R' it will print the sum, but then there is a blank line under it.
    Ex:
    | 20.00
    |
    But I want:
    | 20.00
    Any ideas?

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Table of Texts results in extra blank lines

    I have a table of texts in a flowed subform that expands for each line of text. The text and font is a chinese font (Adobe Song Std L). I also have autowrapping turn on so it autowraps when the line is too long.
    I would like each new line in the table to have the carriage return as if it is wrapping, but not add an additional blank line like it's a new paragraph.
    So instead of using a table I thought I'd concatenate all the lines together and separate them with a control character for carriage return when I want a line break (still allowing Adobe to autowrap when a particular line is too long).
    I am preparing this string in SAP which gets sent to Adobe. I've tried concatenating '\u000D' but it just shows those characters rather than performing a carriage return.
    Any ideas how I can accomplish this without ending up with a new paragraph (extra blank line) between my lines of text?
    Thanks,
    Scott

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Blank page at the beginning of the report

    I have a Report with a Group Above. I wanted a new page when a new Group began, so I selected the Group and changed Page Break Before to yes. It did start a new page with each Group, BUT there is now a blank page at the beginning of the report. How do I get rid of the blank page?
    Thanks, Wayne

    Hi Wayne,
    I don't know whether the solution provided by Jrg works for you or not. But I solved the problem in a different way.
    Insted using a page break on a repeating frame, I placed a boilerplate item in a corner just below the frame with a " "(white space) and I set the boilerplace item's property "Page Break After/Before" to "Yes". You understand me? just cheating ;)
    That worked for me.
    Cheers,
    Gouri Sankar

  • How do I get the playhead to move to the beginning of the cycle area when selected instead of bar 1 after hitting enter?

    How do I get the playhead to move to the beginning of the cycle area when selected instead of bar 1 after hitting enter?

    Grateful pirate wrote:
    Thanks but I think it's more of a setting thing.
    Worked for years in 9 and know my the key commands. Just takes up  lot of extra time. I know there must be a solution just can't find it myself.
    Thanks again.
    Oh, I see…….when I want something like this to happen I would just engage the >Go To Start<  command (0 on the numeric keyboard in my case) and the play head will position at the beginning of a cycle area (if one is active of course)!
    Hope this helps a bit……..

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Bug report: backspace acts as delete when at the beginning of the line.

    This occurs in Calendar Subject and also in the Android Slack app.
    To reproduce make some text and put your cursor in the middle.  I could understand if it worked as delete if the cursor STARTED at the beginning of the line however it's incredibly jarring to hold down delete to nuke only the first part only to eat up the rest of your text (especially because there's seemingly no UNDO).

    it has been this way with BlackBerry for many years and its a nice feature to be able to delete from the beginning of a line with out adding in another key
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • When paste to vim xterm, blanks lines are added after each line

    Need expert's help:
    When I copy from windows Firefox to my vnc's vim xterm, somehow after each line, several blank lines are added after every single line/paragraph. This is really annoying!
    I don't know how to solve it. I changed a my .vimrc to a very simple one, still not working.
    thanks!
    Qian

    You may have a fileformat problem.  I'm pretty sure this will work but I only did one small test.
    To display the current vim fileformat – this should return either 'dos' or 'unix'.
    :set ff
    Vim usually correctly sets the fileformat automatically upon opening a file but will default to using 'unix' if the format can't be determined.  After pasting the text, try the command,
    :update
    'update' will save the file only if changes to the buffer have occurred.  This command may change the fileformat and all the line endings are now CR-LFs (CR=carriage return; LF=line feed).  Check the fileformat again with
    :set ff
    If ':update' didn't change the line endings, or the file is now a mix of CR-LFs and LF-only line endings, try this,
    :e! ++ff=dos
    This should force rereading the buffer as a dos (Windows) format and properly display the lines. All line endings should now be CR-LF.  You can then manually set the fileformat to 'unix' with
    :set ff=unix
    and finally, save the file with
    :w

  • Why do emails forwarded or replied to gain extra blank lines

    When replying to, or forward emails that contain original email(s), the original emails frequently gain extra blank lines (Spaces). These extra blank lines grow in number each time the message is include in another email until it becomes so big that the emails become difficult to read.
    This happens regardless of whether I created the original emails or not.

    Hi guigs2,
    Thanks for the reply, however, it does not solve the problem.
    I want to include the original message(s) when forwarding or replying. The problem is that the included original message(s) gain extra blank line spaces between paragraphs each time the original message(s) are transmitted. This means the emails automatically grow in length with blank lines. For example: The original message consists of :
    ''Dear guigs2,''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    When this message is replied to, and comes back extra blank links between paragraphs appear. For example:
    ''Dear gwap.''
    ''Thank you''
    ''Kind regards''
    ''guigs2.''
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    ''Dear XXX''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    Each time the original message(s) is/are sent the number of blank lines increases.
    Dear guigs2
    My pleasure.
    Regards
    gwap
    In a message dated 0703/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear gwap.
    Thank you
    Kind regards
    guigs2.
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear guigs2
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Kind regards,
    gwap.

  • Adding a new value at the beginning of the list

    Hi,
    I've a list of values which are hard coded in the 'Elements in List' property for a Combo Box. Now, I want to add a new value at the beginning of the list. It doesn't allow me to add one. I have to delete all values and re-enter from the first which includes the new one. Is there any way that I can add a new value at the beginning of the list without having to remove other values.
    Thanks in advance.
    -- Srinivas

    Hi ,
    In order to implement the appropriate moves you have to use the key combinations : 1) <shift>+<ctrl>+'<' for deletion of the current list item(where the cursor is located)
    2)<shift>+<ctrl>+'>' for appending a blank row in order to add a new element...
    Regards,
    Simon

  • How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    marykaymaas wrote:
    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?
    either Select All and drag to the left (turn on the Lock Automation menuItem if you have any automation curves)
    or
    use the Cycle Region to export the exact length you wish:
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportexactlength
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Premier Pro is adding frames in the beginning of the video

    Hello guys,
    I have the following problem with Premier Pro.
    1. Several videos with different frame rate (24 fps and 30 fps)
    2. I create new sequence 24 fps
    3. Import videos to project and set them all to 24 fps via Interpret Footage.
    4. Now I am adding video to sequence, but Premier is adding 3 frames in the beginning from totally different video.
    What is that?
    Record of my screen is here
    Adobe Premier adds 3 frames in the beginning of the videofile | Screencast-O-Matic - Free online screen recorder for ins…

    I'm not sure why or how PPro is inserting frames from a different clip. But before digging into that, it might be worth exploring why you're using Interpret Footage to change the frame rate. In case you're not aware, Premiere Pro manages mixed frame rates automatically, so you don't have to do anything if you want the 30fps clips to play at normal speed in a 24fps sequence. In fact, changing the frame rate changes a clip's duration and playback speed.

  • When I open a new tab, I would like it to open at the beginning of the tab line, not at the end - is this possible?

    I would like new tabs to open at the beginning of the tab line - not near the end.

    Hey please try this add on [https://addons.mozilla.org/en-US/firefox/addon/tab-control/ Tab Control]

Maybe you are looking for

  • Deleting error messages in ABAP stack and JAVA stack

    Hello, found some useful answers here about deleting messages which are successfully delivered! What I miss is an answer about: a) Error messages in RWB In Component monitoring -> Archiving   you can plan a job to delete messages in status "successfu

  • [Solved] Any alternatives to a very buggy Evolution Mail 3.6?

    Hi All, I've kind-of had it with Evolution mail. I've been running 3.x for a long time, and it's always been a very "klunky" experience, with constant issues of hanging, bad HTML mail rendering, and the occasional (twice in a year) need to fix it in

  • WTF can't get installer to work

    When trying to launch the installer for CF 8, I get this message--- Please select another location to extract the installer to: Options: Choose and Cancel. No matter where I tell it to go, it loops back to this prompt window after some file loading.

  • Writing a formula to populate a field

    Post Author: robertr CA Forum: General Hi - I have a report that includes a "STATUS" field.  I would like to know if there is a way to add an additional value to the STATUS field that is NOT generated by the report?   For example, the "STATUS field o

  • Recommended books for Oracle SQL power user

    I am an OCA 11g preparing for 1Z0-047 [Oracle Database SQL Certified Expert]. Passing 1Z0-047 is not my sole purpose. I wish to become SQL power user. What books do you recommend me except that from Steve O'Hearn? I saw there are quite a lot of advan