Using to_date functions in Com Channel for Oracle DB

I have been trying to mask data while pulling from an Oracle DB.   I run the following SQL in sqlplus and it works correctly
<b>select to_char(cse_wid, '9999.99') from iprdl</b>
then when I use XI,  
I get a successful message in the adapter engine so I go in to look at the payload and receive this message.
<b> A name contained an invalid character. Error processing resource 'file:///C:/Documents and Settings/CSEIDIT/Local Settings/...
  <TO_CHAR(CSE_WID,9999.99)>   10.70</TO_CHAR(CSE_WID,9999.99)>
^2 to_char(cse_wgt,'9999.99' ),
</b>  then I also get a mapping error in the integration Engine.   I have searched this forums and have found nothing that seems to fit this problem.
Thank you
Carl Seidita
Message was edited by:
        Carl Seidita
Message was edited by:
        Carl Seidita
Message was edited by:
        Carl Seidita

Not passing an XML to Oracle.    Using a JDBC com. channel parmeter  SQL Query option to pull records.  have other fields the SQL but it does not like the TO_CHAR option .  this is the full select
<b>SELECT PROD_ID, CREATE_DTIM, TO_CHAR ( CSE_WID, '9999.99' ),     TO_CHAR (CSE_WGT ,'9999.99' ),  CSE_UNIT,  TO_CHAR (CSE_LEN, '9999.99' ), TO_CHAR (CSE_HGT, '9999.99' ), cse_cub, inner_pack_wid, inner_pack_wgt, inner_pack_unit, inner_pack_len,  inner_pack_hgt, inner_pack_cub FROM iprdl
WHERE (iprdl.extr_flag <> 'Y' OR      extr_flag IS NULL)</b>
The adapter Engine give me a successful Message but when I go to view the payload, I get that error and it does not map to the inegration engine

Similar Messages

  • ** How to use TO_DATE function in Stored Proc. for JDBC in ABAP-XSL mapping

    Hi friends,
    I use ABAP-XSL mapping to insert records in Oracle table. My Sender is File and receiver is JDBC. We use Oracle 10g database. All fields in table are VARCHAR2 except one field; this is having type 'DATE'.
    I use Stored procedure to update the records in table. I have converted my string into date using the Oracle TO_DATE function. But, when I use this format, it throws an error in the Receiver CC. (But, the message is processed successfully in SXMB_MONI).
    The input format I formed like below:
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">
    Value in Payload is like below.
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">TO_DATE('18-11-1991','DD-MM-YYYY')</X_EMP_START_DT>
    Error in CC comes as below:
    Error processing request in sax parser: Error when executing statement for table/stored proc. 'SP_EMP_DETAILS' (structure 'STATEMENT'): java.lang.NumberFormatException: For input string: "TO_DATE('18"
    Friends, I have tried, but unable to find the correct solution to insert.
    Kindly help me to solve this issue.
    Kind Regards,
    Jegathees P.
    (But, the same is working fine if we use direct method in ABAP-XSL ie. not thru Stored Procedure)

    Hi Sinha,
    Thanks for your reply.
    I used the syntax
    <xsl:call-template name="date:format-date">
       <xsl:with-param name="date-time" select="string" />
       <xsl:with-param name="pattern" select="string" />
    </xsl:call-template>
    in my Abap XSL.  But, its not working correctly. The problem is 'href' function to import "date.xsl" in my XSLT is not able to do that. The system throws an error. Moreover, it is not able to write the command 'extension-element-prefixes' in my <xsl:stylesheet namespace>
    May be I am not able to understand how to use this.
    Anyway, I solved this problem by handling date conversion inside Oracle Stored Procedure. Now, its working fine.
    Thank you.

  • Use more than 2 GB ram for oracle

    I have 16 GB ram but I only can use 2 GB of that for oracle database , how can i increase that ???

    Don't merely go for increasing the size for Oracle (SGA) Memory. You need to keep collect the usage/statistics of your Oracle SGA, for any contention/or slow performance.
    Until and unless users/clients reports that their reports/programs/queries are running slow, then think of increasing memory for Oracle. Moreover, instead of anticipating that the user reports the problem, you from your side need to check the hits of the memory allocated for Oracle.
    By the way, you didn't specify your Database Version and OS Details.
    If assumed, you are on Oracle 10g, then please take a look at the below Oracle Documentations links.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#ADMIN00207
    Regards,
    Sabdar Syed.

  • Using CREATE_TEXT function module in LSMW for Tcode: FD32

    Hi Friends,
    I have to upload texts to the transaction FD32 via LSMW by using
    CREATE_TEXT function module. If anyone has worked on this before
    then please clarify the following doutb.
    In which event (Begin of record, End of transaction etc)   I have to write the code?
    Any sample code snippet for this requiremen would be helpful to me.
    Thanks in Advance
    Murthy

    Hi,
    Thanks for your responses.
    I had found the solution on my own.
    Thanks
    Murthy

  • Using SSH as a secure channel for other programs

    Hi,
    I'm wondering if it's possible to use an SSH connection as a generic secure channel for other programs. I want to write a server-client program where I can open up an SSH channel first and then have the server and client communicate over it. If there is some other way to communicate via a secure channel and using SSH-like users and keys that would be great too.

    fukawi2 wrote:
    Basu wrote:It's a simple message exchange system.
    I've been looking into this... Best solution I've found is AMQP / RabbitMQ.
    (I hate reinventing the wheel)
    Well, reinventing the wheel can teach you a great deal IMO. That usally how I get to learn how stuff works

  • Can I use to_date() function in Answers Criteria Column Formula

    Hello.
    A simplified example of what I'd like to achieve in a column formula -
    year(to_date('1954-11-06', 'YYYY-MM-DD'))OBI tells me this is a syntax error.
    Alternatively, I tried this -
    year(cast('11/6/1954' as DATE))This gets past the syntax check, but results in "unhandled user-defined exception ORA-06512".
    Any suggestions appreciated.
    Thank you.
    -cs

    Here it is -
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 6510, message: ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "APPS.APP_SESSION", line 313 at OCI call OCIStmtExecute: call /* 191215240 */ APP_SESSION.validate_icx_session('ScAGT-sNOLfHYfB6RveHGAiw:S') . [nQSError: 17011] SQL statement execution failed. (HY000)
    SQL Issued: SELECT "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0, "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Item_Description saw_1, "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Creation_Date saw_2, "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Closed_Date saw_3, year(cast('11/6/1954' as DATE)) saw_4, case when (MONTH("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Creation_Date) < 8) and (MONTH("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Order_Closed_Date) > 8) then 1 else 0 end saw_5 FROM "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service" WHERE "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number IN ('319317', '325405') ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4, saw_5

  • Using function Decode inside Decode for Oracle Reports

    Has anyone used a decode inside of a decode to get a single record from mulitple records?
    Thanks

    I've used decode inside of decode to create a view. Then in the report, I used a group by query to combine the records. Let me know if you want to my sql.

  • How to use TO_DATE function in OBI having MSSQL DB

    Hello Experts,
    I am facing a problem plz help me.....
    I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1,with oracle DB.
    But currently we migrate from Oracle to MSSQL Server. Due to which I am facing problem regarding Date Column (TO_DATE(), timestamp).
    As I have created a report with 2 fields
    Incident_Number, TimeStampAdd(SQL_TSI_SECOND,Incident_D.Reported_Date,timestamp '1970-01-01 00:00:00')
    Incident_D.Reported_Date contains integer values which stores total seconds from date 01/01/1970 00:00:00 . I want to convert these seconds from 1970 to datetime.
    when I ran the report with Oracle source it works fine, But with MSSQL as Source it gives me following error ...........
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 195 message: [Microsoft][SQL Server Native Client 10.0][SQL Server]'TO_DATE' is not a recognized built-in function name.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    SQL Issued: SELECT Incidents."Incident Number" saw_0, TIMESTAMPADD(SQL_TSI_SECOND, Incidents."Reported Date", timestamp '1970-01-01 00:00:00') saw_1
    FROM "ITSM Information" ORDER BY saw_0, saw_1
    The Sql query log generated is as follow :
    select distinct T728.INCIDENT_NUMBER as c1,
    ( CAST(TO_DATE('1970-01-01 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') as DATE) + ( T728.REPORTED_DATE / 86400 ) ) as c2
    from
    INCIDENT_D T728
    order by c1, c2
    +++Administrator:ce0000:ce0002:----2010-11-30 14:51:38
    -------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement(s) could not be prepared..
    [nQSError: 16001] ODBC error state: 37000 code: 195 message: [Microsoft][SQL Server Native Client 10.0][SQL Server]'TO_DATE' is not a recognized built-in function name..
    [nQSError: 16002] Cannot obtain number of columns for the query result.
    Please Help me........
    Thanks and Regards,
    MJ

    I will give a try at it,TO_DATE is not recognised function by the SQLserver
    ( CAST(TO_DATE('1970-01-01 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') as DATE)Instead of it use to_Char and try it like this so on cast(year(your_date) as char) || '-'||cast(month(your_date) as char) OR use this nice blog by saichand http://varanasisaichand.blogspot.com/2010/05/evaluate-function.html
    it says like EVALUATE('TO_CHAR(%1,%2)' ,"Dim- Date".Start Date,'YYYY-MM-DD HH24:MI:SS')
    Hope it helps you.Mark points.
    By,
    KK

  • Need a function equivalent to PERCENTILE_CONT for Oracle 8i

    I have been using PERCENTILE_CONT in Oracle 9i to find median and quantiles. Now, I need to run similar queries on a different database that is only Oracle 8i. Is there an equivalent function that I can use to give Quantiles?

    I've read the description of percentile_cont several times now, and I still don't understand it (never was good at statistics anyway, still don't understand why a flush beats a straight). there was no function in 8i, but is it possible to do it by combining other functions? not understanding what it does, I don't know.
    otherwise, all the analytics I've used can be solved by joining or outer-joining a table to itself - that's how we used to do them. for example, for SUM() OVER you join the table to itself, using = on all the selected columns expect the column you want to sum, that column becomes a <=. then group by all the columns in one isntance of the table, and sum the column from the other instance of it.
    some things might need to join the table 3 times, or use outer-joins. doing that give you the ability to know, on any given row, the total number of rows, it's RANK or ROW_NUMBER, etc.
    hope this helps. if you understand how percentile_cont works, you could probably construct a query yourself

  • COM interface for Oracle JMS MOM????

    Hello all,
    Can anyone point me to resources or any information
    of how to implement or access Oracle Java Message
    Service MOM from COM???
    Any help greatly appreciated,
    Best Regards,
    Giovanni

    Hi Giovanni,
    First off, I have very little knowledge of COM but I'll do my best to answer your question.
    There are a couple potential solutions that come to mind depending on what you're trying to do.
    1) If you can access a JVM from a COM application then you should be able to access OJMS. There is no "adapter" for
    integrating COM and OJMS.
    2) OJMS is just one of a handful of API's for accessing Oracle Advanced Queuing. If all you need to do is access AQ then you
    could use the Visual Basic interface. See Chapter 3 in the following document; http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96587.pdf
    Hope this helps...
    John

  • How to use LIKE function with a parameter in Oracle REPORT builder??

    how could i use parameter inside a LIKE function in Oracle reports builder?
    it works in SQL plus, but not in report builder!!
    Example:
    select code,desc from item_master where desc
    like '%&give_desc%'; ---works in SQL
    like '%:give_desc%' ---doesn't work in report builder!!

    Hi Renil,
    You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
    i.e. like '%'||:give_desc||'%'
    Regards,
    John

  • How to use a function key on keyboard for executing a non SAP program

    Hello Gurus.
    My client want to run a non SAP program selecting the specific function key on keyboard during the entering data on SAP.
    i knew that it is possible to execute a non sap program after adding special program each by SAP program.  but, it is huge jobs.
    client wants to run a non sap program wherever he is on SAP program.  Is it possible ?

    Hi,
    1. Create a ".exe" file for the .NET application.
    2. Create a PF-STATUS and assign the Function Code for the desired Function Key in the SAP program.
    3. In the USER COMMAND code inside program, when the respective function code is triggered, write the below code with the path to the .NET exe file.
    CALL METHOD cl_gui_frontend_services=>execute
      EXPORTING
        document = '.NET exe file path'
      EXCEPTIONS
        OTHERS   = 1.

  • Using Berkeley DB as a frontend for Oracle RDBMS

    Hey there,
    One of the JE documents (possibly the architecture one) makes a remark about using JE as a frontend for a centralized RDBMS. Assuming that's being done using a replication-based technology (and I'm posting on the correct forum), can you guys provide me some pointers as to how that works? Perhaps in the same vein as TimesTen does --with an addon, can't remember the name now.
    If replication is not meant in that context, what other (if any) options are there to have a centralized datastore and local copies maintained over JE?
    Thx,
    Gokhan Ergul
    Software Architect

    Hello,
    I'm not sure which document you're referring to, but in general Berkeley DB is often used as a cache or front-end for RDBMS information or other information accessible from a central server. For example, it might be used for fast indexed access to a user directory on front-end machines.
    Berkeley DB does not have any support for this built-in -- it is up to you to retrieve the data from the central server, store it in Berkeley DB, and synchronize with the central server as required by your application. So if you are asking whether there is built-in support (or an add on) for replication or synchronization between Berkeley DB and an RDBMS, no there is not.
    If you have multiple machines running Berkeley DB and you wish to replicate information between them, the Berkeley DB C Edition does have built-in support for this. Berkeley DB Java Edition does not have yet have support for replication between nodes, but this feature is in the works.
    If you have additional questions on Berkeley DB Java Edition please use the forum for that product:
    Berkeley DB Java Edition
    Mark

  • Narrowing results using Cluster trees in SOAP UI for oracle SES 10.1.8.4

    Could some body help me on getting the results based on the cluster trees selection in SOAP UI. I mean how to narrow the results based on the cluster tree selection from SOAP UI. We used doOracleOrganizedSearch but still not able to reach the requirement what we want.

    Hi , I am facing the same issue.
    were you able to resolve it.
    please let me know if you were.
    Many Thanks.

  • How to use quarter format in "to_date()" function?

    Hi,
    I'm trying to use to_date() function with quarter format. How do I specify the format?
    For example to convert '2002 quarter 1' using the to_date function.
    I tried to_date('20021', 'YYYYQ'), and I got ORA-01820 cannot appear in date input format.
    Please help, thank you!!!

    You cannot use Q when inputting data, only when retrieving data. When inputting, you must enter a valid date. Oracle has to store a date and if you just enter a quarter, it can't figure out what date to store. See the examples below:
    SQL> -- test table:
    SQL> CREATE TABLE test_table
      2    (test_date DATE)
      3  /
    Table created.
    SQL> -- the wrong way to input:
    SQL> INSERT INTO test_table (test_date)
      2  VALUES (TO_DATE ('2002-1', 'YYYY-Q'))
      3  /
    VALUES (TO_DATE ('2002-1', 'YYYY-Q'))
    ERROR at line 2:
    ORA-01820: format code cannot appear in date input format
    SQL> -- the right way to input:
    SQL> INSERT INTO test_table (test_date)
      2  VALUES (TO_DATE ('27-OCT-2002', 'DD-MON-YYYY'))
      3  /
    1 row created.
    SQL> -- to output:
    SQL> COLUMN "Year and Quarter" FORMAT A16
    SQL> SELECT test_date,
      2         TO_CHAR (test_date, 'YYYY-Q') AS "Year and Quarter"
      3  FROM   test_table
      4  /
    TEST_DATE   Year and Quarter
    27-OCT-2002 2002-4
    1 row selected.

Maybe you are looking for

  • Transaction type ZGC not possible (posting to affiliated company) in ABSO

    Hi all, We have depreciation areas 01, 30, 31, 32 . dep area 30, 31, 32  inherits the values from 01. We want to post credit value to dep area 01 after doing the aqusition . Hence we created a seperate transaction type ZGC ( in aqusitions- Tcode AO73

  • SA520W does not get IP on optional WAN

    We are using a SA520W as our primary router and have a fiber connection attached to the default WAN interface. We would like to improve our uptime using a secondary internet connection on the optional WAN interface. We have bought a dovado tiny 4g ro

  • HP w2338h Monitor

    I have a HP w2338h 24" monitor that just went blank.  The power light is on but nothing on the screen.  I tried hooking the monitor to another computer but it did not show anything.  I am currently using an old monitor I had so I can get on the net.

  • OBIEE Admin Tasks in Linux

    Hi, I like to know OBIEE Admin Tasks in Linux like how to move reports from DEV to UAT. Thanks !

  • Help on inserting/updating an IMAGE into the table

    I am using a oracle 8i RDBMS and VB as the development kit. In one of the tables I need to store the picture ( scanned image). How I can store it in the table.