How to update  data including '@' charecter.

Hi All,
i am running this update script as .sql from command prompt (windows). but i am getting .....error like...Unknown command -
SP2-0734: unknown command beginning "Customer: ..." - rest of line ignored.
SP2-0734: unknown command beginning "Offer Numb..." - rest of line ignored.
SP2-0734: unknown command beginning "\@aresp_li..." - rest of line ignored.
SP2-0734: unknown command beginning "Country: \..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
the script is as follows......update.sql
UPDATE EMAIL
SET
EMAIL_SUBJECT='Document Awaiting Your Approval: @appr_document_no - @prop_num - @cust_name',
EMAIL_BODY='Click on the link below to view and approve the document.
Customer: @cust_name
Offer Number: @prop_num
@aresp_link
Country: @country_id' WHERE EMAIL_ID='1234';
please guide me how to update this data including '@' charecter.
Thanks in Advance.

user9041629 wrote:
Hi All,
i am running this update script as .sql from command prompt (windows). but i am getting .....error like...Unknown command -
SP2-0734: unknown command beginning "Customer: ..." - rest of line ignored.
SP2-0734: unknown command beginning "Offer Numb..." - rest of line ignored.
SP2-0734: unknown command beginning "\@aresp_li..." - rest of line ignored.
SP2-0734: unknown command beginning "Country: \..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
the script is as follows......update.sql
UPDATE EMAIL
SET
EMAIL_SUBJECT='Document Awaiting Your Approval: @appr_document_no - @prop_num - @cust_name',
EMAIL_BODY='Click on the link below to view and approve the document.
Customer: @cust_name
Offer Number: @prop_num
@aresp_link
Country: @country_id' WHERE EMAIL_ID='1234';
please guide me how to update this data including '@' charecter.
Thanks in Advance.post top 20 or so line from file

Similar Messages

  • How to update data in a xml file.

    I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.

    Hi,
    For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
    Have you managed to find a solution ?
    (P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
    Best Regards,
    A.Dyankov.

  • How to Update data in ZMMPOAMEND

    Hi all,
    Here in my client place, we r doing Bank Project. In that Project we are maintaining Forward Contract No. Rate, Date in one T.Code of TX01 with the assignment of Purchase Order No. & its referenece No. It should be updated in above mentioned table of ZMMPOAMEND. But it is not updating in that table.
    How to update in that table? Anybody known plase let me know..........

    Hi,
    This table is a user-developed (Z-table) entity. Therefore, the update of this table is performed via some development your ABAP team created. You have to ask your ABAP team to help you with this.
    Regards,
    Eli

  • How to update data according to row_number in sql

    hi,
    after deleting an item I need to update data according to row_number.
    in oracle database I have a code like this... working perfectly..
    update regitem set line_sn= LPAD(ROWNUM,2,'0') where doc_no='" & mydocno & "'
    how it will work in sql server...
    thanks..........

    There is an example at the below link which uses the Transact SQL ROW_NUMBER():
    http://stackoverflow.com/questions/6729616/sql-server-how-to-update-a-column-for-a-desired-row-number
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • How to update data and create notification no using isr fm.

    Hi,
    Without creating the scenario in SFP, is it possible to update data directly in ISR_SPECIAL_DATA_SET,
    i want to use fm ISR_SPECIAL_DATA_GET in my program.
    i'm trying to achive same using ISR_NOTIFICATION_CREATE and built general, special table and long text to get a
    notification number. but  notification no is not creating ,  return msg is  ( E I 421   |Notification type  not defined ) even i'm passing currect notif type.                            
    Regards
    Ali

    Hi vijay,
    Nice to see your reply, I think, you are right...
    The Fm ISR_SPECIAL_DATA_GET already used in my various reports, Workflows etc.
    And I have a custom WebDynpro java based application which have similar data and have custom notification no. + (in this case probably i need to create new fm ZISR_SPECIAL_DATA_GET to use in above report and wf)+
    To avoid the rework and minimized the code Iu2019m trying to create notification no using standard fm and link custom WD data with ISR_SPECIAL_DATA_GET.
    Please let me know how to proceed with that
    Regards
    Raza

  • How to update date in a table from another database

    Hello,
    I am trying to code a way to Update my Testing database from another database. In the coding below the database that has the updated data ends in Restore.
    Use ClientDB_MASTER_Restore
    Truncate Table ClientDB_MASTER_Testing.dbo.Activity_Tracking_AZ
    GO
    SELECT * INTO ClientDB_Master_Testing.dbo.Activity_Tracking_AZ
    FROM Activity_Tracking_AZ
    Go
    I know with this Technique the table must be truncated if not deleted first.  There is probably a better way to do this which I'm very open to.  I'm also looking for coding that will roll back any changes made should an error occur.
      As always, any help is greatly appreciated.
    David92595

    USE ClientDB_MASTER_Testing
    go
    SET XACT_ABORT ON
    BEGIN TRANSACTION
    Truncate Table dbo.Activity_Tracking_AZ
    -- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ ON
    INSERT dbo.Activity_Tracking_AZ (col1, col2, ...)
    SELECT col1, col2,
    FROM ClientDB_MASTER_Restore.dbo.Activity_Tracking_AZ
    -- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ OFF
    COMMIT TRANSACTION
    If you find it boring to type the column lists, just find the table in Object Explorer, and drag the columns node to where you want the column list.
    You need the SET IDENTITY_INSERT command if the table has an IDENTITY column.
    By wrapping the code in a transaction, you are not left with an empty table if the INSERT fails. The command SET XACT_ABORT ON makes sure that the batch is aborted and rolled back in case of an error.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to update data when primary key is set through for update cursor

    Dear friends,
    I have tried to update data in the table through forms using cursor for update and i have given the plsql i have used please help me where i do mistake.
    DECLARE CURSOR EMP IS
    SELECT EMPNO,EMPNAME,FATHERNAME,COMMUNITY,SEX,BILLUNIT,BIRTHDATE,RLYJOINDATE,RETIREMENTDATE
    FROM PRMAEMP WHERE BILLUNIT=:CTRL.BILLUNIT AND SERVICESTATUS='SR'ORDER BY DESIGCODE,SCALECODE
    FOR UPDATE;
    BEGIN
    GO_BLOCK('EMP_DETAILS');
    SYNCHRONIZE;
    FOR I IN EMP
    LOOP
    I.BILLUNIT:=:EMP_DETAILS.BILLUNIT;     
    I.EMPNO:=:EMPNO;
    I.EMPNAME:=:EMPNAME;
    I.FATHERNAME:=:FATHERNAME;
    I.COMMUNITY:=:COMMUNITY;
    I.SEX:=:SEX;
    I.BIRTHDATE:=:BIRTHDATE;
    I.RLYJOINDATE:=:RLYJOINDATE;
    I.RETIREMENTDATE:=:RETIREMENTDATE;
    DOWN;
    END LOOP;
    COMMIT;
    END;
    your help is needed immediately

    DECLARE CURSOR ABC IS
       SELECT EMPNO,
              EMPNAME,
              FATHERNAME,
              COMMUNITY,
              SEX,
              BILLUNIT,
              BIRTHDATE,
              RLYJOINDATE,
              RETIREMENTDATE
    FROM PRMAEMP
    WHERE BILLUNIT=:CTRL.BILLUNIT
    AND SERVICESTATUS='SR'
    ORDER BY DESIGCODE,SCALECODE
    FOR UPDATE OF COMMUNITY;
    V_EMPNO           PRMAEMP.EMPNO%TYPE;
    V_EMPNAME         PRMAEMP.EMPNAME%TYPE;
    V_FATHERNAME      PRMAEMP.FATHERNAME%TYPE;
    V_COMMUNITY       PRMAEMP.COMMUNITY%TYPE;
    V_SEX             PRMAEMP.SEX%TYPE;
    V_BILLUNIT        PRMAEMP.BILLUNIT%TYPE;
    V_BIRTHDATE       PRMAEMP.BIRTHDATE%TYPE;
    V_RLYJOINDATE     PRMAEMP.RLYJOINDATE%TYPE;
    V_RETIREMENTDATE  PRMAEMP.RETIREMENTDATE%TYPE;
    BEGIN
       GO_BLOCK('EMP');
       SYNCHRONIZE;
       OPEN ABC;
       LOOP
          FETCH ABC INTO .... /*yOU NEED TO MENTION YOUR VARIABLES HERE*/;
          UPDATE PRMAEMP
          SET BILLUNIT= :EMP.BILLUNIT,
              EMPNO= :EMPNO,
              EMPNAME= :EMPNAME,
              FATHERNAME= :FATHERNAME,
              COMMUNITY= :COMMUNITY,
              SEX= :SEX,
              BIRTHDATE= :BIRTHDATE,
              RLYJOINDATE= :RLYJOINDATE,
              RETIREMENTDATE= :RETIREMENTDATE
          WHERE CURRENT OF ABC;
          EXIT WHEN ABC%NOTFOUND;
       END LOOP;
       CLOSE ABC;
    END;
    COMMIT;
    END;Cheers
    Sarma.

  • How to update data returned using REF CURSOR

    Hi all,
    I am trying to update updated data in a gridview but the update button seem to do nothing as i retrieve data using REF CURSOR.
    Let me describe the architecture of my application first. I'm trying to implement best practice whenever possible. I am following the data access tutorial published in www.asp.net , the only difference is that i have an Oracle (10g) database. So I split my application into three layers, data access, business logic, and presentation layer. I'm also writing all queries in an Oracle package.
    So I have my Oracle packages that perform CRUD operations. Then I have an xsd file that define dataTable based on the package procedure. My business logic layer then calls functions defined in the xsd file. And finally a detailsView control that uses an ObjectDataSource to call business logic functions.
    In a nutshell, I am just trying to update records retrieved using REF CURSOR. Your help is very much appreciated. Please let me know if further details are required. Cheers,

    In the DataSet (xsd) where your DataTable is defined, you just need to add additional methods to the TableAdapter to handle insert, update and delete, either with SQL or by mapping to stored procedures.
    Alternatively in code, create an OracleDataAdapter and supply its InsertCommand, UpdateCommand and DeleteCommand.
    David

  • How to update date field in oracle using jdbc

    Hi all,
    In my database i have a column LAST_UPDATED_DTTM which is used to store last updated date . when i try to update using the following query stmt
    update MD_TABLE set LAST_UPDATED_DTTM= + " new java.sql.Date(c.getTime().getTime()) where PROD_ID=" + msdn ;
    ' c ' is instance of Calendar Class as below
    Calendar c=Calendar.getInstance()
    it gives the following error
    ORA009:Expected date got number
    can anybody please help with this?
    Thank you

    can't i do that without prepare statement?If you insist on stuffing that String, then format it in some convenient String format using SimpleDateFormat and call the TO_DATE function in Oracle, so that the database understands your Date too.
    ***Annie***

  • AppBuilder:how to update data in a json file

    Hello
    I have built an android hybrid app with AppBuilder whitch retrieves data from a json file. How can i refresh the json file with new data?
    Is there any way to update the apk file in a device after new data entry in json?
    Any information is appreciated.
    Thank you in advance
    Angeliki

    Hi,
    For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
    Have you managed to find a solution ?
    (P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
    Best Regards,
    A.Dyankov.

  • How to Update Date data type field value in oracle

    I want to update records in a table that has a Date data type field. It's a oracle databse. I use the oracle thin drive to connect to the database. The everything works well, only when i try to update records that have date type value, something doesn't work.
    I use the following stmt to update DB:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Conn = DriverManager.getConnection("jdbc:oracle:thin:@hostname:portnumber:schname", "uid","pwd");
    stmt=Conn.createStatement();
    String updStr = "UPDATE Article SET Archive = ' Disable' WHERE ArticleDate = # " + sqlDate +"# " ;
    stmt.executeUpdate( updAStr ) ;
    But I always got the SQLException run time error, which is "ORA-00911: invalid character"
    Who can help me to find out how to write the above Update statement correctly? esp. that how to present the Date type variable in the statement.!
    BTW, sqlDate is a Java.sql.Date variable, Is it "# " + sqlDate + "# " the right way?
    Many thanks

    What do you get out of Oracle's TO_DATE that java.sql.PreparedStatement.setDate()
    won't give you? - MODWell, I don't know that I've used all capabilities of either, but when it comes to managing Date Strings my Oracle bias :) would be to code using Oracle's TO_CHAR and TO_DATE functions. Perhaps someone can tell me vendor neutral ways to do something simiilar to managing these input date/times (and hopefully just as easily, pretty much all done in a single line, single function)?
    WHERE aDATE > TO_DATE('2010','YYYY')
    WHERE aDATE > TO_DATE('2010 AUG 22','YYYY MMM DD')
    WHERE aDATE > TO_DATE( 'January 15, 1989, 11:00 A.M.', 'Month dd, YYYY, HH:MI A.M.')
    I believe most databases have something similar to this, although I have found Oracle's to be the most flexible and consistent, if not the most intuitive. Other vendors (DB2, SQL Server, Access) don't force you to always be explicit, and can accept a variety of date strings without masks. The problem is that while you might not be getting an error, it also may not be parsing your date as expected.
    One could argue that this vendor specific hodgepodge of literal date/time strings is only one program modification away from disaster. They might be right.
    Just to be clear. I'm not recommending using a vendor specific approach, but it's not a perfect world and somtimes you have to use what works easiest or best or fastest, and in some cases, that is the vendor specific alternatives.

  • How to update data in the database through ALV grid

    Hi All,
    I diplayed an ALV grid with five fields in a classical report. I have already set the fieldcat for one field as wa_fcat_edit = 'X'. I am able to edit(modify) the data in that field. But I want to update the data into the database which is modified by me in that field. Can I update the data using BDC or any other procedure?
    This is an urgent require ment for me. Please help me ASAP.
    Thanks & Regards,
    Ramesh.

    Hi
    Please go through the link.
    Link: [http://www.****************/Tutorials/ALV/Edit/demo.htm]
    regards
    ravisankar

  • How to update data in af:table

    Part Database:
    1. I create 2 table in database
    - tb_closed_order - id
    - closed_date
    - lot
    - tb_order - id
    - order_number
    - title
    - detail
    - lot
    - status_closed_order
    2. At tb_closed_order, I create trigger type after insert
    When I insert new record, This trigger is fire to update tb_order
    update tb_order
    set status_closed_order = 1
    where lot = :NEW.lot
    Part Application
    1. I create a simple page
    2. ListPage : list all of tb_order, that display in af:table
    | id | order_number | title | detail | status |
    | 1 | 001 | xxxxx | xxxxxx | 0 |
    | 2 | 002 | xxxxx | xxxxxx | 0 |
    | 3 | 003 | xxxxx | xxxxxx | 0 |
    | 4 | 004 | xxxxx | xxxxxx | 0 |
    3. When I want to close order, I click commandButton
    TbClosedOrder obj = new TbClosedOrder()
    obj.setClosedDate(...);
    obj.setLot(new Integer(251));
    persist(obj);
    4. When I come back to ListPage, I want to see column status contain data equal 1
    But it show 0
    I already force re-execute iterater, but I show status 0
    What can I do ??
    Please help me..

    Hi,
    if you use ADF BC then the first test is to run the VO in the ADF BC tester to see if this works. If it does work here then this means that the business logic is functioning. If using ADF Faces with ADF, then its not enough to re-execute the iterator if this isn't done through ADF .The UI needs to be partially refreshed using PPR. So when you press a command button, this should trigger a refresh of the table component
    Frank

  • How to update data from PSA to target in BI 7.0

    Hi all,
    can you pls tell me the procedure/process to load data from PSA to data target. We got a load failure while activating the data in DSO.We made necessary changes to the incorrect data in PSA and we saved. When i run the DTP again it gives me 0 records. Is there any option like in 3.5 where we can select the PSA right click.....schedule the update/start the update immediate. or any other process which solves my problem.
    Thank you all,
    Regards,
    Praveen

    A new object concept is available for the ETL process as sap Net Weaver 2004. To implement the EDW layer paradigm, sap has changed the concept of the ETL data flow and process design.
        The most important innovations in the modified object concept are as followes.
    1. When a Datasource is activated, a PSA table is generated in the inbound laywr of the BI so that data
       can already be loaded.
    2 The infopackage is only used to load the data from the source system into PSA.
    3 This is followed by the data transfer proccess (DTP) step to transfer data within the BI from one
       persistent object to another by using transformation and filters,
    4 The definition for which data targets the data from the Datasource is to be updated into occurs in  
       transformations.  this is also where fields of Datasource are assigned to infoObjects of the target
       objects in bi.

  • How to update Data Services (ALDSP 2.5) from WebLogic Server 9.2 correctly?

    Hi,
    I need to update some physical data service in ALDSP 2.5 on WLS 8.1 SP6 (8.1.6) via Static Mediator API from WebLogic Server 9.2 MP2 (9.2.2) application. I have reviewed the article about interoperability of ALDSP 2.5 and WLS 9 here:
    http://edocs.bea.com/aldsp/docs25/appdev/ejbclt.html#wp1090900
    Firstly, I had a problems with the interconnection between 9.2 client and ALDSP 2.5 due to some missed methods/classes. Finally, I've added the following libs to my WLS 9.2.2 pre-classpath in such an order:
    MyDSPProject-ld-client.jar (built with Ant script using XmlBeans 2.0)
    wlsdo.jar (from ALDSP 2.5)
    xbean.jar
    xqrl.jar
    wlxbean.jar
    ld-client.jar (from ALDSP 2.5)
    I do the update in the way shown in attached java file.
    After submit method call, I've got two copies of a new item added in the DB and also an exception that is shown in attached log-file.
    What is the possible cause of this issue?
    I use MySQL DBMS version 5.0.45.
    I've also tried MS SQL 2005 but it simply had the same results.
    DSP audit log is also attached.
    Thank you in advance!
    Best Regards,
    Vitalii Tiutiunnyk

    The problem is that your client is WLS server, and WLS server has network class loading disable (for security), and the result from the call requires a class that is not on the client. The call succeeds, but the the network class load for the result fails, and the WLS 9.2 framework (incorrectly) retries the call (and you get either a duplicate key exception or a second row inserted). Putting the server jar in the client classpath solves the problem.
    If you wanted more information or help, you can contact BEA Customer Support and tell them it is regarding the CR I mentioned.

Maybe you are looking for

  • IMac: using two monitor outputs as one

    Hello!  We are using last generation 23" iMac at a church with GTX 750m.  It has two thunderbolt outputs. I want to use both ports to send same signal: one to VGA projectors with 1024x768 resolution and second to HDMI live broadcasting equipment with

  • How to list principals in the security role?

    Does anybody know how to list principals assigned to a security role programmatically? The role assigment is specified in weblogic.xml files for web applications and weblogic-ejb-jar.xml files for EJBs. Any help would be much appreciated, Margaret

  • Istall Lightroom 5 32 bit (CC)

    Hi! I've used the try-version of Lightroom 5 (I had problems with the 64 bit version so I needed to install the 32 bit). Now the 30 day trial went out and I got a CC-membership instead but I can't find any way to install the 32 bit version; the CC on

  • Cde/openwin/xterm

    Hello: I'm new to Solaris and Unix. I have a SunFire 280R and have installed Solaris 5.8. I have been using the system CDE console with no problems. When I try and access the SUN box from my laptop all seems fine until I try and use the available too

  • Broken CS 5.5 Design Standard Disc & Direct Link Install isn't working

    My Creative Suite 5.5 Design Standard disc isn't working and from my prior contact with Adobe, I was given the following links to help me install the program: http://prodesigntools.com/trials2/AdobeProducts/DSGN/CS5_5/win32/DesignStandard_CS5_5_LS1.