File Conversion with special char ' '

I have a flat file that contains '<' character though it is not an XML file.  I planned to treat the contents like a blog and have something like this:
<recordset>
  <record>
    <data>
      <i>File content</i>
    <data>
  </record>
</recordset>
My File content has something like the following:
<<SAMPLE>>
<_TEST_>
DATEFORMAT, DD-MM-YYYY
DATETIMEFORMAT, DD-MM-YYYY HH24:MI:SS
SOURCESYSTEM, BM_SRC_OPENBPC
<ENDTEST>
How can this be handled as XI will interpret the '<' as XML tag and give an error when it encounters this.

When you use the content conversion of the file adapter, the characters < and > are escaped automatically.
When you want to write your own conversion module, you have to do the escaping by your own, if you want the '<' to be treated as a character. You can leave the < unescaped, when you want to treat it as a tag.
Regards
Stefan

Similar Messages

  • Problem with special chars in BLOB datatype using contains keyword

    Facing problem, when part searching with special chars in BLOB datatype. It is considering the non alpha-numeric chars as a separtor in a provided string
    EX:
    SELECT *
    FROM RESUME_TEST P,grst_candidate d
    WHERE d.candidate_id = p.candidate_id
    AND CONTAINS(P.CAND_RESUME,'%VB.NET%',1) > 0
    Strings: , VB.NET , PL/SQL AS/400 , C etc..
    Followed the below approaches
    1) created a table:
    Syntax: create table resume_Test(cand_id number(10),cand_resume blob);
    2) inserted the values into this table upto 60,000
    3) created a context index
    3.1 created preferences
    Syntax:
    BEGIN
    ctx_ddl.create_preference('try_lexer3','BASIC_LEXER');
    ctx_ddl.set_attribute('try_lexer3','printjoins','-_~!@#$%^&*(){}[],=?\;|><.+');
    END;
    3.2 created context index
    Syntax:
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 500M');
    4) while executing this index, it is taking much time approx 6 hrs(plz explain why it is taking time)
    5) Problems:
    5.1 when searching with string(VB.NET , PL/SQL AS/400 , C etc..) it is considering the special char as a separator
    5.2 used escape char (\) also, but no effect
    5.3 when searching with single char, it is giving error (ORA-29902,ORA-20000,DRG-51030)
    5.4 getting the above error with wild card chars (& ,_, (),{},[])
    So, please explain the clear scenarios, why am getting this error , and how to get the proper results.

    Have you tried adding the / char to the printjoin characters?
    Indexing can take a lot of time, depending on the amount of data and your machine's power. You could try to parallelize the index creation and / or assign more memory
    CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER try_lexer3 memory 2000M') PARALLEL 8;

  • Handling flat file conversion with spaces inbetween  at sender side

    Hi,
       I am facing some problem in configuring the sender JMS adapter file content conversion. Please find the structure of my file below
    010AG  07/17/2007 000130800 TOZ07/17/200710:48:46
    010AU  07/17/2007 006682800 TOZ07/17/200710:48:46
    010-Record key
    AG-Metal code
    07/17/2007 -price Date
    000130800 -pricevalue
    TOZ-Unitofmessure
    07/17/200710:48:46-Unitofmessure
    there are 2spaces inbeween 1and 2nd fields and one space beween 2nd and 3rd ,one space between 3rd and 4th fileds
    I declared my source data strucute like below
    <source_MT>
    <PriceData>
         <Metal code>
          <price Date>
          <pricevalue>
          <Unitofmessure>
           <shipDate>
    </priceData>
    </source_MT>
    I am using this PDF to configure my serder communication channel https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b7
    . but i got struck up in declaring these two fields as i need deal with spaces.
    xml.NameA.fieldNames
    xml.NameA.fieldFixedLengths
    It would be great if sombody tell me how ican decalre content conversion rules for the file
    Thanks
    sudheer

    Hi,
    Please check some links on FCC.
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani

  • Sender File adapter File Conversion with key fields

    Please help me guys, I already spent way too much time on this!
    I checked a couple of BLOGs and I think I'm doing the right thing except I'm not getting the result I would expect.
    I'm trying to create an IDoc using the from a flat file.
    I get the following error:
    During the application mapping com/sap/xi/tf/_MM_TEST_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
    The Source file is this:
    H
    L0015
    The file adapter does create the XML below (looks fine):
      <ns:MT_SINGLE xmlns:ns="http://PPSC_TO_BO_INVOICE">
      <HEADER>
         <ID>H</ID>
      </HEADER>
      <LINE>
         <ID>L</ID>
         <SITE>0015</SITE>
      </LINE>
      </ns:MT_SINGLE>
    When I test the map in IR, with the XML that this file adapter created (above) it works fine!
    Also if I take away the HEADER from the source structure everything works fine and I can create the IDoc, therefore I think something must be wrong in the file conversion, the mapping is so simple there is nothing to fail there.
    The file conversion parameters that I have:
    Document Name: MT_SINGLE
    Document Namespace: http://PPSC_TO_BO_INVOICE
    Document Offset:
    Recordset Name: 
    Recordset Namespace:
    Recordset Structure: HEADER,1,LINE,*
    Recordset Sequence: Ascending
    Recordset per Message:
    Key Field name: ID
    Key Field Type: String (Case-Sensitive)
    LINE.fieldNames: ID,SITE
    LINE.fieldFixedLengths: 1,4
    LINE.keyFieldValue: L
    HEADER.fieldNames: ID
    HEADER.fieldFixedLengths: 1
    HEADER.keyFieldValue: H
    What am I doing wrong???
    Any help is much appreciated.
    Thanks,
    Viktor Varga

    Hi Viktor,
    Basic rules:
    1. Down load XML payload(output From Adapter) and test it in IR mapping program. If it is working there is no reason why it will fail in Runtime. Also Check Cache is up to date.
    Generally the problem lies with namespace.
    Hope this helps
    Regards,
    Satish

  • Replacing space with special char in reporting

    I have created a calculatd Keyfigure where if the consition given in the calculated KF satisfies then it displays 1 otherwise space ,now mu user wants space to be replaced by some special charcter
    Example
    My ckf is like this overallscore >= 90 & Iam applying count on this
    Vendor   CKF
    X              1
    Y
    Z                1
    As vendor y is not satsifying the condition its showing with space now I want to replace space with some special char how is this possible

    Hi Priya,
    You can try this: Instead of space, fill this with a 0. Then in the query properties, set the Show Zero As and give your special char, like may be *. But this will be okay if you do not have other zeros in the report...else you may need to do some VB coding.
    Hope this helps...

  • SLM2048 - Password problems with special chars

    Hi all,
    We´ve got a SLM2048 in use  (most current FW) and I wanted to apply our new password standards  onto that switch. So I changed the password of the user admin and used  special chars, which were =&!= and clicked update and save changes. I  now know, that I should have been using only alphanumerical characters,  but why is there no routine that checks the PW for conformance, before  writing it onto the switch.
    Problem now is, that I am unable to login and  don´t want to do a hard reset, because the configuration would be lost. I  know there should have been a rescue admin user, but there is none.  What can I do now? Any chance that a cisco engineer could get in contact  with me to debug the entered password in the lab and who could then  tell me what was saved to ROM or how I can login again?
    Thanks,
    Philip

    If your switch has a console port, you can try this:
    http://www.opendreams.net/jesse/doc/linksys_srw_switch_password_recovery.txt
    http://www.cisco.com/en/US/products/ps9967/products_qanda_item09186a0080a36735.shtml
    HTH,
    Andrew Lissitz

  • File Conversions with API...!

    Hi guys...!
    I'm searching for a file conversion product that comes with an API, which will enable programmers or developers to integrate it in their program.
    The product must be able to convert PDF, HTML, Excel, Access, Power Point, and Word into a text document. Most of the product that I found do not come with an API.
    Does anyone know a good product that does that...?
    Any suggestion will be welcome....!
    Thanks...

    Would you please btw describe how you want to convert
    a Powerpoint presentation to a txt file?No problem:---------------------------------------------------------------------
    | fancy background fancy background fancy background fancy background |
    | fa+-------------+fancy background fancy background fancy background |
    | fa| little info |fanc <================= KAPWING!  fancy background |
    | fa+-------------+fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy backgroun+-----------------------------------+ ncy background |
    | fancy backgroun| Very important wahwahwah title    |ancy background |
    | fancy backgroun|           (c) some marketeer      |ancy background |
    | fancy backgroun+-----------------------------------+ancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy backgr *PLING!!  background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background fancy background |
    | fancy background fancy background fancy background f+-----------+nd |
    | fancy backgro ZOOOOOFFFF! ======================>d | funky logo |nd |
    | fancy background fancy background fancy background f+-----------+nd |
    ---------------------------------------------------------------------kind regards,
    Jos

  • How to save string in a file with special-chars

    Hello,
    i´m usingthe MD5-llb to create a password.
    Then i  want to save this MD5-string to a file and later read it back abd compare.
    Works perfect with one proplem:
    Some word create a "\r" in the MD5-string and when i save this string to a file and read it back then its read back as a "\n" so that the compare is not working.
    My question is: How can i save a string exactly like it is to somewhere and read it back (also invisible chars)
    For example the word: heinz
    is in MD5: \r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95 (string indicator as codes display)
    when i save the string to a file then i rerad back: \n\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95
    I used the "write text file" and "read text file"
    What do i have to use to save and read the same?
    Thx
    Solved!
    Go to Solution.

    I believe an MD5 hash is 16 bytes long. Use the binary read and write file I/O functions and specify the length of the data to be read or written.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Zip file with special chars are not unzipped properly

    Hi all,
    i have following problem: I want to unzip a zip file. In the zip file there is a file with a special character i.e. "straße". When i call now zipFile.getInputStream( entry ) null will be returned. What can i do? Thanks a lot
    ZipFile zipFile = new ZipFile( file );
        Enumeration enumeration = zipFile.entries();
        while ( enumeration.hasMoreElements() )
          ZipEntry entry = ( ZipEntry ) enumeration.nextElement();
          if ( !entry.isDirectory() )
            InputStream in = null;
            OutputStream out = null;
            try
              in = zipFile.getInputStream( entry );  //<- Here null will be returned When i look at the entry the "ß" of "straße" is represented by á.

    May be you need to specify an ecoding for ZipEntry that would allow special characters?

  • Need help in setting file name with special characters in attachment

    Hi
    We have a requirement where we need to set the file name that contains special characters (like Russian) and send mauil using Java mail.
    If we set the file name as such, the attachment in the email contains garbled filename
    Can you pl let me know how to resolve this?
    We should use the file name as attachment name and this will have say special characters. The receiver who gets the mail should get with the correct attachment name
    One important point.. the attachments are opened from MS outlook.
    Thanks and regards
    Ram
    Edited by: 884910 on 13 Sep, 2011 5:00 AM

    Read the FAQ carefully. You don't need to call encodeText unless you're using a really
    old version of JavaMail.
    And, it depends on whether the mail reader you're using is handling encoded parameters
    according to the (new) MIME standard, or according to the (old) non-standard hack.
    Sadly, without knowing what mail reader the recipient is using, it's impossible to use
    encoded filenames that will work everywhere.

  • 5D Mark II file conversion with CS3

    I just bought a 5D Mark II, but CS3 Bridge won't open my files. So I downloaded DNG converter 4.5, but when I tried to do the conversions I got a message saying "There was an error parsing the file". How can I use CS3 Bridge with my 5D Mark II files?

    So let me make sure I'm understanding everything correctly. Since my studio now additionally shoots with a Canon 5D Mark II camera, me and my staff of photographers has to use the DNG converter after every shoot to convert the Mark II files into a compatible .dng file?
    I'm in the process of converting a shoot from today with the 5.2 DNG converter and it's anything BUT quick. This is basically forcing my studio to upgrade every computer to CS4 because this creates a serious kink in the workflow since we need to remain efficient after each shoot.
    I have 8 computers that could potentially need upgrades to CS4. This is hard on small businesses when Adobe is updating their software so often. Regular updates I understand, but total version changes is another. It's hard for me to believe that this wasn't intentional to drive more sales towards CS4 upgrades. Maybe I'm totally wrong though; I'm just really frustrated right now. Any help?

  • Midnight Commander fails when entering directories with special chars

    I'm not sure if I should tackle this problem here, but here it goes.
    Few days ago I installed Arch, and I'm pretty happy with it. It works lean & clean, but there are still some issues that irritate me. One of these is MC, which acts kind of odd.
    When I enter a directory containing some "special" characters in it's name (eg. "directory_name_has_underscores") it messes MC's view up displaying a warning message saying: "Cannot change to: /prefix/directory_name_has_underscores". However, I can browse through the (with disorted view) directory's contents, until I do Ctrl+O, and return. If I do that I get back to the /prefix/, i.e. the place, just before entering the directory "directory_name_has_underscores".
    I used Slackware before, and haven't experienced any problems back then.
    Those may help understanding the issue:

    It needs a patch since a recent bash update. I would suggest enabling the community repository in pacman.conf and installing mc-utf8 instead, which (a) has been patched already and (b) works with utf8.

  • Pdf file conversion with mac

    How do you convert pdf files to excel or word with a mac?

    Hi,
    Have you purchased the subscription of ExportPDF or are you using acrobat to perfom this task??

  • Mac File on NT server thows fnf exception when file name has special chars

    Help,
    I can get my code to work around this problem but I would like to be
    able to delete the offending file or run some logic on it but it just doesn't understand the file because of the file not found exception.
    Any suggestions ?
    Thanks in advance,
    Dan

    There are several entries in the Bug Database that sound like that. They may have been fixed in 1.4.

  • Need help for filterFunction with special char

    Hi,
    I'm doing a simple search/filter process to a dataGrid collection upon text inputs with filterFunction. What I'm facing problem is, in one of my column field (on which I'm filtering) has dot "." as a suffix and it doesn't includes in the search process.
    Say I've a few values like - i_24., i_245., i_256.
    Now with the present filterfunction when an user inputs i_24. it shows the other record as well - i_245., where the expected entry should only be i_24. (since i_245. is not i_24.5)
    But it seems the search function is not taking the dot "." as a character in the search process, or at least when it is stays as suffix.
    I thouht maybe some RegExp could overcome the problem, but I'm not good in that either.
    Please, help.
    Thank you.
    Regards,
    Santanu

    aSuitableBoy,
    Use the String's "indexOf" method.  (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#indexOf()).
    The syntax would be: "String(<YOUR_COLLECTION>.<FIELD_TO_FILTER_ON>).indexOf(<COMPARE_STRING_FROM_TEXT_INPUT>)
    Here's a really small code snippet that I just wrote up, that works:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="cc();">
              <mx:Script>
                        <![CDATA[
                             import mx.controls.Alert;
                             import mx.collections.ArrayCollection;
                             [Bindable] private var ac:ArrayCollection = new ArrayCollection();
                        private function cc():void
                                       var o:Object = new Object();
                                       o.field1 = "Value 1:";
                                       o.field2 = "i_24.";
                                       o.field3 = "Some other value...";
                                       ac.addItem(o);
                                       o = new Object();
                                       o.field1 = "Value 2:";
                                      o.field2 = "i_245.";
                                       o.field3 = "Some other value...";
                                       ac.addItem(o);
                                       o = new Object();
                                      o.field1 = "Value 3:";
                                       o.field2 = "i_256.";
                                       o.field3 = "Some other value...";
                                       ac.addItem(o);
                        private function filterFunc(o:Object):Boolean
                                       return String(o.field2).indexOf("i_24.") != -1;
                        ]]>
              </mx:Script>
              <mx:HBox width="100%" height="100%">
                             <mx:DataGrid id="dg" height="100%" width="100%" dataProvider="{ac}">
                                            <mx:columns>
                                                           <mx:DataGridColumn headerText="Column 1" dataField="field1" />
                                                           <mx:DataGridColumn headerText="Column 2" dataField="field2" />
                                                           <mx:DataGridColumn headerText="Column 3" dataField="field3" />
                                            </mx:columns>
                             </mx:DataGrid>
                             <mx:Button id="b1" label="Filter" click="{ac.filterFunction = filterFunc; ac.refresh();}" />
              </mx:HBox>
    </mx:Application>

Maybe you are looking for

  • Understanding the sequence choices

    Okay I figured out how I'm gonna name my images. But now I'm trying to understand these sequence choices which are: 1. Sequence # (1). 2. Sequence # (01). 3. Sequence # (001). 4. Sequence # (0001). 5. Sequence # (000001). Do these options correspond

  • Trying to understand serialVersionUID

    so I'm coding up my own event using Eclipse (for pretty much the first time), and it gives me a warning of The serializable class CaptureEvent does not declare a static final serialVersionUID field of type long now ... first I notice that it's a warn

  • Mouse pointer keeps disappearing using trackpad

    hey guys ive just purchased my mac min  and my mouse pointer keeps on disapearing any ideas?

  • How to lock a table in a report program

    Hi all,      I have a requirement inwhich if i have selected one radio button  the table should locked .    and the i need to check wether the table is locked or not by checking the condition.if locked continue else i need to stop. can any one help m

  • FM for Creation of manager (Chief)

    Hi Anyone know how I can create a manager of an org unit programmatically?  I wish to create an A012 relationship in response to a portal request. Regards Ian