Updateing specific characters (URGENT)

THe given below is my table and i want to replace ST in address column with STREET in address_form column. but the problem is this that i dont want to replace ST from STUART to STREETUART. I used the given below query and i got the output as given in table 2. i want the output as given in table 1
UPDATE A SET ADDRESS_FORM=REPLACE(ADDRESS,' ST', 'STREET')
TABLE 1
ADDRESS ADDRESS_FROM
68 AUSTRAL ST 68 AUSTRAL STREET
GREAT EASTERN ST GREAT EASTERN STREET
NTH STUART ST NTH STUART STREET
TABLE 2
ADDRESS ADDRESS_FROM
68 AUSTRAL ST 68 AUSTRAL STREET
GREAT EASTERN ST GREAT EASTERN STREET
NTH STUART ST NTH STREETUART STREET

WITH these queries i am getting the output given below. hope you will get it
SELECT IDX,address,REPLACE(REPLACE(ADDRESS_form,' ST +',' STREET '),' ST$',' STREET') ADDRESS_form
FROM TEMP_AU_POI_INTERM where instr(address_form, ' ST') > 0;
SELECT IDX,address,RTRIM(REPLACE(ADDRESS_form,' ST +|ST$',' STREET ')) ADDRESS_form FROM TEMP_AU_POI_INTERM where instr(address_form, ' ST') > 0
and instr(address_form, ' STREET') = 0;
SELECT IDX,ADDRESS,RTRIM(REPLACE(ADDRESS_FORM,'ST( +|$)','STREET\1'))
FROM TEMP_AU_POI_INTERM where instr(address_form, ' ST') > 0
and instr(address_form, ' STREET') = 0;
OUTPUT
COWPER ST     COWPER ST
410 CAMPBELL ST     410 CAMPBELL ST
CNR ECHUCA ST     CNR ECHUCA ST
130 HIGH ST     130 HIGH ST
while i want to replace them aslo to STREET

Similar Messages

  • How to update specific fields of a db table using MODIFY

    Hi all.
    I understand that MODIFY allows us to insert a record into the database if the a record with the same key is not there. If a record is there, it would update that record.
    However, when the record is there, could i update SPECIFIC fields of the record, instead of updating ALL fields of the record?

    Yes, you can with exception that you can not modify primary key values.
    Here are the details about MODIFY db table command with examples
    MODIFY - Change a database table
    Variants:
    MODIFY dbtab. or   MODIFY *dbtab. or
      MODIFY (dbtabname) ... .
    MODIFY dbtab FROM TABLE itab. or   MODIFY (dbtabname) FROM TABLE itab.
    MODIFY dbtab VERSION vers. or   MODIFY *dbtab VERSION vers.
    Effect
    Inserts new lines or updates existing lines in a database table (s. relational database). If a line with the specified primary key already exists, an UPDATE is executed. Otherwise, an INSERT is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP Dictionary. If the program contains the name of the database table, it must also have a corresponding TABLES statement. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view, if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".
    MODIFY belongs to the Open SQL command set.
    When the statement has been executed, the system field SY-DBCNT contains the number of edited lines.
    The Return code is set as follows:
    SY-SUBRC = 0:
        All lines were successfully inserted or updated.
    SY-SUBRC = 4:
        One or more lines could not be inserted or updated.
    Notes
       1. You cannot modify a line if there is already a line in the table with identical key field values in a UNIQUE index.
       2. Automatic definition of INSERT and UPDATE is expensive. You should therefore use MODIFY only if you cannot define the INSERT and UPDATE cases yourself in the program.
       3. Since the MODIFY statement does not perform authority checks, you have to program them yourself.
       4. Adding or changing lines with the MODIFY command is only completed after a database commit (see LUW) has been performed. Before the database commit has been performed, any database changes can be reversed with a database rollback (see Programming transactions).
       5. Synchronization of simultanous accesses by several users to the same set of data cannot be exclusively achieved with the lock mechanism of the database system. In several cases, you are recommended to use the SAP lock mechanism.
    Variant 1
    MODIFY dbtab. or
    MODIFY *dbtab. or
    MODIFY (dbtabname) ... .
    Extras:
    ... FROM wa
    ... CLIENT SPECIFIED
    See Cannot Use Short Forms and
    Cannot Use *Work Areas.
    Effect
    Inserts a new line or updates an existing line in a database table. If you specify the name of the database table yourself, the primary key for identifying the line to be inserted or updated and the relevant values are taken from the table work area dbtab or *dbtab (see TABLES). If you declare the name of the database table explicitly, the program must also contain a corresponding TABLES statement. If the name of the database table is not determined until runtime, you need to use the addition ... FROM wa.
    Example
    Insert or change data of the customer Robinson in the current client:
    TABLES SCUSTOM.
    SCUSTOM-ID        = '12400177'.
    SCUSTOM-NAME      = 'Robinson'.
    SCUSTOM-POSTCODE  = '69542'.
    SCUSTOM-CITY      = 'Heidelberg'.
    SCUSTOM-CUSTTYPE  = 'P'.
    SCUSTOM-DISCOUNT  = '003'.
    SCUSTOM-TELEPHONE = '06201/44889'.
    MODIFY SCUSTOM.
    Addition 1
    ... FROM wa
    Effect
    The values for the line to be inserted or updated are not taken from the table work area dbtab, but from the explicitly specified work area wa. When doing this, the data is read from left to right according to the structure of the table work area dbtab (see TABLES). Since the structure of wa is not taken into account, the work area wa must be at least as wide (see DATA) as the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the table work area. Otherwise, a runtime error occurs.
    Note
    If a work area is not explicitly specified, the values for the line to be inserted or updated are also taken from the table work area dbtab if the statement is in a FORM or FUNCTION where the table work area is stored in a formal parameter or local variable of the same name.
    Addition 2
    ... CLIENT SPECIFIED
    Effect
    Switches off automatic client handling. This allows you to edit data across all clients even when dealing with client-specific tables. The client field is treated like a normal table field that can be programmed to accept values in the table work area dbtab or *dbtab where the line to be edited occurs.
    The addition CLIENT SPECIFIED must be specified immediately after the name of the database table.
    Variant 2
    MODIFY dbtab FROM TABLE itab.or
    MODIFY (dbtabname) FROM TABLE itab.
    Addition:
    ... CLIENT SPECIFIED
    Effect
    Mass modify: Inserts new lines or updates existing lines of a database table. The primary keys for identifying the lines to be inserted or updated and the relevant values are taken from the internal table itab. The lines of the internal table itab must satisfy the same conditions as the work area wa in addition 1 to variant 1.
    Note
    If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0.
    Addition
    ... CLIENT SPECIFIED
    Effect
    As for variant 1.
    Variant 3
    MODIFY dbtab VERSION vers. or
    MODIFY *dbtab VERSION vers.
    See Cannot Use the VERSION Addition.
    Note
    This variant is obsolete.
    Effect
    Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab.
    SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC <> 0 is not possible since any other result causes a runtime error.
    Hope this helps.
    ashish

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • Copy paste text from pdf exported from Microsoft.Reporting.WinForms.ReportViewer control with Czech specific characters produced box charactex or ?.

    Used Visual studio 2012. In our project there is used the Microsoft.Reporting.WinForms.ReportViewer control. In the report handled by the control are TextBoxs with a text with Czech specific characters e.g. (ř, ě, ...) . When exporting the report to pdf,
    characters are displayed correctly. However when the text with czech characters in the pdf if copied and  placed into the seach box in the pdf document only box characters are displayed. The TextBox in the report use the default font Arial. When the report
    is exported to Word, and then the Word document is saved as a pdf document, its ok. Coping a text with Czech charactes in the result pdf document and pasting into the search box displays again Czech characters not box characters.
    Also when in the report handled by the ReportViewer control are several Tex Boxes and some of the boxes contains Czech characters and some not, after exporting to a pdf document there is problem with text selection. When in the pdf document I'm trying to
    select several paragraphs, some with Czech characters and some without them, selection behaves strangely and jumps from one paragraph to another unexpectedly.

    Hi,
    did you managed to avoid those squares?
    BTW: if any such char. is encountered in a line, the entire line of text is grabbled.
    I've tried even the ReportViewer from MSSQL 2014, but got the same problem. When I've tried IL Spy, I found a code, where it is checked if the PDFFont is composite - depending on that a glyph is created. But that still only a guess.
    I've tried Telerik's reporting, they have similar problem (beside other), but not with the special characters. They produced scuares for some sequences like: ft, fi, tí.
    Please give any info you got.
    Until then my advices for you:
    a) try JasperReports (seems theyre most advanced, although it is java)
    b) Developer express has quiet quality reports - and it seems they got those special chars. right :D
    c) I created a ticket and waiting for Telerik's response (but if I had to choose reporting, I vould stick with a) or b)

  • I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add info), it overwrites part of the record following it. I am using labview 6.0

    I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add or change info), it overwrites part of the record following it. I am using labview 6.0. I need to be able to insert information into the middle of a file without disturbing the data before and after

    It's hard to give more specifics without more detail, but in general you're going to need to read in the entire file, split it into three pieces (everything before the record of interest, the record itself, and everything after the record of interest), modify the record, reassemble the three pieces in proper order, and write the whole thing back to the file.Of course if the file is very large you might not want to actually implement it this way, but conceptually at least, this is what you are looking at.If this file some sort of proprietary format?Mike...PS: this type of issue is why I really like databases...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Language specific characters changes when .irpt executed.

    Hi,
    When i execute .irtp page, language specific characters changes to strange signs.
    How can it be solved?
    Thanks.

    Hi Jeremy,
    Below is meta tags for Turkish
    lt & meta http-equiv="Content-Type" content="text/html; charset=windows-1254" / & gt
    lt & meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-9"  / & gt
    lt & meta http-equiv="Content-Language" content="tr" / & gt
    I tryed but result is the same.
    I think .irpt has no Turkish support.
    Thanks.

  • Language specific characters with JDBC

    Does anybody know how to insert language specific characters to Oracle tables using JDBC and without the overhead of unicode conversion back and forth?
    At the moment, all we can do is to convert those characters to unicode when inserting, and perform a reverse conversion when getting back from a resultset. This is cumbersome in large text data.
    Is there a way to configure the RDBMS and/or the operating system for this purpose? We are using Oracle 7.3.4 on Windows NT 4.0 SP5, Oracle JDBC Driver 8.1.6, and Java Web Server 2.0 (JDBC 1.0 compliant). Suggestions for Oracle 8.1.6 and Solaris 2.6 will also be appreciated.
    Ozan & Serpil

    Hi Jeremy,
    Below is meta tags for Turkish
    lt & meta http-equiv="Content-Type" content="text/html; charset=windows-1254" / & gt
    lt & meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-9"  / & gt
    lt & meta http-equiv="Content-Language" content="tr" / & gt
    I tryed but result is the same.
    I think .irpt has no Turkish support.
    Thanks.

  • Problem with language specific characters on e-mail sending

    Hi,
    Problem with language specific characters on e-mail sending.
    How can it be fixed?
    Thanks.

    Hi,
    try to work on the charecter code set UTF-8 or UTF-16. You can define this in html.
    Or encode the charecter using java script.
    Hope this may help you.
    Deepak!!!

  • Invalid characters (URGENT please)

    Hello,
    I have two independent systems where in one of the systems users maintain characters like (Á É Í Ó Ú Á É Í Ó Ú Ä Ë Ï Ö Ü….etc). I am not sure how many different type of characters users maintain but I want to populate all of these in the master data.
    Because I do not know all the Special characters, I cannot mention all of them in RSKC. Is there any functional module that converts special characters like mentioned above in to English? ALTERNATIVELY, is there any other work around to sort it out
    I cannot use ALL_CAPITAL in RSKC as well.
    Thanks and Regards,
    Harish Mulaka

    Apparao,
    We created a Function Module with this code and just call it in the Tranfer Rules for the specific InfoObject with Invalid Characters issue. It replaces any invalid character by " " (space).
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_VALUE)
    *"     REFERENCE(I_INFOOBJECT) TYPE  RSD_IOBJNM
    *"  EXPORTING
    *"     VALUE(O_VALUE)
    DATA: length       TYPE I,
           index        TYPE I,
           current_char TYPE C,
           result(60)   TYPE C,
           infoobject   TYPE RSD_IOBJNM.
    CLEAR: result,
            infoobject.
    MOVE I_VALUE      TO result.
    MOVE I_INFOOBJECT TO infoobject.
    TRANSLATE result TO UPPER CASE.
    length = strlen( result ).
    index  = -1.
    DO length TIMES.
      index        = index + 1.
      current_char = result+index(1).
      CALL FUNCTION 'RSKC_CHAVL_OF_IOBJ_CHECK'
       EXPORTING
        I_CHAVL            = current_char
        I_IOBJNM           = infoobject
      I_S_COB_PRO        =
      I_T_COB_PRO_CMP    =
       EXCEPTIONS
        CHAVL_NOT_ALLOWED  = 1.
      IF SY-SUBRC <> 0.
       MOVE ' ' TO result+index(1).
      ENDIF.
    ENDDO.
    MOVE result TO O_VALUE.
    ENDFUNCTION.
    A sample call:
    CALL FUNCTION 'ZFM_ELIMINATE_INVALID_CHARS'
        EXPORTING
          I_VALUE      = TRAN_STRUCTURE-0MATERIAL
          I_INFOOBJECT = '0MATERIAL'
        IMPORTING
          O_VALUE      = RESULT.
    Hope it helps.
    Regards,
    Luis

  • Updating Thai characters for CMIR at header nad Item Level In LSMW

    Hi Experts,
    We are in the process of Upadting Thai characters for CMIR in VA22 transaction Using LSMW.
    In that We have used BAPI_CUSTOMERQUOTATION_CHANGE to Update the Thai Characters.
    The text which i am updating gets updated in va22 when the length of line is upto 132 characters but when it is more than that it gets truncated as the structure BAPISDTEXT  in which it is getting Updated has text_line field with 132 char.
    How can we Update if the text line is more than 132 characters say 150 for e.g.
    we have tried changing with TDFORMAT  * for default first line and / for next line so that remaining text comes in the next line but it's not wrkng fine,it's taking only first line.
    How do we Go about it?
    Regards,
    Rahul

    Use userexit save_document_prepare in MV45AFZZ .
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:51 PM

  • IE7 vs IE9 - any reason to update specific to Captivate?

    I am listing minimum requirements to use Captivate training.  MANY users have IE 7 and it would be a monumental task to upgrade them all right now UNLESS their is a specific browser version problem with IE7.  Does anyone know of any problems?  If so, would you be able to cite documentation?
    Thank you!
    Mark

    IE7 is fairly 'old' but at least your users don't have IE6!
    We still allow IE7 for many of our projects and haven't enountered any issues specific to that browser. Most all issues seem to be more related to user's configurations - i.e. a locked-down browser, or video/memory deficiency, etc.
    So in my experience, no need to require an update.
    A general search shows some IE7 concerns/issues:
    https://www.google.com/search?q=+site:forums.adobe.com+captivate+ie+7
    but nothing sticks out to me as...systemic.

  • FM to update Specification report

    Hi Expert,
    There is a request in my project to update the specification's report fields such as report status, Relevant check box and report version. I am using FM 'C1F3_REPORTS_UPDATE' for this purpose. However, the updating didn't work for some reason and i keep getting message in export parameter E_FLG_LOCKFAIL = 'X' and E_FLG_ERROR = 'X'. Shold i not use this FM and there could be other FM that i suppose to call ?
    Can any one help please?

    Hi,
    You need to call FM 'C1F3_REPORTS_READ' first with i_scenario = 01. This will lock the report & then you call the FM to update.
    Sample code is given below.
    ls_scenario = 01.
    ls_addinf-valdat = sy-datum.
    CALL FUNCTION 'C1F3_REPORTS_READ'
      EXPORTING
        i_scenario                 = ls_scenario
        i_addinf                   = ls_addinf
        I_FLG_HEADER               = 'X'
    IMPORTING
       E_FLG_LOCKFAIL             = lw_lf
       E_FLG_ERROR                = LW_ERR
       E_FLG_WARNING              = LW_WAR
      tables
        x_api_header_tab           = li_header
    EXCEPTIONS
       NO_OBJECT_SPECIFIED        = 1
       PARAMETER_ERROR            = 2
       OTHERS                     = 3  .
    IF sy-subrc <> 0.
    ENDIF.
    ls_header-repstatus = 'WD'.
    MODIFY li_header from ls_header TRANSPORTING repstatus
                                  where recn is not INITIAL.
    CALL FUNCTION 'C1F3_REPORTS_UPDATE'
      EXPORTING
        i_addinf                  = ls_ADDINF
       I_FLG_HEADER              = 'X'
    IMPORTING
       E_FLG_LOCKFAIL            = lw_lf
       E_FLG_ERROR               = LW_ERR
       E_FLG_WARNING             = LW_WAR
    TABLES
       X_API_HEADER_TAB          = li_header
    EXCEPTIONS
       NO_OBJECT_SPECIFIED       = 1
       PARAMETER_ERROR           = 2
       OTHERS                    = 3   .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    CALL FUNCTION 'C1F3_REPORTS_SAVE_TO_DB'  .
    endif.
    Regards,
    Mandeep

  • Update invalid characters in database using regexp_replace

    I have a table in which a column has invalid characters like ` Is it possible to update this using regexp_replace with correct character '?
    Thanks

    Thank You Volder this works.
    I also need to replace if testcol has CHR(10) or CHR(11) with CHR(20) can this be done with one single regexp_replace? I don't want to use multiple regexp_replace statements one after the other.
    like
    update test set testcol = REGEXP_REPLACE(testcol, CHR(10), CHR(11) , CHR(20));
    Thank You very much!

  • Language specific characters problem

    My users are to enter text to be stored in an Oracle DB. The insert statement works perfectly, but all Norwegian characters are converted to something unreadable in the insert prosess. How do I get the flex application and runtime environment to not convert these characters?
    Doing inserts from other applications to the same DB works for Norwegian characters so this problem seems to be related to VC.
    Hoping for help
    Henning

    I was wrong! When I found that BAPIs doing inserts to SAP tables worked with Norwegian characters, I thought I had found the solution. This is not the case. The same model does not work with Norwegian characters when backported to NW 2004. Nor does my bi_jdbc sql based models reading/writing to the portal db.
    Will update if/when solution is found.
    Henning

  • Updating Specific Jar in an EAR file

    Hi All,
    Is it possible to update only some jar files in an EAR file.
    This is what I wanted to do. My EAR structure is something like this-
    A.ear
    + B.jar
    + APP-INF/lib/C.jar
    I want to update the B.jar and C.jar with a few class files that I have. Will it be possible to; inside ear and update the specific jar.
    I know if it is a single jar - then that jar -u does the trick.
    Thanks much in advance,
    - Anand<pre></pre>

    Hi,
    I haven't tried what you're asking specifically, but an EAR is, I believe, a .ZIP file with a specific directory structure. So, I'm thinking that you should be able to either:
    1) Unzip the EAR, copy the new JAR (overwriting the old JAR), then re-zip to build the new EAR, or
    2) Just use a ZIP tool to do an update of the JAR(s) to replaced.
    Jim

Maybe you are looking for

  • How to Upload the files into the SiteAssets Library by SharePoint Hosted App Model

    I want to upload the Jquery and supported files in to the Site Assest library by SharePoint Hosted Apps, I have created a SharePoint Hosted App, added the files in the Modules <Module Name="ZoneTabsFiles" Url="SiteAssets"> <File Path="ZoneTabsFiles\j

  • All pdf's are listed as Microsoft Word docs

    Is this normal?  Everytime I open a local PDF file using Adobe Digital Editions, the application lists it as "Microsoft Word" and lists the file extension as ".doc"... what's up with that?  It's not a file association issue, as PDF is assigned to Ado

  • Can I use debit card to purchase apps in India ?

    Could we use Debit cards to make purchases in India ? Will the account be safe as the credit ?

  • How to Cluster AS

    dear all, i have Oracle9iAS R2 installed(busniss intelgence) with infratstarur on UNIX cluster Node1 and i want to install the Application server so it can be clustered so what can i do, what r the steps, what i did was that i installed Appication se

  • Multiple NI-Switch problems with PXI-2566 including blue screen

    We've been having intermittent problems with our PXI-2566 for months now. It seems like at some point the device and/or driver gets in a state where the open of the device causes a "blue screen." It traps in niswdk.dll (addr: ae9db759, base: ae9b7000