Follow-on Question:  special character in SED routine

ref. http://discussions.apple.com/thread.jspa?threadID=1281065&tstart=0
Camelot successfully answered my specific question in the above thread. When I closed that out, I tacked on a related question -- but either that was missed or there's not a straightforward solution.
The question is: how do I deal with a single quotation mark (') in a routine such as
do shell script "echo " & T & " | sed 's/
" & punct_ & "/X/g'
where punct_ is "'"????
Camelot's solution was for brackets by incorporating an "-E" switch:
do shell script "echo " & T & " | sed -E 's/
" & punct_ & "/X/g'
I found that by also adding an escape:
do shell script "echo " & T & " | sed -E 's/
\\" & punct_ & "/X/g'
it worked for brackets and virtually all other standard punctuation -- but not for the single item "'". Now I'm finding that I really need to be able to deal with "'". Nothing I've tried has worked.

Ahh.
Please try this instead.
--SCRIPT
set rr to {}
repeat with p in "`';:&(){}[]<>\""
set p to p's contents
set t to "one two " & p
if p = "'" then
set sed_ to "sed -E 's/'\\''/X/g'" -- i.e. "sed -E 's/'" & "\\'" & "'/X/g'"
else
set sed_ to "sed -E 's/\\" & p & "/X/g'"
end if
set s_ to "echo " & quoted form of t & " | " & sed_
set end of rr to do shell script s_
end repeat
return rr
--END OF SCRIPT
cf.
sh.1.html
Quoting:
Enclosing characters in single quotes preserves the literal value of
each character within the quotes. A single quote may not occur between
single quotes, even when preceded by a backslash.
Good luck,
Hiroto
PS. Regarding NBSPs in my previous post, which are now not present, it is simply because I had editted my post as such! Sorry for any confusion I may have made.
(The reason I often use   or other HTML numerical entities is to prevent fora software from intrepretting some string as formatting directive.)

Similar Messages

  • Escaping certain specific special characters in SED routine

    My interest is to substitute for punctuation in a do shell script SED routine, but certain characters seem to be oblivious of the escape.
    For example:
    set T to "one two " & punct_
    do shell script "echo " & T & " | sed 's/\\" & punct_ & "/X/g'
    works with most punctuation, even ^ and $ which may cause issues in some usages if not escaped. But the following crash:
    "`"
    "<"
    Four of these are an unbalanced bracket or parenthesis issue, the rest ?
    Is there any general workaround? Or have I missed something here?

    Thanks Camelot --
    Once I replaced the escape in the substitute routine (see below) the -E switch certainly does it for the brackets, and for most everything else as well. Two characters (""" and "\") must be escaped in the text to be recognized, but that's no surprise, I think.
    with escape: . . . sed -e 's/\\" & punct_&"/X/g'"
    _But I might as well go for broke_: the single standard keyboard puctuation mark that doesn't get covered is a single quotation mark. I've tried a variety of things, but haven't been able to get it. Is there a solution for that?

  • Special character showing as upside down question mark on oracle report

    We have an oracle report which selects data from a database table. Report shows a name field and names with a special character is showing as upside down question mark.
    The name is Simon John ễễ BaileyŠğčẫ
    But when we run the oracle report the name is showed with 6 upside down question marks
    I am not sure if these characters are unicode? (beyond western european character set)
    Oracle database: 11.2.0.1 with nls_characterset = AL32UTF8
    Oracle Reports Server: 10.1.2.3.0 with the following locale settings:
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    Any ideas, suggesstions, is this font related issue?
    Thanks for your help.

    You mean the operating system where the Oracle reports server resides?

  • Special Character being replaced by Question Marks in Java Mapping

    Hi All,
    I need some help on Java Mapping related to special characters.
    The problem is that i'm using a Java Mapping to add some information to the XML inside the Interface Mapping. This works fine on our development environment but, in our production environment, it replaces the special character with question marks (eg.: á --> ??).
    I'm suspecting of some configuration on the Java Virtual Machine that sets the encoding, but i don't have access to it. Does anyone have any clues about this problem?
    Thanks a lot,
    Leonardo

    Hi Leonardo
    Have a look at this forum thread, this might help you to solve your problem.
    Java Map Causing error because of ampersand &

  • Question on Special Character RSKC

    Hey guys,
    I wonder if you guys can help, our load keep getting special character (line break) which display as square. And just got to know that nothing is stopping out clients from putting in chinese, german or even russian characters into the text box of your source system.
    So I was wondering how do I allow to accept such wide range of special characters in RSKC or can i just switch RSKC off?
    pts will be rewarded

    Hi,
    I think you are facing an invalid character issue.
    This issue can be resolved by correcting the error records in PSA and updating it into the target. For that the first step should be to identify if all the records are there in PSA. You can find out this from checking the Details tab in RSMO, Job log , PSA > sorting records based on status,etc. Once its confirmed force the request to red and delete the particular request from the target cube. Then go to PSA and edit the incorrect records (correcting or blanking out the invalid entries for particular field InfoObject for the incorrect record) and save it. Once all the incorrect records are edited go to RSA1>PSA find the particular request and update to target manually (right click on PSA request > Start update immediately).
    I will add the step by step procedure to edit PSA data and update into target (request based).
    Steps
    1. Force the request to red in RSMO > Status tab.
    2. Delete the request from target.
    3. Come to RSMO > top right you can see PSA maintenace button > click and go to PSA .
    4.Edit the record
    5. Save PSA data.
    6. Got to RSA15 > Search by request name > Right click > update the request from PSA to target.
    This should solve your problem for now.
    As a long term you can apply some user exit in source system side or change your update rules to ensure that this field is getting blanked out before getting loaded in cube or add that particular char to permitted character list in BW (Run TCODE RSKC
    Input the <character> and execute the program) This will add <character> to the allowed characters list.
    Refer
    /people/sap.user72/blog/2006/07/23/invalid-characters-in-sap-bw-3x-myths-and-reality-part-2
    Thanks,
    JituK

  • File Adapter - special character in Filename

    Hi,
    i have a question concerning file adapter.
    Scenario: we are polling files via file sender adapter (FTP).
    Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
    Scope: Special character in filename (not in payload)
    Installed: XI 3.0 SP 19 on Linux
    Questions:
    - what FTP implementation does XI use?
    - What do i have to check/upgrade to unicode?
    - is it an OS problem or an Java problem or a XI problem?
    - or is it not possible copiing files with special characters in filename?
    Thank you very much in advance.
    Michael

    Hi Michael,
    The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
    The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under  www.ietf.org/rfc/rfc0959.txt.
    For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
    Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
    If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
    Just for your information; I haven't encounter a problem with filenames in other projects.
    Good luck!

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'&#946;%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Follow up question...

    I just purchased a Airport Extreme from the Apple Store yesterday. I purchased it to extend/share my iPhone 5 hotspot. I have figured out how to have AEBS join my hotspot, but it does not seem to have access on the Ethernet ports in the back?? This is my needed feature, unfortunately I live in an area that only offers DSL and only 2.5mbps.. .  Using my phone I'm able to receive 10-20mbps on LTE/4G, and fortunately for me I have unlimited data on my hotspot. So I'm set for the wireless devices in my home, but struggling getting wired devices working....
    Any help will be greatly appreciated!
    Thanks,
    Tim
    Info
    iPhone 5 iOS 7.0.4
    Windows 8
    Linux Ubuntu 12.10
    Airport Extreme Base Station, iOS 7.0.4
    This solved my question by Bob Timmons  on Nov 28, 2013 3:33 PM
    No, only the AirPort Express. There are 2 Ethernet ports on the Express. If you need more, you can add an Ethernet switch.
    The Express has a special feature called ProxySTA that allows it to join a network and the Ethernet ports will be enabled when it does this.
    Might be fun to ask one of the sales guys what exactly ProxySTA is and what it does before you explain it to them. Even the "genius" may not know.
    See the answer in context
    Follow Up Question----
    I asked the apple salesperson about proxySTA, first I got a blank stare then, some nonsense to attempt they knew what it was.
    So I picked up the Express, set it up to join my hotspot and it works really well!!! The only problem is the hotspot only allows five connections. The express eats one, that only leaves four! Is there another way to set up the express so it can handle the dhcp so my hotspot only sees the one connection to the express??
    Thanks,
    Tim

    Now please perform a hard reset on the second Express by holding in the reset button for 10 seconds, then release. Allow a full minute for the Express to restart to a slow, blinking amber light.
    Make sure that the Ethernet connection from the first "joining" Express goes to the WAN "O" port on the second Express creating a wireless network.
    Don't worry about the Double NAT message for now, just make sure that you can now log on to the Internet through the second Express wireless network.
    You may need to power off both Express devices and restart the "joining" Express first, then start up the "creating" Express.
    Once you verify that everything is working, you can go back in using AirPort Utillty and click to ignore the Double NAT so that a green light will be displayed on the second Express.

  • Follow-up question on ZXM08U16 table E_TDRSEG  (function group XM08)

    Rich's suggestion worked (on how to retype the E_TDRSEG table received from MIRO by include ZXM08U16 in the function group XM08.
    Before asking my new follow-up question, let me recap the original SAP typing of this table and the way I've retyped it (following Rich's instructions):
    The original SAP typing is:
    E_TDRSEG TYPE  MMCR_TDRSEG
    TYPES: mmcr_tdrseg TYPE mmcr_drseg OCCURS 0,
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr LIKE drseg_cr    OCCURS 0,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    TYPES: BEGIN OF mmcr_drseg.
            INCLUDE STRUCTURE drseg.
    TYPES: cr LIKE drseg_cr OCCURS 0,
           co TYPE mmcr_drseg_co OCCURS 0,
           sm LIKE drseg_sm OCCURS 0,
           charact TYPE rbcharact_instance OCCURS 3,
                                           "instances of characteristics
           uebgmat  TYPE matnr,
           uebrblgp TYPE rblgp,
           selkz_db TYPE selkz,
           rblgp_old TYPE rblgp,           "rblgp before aggregation
           END OF mmcr_drseg.
    I retyped this as follows:
    TYPES:
      ty_cobl_mrm_d        TYPE cobl_mrm_d,
      ty_drseg_cr          TYPE STANDARD TABLE OF drseg_cr with DEFAULT KEY,
      ty_drseg_sm          TYPE STANDARD TABLE OF drseg_sm with DEFAULT KEY,
      ty_charact           TYPE STANDARD TABLE OF rbcharact_instance with DEFAULT KEY,
      BEGIN OF ty_mmcr_drseg_co.
        INCLUDE            TYPE ty_cobl_mrm_d.
        TYPES:
          cr               TYPE ty_drseg_cr ,
          unpl_refwr       TYPE refwr,
      END OF   ty_mmcr_drseg_co,
      ty_co                TYPE STANDARD TABLE OF ty_mmcr_drseg_co
                           WITH DEFAULT KEY,
      BEGIN OF ty_mmcr_drseg.
        INCLUDE            TYPE drseg.
        TYPES:
          cr               TYPE ty_drseg_cr,
          co               TYPE ty_co,
          sm               TYPE ty_drseg_sm,
          charact          TYPE ty_charact,        "instances of characteristics
          uebgmat          TYPE matnr,
          uebrblgp         TYPE rblgp,
          selkz_db         TYPE selkz,
          rblgp_old        TYPE rblgp,             "rblgp before aggregation
      END OF   ty_mmcr_drseg.
      DATA:
        x_mmcr_drseg       TYPE mmcr_drseg,
        x_mmcr_drseg_oo    TYPE ty_mmcr_drseg,
        it_mmcr_drseg      TYPE STANDARD TABLE OF ty_mmcr_drseg,
        x_drseg_cr         TYPE drseg_cr,
        x_drseg_sm         TYPE drseg_sm,
        x_drseg_co         TYPE ty_mmcr_drseg_co.
    But here's my question.  To load the new table from the SAP table, I've had to use the code below.  Is there any way to simplify this code?  (I don't think there is because the drseg structure is included in the old and the new, so you can't simply say new-drseg = old-drseg.  But maybe there's another way to do it and I'm not seeing it.  Also, note that I had to loop on each of  the inner three tables because it wouldn't compile when I tried statements of the form "new-table[] = old-table[].)
      LOOP AT e_tdrseg INTO x_mmcr_drseg.
        x_mmcr_drseg_oo-anln1     = x_mmcr_drseg-anln1.
        x_mmcr_drseg_oo-anln2     = x_mmcr_drseg-anln2.
        x_mmcr_drseg_oo-aplzl     = x_mmcr_drseg-aplzl.
        x_mmcr_drseg_oo-arewr     = x_mmcr_drseg-arewr.
        x_mmcr_drseg_oo-areww     = x_mmcr_drseg-areww.
        x_mmcr_drseg_oo-aufnr     = x_mmcr_drseg-aufnr.
        x_mmcr_drseg_oo-aufpl     = x_mmcr_drseg-aufpl.
        x_mmcr_drseg_oo-basme     = x_mmcr_drseg-aufpl.
        x_mmcr_drseg_oo-bedat     = x_mmcr_drseg-bedat.
        x_mmcr_drseg_oo-begru     = x_mmcr_drseg-begru.
        x_mmcr_drseg_oo-bewae     = x_mmcr_drseg-bewae.
        x_mmcr_drseg_oo-ekgrp     = x_mmcr_drseg-ekgrp.
        x_mmcr_drseg_oo-bpmng     = x_mmcr_drseg-bpmng.
        x_mmcr_drseg_oo-bprme     = x_mmcr_drseg-bprme.
        x_mmcr_drseg_oo-bpumn     = x_mmcr_drseg-bprme.
        x_mmcr_drseg_oo-bpumz     = x_mmcr_drseg-bpumz.
        x_mmcr_drseg_oo-bpwem     = x_mmcr_drseg-bpwem.
        x_mmcr_drseg_oo-bprem     = x_mmcr_drseg-bprem.
        x_mmcr_drseg_oo-bsmng     = x_mmcr_drseg-bsmng.
        x_mmcr_drseg_oo-budat     = x_mmcr_drseg-budat.
        x_mmcr_drseg_oo-bukrs     = x_mmcr_drseg-bukrs.
        x_mmcr_drseg_oo-bwtar     = x_mmcr_drseg-bwtar.
        LOOP at x_mmcr_drseg-cr INTO x_drseg_cr.
          APPEND x_drseg_cr TO x_mmcr_drseg_oo-cr.
        ENDLOOP..
        LOOP at x_mmcr_drseg-co INTO x_drseg_co.
          APPEND x_drseg_co TO x_mmcr_drseg_oo-co.
        ENDLOOP..
        LOOP at x_mmcr_drseg-sm INTO x_drseg_sm.
          APPEND x_drseg_sm TO x_mmcr_drseg_oo-sm.
        ENDLOOP..
        x_mmcr_drseg_oo-charact   = x_mmcr_drseg-charact.
        x_mmcr_drseg_oo-uebgmat   = x_mmcr_drseg-uebgmat.
        x_mmcr_drseg_oo-uebrblgp  = x_mmcr_drseg-uebrblgp.
        x_mmcr_drseg_oo-selkz_db  = x_mmcr_drseg-selkz_db.
        x_mmcr_drseg_oo-rblgp_old = x_mmcr_drseg-rblgp_old.
      ENDLOOP.

    Hi
    I don't think, I'm agree with you, u can only replace some statament:
    LOOP AT E_TDRSEG INTO X_MMCR_DRSEG.
      X_MMCR_DRSEG_OO-ANLN1     = X_MMCR_DRSEG-ANLN1.
      X_MMCR_DRSEG_OO-ANLN2     = X_MMCR_DRSEG-ANLN2.
      X_MMCR_DRSEG_OO-APLZL     = X_MMCR_DRSEG-APLZL.
      X_MMCR_DRSEG_OO-AREWR     = X_MMCR_DRSEG-AREWR.
      X_MMCR_DRSEG_OO-AREWW     = X_MMCR_DRSEG-AREWW.
      X_MMCR_DRSEG_OO-AUFNR     = X_MMCR_DRSEG-AUFNR.
      X_MMCR_DRSEG_OO-AUFPL     = X_MMCR_DRSEG-AUFPL.
      X_MMCR_DRSEG_OO-BASME     = X_MMCR_DRSEG-AUFPL.
      X_MMCR_DRSEG_OO-BEDAT     = X_MMCR_DRSEG-BEDAT.
      X_MMCR_DRSEG_OO-BEGRU     = X_MMCR_DRSEG-BEGRU.
      X_MMCR_DRSEG_OO-BEWAE     = X_MMCR_DRSEG-BEWAE.
      X_MMCR_DRSEG_OO-EKGRP     = X_MMCR_DRSEG-EKGRP.
      X_MMCR_DRSEG_OO-BPMNG     = X_MMCR_DRSEG-BPMNG.
      X_MMCR_DRSEG_OO-BPRME     = X_MMCR_DRSEG-BPRME.
      X_MMCR_DRSEG_OO-BPUMN     = X_MMCR_DRSEG-BPRME.
      X_MMCR_DRSEG_OO-BPUMZ     = X_MMCR_DRSEG-BPUMZ.
      X_MMCR_DRSEG_OO-BPWEM     = X_MMCR_DRSEG-BPWEM.
      X_MMCR_DRSEG_OO-BPREM     = X_MMCR_DRSEG-BPREM.
      X_MMCR_DRSEG_OO-BSMNG     = X_MMCR_DRSEG-BSMNG.
      X_MMCR_DRSEG_OO-BUDAT     = X_MMCR_DRSEG-BUDAT.
      X_MMCR_DRSEG_OO-BUKRS     = X_MMCR_DRSEG-BUKRS.
      X_MMCR_DRSEG_OO-BWTAR     = X_MMCR_DRSEG-BWTAR.
      X_MMCR_DRSEG_OO-CR[]      = X_MMCR_DRSEG-CR[].
      X_MMCR_DRSEG_OO-CO[]      = X_MMCR_DRSEG-CO[].
      X_MMCR_DRSEG_OO-SM[]      = X_MMCR_DRSEG-SM[].
      X_MMCR_DRSEG_OO-CHARACT   = X_MMCR_DRSEG-CHARACT.
      X_MMCR_DRSEG_OO-UEBGMAT   = X_MMCR_DRSEG-UEBGMAT.
      X_MMCR_DRSEG_OO-UEBRBLGP  = X_MMCR_DRSEG-UEBRBLGP.
      X_MMCR_DRSEG_OO-SELKZ_DB  = X_MMCR_DRSEG-SELKZ_DB.
      X_MMCR_DRSEG_OO-RBLGP_OLD = X_MMCR_DRSEG-RBLGP_OLD.
    ENDLOOP.
    If you want to use APPEND statament u need to refresh the target table at very loop:
    LOOP AT E_TDRSEG INTO X_MMCR_DRSEG.
      X_MMCR_DRSEG_OO-ANLN1     = X_MMCR_DRSEG-ANLN1.
      X_MMCR_DRSEG_OO-ANLN2     = X_MMCR_DRSEG-ANLN2.
      X_MMCR_DRSEG_OO-APLZL     = X_MMCR_DRSEG-APLZL.
      X_MMCR_DRSEG_OO-AREWR     = X_MMCR_DRSEG-AREWR.
      X_MMCR_DRSEG_OO-AREWW     = X_MMCR_DRSEG-AREWW.
      X_MMCR_DRSEG_OO-AUFNR     = X_MMCR_DRSEG-AUFNR.
      X_MMCR_DRSEG_OO-AUFPL     = X_MMCR_DRSEG-AUFPL.
      X_MMCR_DRSEG_OO-BASME     = X_MMCR_DRSEG-AUFPL.
      X_MMCR_DRSEG_OO-BEDAT     = X_MMCR_DRSEG-BEDAT.
      X_MMCR_DRSEG_OO-BEGRU     = X_MMCR_DRSEG-BEGRU.
      X_MMCR_DRSEG_OO-BEWAE     = X_MMCR_DRSEG-BEWAE.
      X_MMCR_DRSEG_OO-EKGRP     = X_MMCR_DRSEG-EKGRP.
      X_MMCR_DRSEG_OO-BPMNG     = X_MMCR_DRSEG-BPMNG.
      X_MMCR_DRSEG_OO-BPRME     = X_MMCR_DRSEG-BPRME.
      X_MMCR_DRSEG_OO-BPUMN     = X_MMCR_DRSEG-BPRME.
      X_MMCR_DRSEG_OO-BPUMZ     = X_MMCR_DRSEG-BPUMZ.
      X_MMCR_DRSEG_OO-BPWEM     = X_MMCR_DRSEG-BPWEM.
      X_MMCR_DRSEG_OO-BPREM     = X_MMCR_DRSEG-BPREM.
      X_MMCR_DRSEG_OO-BSMNG     = X_MMCR_DRSEG-BSMNG.
      X_MMCR_DRSEG_OO-BUDAT     = X_MMCR_DRSEG-BUDAT.
      X_MMCR_DRSEG_OO-BUKRS     = X_MMCR_DRSEG-BUKRS.
      X_MMCR_DRSEG_OO-BWTAR     = X_MMCR_DRSEG-BWTAR.
      REFRESH: X_MMCR_DRSEG_OO-CR,
               X_MMCR_DRSEG_OO-CO,
               X_MMCR_DRSEG_OO-SM.
      APPEND LINES OF: X_MMCR_DRSEG-CR TO X_MMCR_DRSEG_OO-CR,
                       X_MMCR_DRSEG-CO TO X_MMCR_DRSEG_OO-CO
                       X_MMCR_DRSEG-SM TO X_MMCR_DRSEG_OO-SM.
      X_MMCR_DRSEG_OO-CHARACT   = X_MMCR_DRSEG-CHARACT.
      X_MMCR_DRSEG_OO-UEBGMAT   = X_MMCR_DRSEG-UEBGMAT.
      X_MMCR_DRSEG_OO-UEBRBLGP  = X_MMCR_DRSEG-UEBRBLGP.
      X_MMCR_DRSEG_OO-SELKZ_DB  = X_MMCR_DRSEG-SELKZ_DB.
      X_MMCR_DRSEG_OO-RBLGP_OLD = X_MMCR_DRSEG-RBLGP_OLD.
    ENDLOOP.
    Max

  • Orchestration exception:Exception occurred when persisting state to the database because of special character ' ' in HL7 message.

    In some scenarios HL7 message is coming with special character ‘’ and HL7 dis-assembler escaping this character with “&#x10;&#x1;”. But while sending out (pass thru pipeline but orchestration trying to persist here at last sendshape.) from orchestration
    this message failing with the error “Exception occurred when persisting state to the database.”
    As per the analysis , Orchestration is unable to convert to xml document from a
    XLANGMessage because of this special character. We have tried to call custom .net class with following code and its failing here as well (I think orchestration also trying to do same way and failing with the message and failing with same error.).
    public void ProcessRequest(XLANGMessage reqMessage)
    XmlDocument xmlDocument = (XmlDocument)reqMessage[0].RetrieveAs(typeof(XmlDocument)); It is failing here with the error
    “ ', hexadecimal value 0x10, is an invalid character. Line 1, position 1865. “
    Note : Please find the special character in the attachment circled in red color. 

    Hi ,
    Please find the xml and the screenshot.
    <OBX_ObservationResult>
      <OBX_1_SetIdObx>3</OBX_1_SetIdObx>
      <OBX_2_ValueType>TX</OBX_2_ValueType>
      <OBX_3_ObservationIdentifier>
        <CE_0_Identifier>P.112</CE_0_Identifier>
        <CE_1_Text>Where pt. will be transported to \T\ where &#x10;&#x1;famly can wait:</CE_1_Text>
      </OBX_3_ObservationIdentifier>
      <OBX_4_ObservationSubId />
      <OBX_5_ObservationValue>Y</OBX_5_ObservationValue>
      <OBX_6_Units>
        <CE_0_Identifier />
      </OBX_6_Units>
      <OBX_7_ReferencesRange />
      <OBX_8_AbnormalFlags />
      <OBX_9_Probability />
      <OBX_10_NatureOfAbnormalTest />
      <OBX_11_ObservationResultStatus>N</OBX_11_ObservationResultStatus>
    </OBX_ObservationResult>

  • Need to prevent special character in generated XML file

    Hello,
    I am using E-business Suite 12.1.3 and XML version 5.6.3.
    My XML file is ending up with a special character (a Latin capital letter U with circumflex) at the end, after the final closing tag.
    Due to this the concurrent program that needs to output the XML is ending with warning.
    My XML file is produced using a PL/SQL procedure, as follows (I've simplified it):
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8" ?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<DOCS>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<EMP_NAME>Michaela Hart</EMP_NAME>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</DOCS>');
    But when I run the concurrent request that creates the output then try to view the output in Internet Explorer I get the following error:
    Invalid at the top level of the document. Error processing resource 'http://servername.domain...
    </DOCS>
    If I view the source of the page in Internet Explorer it shows a square after </DOCS> indicating the special character that has been added.
    I checked this by looking at the output file in unix (cat -v o7766582.req) and it showed up the Latin U character.
    I realise it could be to do with the character set I am using. I checked what we had on the server:
    > echo $NLS_LANG
    American_America.UTF8
    I would have thought that corresponded with the XML declaration character set but I'm not sure.
    Does anyone have any other ideas about why I have this special character, and how it could be removed?
    Thanks in advance,
    Hazel

    Hi AlexAnd,
    thanks very much for your reply.
    I'm now unable to recreate the problem since dbms_xmlgen worked. If I switch back to my previous method it works fine!
    I'm not sure your suggestion would help, as there were no special characters in the data, the special character was added after the last tag I output. I hard coded the data (as in my example) for testing purposes so there was no SQL in use and the special character was still added at the end of the XML output. But I will definitely give it a try if I get the problem again.
    I had the idea that maybe I should have been using FND_FILE.PUT rather than FND_FILE.PUT_LINE but now the error is gone I can't tell if that would have solved the problem either.
    I appreciate your input.
    Regards
    Hazel

  • Error: Invalid dimension member with special character / in BPC NW 7.5 SP7

    Hi experts,
    We are encountering the following problem in our Financial Planning application.
    We are migrating our existing BPC solution from one server to another through backup and restore. The existing solution was on BPC NW 7.5 SP 5. The profit_centre dimension in the existing solutions has several member ids with special character '/' (forward slash). The dimension never threw an error when processed in the existing solution and there is planning transactional data against these member ids.
    While the entire configration , appset , files were successfully restored through UJBR on the new system (BPC 7.5 SP7) through UJBR (backup and restore), the masterdata could not be restored only for this Profit_centre (masterdata for other dimensions were processed successfullu). All the member ids with / are rejected for this dimension. The same error is thrown if processed through the admin client from the member sheet. 
    Error: Dimension member PC_FF/WS/NT is an invalid member ID
              Error in Admin module
    Is there any setting which need to be made to allow / character in member ids? Any suggestion to get around this problem would be much appreciated.
    Thanks
    Abhiman

    Hi Abhiman,
    Yes, you need to maintain the transformation file to correct all dimension member IDs. Can you please refer to the following link with a similar issue:
    conversion file formula not working
    Hope this helps.
    Rgds,
    Poonam

  • Error  wirh release of the requets Special character "_" in generic key

    Hello
    I am trying to release  the request, this reques was generated to installation the baseline  for Peru  but  I got this message:
    Key messages: TABU TFAWC 200SAPLCATS 2100TCA
    Special character "_" in generic key
    Special character "_" in generic key
    Message no. TK287
    Diagnosis
    The generic key 200SAPLCATS 2100TCA was entered for the object TFAWC. All keys that match up to the asterisk are to be transported.
    The key cannot have any special characters before the asterisk, since they are interpreted in different ways by different database systems.
    The key contains the special character _.
    System Response
    The entry is rejected.
    Procedure
    Extend the generic entry, or specify all keys individually
    Any sugstion for this message?
    thanks
    Danny

    Hi Danny,
    Could you resolve issue Message no. TK078, I'm config SD and when i assign division and dis.channel to sales org those action does not show error but when i check request consistensy in se03 i have below error.
    =====================================================
    Object TDAT OVXA has object function "K", but no key                                                                               
    Message no. TK078                                                                               
    Diagnosis                                                                               
    The request/task cannot be saved because an object entry with function K
        does not have a key.                                                                               
    System Response                                                                               
    The system did not save the entry.                                                                               
    The cursor appears on the incorrect entry in the editor.                                                                               
    Procedure                                                                               
    Press Enter once. This branches to the object list in the editor and    
        positions the cursor on the incorrect object entry.                                                                               
    Correct the object function or enter keys for the object entry.         
    ============================================
    I had follow procedure but it do nothing.
    Anybody can help Pls !
    Thanks and Best regards.

  • Special character in interactive report using filter

    Hi,
    I created an interactive report and in this report there is a filter to search any row from specific value linked to a specific column.
    As example this report displays a board with some columns like "SR number", "Status", "Description", ....
    If I use this filter with standard character all works fine :
    - in the filter's list of values I choose "Region" column
    - in the search field I put "SE"
    - click on go and the board is generated with all correct rows.
    If I use this filter with special character (french character in my case), this filter changes this special character and the request doesn't return any row.
    Example :
    - in the filter's list of values I choose "Statut" column
    - in the search field I put "Réception"
    - the filter's expression is modified from "Réception" to "Réception" so no row is returned (filter - Statut contains 'Réception' - no data found)
    I modified the character set used by the apex DAD changing the nls_lang parameter in the wdbsvr.app file from AMERICAN_AMERICA.WE8ISO8859P1 (database character set) to AMERICAN_AMERICA.AL32UTF8
    But when I check the apex DAD character set after the web server restart (about Application Express in my workspace) I get :
    NLS_CHARACTERSET: WE8ISO8859P1
    DAD CHARACTERSET: ISO-8859-1
    No change.
    I used the Application Express 3.2.0.00.27 with Oracle E-business Suite (11.5.10.2).
    Any help will be appreciated.
    Best regards,
    Olivier
    Edited by: oll on 1 mars 2010 20:57
    Edited by: oll on 15 mars 2010 21:17

    Hi,
    Thank you for your answer.
    But I already installed french language on apex.
    Unfortunately issue occurs yet.
    To install the french language I followed these steps :
    - I set the NLS_LANG to American_America.AL32UTF8
    - sqlplus sys/**** as sysdba
    - ALTER SESSION SET CURRENT_SCHEMA = APEX_030200;
    - and I executed the load_fr.sql script
    Thank you for your help.
    Best regards,
    Olivier

Maybe you are looking for