Quotes question - JDBC and AS400

Hello everybody, I got a question for you about quotes in string types.
I'm trying to send data from my R3 to DB2 in AS400 and when the XI creates the SQL statement to insert the data it requires that each string is enclosed between quotes, otherwise an error will occur.
In the mapper I only assign directly the source field to the target field without any operation and this way my string won't be enclosed between quotes, my question is, Is there a way to do the same operation but getting in the target field the string between quotes?
I tried with patterns and got what I was looking for, but I'm looking for a solution that applies to all strings where I only do it once and forget it for ever.
Regards

Santana
The apostrophe character (‘) is a reserved character in SQL syntax and is therefore replaced by an escape character if it occurs within value strings. This replacement character can be database-specific. Typical replacement characters are \’ or ’’(default value). For further info go through :
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Also for additonal info go through:
AS400 jdbc
Re: JDBC
---Satish

Similar Messages

  • JDBC and FTP sender channels stop polling

    Hi,
    We have a great volume of sender JDBC and FTP sender channels.
    For this reason there is nothing unusual to have temporary error connections.
    Several months ago, with an XI 3.0 system, sender channels recover its functionality  automatically when temporary error connection is solved.
    But now, he have migrate to a  PI 7.1 sytem, and in the same scenario and configuration,  sender channel stop polling after a temporary error . In cc monitor this channels remains in  green status and there were no signs of stopped interfaces.
    Timeouts are correctly defined and there is no difference between channel configuration in our Xi and PI system.
    How to solve this problem?
    Thanks, in advance.
    Carme.

    Thanks for your fast response, Stefan.
    After writing this post, i ask the same question to our basis team and  we are in the latest sp.
    ¿do you know if there is any note or can you provide me some additional information?
    I'm not able to find any note about this issue...
    Regards,
    Carme.

  • Gateway between ORacle  and  as400

    Hello All,
    I am tring to set agateway between Oracle 9i and as400/db2.
    the drda gateway was intalled on the 9i on different oracle_hiome then the database( both on same machine) .
    configured the listener.
    and tnsping works!
    when I try to access the as400/db2 from the oracle using dblink
    i get "ORA-12154: TNS:could not resolve service name"
    could anyone shade some light on this ? - does this mena my init<sid>.ora
    is not configured correctly?
    obviously I was not able to install the package since can not access the as400.
    does any of you guys know how I can check for the db2 - database name?
    since on the site I am working they can not help me with that, and I am not a db2 / as400 guy. ( I think that the parameter i have for that is wrong) .
    thanks
    S.

    Hi Sahar,
    Unfortunately, i do not have an account on metalink.
    One question:
    1. Using Oracle Migration Workbench is not a solution - because OMWB doesn't support version 5 of DB2400;
    2. Using the Generic Connectivity (ODBC) to connect to DB2400 (on an AS400 machine) i have some problems in the configuration of the initSID.ora, listener.ora and tnsnames.ora and i am not able to connect to the database.
    MY question is: will i be able to use the Oracle Transparent Gateway to connect to DB2400 V5R4 ?
    Thanks a lot,
    Michael

  • JDBC and SAPDB

    Hi,
    I have the Mini WAS 6.20 with the "Flight Booking" example installed.
    My aim is to connect to the sapdb via jdbc. But I have problems finding the tables of this example. For example there is a table called SFLIGHT. But I always get errors that this table is unknown.
    String url = "jdbc:sapdb://localhost/BSP;
    Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
              Connection connection = DriverManager
                        .getConnection(url, user, password);
    ResultSet resultSet = stmt.executeQuery("SELECT * FROM SFLIGHT");
    The SAP-Gui tells me its a transparent table.
    Now I wonder what I am doing wrong?
    SQL-Studio also doesn't show me SFLIGHT (and the other tables of this example).
    What possibilities have I got to "look" for the tables? Are they maybe on a other schema?
    Thanks
    Jonny

    Hi Johannes,
    I'm affraid you're on the wrong track. And that's because you cannot access the DB schema of the ABAP stack of the WAS directly from the Java side. ABAP and Java stacks of Web AS have their own, separate DB schemas.
    Usually, access from a Java application to data on the ABAP side is realized indirectly by accessing a remote function using JCo or the SAP Java Resource Adapter (SAP JRA). There is a simple tutorial for using the Flight Booking example from a Web Dynpro application on <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/frameset.htm">this</a> link.
    Hope that I've got your question right and my reply answers it to some extent.

  • Re: JDBC and MSSQL

    I download MySQL Driver files and also include in classpath so when i compile it it give error msg: reference to Connection is ambiguous , both class com.mysql.jdbc.Connection in com.mysql.jdbc and class java.sql.Connection in java.sql match....
    so plz reply me on my account ([email protected]) ok bye..

    Okay, now I have another question that relates to this topic. In this project I am planning for, it will be a Swing application deployed via Java Web Start. It is also going to need to connect to the database, so will I run into any problems doing this through JDBC? Will each person that runs the app through JWS need to install the drivers as well, or do I simply include them in the CLASSPATH of the server that will store the app, then create a connection like usual? I was thinking about it when I realized I'm going to need to access a database server from (technically) a client machine. I've searched the forums for anyone who may have run into problems with this, and Google as well, to no avail. I'm thinking since I have to put the IP address of the server in the DriverManager.getConnection(), it should work okay. I'm just trying to find answers to things that I know will come up so I don't have to worry about it then. Thanks in advance for any info you can give me.
    James

  • Tomcat, JDBC and other APIs

    Hi all,
    This must be one of the most trivial questions to ask, but I'm new, so please bear with me.
    I have downloaded Tomcat, JDBC and JSSE. The question is: in which directory should I unpack these files and how should I set them up so that my Java compiler (JAVAC) will recognize this change?
    I am using the Java Software Development Kit version 1.3, and all of the class files, compilers and sample code that came with the SDK are in C:\jdk1.3.0_02\.
    Thank you in advance,
    cindybubbles

    Hi there,
    There's not much to installing Tomcat other than unzipping the distribution file, moving it to the place where you want it to be in your filesystem and then following the installation instructions in the Tomcat User's guide. This involves setting the TOMCAT_HOME and JAVA_HOME environment variables. Once you've set JAVA_HOME then Tomact can now find your Java installation.
    The core JDBC package is included in jdk1.3.0_02, if it's the optional package that have then just install it's jar file in c:\jdk1.3.0_02\jre\lib\ext
    JSSE also can be installed as a standard extension so copy it's jar file to c:\jdk1.3.0_02\jre\lib\ext.
    When a jar file is added to c:\jdk1.3.0_02\jre\lib\ext, the classes and packages that it contains will be available to you and to other applications that use the jdk (such as Tomcat). The term Standard Extension has been replaced with "Optional Package" now, but you are likely to still see both terms used interchangeably.
    Hope this helps.
    Amanda
    Developer Tech Support, Sun Microsystems

  • I forgot my Apple ID security question answers and cannot contact iTunes support by phone. The only way I can ask for help is via email. How can I make that happen?             Thanks

    Hi! So I haven't used iTunes in a few months but I just got an iTunes gift card and want to make a purchase. iTunes redeemed it just fine but now that I want to make a purchase I am having problems. I can't remember my security question answers and iTunes is requesting them. I have two other verified emails but the are NOT rescue emails. I can't contact iTunes over the phone because my phone lines are out and are going to be out for a long time. The only way I can contact them is by email. How can I do this? Is there an easy way to just reset all my security questions? Please help a girl out. I just want my music!
    Thanks so much

    Alternatives to Reset Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Start here to find your country, and how you can contact Apple:
             Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Support in your country and ask to speak to Account Security.
              Customer Service: Contacting Apple for support.
    How to Manage your Apple ID: Manage My Apple ID

  • Help on RFC to JDBC and JDBC to RFC

    Help on RFC to JDBC and JDBC to RFC
    Hi Gurus
    I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
    and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
    I have never worked with JDBC before , pls advice.
    is there any new issue to consider in PI 7.0 regarding JDBC
    Thanks.

    The requirement looks standard,
    SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
    >
    > is there any new issue to consider in PI 7.0 regarding JDBC
    >
    no issue with PI7.0.
    Regards,
    Raj

  • If I forgot my security questions/answers and I'm trying to buy on a new device but same Apple ID, what do I do?

    If I forgot my security questions/answers and I'm trying to buy on a new device but same Apple ID, what do I do?

    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • IDoc to JDBC  and JDBC to IDoc Scenario

    Dear All,
    I am working on IDoc to JDBC and JDBC to IDoc Scenario.
    I have to send Idoc from SAP to Non SAP system(.NET application) i almost configured in XI but still i don't know when my INTEGRATION will INVOKE how my data will proceed from IDOC to Oracle database(Through JDBC) and in case of revese how and when Data flow will start.
    Does anyone have completed STEP by STEP scenario document for this?
    How my Idoc will sent to XI?
    How XI will pick up data from IDoc?
    How XI will Convert data to JDBC and UPDATE in Oracle Database?
    And i reverse case(JDBC to IDoc) when my INTEGRATION will INVOKE?
    Where and When i can watch my process and data?
    How can i test the whole integration?
    I AM GETTING ERROR WHILE TESTING CONFIGURATION IN Integration Directory "Error while refreshing the XI runtime cache" and when i check this in SXI_CACHE  it gives me error
    "Unable to refresh cache "NO_BUSINESS_SYSTEM"
    "Error during last refresh to cache"LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM"
    Please solve all the above problems i will reward u points
    thanks,
    RP

    Hi,
    While we working on IDOC to JDBC interface..
    We have to deploy JDBC Drivers?
    Go through this links,
    /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    Idoc Reveiver adapter..
    http://help.sap.com/saphelp_erp2004/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/content.htm
    Thanks,
    Satya Kumar
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Edited by: SATYA KUMAR AKKARABOYANA on May 8, 2008 5:51 PM

  • G4 displays flashing question mark and blue face at start-up

    like the title says, my powerbook refuses to go to the desktop and instead gives me a dark screen and in the center you can just make out a folder icon and on the folder icon flashes a question mark and then that picasso-esque blue smiley face. these two images flash sequentially, one after another.
    this started happening about three days ago. the day it started, i got up, checked my email, and then shut the computer down. but then i saw the soft light flashing on the closed laptop that tells me that it is still on. so i figured that i hadn't completed the shut down process all the way. i opened the laptop and almost knocked it off the perch it was on. i grabbed it in time to prevent it from falling, but in the process i mashed some buttons with my thumb. when i turned on the computer, it briefly flashed the desktop and then went dark and started flashing the icons as i described above.
    i am in japan right now, so getting ahold of apple in the states is somewhat difficult. any amount of help is very much appreciated. i've already tried a full shutdown by taking the battery out and holding down the power button for 5 seconds, as described on the apple website. this didn't work. i'm not sure which version of OS i have, but i'm pretty sure it is at least 10.0. i got the computer last year right as tiger was coming out.

    also, the power icon on the power button is not showing any light, and it wasn't showing any light for a day or so before this event happened.

  • HT5312 I forgot my security question answers and answered wrong too many times so now it won't let me download anything even though I know my password, what do I do?

    I forgot my security question answers and answered wrong too many times so now it won't let me download anything even though I know my password, what do I do?

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (95618)

  • I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes

    I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes: I downloaded the last version (it's free), but I cannot do the same with iphoto, and more important: I need to know what is happening!!! Please help me!

    Applications should not disappear all by themselves.
    If they are then that coud indicate serious problems with your hard drive.
    Backup everything up as quickly as possible.
    Using Disk Utility verify your system disk.
    Allan

  • Content Conversion - JDBC and JMS

    Can we use File Content Conversion with JDBC and JMS ?

    Hi,
    How To Use the Content Conversion Module in JMS Adapter - https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&
    check this for JMS content conversion:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Check the how to guide provided by prabhu and also this link on the XMl To TeXtCoversion Module,
    http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm
    Ref How To Use the Content Conversion Module in JMS Adapter -
    https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&
    See this weblogs which was shown with examples:
    How to use SAP's WebAS J2EE's JMS Queue in Exchange Infrastructure
    Sync/Async communication in JMS adapter without BPM (SP19)
    Async/Sync Communication using JMS adapter without BPM (SP 19)
    Exploring JMS and SAP-XI JMS Adaper
    Configuring the sender JMS adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
    Configuring the receiver JMS adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    Check JMS Adapter section of this blog by Sravya:
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
    Also information related to Provider-specific settings are available
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/frameset.htm
    Plz do refer the following threads:
    JMS Content Conversion - no CR/LF
    Message (Data) getting lost after JMS Content Conversion(Sender)
    Message (Data) getting lost after JMS Content Conversion(Sender)
    Message (Data) getting lost after JMS Content Conversion(Sender)
    Regards,
    Vinod.

Maybe you are looking for