Replace new line with dot

Hi,
One of the fields is the flex field. In the xml it is like below -
<SORT_FIELD1_INV>110
000
000
110000
0000
0000</SORT_FIELD1_INV>
I want to replace this new line in between with '.' and the output in excel should be
000.000.110000.0000.0000
I tried using the <?xdofx:replace...
but could not get the result.
Thanks.

Hi,
Solution is:
<?xdofx:replace(../../../../../../SORT_FIELD1_INV,chr(10),' ')?>
Note this only works for I think 10.1.3.3.1 or higher.
On 10.1.3.2.0 Build 87 you'll get:
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'chr'
Note I also tried the following which should work, but didn't do any translate!!
<xsl:value-of select='translate(../../../../../../SORT_FIELD1_INV,"&#x20;&#x9;&#x10;&#x13;&#xD;&#xA;"," ")'/>
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/

Similar Messages

  • Pages symbol what is it? looks like lollipop vertical line with dot on end?

    trying to migrate from old pages in I work to new.  totally lost.  see a symbol in my document looks like a vertical line - with dot at top.  is one line tall. can't make it go away.
    What is it?  What does it do?  Had some shapes in the document - until I found what I really wanted - text boxes.  had devil of a time getting rid of shapes, still can't get rid of mystery lollipop.

    You seem to be supplying all your own answers, why not ask yourself?
    If they have an anchor their object placement is:
    Format > Arrange > Object Placement > Move with Text
    Change it to:
    Stay on Page
    Which is the equivalent of the old Floating.
    Peter

  • New line with BT

    Hi all,
    I've recently had my phone line and broadband with Sky cancelled, which are now inactive.
    My phone line was on Sky's own network.
    I have ordered a new line with BT today and have been given an activation date of 07 May. There will be no engineer attending and there was no connection fee.
    My broadband was apparently due to be removed from my old Sky line on 13 May.
    My questions are:
    Is this simply a physical changeover from Sky to BT at the exchange?
    Will I be able to order broadband on the new line even though the broadband has not yet been removed from my old line?
    Might seem like silly questions, but I'm definitely not a techie!
    Apologies if this is in the wrong section.
    Thanks,
    David

    Hi Djwaugh
    It sounds as if it is still on BT's network... as the date is very quick and there is no engineer required.
    It's a simple changeover.
    Regarding broadband, you won't be able to reorder that until your line is back up and running and there are no 'tags' left on the line... best wait till 8th May to check to see if you can get broadband.

  • New lines with JLabel

    I am having problems getting my strings into new lines with jlabels. I know i can do it with <html>...<br>...</html> but the string in the label changes. What is the best way of getting the strings on to mulitaple lines without spliting up words.

    You can do whatever you want to the text area to make it look like a label:
    setBackground(...);
    setForeground(...);
    setBorder(...);
    setEditable(...);
    Its all there in the API.

  • Add new line with sed

    Hello,
    I try to insert a new lines after a model line with a sed command in a script ,like :
    Before :
    ### model line#####
    After :
    ### model line#####
    new line 1
    new line 2
    I try something like this, but the newlinecharacter in not good understand :
    sed -e"s/### model line#####/### model line#####\nnew line 1\nnew line 2/g" my.cnf
    Some know how do that ??
    Thx

    to append newlines using sed, do not do it on cmd-line, because the shell will interprete the script,
    so put in 'sedcmd' something like:
    #-------begin
    /muster/a\
    linea
    lineb
    linec
    #---------end, note the last blanc line, is NEEDED!
    this also works for 'i' insert
    to change/delete blanc lines, you need to know what is a blanc line
    sed 's/^$/:/g'
    will replace blanc lines by ':'
    sed '/^$/d'
    will delete blanc lines
    finally sed has troubles w/ special characters, but it is NOT a bug!
    kind regards, jms

  • New Line with File Content Conversion

    Hi there
    I have a interesting question, I need to add a new line in the middle of a flat file. I read an idoc and using content conversion I convert it to a flat file. Is there any way I can divide the idoc into 2 parts separated by a new line?
    Thanx,
    Jan

    > I have a interesting question, I need to add a new line in the middle of a flat file. I read an idoc and using content conversion I convert it to a flat file. Is there any way I can divide the idoc into 2 parts separated by a new line?
    Hi,
    In my opinion using the regular FCC method I guess it will be not possible to create a new line in the middle of flat file. You can take the help of java mapping as described in bleow mentioned blogs to convert it into flat file. I am not sure but you can try with these options...
    "JAVA MAPPING", an alternate way of reading a CSV file
    Java Mapping to handle flat files in SAP XI
    Regards,
    Sarvesh

  • Replacing New Line character in a hexadecimal string in ECC5.0

    Hi,
    I am trying to create an XML document using ABAP.
    I have created one DOM and later used the DOM to get the XML content into an internal table in form of Hexadecimal String. In that internal table(which contains XML in form of hexadecimal content), I want to search for the new line character and replace it by Space.
    I have used class CL_XML_DOCUMENT to create such document.
    Now, the keyword 'SEARCH' which searches the New Line character, works on the hexadecimal content of the internal table in 46C and I get an XML document. I get the position of the New Line in SY-FDPOS and can do whatever I want. But SEARCH on hexadecimal content is not permitted in ECC 5.0. I get a syntax error when I try to do so. Tried many options but could not succed.
    Would apreciate if anyone can help in finding and replacing characters like new line, tab etc in a hexadecimal string.
    Thanks.
    Can anyone

    Hi!
    When you say hexadecimal string, you mean variable - otherwise string (= character) operations would work?
    Then you have to go for hex handling -> do it yourself. Make something like
    data: lf type x value '0A',
          sp type x value '20',
          i type i.
    I = 0.
    while sy-subrc = 0.
      if hex_string+i(1) = lf.
        hex_string+i(1) = sp.
      endif.
      add 1 to i.
    endwhile.
    Regards,
    Christian

  • Replacing Digital Line with Network Communicat​ions

    Hi, 
    Does making the timeout for the 'EthernetIP Tag Read' VI zero, remove the ability for the VI to wait? When 'EthernetIP Tag Read' VI poll for the current value of the tag, does it add extra time if wait is zero ms?
    I have successful create a code that works using digital signal (see attachment 1). I want to replace some of the digital line with network communication.  Can I just replace digital line SV with 'EthernetIP Tag Read' VI?
    The replacement will happen in my non deterministic loop.
    Attachments:
    attachment 1.jpg ‏143 KB

    Thanks
    I benchmark the time it take to set a 'Digital line' SV and the time it take to use 'Ethernetip tag Read' VI. The ‘Digital line’ SV take less than an ms and the 'EthernetIP tag Read' VI take about 33 ms.   That mean every time the loop run it will take an extra ~33ms to run any of my states.  
     My initial question was asking how I can have the same level of smaller timing accuracy (similar to the digital line) using the networking communication.  From the benchmarking test I did, I do not think that is not possible. Am I right?
    What is a normal timeout time? What is a great way to handle EthernetIP timing out? Can you provide some exaples ?  or link to similar situations. 
    Attachments:
    Replacing DI line SV with Netwrok comm.png ‏23 KB

  • How do I stop iTunes Match from replacing new artwork with old artwork?

    So, for a while I customized the art on some tracks in my music library, and unfortunately those tracks had the customized art when I uploaded them to iTunes Match. Now, whenever I try to change the artwork back to the original art, it reverts to the synced art whenever Match updates. I've tried deleting the tracks from Match and off the computer and then replacing them with files from my back-up drive, but as soon as Match sees them it gives them the old art again. It's pretty damned irritating. Any idea how to get it to stop?

    Provided you are the sole user of the library, with no other occurence of iTunes Match service operating, it is possible to win!
    The steps are annoying and very manual, as follows:
    1.  Create a Secure Backup of the source Library;
    2.  Ensure no other instances of iTunes Match are operating on related libraries or devices;
    3.  Turn off iTunes Match for your source Library;
    4.  Make the changes using 'Get Info' on the Song files concerned
        (a) Select the incorrect Album Art & delete;
        (b) Confirm cover flow for the selected Songs is showing absent Art - blank with a note symbol;
        (c) Reselect the Song files with 'Get Info';
        (d) Paste in New Album Art';
        (e)  Confirm cover flow of the selected Songs is showing the new Art;
        (f)  Repeat (a) to (e) for each set of Songs as needed.
    5.  Confirm when all complete, via cover flow, that the correct Art is in place for all Songs.
    6.  Take a second secure backup of the library to ensure that you will never need to add Art a second time.
    7.  Turn on iTunes Match; Update iTunes Match; Allow library to remain connected for some time (an hour+).
    8.  Repeat step 5.
    9.  Gradually turn on related libraries / devices one by one.
    10.  You will see the new Album Art will have replaced the old Album Art.
    Note:  iTunes Match does the promulgation of Art as a background task, so it make take some time for the correct Art to appear on all Libraries and Devices - at no stage should Songs in your source library revert to incorrect Art - if this happens check all associated Song files to make sure that they all have the correct Art, restoring via file import from the secure backups as needed.
    You will need to check after a few days on a Song by Song cover flow view to ensure that every incorrect Art occurence has been eradicated - repeating the steps above for any remaining trouble makers.
    Having completed this first hand can confirm that the excellent result is worth the effort!

  • Acrobat is Replacing Certain Letters with Dots

    Hi. I am using Acrobat 9 to produce PDF documents from InDesign CS4 in Windows XP.
    Of late, when I make a PDF from my ID book file, it is replacing the letters "fi" or "fl" (as in file, flow, specification, etc.) with a dot. I cannot figure out why this is happening. It only started happening recently. I notice that this anomaly doesn't occur if the "F" is capitalized (as in Figure).
    What can be done? Any help appreciated.
    - Shady

    Thanks everyone! Wow, I cannot believe I did not know about File > Export. I was taught years ago to use Print > Adobe PDF. Whatever, the export function cleared the problem up...still curious as to how the dot problem could have happened all of a sudden when it didn't for months before. Maybe a Windows *.dll file from an upgrade; who knows?
    All the Best,
    - Shady

  • I downloaded firefox 8 on neww computer and accidently replaced new toolbar with the old style. How do I get bck the new toolbar?

    When setting up foxfire 8 on my new computer I had the new toolbar at the top with the orange button on the top left. In the process of set up I accidentally replaced it with the former toolbar that is tiny and at the top left with file,edit view etc. I'd like to go back to the new type toolbar, but am not savvy enough to figure out how. Thanks for the help.

    Right-click at the top, in the blank portion, next to your tabs and un-check the "Menu Bar". You can still access your Menu Bar by pressing the "ALT" key, if and when you need to.

  • Replacing inline lines with underscores

    Hi all,
    I have a test manual full of inline .5-point lines that act as fill-in-the-blanks lines. I'm trying to convert these lines to underscore characters. I can find them by searching for anchored objects, but I can't see a way to add more detail to distinguish one type of rule from another. The rules aren't styled with any character or object styles (which would be one way to do it), so I need to find another way. There are basically three different lengths of inline rules for short answers, medium-length answers, and longer full line answers (I can actually do this one with GREP Find/Replace). The length of each type is consistent (4p for short, 6p for medium).
    I'm working on cobbling together a script using some generous example scripts posted in this forum, but any advice or pointers would be appreciated! I'll share with everyone any results.
    Many thanks!
    Jason

    Hi Jason,
    I have a test manual full of inline .5-point lines that act as fill-in-the-blanks lines. I'm trying to convert these lines to underscore characters. I can find them by searching for anchored objects, but I can't see a way to add more detail to distinguish one type of rule from another. The rules aren't styled with any character or object styles (which would be one way to do it), so I need to find another way. There are basically three different lengths of inline rules for short answers, medium-length answers, and longer full line answers (I can actually do this one with GREP Find/Replace). The length of each type is consistent (4p for short, 6p for medium).
    If by "different type" you mean "different length" - here is your answer
    You should check .GeometricBounds of your Anchored / InLine Graphics.
    Returned array is (Y1,X1,Y2,X2) where first pair is TopLeft corner and second pair is BottomRight corner.
    robin
    www.adobescripts.co.uk

  • Replace new line from xml string

    hi,
    I am getting an input string as given below
    <div class="titleBar">               
              <h1>sssPRIVACY POLICY AND YOUR CALIFORNIA PRIVACY RIGHTS</h1>               
         </div>
         <div class="txtPod"> And I want to replace all the blank lines and the output should be like
    <div class="titleBar">
              <h1>sssPRIVACY POLICY AND YOUR CALIFORNIA PRIVACY RIGHTS</h1>
         </div>
         <div class="txtPod"> I tried replaceAll("\n",""), but that doesn't seem to work.
    Can somebody help me on this

    str = str.replaceAll("(?m)^[ \t]*\r?\n", "");

  • How to replace new version with earlier version of app?

    I just downloaded to iTunes an upgrade for an app (CreditCardTerminal 3.11) & then discovered this version should NOT be installed on original iPhones. I haven't synced yet, so I still have the correct version 3.10 on the iPhone.
    How can I delete 3.11 from iTunes and then re-sync 3.10 from the phone back to iTunes? When I mark iTunes to delete the app, I get a warning that syncing will delete it from the iPhone too. The one slim hope I see is that it might not delete version 3.10 on the iPhone when I delete 3.11 in iTunes if it sees them as separate apps?

    I would have thought this was possible, however it seems to have been overlooked.
    People with iPads are in the same situation, if they inadvertantly download an iOS4 updated app (which previously worked on 3.x) into their iTunes library, and have to reset their device, they will be unable to sync that app across.
    I know iTunes puts the old version of the app into the Recycle Bin/Trash, however I would not expect the vast majority of users to be aware of this, and to even realise the differences between iOS versions.
    Would it not be an idea for Apple to allow people to download the last known version of an app that was compatible with a certain OS version? Or to choose a "preferred device" or similar in their iTunes account so it will automatically filter the results? The user base of original iPhones and iPod Touches must be pretty large.

  • Chicorny replaces new snapshot with old ones!!!!!!

    Everytime I try to take a picture, an old snapshot keeps appearing. It refuses to save my new picture.? basically all the pictures I take on my webcam saves as this old snapshot!!! Anyone can help??!!

    To clarify. The %TYPE formulation is a PL/SQL thang. For creating tables (or any DDL) we are restricted to SQL commands only, and that requires explicit data typing.
    Cheers, APC

Maybe you are looking for

  • Error while trying to run Bex Query -------- Field symbol is not assigned.

    Hello Every body, I am facing the following error after giving some value in Selection screen and trying to run the Bex Query ERROR : Field symbol is not assigned. Thanks in advance, Praveen

  • Getting error while transporting standard text

    Hi, I am trying to transport the standard text(created in SO10), by using RSTXTRAN program but i am getting this error message " Changes to objects are not allowed in correction/Repair" after click on "Trsfr texts to corr" button. I am doing in the f

  • Binding string values in SPARQL

    I'm having a problem implementing a bind parameter for a SPARQL query using the Jena Adapter. The examples provided in the documentation imply that all of the bound parameters will be URIs, either provided, or results of a subquery. I would like to b

  • User context and roll area

    hello plz help me what is roll area and user context????? reply thaknx aafaq husain

  • Table for consumption forecast results?

    Hi everyone, I have executed consumption forecast for material A, and I can see the forecasted values in table PROW. The problem is that I do not know how to relationate this table with material A. I thought I could use field PNUM2 which also exist i