SAP connection from JCO

Hi All,
Can anyone help me to connect to SAP from JCO using logon group....appericate if you can give some example such as sample code on how to connect using logon group. Its is urgent.
thanks!
prab

Hi Pardeep,
Thanks a lot!!!
It seems now the connection is working. I passed the parameters u have told and now I am not getting any connection error.When  I print
System.out.println(myClient.getAttributes());
It returns me the following with correct IP address:
OWN_HOST:              bpcbz6n
PARTNER_HOST:          172.30.xxx.xxx
SYSTNR:                02
SYSID:                 TS1
CLIENT:                203
USER:                  CPIC-DIS-BPC
LANGUAGE:              E
ISO_LANGUAGE:          EN
OWN_CODEPAGE:          1100
OWN_CHARSET:           ISO8859_1
OWN_ENCODING:          ISO-8859-1
OWN_BYTES_PER_CHAR:    1
PARTNER_CODEPAGE:      1100
PARTNER_CHARSET:       ISO8859_1
PARTNER_ENCODING:      ISO-8859-1
PARNER_BYTES_PER_CHAR: 1
OWN_REL:               640
PARTNER_REL:           620
PARTNER_TYPE:          3
KERNEL_REL:            640
TRACE:
RFC_ROLE:              C
OWN_TYPE:              E
CPIC_CONVID:           385948
So this means connection is working?
But when I call the RFC, it is returning me null value. When I call the following RFC, the functionTemplate instance is returning the "null" value. What can be the cause of it?This RFC exists in the SAP. I hope connection is working?
IFunctionTemplate functionTemplate = aRepository.getFunctionTemplate("Z_RFC_PLANTS");
thanks!

Similar Messages

  • SAP connectivity from Java to SAP 4.0

    Hi All,
    I am tried to send an IDOC(whose basic type, extension are known) to SAP system(ECC 6.0) using the SAP JCo API 3.0 and all works well.
    Now I used the same piece of code to connect to SAP 4.0 system but the following basic line of code has ran into a IDOCRUNTIMEEXCEPTIION
    doc = iDocFactory.createIDocDocument(iDocRepository, iDocType, iDocCymType);
    com.sap.conn.idoc.IDocRuntimeException: Unable to get metadata for MATMAS03 with extension YES2P_IEXT_MATMAS03: Function module "IDOCTYPE_READ_COMPLETE" not found.
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1330)
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData(SAPRepository.java:1122)
    at com.sap.conn.idoc.jco.rt.SAPRepository.getRootSegmentMetaData(SAPRepository.java:886)
    at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:119)
    at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:57)
    at com.sap.conn.idoc.jco.rt.JCoIDocDocument.<init>(JCoIDocDocument.java:58)
    at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:143)
    at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:32)
    at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:228)
    at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:24)
    at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:76)
    at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:38)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
    at hC.b(SourceFile:207)
    at com.mendix.core.Core.execute(SourceFile:226)
    at ll.a(SourceFile:69)
    at mv.a(SourceFile:72)
    at mu.a(SourceFile:151)
    at mu.executeAction(SourceFile:98)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
    at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
    at hC.b(SourceFile:207)
    at com.mendix.core.Core.execute(SourceFile:304)
    at com.mendix.core.Core.execute(SourceFile:280)
    at mxsapconnectorcore.actions.IDocOutputQueue.run(IDocOutputQueue.java:116)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: Function module "IDOCTYPE_READ_COMPLETE" not found. (raised by system D10|hslsid10)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:677)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1830)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:936)
    at com.sap.conn.jco.rt.ConnectionManager.internalExecute(ConnectionManager.java:411)
    at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.execute(SAPRepository.java:1722)
    at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.access$100(SAPRepository.java:1671)
    at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1256)
    ... 26 more
    Caused by: RfcException: [D10|hslsid10]
        message: Function module "IDOCTYPE_READ_COMPLETE" not found.
        Return code: RFC_SYS_EXCEPTION(3)
        error group: 104
        key: RFC_ERROR_SYSTEM_FAILURE
    Exception raised by D10|hslsid10
    at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2038)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1778)
    ... 33 more
    Caused by: com.sap.conn.rfc.exceptions.RfcGetException: Function module "IDOCTYPE_READ_COMPLETE" not found.
    at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1148)
    at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:120)
    at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)
    at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1980)
    ... 34 more
    Now my question is how do I create an IDOC(a blank one) using this API for 4.0 system which doesnt seem to have this function module OR does anyone know other method create IDOC using SAP JCo3.
    Please comment. Thanks in advance

    We are also still looking for an answer for this issue. The server in our case is running SAP 4.0 package 17 and the function (IDOCTYPE_COMPLETE_READ) only gets added in package 42. However the JCo connector page states it supports R/3 3.1 and newer, so is this a bug or is there an alternative function we could use?

  • Call sap transaction from java

    can anyone tell me how to call SAP transaction from JCO,
    cheers
    Ajay

    Hi Ajay,
    You should find or create functional module which covers your requrements.
    Best regards, Maksim Rashchynski.

  • Who Make a connection from WebDynpro to SAP R/3

    Hi All
        Pls...Can any one explain me the settings for making connection
        From WebDynopro to SAP R/3 ???
    Regards
    Prasad K

    Hi
    Go thru the links,
    Web Dynpro - Problem with (SLD) JCO Connection
    JCO , Web Dynpro & SLD connection
    and for details read,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
    Regards
    Srinivasan T

  • Connect from SAP gateway to RFC server failed - Java StandAlone app X SAP RAC System

    Dears,
    I'm developing a Java application (RFC SERVER) with JCo3 and I need to connect to SAP RAC system.
    I have configured the TCP/IP connection via transaction SM59, but when I try to start my server I face the error below (dev_jco_rfc.trc):
    ==========================================================================================
    **** Error file opened at 20140714 112024 Brasilia Time Rel 3.0.10 (2013-08-08) [720.440]
    Error:  >Mon Jul 14 11:20:24,636<    RfcException: [null]
        message: Connect from SAP gateway to RFC server failed
    Connection parameters: TYPE=A DEST=VSPAGUE ASHOST=cpe1601 SYSNR=01 SAPROUTER=/H/155.56.49.28 PCS=1
    LOCATION    SAP-Gateway on host ld7624.dmzwdf.sap.corp / sapgw01
    ERROR       hostname 'cpe1601' unknown
    TIME        Mon Jul 14 16:20:25 2014
    RELEASE     740
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -2
    MODULE      /bas/740_REL/src/base/ni/nixxhl.cpp
    LINE        193
    DETAIL      NiHLGetNodeAddr: hostname cached as unknown
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    ==========================================================================================
    This problem happens when my app executes the line:
    JCoServer myServer = JCoServerFactory.getServer(myServerName);
    My system properties:
    jco.client.lang=EN
    jco.destination.peak_limit=10
    jco.client.client=800
    jco.client.passwd=********
    jco.client.user=********
    jco.client.sysnr=01
    jco.destination.pool_capacity=3
    jco.client.ashost=/H/155.56.49.28/H/cpe1601
    jco.server.connection_count=3
    jco.server.gwhost=/H/155.56.49.28/H/cpe1601
    jco.server.progid=VSPAGUE
    jco.server.gwserv=sapgw01
    jco.server.repository_destination=VSPAGUE
    Using SAP Logon i can connect to server cpe1601 system E16 without problems.
    Please, I really need some help, because my knowledge on SAP platform is minimum.

    Hi Markus,
    Changing ASHOST=ld7624.dmzwdf.sap.corp as you have suggested, I got the error message: Connect to SAP gateway failed ...
    As you could see, the host I'm connecting is from SAP RAC Service.
    Here in our company we have only SAP Logon and my RFC Application, and I can connect to SAP remote system via SAP Logon with this settings:
    System Connection Parameters
    Description: SAP ECC 6.0
    Application Server: cpe1601
    Instance Number: 01
    System ID: E16
    SAProuter String: /H/155.56.49.28/H/
    Below the connection information I received from SAP RAC SUPPORT for testing purposes:
        E16 System:
        SID: E16
        Client: 800
        System Number: 01
        Server: cpe1601
        Component Version: SAP ERP Central Component 6.0 Enhancement Pack 6 Suite on HANA
        User: ********
       Password: ********
       SAProuter String:
       If you don't plan to use SAPRouter at your end,
       /H/155.56.49.28/H/    

  • Error: Connect from SAP gateway to RFC Server failed

    Hi
    I am trying to connect SAP server using the java (JCO connection), and getting following error. While I am able to connect to the same sever using SAP Logon pad with the same ipaddress (hostname) and logon credentials.
    Please kindly help.
    Erro: Connect from SAP gateway to RFC server failed.
    Connect_PM GWHOST = hostname, GWSER = sapgw03, ASHOST=hostname, SYSNR=03
    LOCATION  SAP-Gateway on host hostname / sapgw03
    ERROR       timeout during allocate
    TIME Wed Oct 31 05:31:45 2007
    RELEASE 640
    COMPONENT SAP-Gateway
    VERSION 2
    RC 242
    MODULE gwr3cpic.c
    LINE 1795
    DETAIL no connect of TP sapdp03 from host hostname after 22 sec
    COUNTER 3

    Hi K Patil,
    Acording to me you are faceing this issue because the entry of your backend System is not in the SLD (System Landscape Directory ) of your server.
    to make this work you have to make entry in the SLD of your server
    fort that plesae acess this link.
    Re: JCo connection Error
    Re: wt is SLD.. how to do configure it
    Please Reward Points if Helpfull.
    Regards
    Vinit
    Edited by: Vinit Soni on Dec 19, 2007 7:20 AM

  • What is JCo in SAP connectivity

    Hi all,
                i want to connect to SAP system from java program.Is it that i need a JCO jar file.
    I am new to this.the code i got by searching in all the forums for sap connectivity is
    import com.sap.mw.jco.JCO;
    import com.sap.mw.jco.IRepository;
    public class checkSAP{
         private JCO.Client client = null;
         private JCO.Function function = null;
         private IRepository repository = null;
                     try {
                        client = JCO.createClient(
                                connClient,     // SAP client
                                connUser,       // userid
                                connPW,         // password
                                connLang,       // language
                                connHost,       // host name
                                connHostSyst ); // System number
                        client.connect();
    catch (JCO.Exception ex) {
                        System.out.println("Caught an exception: \n" + ex);
    can anyone plz help me how to create a conncetion and retrive data
    Regards
    Chandra

    Hi chandra,
    pls find information on how to use jco here ... Re: Create a Planned order from JAVA JCO
    regards, jens

  • How to establish a connection from java to SAP Netwevare server

    Hi All,
    As per my requirement i need to create a connection from Java to SAP Netwevaer Server inorder to access the docs from KM. PLZ provide some sample code
    (I know how to connect from java to SAP R/3 syatem using JCo connector).
    Can anybody help me.
    ADV Thanks

    Look
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6615ea90-0201-0010-be81-e7a300fdf212
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

  • HTTPs connection from SAP WebAS

    Hello,
    I have to establish a connection from SAP WebAS to an iSaSiLk server via HTTPS.
    The iSaSiLk authentication is based on client certificates.
    I've created a SSL client PSE, generated the Certificate Request, imported the certificate response and the chain of certificates associated  with no errors. When testing the connection we're getting the following error message:
    SAP icm log:
    [Thr 1087400256] ->> SapSSLSessionInit(&sssl_hdl=0x2aaaba679980, role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT))
    [Thr 1087400256] <<- SapSSLSessionInit()==SAP_O_K
    [Thr 1087400256]      in: args = "role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT)"
    [Thr 1087400256]     out: sssl_hdl = 0x1a3310c0
    [Thr 1087400256] ->> SapSSLSetNiHdl(sssl_hdl=0x1a3310c0, ni_hdl=22)
    [Thr 1087400256] NiIBlockMode: set blockmode for hdl 22 TRUE
    [Thr 1087400256] <<- SapSSLSetNiHdl(sssl_hdl=0x1a3310c0, ni_hdl=22)==SAP_O_K
    [Thr 1087400256] ->> SapSSLSetSessionCredential(sssl_hdl=0x1a3310c0, &cred_name=0x1a49e4e0)
    [Thr 1087400256]   SapISSLComposeFilename(): Filename = "/usr/sap/XID/DVEBMGS00/sec/SAPSSLSPHTID.pse"
    [Thr 1087400256] <<- SapSSLSetSessionCredential(sssl_hdl=0x1a3310c0)==SAP_O_K
    [Thr 1087400256]      in: cred_name = "/usr/sap/XID/DVEBMGS00/sec/SAPSSLSPHTID.pse"
    [Thr 1087400256] ->> SapSSLSetTargetHostname(sssl_hdl=0x1a3310c0, &hostname=0x1a4a09e0)
    [Thr 1087400256] <<- SapSSLSetTargetHostname(sssl_hdl=0x1a3310c0)==SAP_O_K
    [Thr 1087400256]      in: hostname = "<remoteServer_to_be_accessed>"
    [Thr 1087400256] ->> SapSSLSessionStart(sssl_hdl=0x1a3310c0)
    [Thr 1087400256]   SapISSLUseSessionCache(): Creating NEW session (0 cached)
    [Thr 1087400256] Tue Jan 13 10:10:22 2009
    *[Thr 1087400256] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL*
    [Thr 1087400256]    session uses PSE file "/usr/sap/XID/DVEBMGS00/sec/SAPSSLSPHTID.pse"
    [Thr 1087400256] SecudeSSL_SessionStart: SSL_connect() failed
      secude_error 536871693 (0x2000030d) = "none of the PSEs registered with hSsl can suffice the negotiated SSL cipher suite"
    [Thr 1087400256] >>            Begin of Secude-SSL Errorstack            >>
    [Thr 1087400256] ERROR in ssl3_get_certificate_request: (536871693/0x2000030d) none of the PSEs registered with hSsl can suffice
    [Thr 1087400256] <<            End of Secude-SSL Errorstack
    [Thr 1087400256]   SSL_get_state() returned 0x00002150 "SSLv3 read server certificate request A"
    [Thr 1087400256]   No certificate request received from Server
    [Thr 1087400256] <<- ERROR: SapSSLSessionStart(sssl_hdl=0x1a3310c0)==SSSLERR_SSL_CONNECT
    [Thr 1087400256] ->> SapSSLErrorName(rc=-57)
    [Thr 1087400256] <<- SapSSLErrorName()==SSSLERR_SSL_CONNECT
    [Thr 1087400256] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT [icxxconn_mt
    On the iSaSiLk server we're getting:
    ssl_debug(2): Starting handshake (iSaSiLk 3.06)...
    ssl_debug(2): Received v3 client_hello handshake message.
    ssl_debug(2): Client requested SSL version 3.0, selecting version 3.0.
    ssl_debug(2): Creating new session 11:5F:04:C9:0D:32:15:B9...
    ssl_debug(2): CipherSuites supported by the client:
    ssl_debug(2): SSL_RSA_WITH_RC4_128_SHA
    ssl_debug(2): SSL_RSA_WITH_RC4_128_MD5
    ssl_debug(2): SSL_RSA_WITH_3DES_EDE_CBC_SHA
    ssl_debug(2): SSL_RSA_WITH_DES_CBC_SHA
    ssl_debug(2): SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
    ssl_debug(2): SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
    ssl_debug(2): SSL_RSA_EXPORT_WITH_RC4_40_MD5
    ssl_debug(2): CompressionMethods supported by the client:
    ssl_debug(2): NULL
    ssl_debug(2): Sending server_hello handshake message.
    ssl_debug(2): Selecting CipherSuite: SSL_RSA_WITH_RC4_128_SHA
    ssl_debug(2): Selecting CompressionMethod: NULL
    ssl_debug(2): Sending certificate handshake message with server certificate...
    ssl_debug(2): Sending certificate_request handshake message...
    ssl_debug(2): Sending server_hello_done handshake message...
    ssl_debug(2): IOException while handshaking: Connection closed by remote host.
    ssl_debug(2): Sending alert: Alert Fatal: handshake failure
    ssl_debug(2): Shutting down SSL layer...
    ssl_debug(2): Closing transport...
    From the iSaSiLk everything seems to be OK, but on the SAP WebAS the error "none of the PSEs registered with hSsl can suffice the negotiated SSL cipher suite" is really unclear, since the cipher chosen by the iSaSiLk is one of the ciphers sent by SAP WebAS...
    Can anyone give me any suggestion?

    Hello Olivier,
    Thanks for your answer.
    I've implemented note 800240 which facilitates the PSE analysis by implementing the report ZSSF_TEST_PSE. With this report I'm able to check all the PSE content, which are:
    Filename            SAPSSLSPHTID.pse
    PIN                 <no>
    Signature           X
    Encryption          X
    Profile Parameter
    DIR_INSTANCE                   /usr/sap/XID/DVEBMGS00                       /usr/sap/XID/D00
    sec/dsakeylengthdefault                                                     1024
    sec/libsapsecu                 /usr/sap/XID/SYS/exe/run/libsapcrypto.so
    sec/rsakeylengthdefault                                                     1024
    ssf/name                       SAPSECULIB
    ssf/ssf_md_alg                                                              SHA1
    ssf/ssf_symencr_alg                                                         DES-CBC
    ssf/ssfapi_lib                 /usr/sap/XID/SYS/exe/run/libsapcrypto.so
    ssf2/name
    ssf2/ssf_md_alg                                                             SHA1
    ssf2/ssf_symencr_alg                                                        DES-CBC
    ssf2/ssfapi_lib
    ssf3/name
    ssf3/ssf_md_alg                                                             SHA1
    ssf3/ssf_symencr_alg                                                        DES-CBC
    ssf3/ssfapi_lib
    Environment variables
    USER                xidadm
    SECUDIR             /usr/sap/XID/DVEBMGS00/sec
    PSE
    Validity            18.12.2008 19:47:04   18.12.2009 19:47:04
    Algorithm           RSA (OID 1.2.840.113549.1.1.1)
    Test signature
    Signature OK
    Verification OK
    Test encryption
    Encryption OK
    Decryption OK
    As you can see, the cipher algorithm used is RSA. Any suggestion... ?
    An iSaSiLk server "is a Java programming language implementation of the SSLv2 (client-side), SSLv3, TLS 1.0 and TLS 1.1 protocols. It supports all defined cipher suites (except for Fortezza), including all AES and PSK cipher suites. iSaSiLk implements all standard TLS extensions, comes with an easy to use API and operates on top of the IAIK-JCE Javau2122 Cryptography Extension. iSaSiLk is highly configurable and will work with any alternative JCE implementation supported by a proper provider for supplying the required cryptographic algorithms".
    Once again thanks for your answer.

  • Dbcon connection from sap db2 to external sql server

    Hi ,
    I am trying to connect from my sap server which is in unix platform with DB2 database to external SQL server using DBCON as  MSSQL_SERVER=<server_name> MSSQL_DBNAME=<db_name>. But while running ADBC_TEST_connection i am getting the error . When i check the error log it says
    Loading DB library '/usr/sap/DVL/SYS/exe/run/dbmssslib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/SID/SYS/exe/run/dbmssslib.so") FAILED
      "Unable to find library '/usr/sap/DVL/SYS/exe/run/dbmssslib.so'."  [dlux.c       445]
    M  {root-id=002655A9DCD21EE3B89D69F99DF39F0D}_{conn-id=00000000000000000000000000000000}_0
    B  *** ERROR => Couldn't load library '/usr/sap/SID/SYS/exe/run/dbmssslib.so'
    How to resolve this issue. As it was mentioned in few forum we need to download the dbsl library from kernel patches and to load in kernel path. As my  db is DB2  can  we download dbmssslib.so this library and load in kernel file? Is it will work?
    Regards,
    Rai

    Hi Rai,
    This error indicates that the ABAP stack could not find the SAP DBSL for SQL Server (dbmssslib.dll) in the kernel directory. If you encounter this error on a Unix - based server the root cause is clear: the DBSL does not exist for other platforms than Windows or Linux x84_64. In this case use a Windows-based or a Linux x86_64-based SAP Application Server to establish the connection. If your system does not contain a Windows-based or a Linux x86_64-based Application Server you need to setup a small one as workaround. If you encounter this error on a Windows Application Server or a Linux x86_64 based Application Server make sure that the DBSL is properly installed in the kernel directory as explained in the document below.
    For more details on configuration and troubleshooting refer to below SCN document
    How to access an external Microsoft SQL Server database
    Hope this helps.
    Regards,
    Deepak Kori

  • Remote Connection from SAP to MS-SQL server

    Hello Experts,
    We have been following 2 options so far and we have come across some issues
    The first Option is to call a stored procedure (this is our preferred method) which does the data transfer for us
    We have been able to test this scenario successfully from SQL Server side
    However, while calling the stored proc via native SQL from ABAP we have come across an issue which is due to SQL 2005 changes (Schema implementation and difference in the security context)
    While calling the stored procedure from the ABAP Code we have an error
                The program short dumps with runtime error DBIF_DSQL2_SQL_ERROR, exception CX_SY_NATIVE_SQL_ERROR. The database error code is 15274, and the error text is
                 "Access to the remote server     is denied because the current security context is not trusted."
    This issue is new after the SQL Server 2005.
    We are trying to resolve that.
    Secondly we have been trying the DBCON option as well as per OSS Note 323151
    We have a few things thatu2019s impacting our scenario:
    The remote servers are in a different domain
    The remote servers are located  in DIZ
    Remote server is a named instance
    Remote server has been configured with a different port than standard (1565) u2013 All Connection strings will need port in there
    The Database name starts with a numeric value
    Due a combination of factors as mentioned above the standard approach does not work
    Have any of you used this approach while connecting from SAP to MS-SQL server? Do you know of any successful methods to connect to SQL using ABAP (or not) from SAP.
    Thanks in advance,

    Yes,
    DBConnect & UDConnect.
    Works like a charm.
    We write data into a MS-SQL database via DBConnect & an ABAP program (using open sql).

  • RFC connection from SAP Data services to SAP ECC

    We have data services set up in linux machine. I am trying to set up RFC connection between data services and SAP ECC.
    From data management console after creating RFC connection i am getting "RFC_bad_connection" error message. Username , password, system number, hostname and client is working from SAP GUI and has all the authorizations. SAP  gateway and service is name is correct.
    Did anyone had similar issue and what was the solution. Do we have start the RFC connection from linux data services machine, i didn't see any sh executable to do so.
    Thanks in advance for helping to solve the RFC connection issue.
    Edited by: gupta sasha az on Dec 19, 2011 7:24 PM

    I am new to SAP and we have just started work on Data Services.
    I wanted to know the complete procedure as in how can I establish a connection between Data Services and ECC.
    Thanks for your help and time.

  • Designer Connection from SAP R3

    Today it is possible to have connection from Designer to SAP R3, if possible I can send documentation about this issue is very important to our company know of their viability.
    I appreciate your help.
    Greetings

    Hi Ingo;
    We have SAP R/3 system running on Oracle Database. What I would like to ask is, is it possible to connect directly to the oracle to build a universe using R/3 tables in Oracle?
    Thanks in advance
    Dogus

  • SAP DB Connection from SAP BI on HP UNIX to MS SQL External Database

    Dear All,
    Greetings!
    I have a scenario to configure a SAP DB Connection from SAP BI System on HP UNIX 11i to the external legacy system MS SQL 2000 Enterprise for data upload. I am interested in connecting the SQL server as a Source System to the BI System.
    I read through documents mentioning about installation of a Client driver in the SAP BI System, I also downloaded the JDBC client software and tried installing the same, but the steps as mentioned Setting the CLASSPATH or connecting to the server did not work.
    Please help me in connecting the SQL Server as Source System, I would like to know in detail about the same - so kindly help me with the links to documents and guides about the same.
    Thank you
    Regards,
    Vineeth Damodar

    Short answer: this does not work.
    Long answer: To connect directly to the database you need
    - a database client for the source system
    - a database interface library for the source system
    Both of them are not available for HP-UX if the target database is SQL server --> doesn't work.
    What you can do is: add a Windows application server to your  BI system (heterogeneous installations work and are supported) and add there the database client and the database interface library.
    Markus

  • Connection from SAP ERP 6 to B1i2007

    Hello,
    the test-connection between B1i and SAP is working, but when trying to test the connection from SAP to B1i, SAP gives the error mesaage that "the program is not registered".
    The B1i-System seems to be not registered in the SAP and it is only shown as "external client" (and not as registered server).
    Another problem is that in B1i we have entered as programID-name "B1iRFC" but SAP shows "tomcat5" as TP-name.
    I thought B1i would register automatically on the SAP with the name of the programm-id entered.
    Do we have to change someting in the tomcat-server or where to find the problem?
    Thank you,
    Peter

    Hello Eddy,
    thank you for your answer, but in R/3 I define a RFC-connection with a registered server programm by using the programID out of the B1i-RFCP-configuration, right?
    And when trying to make a test-connection, I got an error message that there is no registered program with this programID.
    I thought that B1i have to be registered in SAP or in the SAP-Gateway with the name of this programID.
    I think my problem is the registered server program in R/3. Where do I get this program and how to register in the R/3 gateway? Isn't the tomcat-server this program?
    Best regards,
    Peter

Maybe you are looking for

  • Quicktime 7.5 - Black Video and no Audio - Using Windows Vista

    Hello, I tried asking this, but I don't think I was clear enough. Current Computer - Dell Inspiron, Quad Core, 4gig Ram, < 1yr old. Running OS - Vista Home Up until recently Quicktime worked fine, then all of the sudden the video is gone. The audio i

  • How add grant permission in java.policy

    hi master sir serch in my system C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security C:\Program Files\j2sdk_nb\_jvm\lib\security C:\Program Files\Java\j2re1.4.1_03\lib\security C:\Program Files\Java\jre1.5.0_10\lib\security sir i have many java.pol

  • MS Active Directory LDAP Authentication/Locking Issue.

    Dear All, We are a software company; we have implemented feature of LDAP Authentication in our product using Java API and its working fine from our network environment. We have used following things with LDAP feature. 1. User Authentication. 2. Locki

  • CRM Office 2007 - Windows 7 problem

    Hello Experts, I need your help about something. When I try to attach a word document to a quotation, it seems like it's opening the document but closes back. I have done the activex settings of my web browser but it's still the same. It only happens

  • Showing/Hiding annotation with onFocus/onBlur

    Hi- I'm having trouble using the onBlur and onFocus events in the same form field. I have an annotation that has these props when the document loads: What hidden=true and popupOpen=false On a form field, I've attached the following script to the onFo