Blank spaces at the end of an IDoc text field get lost when posted to R/3

Hi Guys,
I am facing the following issue:
In an XML file-to-Idoc scenario, there are spaces at the end of a text field in the inbound XML file, which I can see when I open the inbound file with a text editor like notepad, and they are kept after XI mapping is executed (I can see them in message mapping simulator). However, it seems that these spaces get lost once the IDoc is posted to SAP R/3 and they are not visible on SAP R/3 side.
Do you have any idea ? Thanks.
Best Regards,
Evaggelos Gkatzios

That means SAP is removing the spaces from IDoc fields, where you spaces are not allowed. Does it create any problem?
Thanks,
Nabendu.

Similar Messages

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

  • Blank space at the end of the TXT file using FDTA (T.code)

    We have created payment runs in Quality Client as follows:
    1. Payment Run ID MSA01 Run Date: 24.02.2011
    2. Payment Run ID MSA11 Run Date: 24.02.2011
    The resulting DME Files are as per our attachment.
    The file got rejected by the bank due to an extra white space on the last
    line of the DME File. The file should end immediately after the last
    character in the fle. We have not done any thing to the DME File structure.
    The connection to SAP CQ1 is now open and your user id and password are
    in the secure area.
    Thanks.
    Regards,

    Hi Kiran,
    Maybe check the following note to see if this addresses your problem:
    [1514624 - Extra CR (carriage return) in DME file created by RFFOGB_T program when run on AIX (unix system) |https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3135313436323426]
    Kind regards,
    Robert
    PS. unable to see in this note to which support package and release the note pertains.

  • Regarding blank space at the end of the record

    Hi All,
    We have a requirement where in which we have to pass either X or space to that field and this field is at the end of the record.
    I can download it to local pc or to an application server.
    If i pass normal space, i'm unable to view it when i download that to the local pc.
    I tried with cl_abap_char_utilities, i was able to get the tab, can you please tell me how can i acheive space both in the presentation and at application server.
    Thanks,
    Bharathi.

    Sowmya answer should work.
    Are you looking for something like this?
    CONSTANTS: BEGIN OF end_of_file,
      x(2) TYPE x VALUE '0D0A',
    END OF end_of_file.
    DATA: BEGIN OF itab OCCURS 0,
      line(20),
    END OF itab.
    itab-line = 'Hello World '.
    CONCATENATE itab-line end_of_file INTO itab-line SEPARATED BY space.
    APPEND itab.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
              filename              = 'C:\helloworldtest.txt'
              write_lf              = ''
              trunc_trailing_blanks = 'X'
         TABLES
              data_tab              = itab.

  • After making a live recording, how does one delete the blank space at the end?

    I have asked everyone I know and no one seems to know how to do this. Thanks, for any info!

    Do you want:
    A) Remove the blank space in your GarageBand Project
    B) Remove the silence in the actual audio file
    Just make sure that you are aware of the difference between an Audio Region and an Audio File
    About A)
    Just resize the right border of the Audio Region. The Audio Region is just a reference to the actual Audio File on your drive. This solution is just for editing your Project it won't get rid of any silence int he actual Audio File
    About B)
    You cannot do that in GarageBand itself. GarageBand only allows editing of the Audio Region (non-destructive editing) not the actual Audio File (destructive editing). A quick way to do it is open the file in QuickTime, crop it and save it.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • String Manipulation with blank space at the end

    Hi All,
    DATA:  str1(999),
           a(10),
           b(10).
    DATA: len TYPE i.
    a = 'Welcome'.
    b = 'To all'.
    CONCATENATE a b INTO str1 RESPECTING BLANKS.
    len = STRLEN( str1 ).
    WRITE: len.
    result : 16.
    If I declared str1 as string result is 20. Because in above case empty space is truncated at last .
    So any otherway to getting result 20 with out declaring str1 as string.

    Hi vinoth ,
    To get spaces at last  ,
    data : str1 type char10 ,
             len type i .
    str1 = 'the ' .                  " space given by pressing space bar button
    len = STRLEN( str1 ).     " in len we get it as 3 , coz 'the ' is 3 only .
    str1 = 'the ' .                 " space given by pressing ALT 2 5 5
    len = STRLEN( str1 ).   " in len we get it as 4 , coz 'the ' is 3 and 1 space is given by pressing ALT 255 .
    This works,
    Hope it might be helpfull,
    Regards,
    Aby

  • 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

  • How do I delete the blank space at the beginning or end of a project?

    I constantly end up with blank space at the beginning or end of a project - how do I remove it?  I get this ALL the time and I jsut can't get rid of it.  Obviously I want my project to start at 0.00 not at 1.xx.
    Thanks.

    That's not a project. You're inside an multicam angle editor. You need to edit the multicam clip into a project. That's where you edit it.

  • Blank lines at the end of SMS - iOS 4

    I've recently upgraded to the iPhone 4 from a 3G and messaging is so much faster, but for some reason occasionally when I send or receive an SMS there is a blank space at the bottom of the message, as if there's a carriage return there. This happens for both messages I send and receive, about every fifth message or so, and seems to be random.
    Anyone else noticed this? I've not had this issue before iOS 4 and although it isn't causing any problems with actually sending and receiving messages, it's quite annoying!

    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 get rid of the blank space at the bottom of the new Firefox menu?

    The new firefox 4 has a different menu system. IT has blank space at the bottom wiht just a plus sign that opens new tabs. I can get that from the + sign by the tabs and don't want it or the rest of the blank space on the bar. I need all the space in the main window I can get. How do I get rid of this?
    Found my own answer, disable Conduit Engine toolbar, whatever the heck that is. Why it's enabled to start with is beyond me.

    Hi stephanie,
    These are unrelated questions/statements.
    Space before and space after a paragraph are controled in the Text Inspector, as you've found out.
    Pages will create a page break whenever there is no room for another line on the page. That break can come anywhere in a paragraph.
    You may be thinking of Widow and Orphan prevention, and the other Pagination controls, found under the More button in the Text Inspector. (If that's what you found, then thanks for the refresher! I hadn't been to that pane for awhile, and had forgotten the variety of pagination controls available.
    Regards,
    Barry

  • Preserve a single space at the end of line using spool command

    Hi,
    Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space?
    For example:
    COL1DATA|COL2DATA|COL3DATA<space1>
    As mentioned in the example the col3 value in the file should end with a single space. And there should not be any delimiters at the end of the row.
    I tried with set trimspool on/off. But, it didn't work. When I say trimspool on - it is trimming all the trailing spaces.
    When I say trimspool off - it is retaining all the trailing spaces to the size of the line.
    But, I do not wish to modify the file through shell commands once it is written thru spool. I mean I do not wish to append spaces to the end of a line using shell script or any other method.
    I do not wish to use other methods like UTL_FILE also.
    Please help me how to do it using spool command?
    Thank you.
    Ramana

    My requirement is that all the trailing spaces should be truncated except the last one in the row.Why?
    As you have discovered a single column in sqlplus, is always a fixed length regardless of the size of the data, if the length of the data varies the output is padded to the maximum or line size with spaces. The trim and trimpsool commands are there to remove all the spaces from the end of a line if there are any. There are no commands to trim all the spaces except one, or even to trim all the spaces except two, or three even.
    If you want such custom processing you should post process the file in the OS using sed, awk or perl or something designed for such things.

  • 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 Remove Blank spaces in the text elements for a smartform

    Hi All,
    Can any one please help me out to remove the blank spaces in the text elements.
    We are printing Labels using the Zebra Printer and we have rotated the windows to 90 degrees.
    We are able to see out text and barcodes. But the issues is when we are printing the label. We are getting spaces in the Text and in the Text elements fields. I have tried to give &g_name(C)&. But it is not working even i worked with style sheet spaces no luck.
    Currently out text and fields are printing like this
    s h r i y a n
    material number
    1111  -001  -000
    They should print like
    shriyan
    1111-001-000
    According to the ZEBRA suggestions we are using the font helve.
    Plase help us it is very urgent.
    Reward point will be given.
    Thanks

    Hi,
    Just use Condense g_name inside the program lines.
    Just to see how it behaves put a hard breakpoint.
    Break Username. and check the condense statement.
    condense <your field> no-gaps.
    Create program lines ahead of printing. give the field you want to condense in the input and output parameters of the program lines.
    Use condense inside the program lines.
    Thanks,
    Vamshi.

  • Space at the end of a word

    Hello,
    Is there a way to recognize space sign at the end of a sentence?
    The meaning of that is that there is a word that somebody typed at the end of the sentence
    and after that pushed the space bar . When looking at the text inside the sap system the text looks fine,
    but when transferring to excel the text doesnt equal because the space at the end of the sentence.
    Please advise
    Yifat

    Do you want to handle that space or just use the text value?
    If you just want to use the text value (i.e 1word - space)...u simply say CONDENSE <UR TEXT VARIABLE>.
    Else the other option is: Find the string length and then handle it the way u want.
    Or if u r sure that every word has that extra space, and u dont want that u can even use SHIFT RIGHT BY 1 PLACE in thet text variable.
    Hope this helps.
    Thanks
    Kiran

  • Implementing multiple page size requirement - extra blank page at the end

    My XMLP report requirement is as follows.
    - The report is printing a bunch of lines.
    - Based on data and layout requirement, lines are grouped into page where they belong (due to complex logic for determining which page a line should go to...this is done in PL/SQL package that is called in the beginning of the RDF trigger)
    - The first page needs to be printed on Legal size paper
    - Subsequent pages (IF NEEDED) need to be printed on Letter size paper
    So some report will have a 1-page output (legal size), and some will have multiple pages (1st page should be legal size, subsequent on letter size).
    Here is a sample XML data:
    <REPORT>
    <LIST_G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>1</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>2</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>3</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    </LIST_G_PAGE_NUMBER>
    </REPORT>
    For this, I created 2-pages RTF template and using the Word Page Setup feature:
    1. First page setup is legal size (go to Page Setup, Paper tab, choose Letter and choose Apply to "Whole Document").
    The first page has the following XMLP tag:
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER=1?><?call:body?><?end if?>
    <?end for-each?>
    <?template:body?>
    for-each loop that prints lines in a tabular format
    <?end template?>
    2. Second page setup is letter size (go to Page Setup, Paper, choose Letter and choose Apply to "This point forward").
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER>1?><?call:body?><-- Ctrl-Break to insert a page break here --> <?end if?>
    <?end for-each?>
    It almost worked, except there is a blank page printed at the end. How do I remove the blank page? I have tried to use <?split-by-page-break:?> instead of the Ctrl-Break, but it did not seem to work (there is no page break happening at all).
    I think the extra page is due to the multiple page nature of the RTF template. Is there a way to control the page size through XMLP tag (or XSL-FO). With that, I can try having a single page template and put the page size control within the XMLP / XSL-FO tag and hope that the extra blank page at the end will go away. Can someone please help?
    Thank you!

    Sorry for the typo in my previous post... I meant Ctrl-Enter (not Ctrl-Break).

Maybe you are looking for