Connect PostgreSql in ABAP

Hi All,
I have a requirement, there is an external software with postgresql  DB. I want to fetch some data from this postgre DB to in ABAP program. How can i connect this DB in my ABAP program. Please help .
Regards
Jitendra Singh

Moderator message -
When closing old threads, there is no need to add a comment. Adding a pasted answer like "thanks" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
Rob

Similar Messages

  • Connect PostgreSql in ABAP Program

    Hi All,
    I have a requirement, there is an external software with postgresql DB. I want to fetch some data from this postgre DB to in ABAP program. How can i connect this DB in my ABAP program. Please help .
    Regards
    Jitendra Singh

    Hi Jitendra;
    I know 2 way connect to nonSAP DB.
    First : You prepare program at VS .net and use NCO 3.0 (last version)
    Please read below link:
    /people/thomas.weiss/blog/2011/01/14/a-spotlight-on-the-new-net-connector-30
    Second : Native sql method. Other DB admin give you access permision to DB. And You or other expert prepare view or select or stored procedure at other DB. You call "view or select or stored procedure" from SAP with ABAP native SQL commands.
    I used 2 years Native SQL method between SAP and 3.Party Programs DB(Oracle).
    It's very healthy method.
    Please read below link:
    http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3b8b358411d1829f0000e829fbfe/content.htm
    Best regards.
    Edited by: Melih MUTLU on Jun 9, 2011 9:43 AM
    Edited by: Melih MUTLU on Jun 9, 2011 9:51 AM

  • Is it possible to trigger remote R/3 connection through WD ABAP

    Hi Colleagues,
    I am trying to trigger a remote R/3 Connection through WD ABAP. I created an RFC destination through SM59. i tested the connectivity and it works fine from R/3 to R/3. But when i trigger the same code through a WD ABAP application, nothing happens.
    Is it possible to open an SAP GUI screen through the remote connection using WD ABAP? If yes, can you provide me a solution.
    Thanks,
    Gaurav.

    Hi,
    Please refer this link for Thomas's reply
    Calling TCODE on click of LinkToAction UI
    Or
    If you are using the Enterprise portal, create an Iview of R/3 or Transaction where you can give the transaction that you want to open.
    Regards,
    Lekha.

  • To find No.of JCO connections in the ABAP stack

    HI gurus!
    How can we find the no of JCO connections in the ABAP stack ! is there any possibilty to find this .........its an urgent and solutions rewarded with points
    regards,
    S.Rajeshkumar

    Hi Rajesh,
    You can not find no. of JCO connection fron ABAP Stack ......you have to login into JAVA Stack.
    <b>
    If useful ,Reward Points .</b>
    Thanks,
    Prashant.

  • J2EE fails to connect to the ABAP backend system

    We have J2EE 640 Sp16 Abap+Java. As we configured this node in high-availability, we applied note Oss 757692 to the J2EE.
    Anyway the J2EE does not come up.
    Into the std_server0.out we see the following:
      Service dbpool started. (1503 ms).
    May 25, 2006 3:44:09 PM         com.sap.security.core.persistence [SAPEngine_System_Thread[impl:5]_25] Fatal: User Management Engine
    (com.sap.security.core.persistence.datasource.imp.R3Persistence) failed to connect to the ABAP backend system. Check that connectio
    n data are correct and the backend system is available. Error message: "User not authorized (session closed)". Connection data (
    obtained from properties of UME service in section "ume.r3.connection.master.": "{
      passwd=********
      receiverid=master
      sysnr=00
      client=100
      poolmaxsize=10
      user=SAPJSF
      receiverid_guest=master
      ashost=sap3
      snc_mode=0
    We double checked the set6tings of note 757692 and all of them seems to be correct.
    We changed also the psw of SAPJSF in the ABAP stack and also in Global server configuration by mean of the configtool for the ume.r3.connection.master.psswd item
    Neverthless we continue to recive this error.
    What's wrong ?
    Regards

    Could it be because you tried to do this in an AS Java + AS ABAP installation? The note 757692 says quite distinctly, "This note covers the procedure for the j2ee engine only!" The statement does not make it clear if this note refers to only a standalone AS Java.
    My saying so is not very helpful, but the note also goes on to say, "Should you wish to change the host name of a server in a test !!! !!! system, you should do so only with the assistance of an SAP!!! !!! consultant.!!!

  • Using Kerberos although the UME is connected to the ABAP Stack?

    Hi,
    we have a portal where the UME is connected to an ABAP system, now I should implement Kerberos authentifcation from Windows to the Portal. Now my question is: Is this possible? As Kerberos normally also needs changes in the UME configuration file and, as far as I know, once you chose to use an ABAP system as UME data source you cannot change it, I'm not sure if there is a possibility to implement Kerberos in this case.
    Would be great if you could tell me whether it is possible to implement Kerberos in this case.
    Kind regards,
    Timo Hübner

    Hi Timo,
    the normal scenario is that you use the ads (Active Directory)as the datasource in combination with Kerberos. In this scenario you log on to your Windows with your account from the ads and with the help of kerberos you authenticate directly in the portal which uses the same ads as the userstore.
    If you don't use the ads as the datasource you have to ensure that the ads and the other datasource (abap or any ldap) is synchronized.
    Have a look here for more information:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/4c3725aeaf30b4e10000000a11466f/frameset.htm
    Hope this helps. Regards,
    Norbert

  • Connect JAVA with ABAP

    Hi,
    I have a requirement in my project to connect Java with ABAP. I want to access ABAP tables from my java application. I am not sure but I think we can use SAP JDBC drivers to do that.
    I found this link to connect JAVA with ABAP  :
    SAP DB JDBC Driver
    My doubt from this link is where can I get the Host Name for the sandbox system I am using and what is the Database Schema name for the tables created using se11.
    Regards,
    Prateek

    Hi
    If you have direct connection to data base then  you can use
    the JDBC driver for the data base that is in use (We have oracle).
    But usually you have to go through the application server this mean you have to use "SAP Java Connector" that connect to SAP using RFC .
    Talk to your basis people.
    Regards.

  • Connecting SAP Netweaver ABAP Trial Version from 2 Laptops

    Hi All,
    I have a scenario where in I have installed SAP NetWeaver  ABAP  Trial 7.1 version on one Laptop. All the Presentation and application server are also installed on the same laptop and everything is working fine. Here NetWeaver  is installed on Windows Vista.
    Now, I would like to connect to SAP NetWeaver  from another Laptop. In the other laptop i have Windows XP installed. I will install the SAP Front end and will supply all the application server details.
    Is this approach proper or do i need to do something more to it?
    It would be great if someone can provide some more information on this. I checked the Forum for this but as of now i couldn't find much resources or discussion on this.
    Thanks and Regards,
    Samantak.

    Hi Martin,
    yes. It's true the SAP is still a client Server Application, but is SAP NW AS ABAP Trial version also supports - multiple systems?
    If yes how does it do this? What are all the configuration settings required?
    I have checked the SAP GUI for the main laptop where my NW AS is installed and found that the application server is configured as localhost. If there is no proper address of the application server then how to connect it with the system from another laptop?
    Hope you got my point. But thanks for answering.
    Waiting to hear more from you soon
    Thanks,
    Samantak.

  • WAD 7.0 Connection BW7.0 ABAP and BI stack JAVA ?? & WEBEX

    Hi experts,
    My question is probably too simple but .....
    I am from basis components and I have some littles questions..
    I have 2 systems :
    - 1 BW 7.0 ABAP stack only
    - 1 BI 7.0 JAVA standalone
    I have configure UME and Webex between the two systems.
    For testing, I use internet explorer on the portal...It's OK.
    But consultants wants to use a "WAD 7.0"...
    What i would like to know :
    - WAD could connect directly on the ABAP BW ? Or throw the BI 7.0 JAVA?
    - In case they could connect directly to the ABAP, a BI JAVA was necessary? SP 07  for abap STACK?
    Last question :
    In my Bi portal user from abap stack are created by UME (from abap)  but tkey don't have any permissions...This is normal or my user mapping is wrong?
    Thanks for your help in this new world for me.
    cdt,
    patrick

    Hello,
    there are any new's on this posting? We are in the same situation now and the question is - if its possible to install on a Non-Unicode 2004s environment the Javastack.
    Thanks for your answer
    Regards
    Jochen

  • Connectivity issue between ABAP and JAVA stack

    Hi All
    we are facing the following issue while running interface. message got failed while processing Graphical mapping in Java stack. Can any one please help us what could be the issue here? Is there anything we missed from Config / XI development.
    This message was failed with not more than 200 MB file.
    XIServer
    JCO_SYSTEM_FAILURE
    connection to partner 'localhost:0' broken / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 t
    "SYSTEM FAILURE" during JCo call. connection to partner 'localhost:0' broken / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 t
    A
    Appreciate your quick response.

    Hi Yadagiri,
    Please check the reply from Carlos in the below thread
    Re: increasing heapsize of java on WINDOWS 2003
    Also check your sm59 RFC destination, i guess there is some problem.
    Delete AI_RUNTIME_JCOSERVER(RFC connection between the Java engine and the ABAP engine) and create it again.
    Hope tht will resolve ur issue...
    Regds,
    Pinangshuk.

  • Errror in RFC connection between SCM ABAP stack and JAVA Stack

    Hi All
    we have installed SCM Abap stack and SCM java stack on same system within single database.when i create rfc connection AI_RUNTIME_JCOSERVER from SCM Java stack to SCM Abap Stack its working fine,but when i am configuring same from SCM Abap to SCM Java using SM59 its giving error.
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: failed to open file G:\usr\sap\SCD\DVEBMGS00\data\sideinfo.DAT
    Error Details     LOCATION: SAP-Gateway on host OPS20SCD1.Octal.pet / sapgw00
    Error Details     CALL: fopen
    Error Details     COMPONENT: SAP-GW-LIB (ReadSideInfo)
    Error Details     COUNTER: 1854
    Error Details     ERROR NUMBER: 2
    Error Details     ERROR TEXT: ENOENT: No such file or directory OR: The system cannot find the fi*
    Error Details     MODULE: gwxxside.c
    Error Details     LINE: 274
    Error Details     RETURN CODE: 451
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Is it compulsory to create RFC connection between abap and java installed on the same system.
    plese suggest.
    Regards

    to configure acceptance of the ABAP (integrated ITS / WebGUI) saplogonticket on the java stack, just log into the java stack (http://FQDN:50xxx/nwa) and select configuration  THe last item in the list is Trusted System... click.
    on the ensuing page, click on the add trusted system button --> by querying trusted sytem.
    Enter the required data on the page:
    system type: ABAP
    host name: FQDN
    System Nr: your instance number
    client (of the productive client)
    and a username and pw with superuser priveliges in the system (SAP_ALL/SAP_NEW, etc).
    the click next
    On the final screen, click finish.
    You have now SSO setup between the ABAP and Java stacks. To configure SSO to accept java saplogontickets on ABAP see:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b0310d6-0801-0010-3185-b2371a280372
    This should resolve your question.

  • Testing SSL Connections, differences between ABAP and JAVA stacks

    Hello,
       I am trying to test an outbound SSL connection to a partner.   I already have multiple outbound connections to many partners, but this new one is causing an issue.   Our firewalls between the two sites are opened as required, I verified that I can telnet to the 443 port of their sever.   I then attempted to connect to their URL, via a Java SOAP message, and it is rejected.  Some kind of error regarding our handshake.
       In an attempt to troubleshoot the issue I entered their URL in SM59 as a HTTPS connection, tested it, it worked fine.   Which indicates to me that the ABAP side works fine.
       I do the same on the Java stack, via the SOA Manager: Destinations, and it fails.
    "Error during ping operation: Error while silently connecting org.w3c.www.protocol.http.Http.Eception: Peer sent alert: Alert Fatal: unexpected message"
      I was thinking that maybe the remote partner only allows specific types of SSL version connection, and the Java side is too low.  i.e. the partner only allows TLS v1, and we are attempting to use SSL v2.    Is there a place to set this on the Java side?  I know I can set inbound parameters on ICM via SMICM.
      Any help or assistance would be most appreciated.
    Thanks,
    Michael Montone

    Hi,
    I suggest that you verify if you use the same release of the SAP Cryptolib  for the ABAP and the Java stack.
    This could explain a difference of support for SSL or TLS.
    Regards,
    Olivier

  • Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables

    Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
    However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from “my_table”).
    The problem seems to be specifically with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. I’ve done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
    The problem appears both with ANSI and UNICODE PostgreSQL drivers.
    Any suggestion of how workaround this problem?
    thanks in advance,
    Raoni

    Dear all,
    I’ve tried different tracing levels with out success. The log file does not seem to be created by Oracle.
    Looking closer to the debug and comm logs from the driver 8.01.0200, I’ve found out that the problem was generated after a table wasn’t found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error “ERROR: current transaction is aborted, commands ignored until end of transaction block”. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=1000641&group_id=1000125&atid=538
    Following the Postgres odbc developers suggestion, I’ve installed the psqlODBC v 08.02.0002 and I’ve got a completely different result.
    As before, the simple query “select * from my_table@hsodbc” returns the result using SQL*Plus clearly faster than before.
    Doing the query “select * from all_tables@hsodbc” the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
    Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
    Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: “can’t read from memory address XXXXX”
    All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
    To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldn’t see any table as before and doing Select * from all_tables@hsodbc we’ve got the message:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from HSPG
    no rows selected
    On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
    The encoding for all DBs is UTF8.
    Any ideas of where could be the problem?
    regards,
    R.

  • Problem while connecting to external ABAP system (on 4.6C rel)

    Hi All,
    I've created WebDynpro application that is supposed to fetch info about users from several ABAP systems. J2EE engine that runs this WebDynpro is directly connected to one of the ABAP systems. I've successfully created identical Adaptive RFC models, maintained SLD entries for my ABAP systems and configured JCO connections for my WebDynpro through WebDynpro Content Manager (http://<host>:port/webdynpro/welcome). I was able to reach all ABAP systems testing my JCO connections from WebDynpro Content Manager.
    The problem I am experiencing is the following:
    the application is working fine for the ABAP system that J2EE (where it's executed) is connected to, but failed to reach the remote ABAP system issuing the following message:
    "Accessing System <Remote ABAP system> is not possible because RFC Metadata was retrieved using System <ABAP system that J2EE is connected>. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!"
    Where else should I have define JCO settings ?
    This remote ABAP system is running on 4.6C so I have no options to install J2EE on it or fully configure SLD for that system.
    It may seem like a dummy question since I am new to WebDynpro programming.
    Thanks in advance,
    Mike

    Hi Rich,
    Thank you for a quick reply,
    Here is what I've done to connect to the remote ABAP system:
    1. Configured this remote system in the SLD as a Technical System (SLD=> Technical Landscape).
    2. Opened WebDynpro Content Administrator and created two JCO's for my application pointed to that remote ABAP system (defined in SLD). I was able to test them successfully reaching that remote system.
    But when I run my application the same error occured.
    What did I miss ?
    Thanks & Regards,
    Mike
    Message was edited by: Mykhaylo Puzankev

  • HELP Creating Connections in the ABAP and JAVA Environments

    Hi good morning,
    I have a problem and I would like your help.
    I'm new at Abap and I'm trying to develop an application from ABAP to connect to an environment of java.
    I watched how to do this in various forums and the help of SAP, but just as I have found make the connection.
    In java I have already developed the server side and I have developed a ABAP function. But is not exactly how it works.
    Can you give me an example of how to send data from the sap application to java? Or give me any manual  please.
    Thank you very much in advance
    RAFA

    Hi Rajesh,
    You can not find no. of JCO connection fron ABAP Stack ......you have to login into JAVA Stack.
    <b>
    If useful ,Reward Points .</b>
    Thanks,
    Prashant.

Maybe you are looking for

  • How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so with my Iphone 4s but not with my Iphone 5

    How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so using my Iphone 4s but not with my Iphone 5

  • Disk Utility to Airport USB disk?

    It looks like the answer is no, but I'm mildly surprised that Apple didn't make this more Apple-like Just checking to see if one can do any "Disk Utility" type of access (Erase, repair, etc) to a USB HD off the AEBS (I have the gigabit version), or i

  • Howto use java with html

    Hi, I have got following project : an axis webcam displays an image thanks to http protocol at the right of my image, I have to create a panel with some java controls. I would like some hints on howto do this? Do I need a to setup a web server or is

  • Creating a New Virtual CU in iw32

    Hello, When I try to create a new Virtual CU (VCU) in IW32 the characteristic fields are already populated with the characteristics of the previously created VCU. But when I save the VCU the characteristics aren't saved with it so when I went back in

  • Help!!! Got 3G S - Lost of  paid applications plus freezing issue!

    Got my iPhone 3G S earlier today. Hooked it up to activated! So far all is good! The bad news is that applications that i paid for did not transfer over on my new iPhone3G S !!!! So was the case with applications the were free. The free ones are not