Handling Special character "Carriage Return" in PI

Hi Experts,
I have a scenario where JMs adapter is my source and is sending data which is of Fixed length.
My problem is when JMS is sending the data in any of the incoming fields its passing a carriage return(0D- Hexadecimal character).
When this character is coming the record is getting breaked into two or failing in my channel.
Please guide me in handling this issue and to remove this character from the record.

Hi,
U can handle this issue by ant of these...
1. U can ask the third party sending messages in JMS to replace the carriage return character by none or empty.. when they are sending it to the messaging system.
But i dont think so they are ready to do it....
2.No problem. U can handle this in the mapping itself.
When the record is breaking because of carriage return, u will receive a new record.
In UDF check the length of each record. If it is less than the Fixed Length we are expecting then combine these 2 records into one.
Still less than the Fixed length append 3rd one also.. so on.
U can go for one extra graphical mapping for this.
And then other mapping which u will use noramally.
in Operation Mapping specify them in sequence.
Babu

Similar Messages

  • Handle special character in mapping

    Hi Experts,
    I have requirement to handle special character in mapping.
    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    FILE --- XI --- FILE where Source and target structures are same, using 1:1 mapping with FCC at both the side..
    Input/Output files consist of special charcters ö due to which getting error in mapping.
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java(Compiled Code))
    Do we required Java mapping? Is there any other way to acheive wtihout using Java mapping?
    How can we hadle in mapping?
    Sameer

    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    What has an ö to do with an ampersand?
    Assign the correct encoding to the file adapter channel.

  • How to handle special character in SAP CRM

    Hi all,
    I am facing a problem on SAP CRM Web UI - Contact Creation - When a special character is inserted on address fields of Business
    Partner (e.g. ` ~ ^ etc.), the interface does not understand this character and changes it to a TRIANGLE on pressing enter key.
    Kindly guide as how to handle it or something is missing in terms of (note or patch).
    I am running on SAP CRM 7.0
    Thanks,
    Pradeep Singh Dhadwal

    Hi Pradeep.
    At the end of the day, a character is stored as a byte sequence on disk, and a code page defines the mapping between the byte sequence and any given character.The code page determines what character you can see and enter, therefore different code pages map different characters to the same byte sequence.
    I suggest you to first check if your system is a Unicode system by checking the System menu->Status option->Unicode system field. I'll assume it is.
    Then, please run report RSCP0018 (optionally also RSCPINST and then select Current NLS config pushbutton).
    These reports will show you the actual configuration of languages and code pages of your Application Server. Please check that the correct languages and code pages are configured. If you need to know more about code pages configuration, please check Note 42305, which explains pretty well the whole process.
    Kind regards, and good luck.
    Federico

  • Handle special character in JavaScript

    I am taking a special character "�" from database to display in a listbox using JavaScript. But in the listbox it is viewing as "?"...anybody can help me out for this.

    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    What has an ö to do with an ampersand?
    Assign the correct encoding to the file adapter channel.

  • Handling Special Character in SAP PI

    Hi,
    I have a file to proxy scenario where I have used a complex UDF to get proper data at receiver side.
    Now, from the sender side I am getting  some special characters in the files and due to this the whole file is getting failed with mapping error.
    Is there any way to handle this thing.
    I dont want to use java mapping for this.
    Please help

    Hi Das - If you know the special char.. you can try using string replace function (if it's coming as part of some field)
    else you can try something like suggested in the below thread -
    ABAP Proxy sending special char.
    else as you know java mapping would be the other way..
    You can refer to the below blog for the same-
    Java Mapping: To change the encoding type or replacing special characters.

  • Not able to handle Special Character in Bpel using UTF-8 Encoded XML

    I am using UTF-8 encoded xml for my application,but during conversion of XML from one source to other using simple BIOS java programme , i am not able to convert special characters like(Göblyös Tünde,Makaróni etc).All getting converted to (G�bly�s T�nde,Makar�ni etc).As a result data corruption occurred.Please let me know if any go across this issue.

    Hi,
    Possibly the data you receiving is not UTF-8... Have you check with the data provider?
    Try with other encoding... like ISO-8859-1 for example...
    oracle.soa.common.util.Base64Decoder.decode(zipname.getBytes("ISO-8859-1"));
    Cheers,
    Vlad

  • How to handle special characters in SQL statements

    How do you handle special charactes in a SQL statement? Here is an example:
    update table
    set notefield = 'This is Waldo's note'
    where keyfield = 7;
    Because the database connectivity vi accepts a string datatype wire, the ' in Waldo's note is seen as the end of string and an error is generated.
    Is there a way to tell labview that the ' is part of the string and not the string delimiter?
    Waldo

    If two single quotes don't work, try backslash single quote, like \'
    The backslash is often used as an escape character, meaning to treat the next character literally.
    - tbob
    Inventor of the WORM Global

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • How to handle carriage return/linefeed embedded in text field as first char

    Hi,
    I am trying to use sqlldr to import text that is comma-separated and double quote-enclosed, but contains embedded carriage return/linefeed pairs. I have a control file which works for most cases and looks like this:
    LOAD DATA
    INFILE './foo.new'
    APPEND
    CONTINUEIF LAST PRESERVE (<>'"')
    INTO TABLE <tablename>
    FIELDS TERMINATED BY "," ENCLOSED BY '"'
    TRAILING NULLCOLS
    Unfortunately, this fails when the very first character of the text field is a carriage return/linefeed pair, e.g.,:
    "11","22","33","\r\nThis is the fourth field","","","","",""
    In that case, what is actually the opening double-quote for the fourth field, is interpreted by the CONTINUEIF clause as the end of that line. Can anyone please point me to a solution?
    thanks.
    stan.

    Thanks for the suggestion. Unfortunately, I've already tried it, and it doesn't help. I believe the problem is that sqlldr tries to figure out where each record is delimited before it parses out the field. So, any field-level trimming depends on sqlldr first determining that the cr/lf is actually part of that record, and not an indication of the start of a new record (and it's doing the latter right now). Fwiw, Python's csv parser will handle this type of record just fine.
    regards.
    stan.

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • Request.getParameter(): special character handling problem

    Hello, there:
    This should be an easy question for the gurus in here.
    I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, &Acirc; appears; I couldn't proceed with it.
    I suppose this is a common problem but seems that I didn't find topics about it on this forum.
    So anyone can help? Any encoder/decoder APIs to handle it?
    Thanks a lot,
    Sway

    hi,
    escape can solve ur problem
    use js function to submit form like
    function subForm()
    var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
    mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
    mainForm.submit();
    and use request.getParameter("value");
    u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
    AE

  • Character # is converted to carriage return in proxy call. Please help!

    Hi Experts,
       I have a variable of type string with value: #VSSOO01. In my ABAP code I am sending this value to XI via Proxy. When I check the value that XI has received, it shows as Carriage Return and VSSOO01. In other words # is replaced by carriage return.
    I also checked the message payload sent my proxy in the source system and also it has replaced # by carrige return.
    I have checked the variable value via ABAP debugger before and after assigning to Proxy parameter and it shows correctly.
    I want it should send as it is #VSSOO01.
    How to fix this issue?
    Please help
    Thanks & Regards
    Gopal

    Please use the attribute CR_LF from class CL_ABAP_CHAR_UTILITIES in your program. For eg.
    REPLACE all occurences of CL_ABAP_CHAR_UTILITIES=> CR_LF in lv_string with '#'  in character mode.
    Regards
    Ranganath

  • Carriage Return/Linefeed Character Removal  for a CLOB variable

    Hi,
    Can anyone let me know how I can remove the carriage return from a CLOB variable.
    I tried the replace function
    REPLACE(D_MessageText, CHR(10)), it doesn't give any error,but the output still has the new line character.
    Any help would be really appreciated.
    Regards,
    Anil.

    chr(10) takes care of LINEFEED
    chr(13) takes care of CARRIAGE RETURN

  • Strange character in place of carriage return.

    The carriage returns look fine when viewing the file on my local drive (publish to folder). Then I upload the folder to an ftp site, and see ?? where the carriage returns are. Any ideas?
    www.nebodyandpaint.com
    I'm viewing with Safari v2.0.3.
      Mac OS X (10.4.5)  

    You have the wrong settings on your ftp program. See this note:
    http://homepage.mac.com/thgewecke/iwebchars.html

  • Handling carriage returns (enter)

    I have an application with several pages.
    If the user pushes the carriage return (enter) on many of the pages,
    the application goes back to the login page rather than activating a button on the page.
    What is the best way to trap and ignore carriage returns to avoid this situation?

    I was hoping for another mechanism, but that works.
    Thanks.

Maybe you are looking for

  • Can't install run-time engine on Ubuntu 8.04. Get /bin/sh failed to load.

    Simply receive a message when trying to install the LabView run-time engine .rpm file that says /bin/sh failed to load (or is required, I forget exactly).  I checked, I have BASH installed, and /bin/sh is a shortcut to an executable on my machine.  I

  • How to get unique ID'd count in report

    HI , I have following data in ods. ID  Degree  Field Counter 12    Grad       Computers   1 12    PG          Computers      1 13   Grad       Electronics    1 14   PG       Computers      1 I need a report to display the number of ID's with computer

  • Pdf color looks different in preview and acrobat?

    I notice that the colors in various PDF files I have look different in Preview and in Acrobat. Is there some weird color profile issue? To be specific, I can create a PDF file in various ways, of a slide deck I originally created using Keynote. It ha

  • Unable to read software component version from System Landscape Directory "

    I've worked in past creating/importing SWCV, but this is new system PI7.0 and stuck. A) Is my understanding on resolution correct? Should I go and apply notes 940309 and create client copy of existing client 001                                     OR

  • Poor displayed image resolution?

    I've just started using FormsCentral I've inserted an image created in PhotoShop and saved both as a jpg (600dpi) and as a png. But the displayed image resolution (in FormsCentral preview) for either format is terrible. What have I done wrong?