How to access External SQL via ABAP/4?
Hi,
I have maintailed connection via tcode DBCO, and tried to connect to external SQL server via following codes, but failed all the time, can anybody tell me how to do?
EXEC SQL.
CONNECT TO 'DAN1'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'DAN1'
ENDEXEC.
EXEC SQL.
Thanks and best regards.
check...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05058e8d-0c01-0010-c986-fdc8eaebf37c
Similar Messages
-
Access Enterprise Search via ABAP Web Service
Hello ES experts,
I am looking for more information on how to access Enterprise Search via ABAP web service QSDispatcher, using processQuery operation. I created a client proxy and need information on structure of input and output parameters (query and query result)
Thanks, SrdjanHi Srdjan
You can access the SAP ABAP system by configuring it in the NW ES admin console, any system with version > 4.6C can be integrated in the search engine.
The UI for NW ES is a WebDynpro via Web Browser (In the future will be integrated in Widgets and Portal, etc) but i'm not sure if you want to use the WS to access the results of the ES searching or if you want to integrate a WS from ABAP as part of the searching area...
Please clarify.
Thanks,
Best Regards,
Luis -
How to access MS SQL in Oracle BI Administration?
Hi All,
I'm a new in Oracle BI, I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1:
Steps:
1. building repository (through Physical, Business model and Mapping, Presentation),
2. making Answers from Presentation Services.
=> It ran well and beautiful reports, charts. But now, my DB is stored in Microsoft SQL Server, help me how to access MS SQL in Oracle BI, more details steps, are there any useful links?
Appreciate All.Hi
Do the following
Control panel> Administration tool> ODBC>SystemDSN > ADD > select the driver>Your SQL SERVER credentials
Then test the connection
Go to the BI tool
IMPORT from Database>Select the SQL server connection you have just created>Locate your desired schema> configure the connection pool> import
regards
Roy -
How to access the sql database in applet?
How to access the sql database in applet?
Please help me.import java.applet.*;
import java.awl.*;
import java.sql.*;
//other packages
public class jdb extends Applet
Connection con;
Statement stmt;
String name="drvijay";
String phoneno="9842088860";
public void init(){}
pubilc void stop(){}
public void destroy(){}
public void start()
call();
public void call()
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
stmt=conn.createStatement();
stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
}catch(SQLException e)
System.out.println("error"+e);
System.exit(0);
//<applet code="jdb" height="200" width="200"> </applet>
u this jdbc statement in any of the method..
*/ -
How to connect external webservice from ABAP
Hi,
Please see code pasted below and tell me what is wrong.
We try to connect external webservice via https. Should I install certificate is SAP for this connection? (if YES, how can I do this?)
Should I configure something else in SAP to connect external webservice via https?
DATA: client type ref to if_http_client,
lv_content type String,
lv_xml_string type string,
lv_length type I,
lv_response type I,
lv_node type ref to IF_IXML_NODE,
lv_xml_doc type ref to cl_xml_document.
****Create the HTTP client
call method cl_http_client=>create_by_url
EXPORTING
url = 'http://services-demo.krd.pl/raina/1.0/KrdAPI.asmx'
IMPORTING
client = client
EXCEPTIONS
others = 1.
CALL METHOD CL_HTTP_CLIENT=>CREATE
EXPORTING
HOST = 'services-demo.krd.pl'
SERVICE = '443'
SCHEME = '2'
PROXY_HOST =
PROXY_SERVICE =
SCHEME = SCHEMETYPE_HTTP
SSL_ID =
SAP_USERNAME =
SAP_CLIENT =
IMPORTING
CLIENT = client.
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
others = 4
CONCATENATE
'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
' xmlns:xsd="http://www.w3.org/2001/XMLSchema" '
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rain="http://raina.krd.pl">'
'<soapenv:Header/>'
'<soapenv:Body>'
'<rain:Login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
'<id xsi:type="xsd:string">B03EB34F02</id>'
'<password xsi:type="xsd:string">Akquinet99</password>'
'<appId xsi:type="xsd:string">test</appId>'
'<appInstId xsi:type="xsd:string">test</appInstId>'
'<custom xsi:type="xsd:string">test</custom>'
'</rain:Login>'
'</soapenv:Body>'
'</soapenv:Envelope>'
INTO lv_content.
CALL METHOD client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD client->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~request_uri'
VALUE = '/raina/1.0/KrdAPI.asmx?'.
CALL METHOD client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
call method client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'Login'.
lv_length = STRLEN( lv_content ).
call method client->request->set_cdata
EXPORTING
data = lv_content
offset = 0
length = lv_length.
****Make the call
client->send( ).
****Receive the Response Object
call method client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
*****Get the response content
client->response->GET_STATUS( IMPORTING CODE = lv_response ).
lv_xml_string = client->response->get_cdata( ).
Regards,
MichalHI ,
Error in accessing External Web Service
Calling a secured external web service from ABAP
Edited by: A kumar on Aug 21, 2008 11:58 AM -
How to access external drives while in Windows
Using VMWare Fusion as the system hosting Windows XP. Have specific programs in Windows only but of course they work much better on the IMac. I edit a ton of video and have the vids all stored on eternal drives. These drives are read by the Mac and all show up on the desktop and are accessible for all Mac programs.
Here's the issue. I need to access those external drives from a Windows video editing program being run thru Fusion. The Windows program is accessing a folder via "Shared folder on host" but the only folders showing up there are the ones listed under "Home" om "My Places". I'm sure this is nothing more than a setting but I am in need of help! All my editing is held up at the moment so any assistance is greatly appreciated for this Apple rookie. Thanks.I don't have my laptop with fusion loaded, so I can't think of the exact terms. However, you should be able to set the shared folders in the settings for the virtual machine. The ones you see are the default setup, but you can define more paths to view while in Fusion.
-
How to access calendar rules via java
Hi to all,
We have a process in which we need to set a Timer, but the date must be validated against Calendar Rules. We searched in forums, webs, documentation and we couldn't find a way to do this.
I know it is possible to set an expiration date based on Business Calendar on a Human Task (deadline tab in Human task editor), but this is not what we need.
We actually need a way to set a variable date in the process that can handle only business days. e.g.: 'now' + 2 business days.
Right now we are setting the Timers with this expression from a Business Rule: Duration.from string("PT48H")
Then I associate the business rule output with a Time type variable(deadlineTime) doing: 'now' + deadlineTime
So right after that I can use the Time variable on a timer attached to the human tasks I need. * We need to use business rules because the customer may want to change the times accordingly to their needs through BPM Composer. *
The problem is that this solution does not take into account Saturday and Sundays (holidays are a concern too).
We need to set the expiration time to timers attached to human tasks, but the time should consider working days only. We consulted with experts from Oracle and told us that functionality is available in the PS 6 version. At the moment it is impossible to migrate to that version. I need to know how to access via Java APIs to the calendar rules for checking programmatically.
JDeveloper version: 11.1.1.6
Any suggestion?
Thanks in advance
MarceloHi Yarner,
Once you have all your dll included in a jar and used the nativelib tag, you have to use, at the beginning of you application, the command System.loadLibrary to load all the dll you need. Including the ones called by the others you have direct access.
The dll�s have to be explicitly loaded in the order they are called.
For example: you use lib1.dll and lib2.dll. The lib1.dll needs lib0.dll.
Even if you don't use lib0.dll directly, once its called by lib1.dll you have to put then in the order.
System.loadLibrary("lib0.dll");
System.loadLibrary("lib1.dll");
System.loadLibrary("lib2.dll");
I hope it may help you, good luck.
Mario -
How to use external debugger on ABAP using webdynpro application?
Hello experts,
Im working currently on SAP Netweaver 04 ,EP 6 and R3 is 4.7
im trying to use external debugger in the R3 system via webdynpro application.We have created Jco connections with the same user id which is available on R3 system.the problem is tht external breakpoint on ABAP code is not pinging.we r not able to use external debugger of ABAP.
Can anyone help me out in resolving this issue?
Thanks in advanceHi Latha,
Please try to activate your Debugging using the Tcode SICF.
To activate Goto SICF>EDIT->Debugging-->Activate Debugging
Regards
Vamsi -
How to access PL/SQL Web Services using java
New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?
So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
Regards, Ronald -
How to access a query via MS Access?
Hello BI experts,
we created a query in BI 7.0 and activated the option "Release for OLE DB for OLAP" (=ODBO). It's no problem to access this query via MS Excel 2003.
But now we have the requirement to access this query via MS Access 2003. Is there a way to do this?
MS Access 2003 has no ODBO driver. Only connectivity to ODBC is supported.
Has anyone of you a solution?
Thanks in advance and best regards
DieterDear Dieter
Have you had the answer about it??
I have the same problem
Kind Regards
Ariel -
[How To] access Ms SQL Server2k multiple instance via JDBC?
hi,
could anybody tell me how to?
sql server 'servera': ms sql 2000 enterprise (english)
installed 3 name instances ('instance1','instance2' and 'instance3')
jdbc driver: i-net opta 2000
I don't find any parameter like 'instance' in driver's document, so how could I present my db instance?
Here is my attemp, but not hit:
"jdbc:inetdae7:servera\instance1?database=aaa" via tcp/ip and
"jdbc:inetdae7:\\servera$instance1\pipe\sql\query?database=aaa" via pipe
who can help me, thanksThough I am not an expert in this area, I wish to give my thoughts. Each instance will be listening to a particular port. So in the url string you can specify the port to connect to the particular instance. For example
jdbc:oracle:thin:@127.0.0.1:1521:oracle","scott","tiger
the above url string is for the instance running on my local box listening to port 1521.
If I have one more instance running on 1523, I just change the port number.
Hope this gives you some insight.
Cheers.
Sekar -
How to access external hard drive on the mac via airport TC
I Just bought airport TC 2TB and completed setup. Wi-fi and wired connection are working properly. I can access the Airport TC 2 MB HD from mac mini but I haven't seen that I plugged in 640 MB external samsung hard drive to USB port.
File sharing is active on the Airport Utility
Airport base station fw: 7.7.3
Anybody has an experience how to solve this issue please share with me. Many thanks in advanceThe Samsung needs to be formatted the same as the Time Capsule.......in Mac OS Extended (Journaled).
Is it? -
How to access external drive attacked to AirPort Extreme from ipad
Have attached external drive to AirPort Extreme via USB, how can I access those files from iPad / iPhone?
Check to see if the File Browser App can do this:
App Store - FileBrowser - Access files on remote computers -
How To access MS SQL Server 2000 in Linux
I have a MS SQL Server 2000 on Windows2000,
For some speical reasons,I need to write a JAVA
Program running on Linux which can access datas
in MS SQL Server....How do I code????You should be able to it, but I think you'll need to use a third party JDBC driver.
I've used a driver from http://www.jturbo.com and another from http://www.inetsoftware.de/ , and if my memory is correct both worked quite well. You can search for other 3rd party drivers here: http://industry.java.sun.com/products/jdbc/drivers
Good luck. -
How to Access External PostgreSQL Database from SAP On Linux?
Hi all!
I have Linux-Orale11-ERP6.0. I need connect to an external database PostgreSQL on Linux. I installed the driver ODBC on Linux-Oracle11-ERP6.0 and command isql-v<alias> connect to PostgreSQL:
root@sap etc# isql -v <alias>
Connected!
sql-statement
help tablename
quit
SQL>
How do I now configure the Oracle DB Link?I installed DG4ODBS.
Configured initH2P.ora, listener.ora and tnsnames.ora.
/oracle/DEV/112_64/hs/admin/initH2P.ora:
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = H2P
HS_FDS_TRACE_LEVEL = OFF
#HS_FDS_SHAREABLE_NAME = /usr/pgsql-9.0/lib/psqlodbc.so
# ODBC specific environment variables
#set ODBCINI=/etc/odbc.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
/oracle/DEV/112_64/network/admin/listener.ora
# Filename......: listener.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/701-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#1 $
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = DEV.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = DEV)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = sap-dev)
(PORT = 1527)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = SUPPORT
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = DEV)
(ORACLE_HOME = /oracle/DEV/112_64)
#########I inserted###########
(SID_DESC =
(SID_NAME = H2P)
(ORACLE_HOME = /oracle/DEV/112_64)
(PROGRAM=dg4odbc)
/oracle/DEV/112_64/network/admin/tnsnames.ora
# Filename......: tnsnames.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/701-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#1 $
DEV.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = sap-dev)
(PORT = 1527)
(CONNECT_DATA =
(SID = DEV)
(GLOBAL_NAME = DEV.WORLD)
#########I inserted###########
H2P.WORLD =
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=77.120.107.XXX)
(PORT=5432)
(CONNECT_DATA=(SID=H2P))
(HS=OK)
And when I run: tnsping H2P, I get an error:
[root@sap admin]# tnsping H2P
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 29-AUG-2011 15:37:00
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/usr/sap/DEV/SYS/profile/oracle/sqlnet.ora
TNS-03505: Failed to resolve name
Although:
[root@sap admin]# tnsping DEV
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 29-AUG-2011 16:38:07
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/usr/sap/DEV/SYS/profile/oracle/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = SAP.WORLD) (PROTOCOL = TCP) (HOST = sap-dev) (PORT = 1527))) (CONNECT_DATA = (SID = DEV) (GLOBAL_NAME = DEV.WORLD)))
OK (10 msec)
what am I doing wrong?
Maybe you are looking for
-
Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal
Hi All, I am trying to implement Oracle 10g RAC on my laptop using vmware and openfiler software . But while executing the command #mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs11/part1 I am getting the error Format Error : mkfs.ocfs2 1.
-
How to update apple maps?
I see Statue of Liberty fixed with correct 3D in maps app from a blog....but when I open my maps app,the statue was not fixed....I think that maps update did't came to me....I have a ipad 3 with always connected to net....how to get new map updates..
-
I've been using my E71 for 6 months but it has left me with a few small questions. 1.) The 2.5 audio port produces awful hissing when paired up with a pair of Sennheiser in-ear headphones (the noise can be heard on the bundled nokia headphones, just
-
the good news: the iPhone automatically implemented all my account info from apple mail the first time I activated & synced it. great! the bad news - I need to use a different outgoing mail server - I can't send mobile mail from the same server I use
-
Hi, i have a small issed ever since i owned this desk top. whenever i do an update it always tels me thatThere was a problem installing this update to your super drive?