0% found this document useful (0 votes)
0 views3 pages

Fetch Data From SQL Server to SAP

Uploaded by

ANDRE DWI CAHYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views3 pages

Fetch Data From SQL Server to SAP

Uploaded by

ANDRE DWI CAHYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Fetch Data From SQL Server to SAP https://www.stechies.

com/fetch-data-from-sql-server-sap/

Login Register

Python Photoshop SAP Java PHP Android C++ Hadoop Oracle Interview Questions

Articles Other

SAP ABAP » SAP ABAP Forum

Fetch Data From SQL Server to SAP

Tools to create what you


For creators who love to
draw and paint. Clip
Hi Experts, Studio Paint - Free Trial

We have a requirement to connect to SQL Server from SAP and fetch data from it

directly into SAP. We have tried with RFC call function destination statement. But TUTORIALS

later found that we can't use that for 'G' type of connections created using SM59.
What is SAP ABAP?
Should we change the type of connection or use some other methodology? Can

anyone help us out? SAP ABAP Training

Tutorials for Beginners


Thank you

ABAP Data Types and

Huawei Cloud Tech Summit


Focus on hot topics: distributed cloud, cloud native, audio/video, and big data.

huaweicloud.com OPEN

ABAP Data Dictionary

ABAP Views Types

Comments
SSCR Key in SAP ABAP

16 Aug 2013 12:57 pm Sushma ABAP Script Commands

Hi,

1 of 7 16/06/2021, 10:57
Fetch Data From SQL Server to SAP https://www.stechies.com/fetch-data-from-sql-server-sap/

You could use native sql (run abaphelp with exec sql performing... and search
ABAP Menu & Screen
for oss notes related to exec sql.)
Painter

16 Aug 2013 12:57 pm Sushma ABAP Search Help


First of all you should check whether your SAP is on Windows environment or
ABAP Lock Object
not . If yes then you can connect through T.code : DBCO of sap by passing

required parameters of SQL server. This connection can be used in any SAP NEW NEW

program.

Secondly, if the SAP is on other environment like HPUX or Solaris etc then

it is a tough job like you need to install Windows Instance and then connect NEW NEW
your SQL through that via T.Code mentioned above.

Hope it works for you.

16 Aug 2013 12:57 pm Sushma NEW NEW

Hi,

I presume the SQL server is another database. For that, you need to define the

connection to this other database.

A few hints (haven't used them myself, but I know of their existence) PRICE DROP NEW

- check transaction DBACOCKPIT for setting up the connection to the other


database.

- table DBCON contains these connections.

- Instead of EXEC SQL, you can also use ADBC classes.


Solusi Kebutuhan Industri
- as of the new WAS7* release (I think WAS731) there is also option to use monotaro.id

native SQL with the addition CONNECTION.


ABAP Function Modules

16 Aug 2013 12:57 pm amit butola


ABAP Classes
Thanks for the answer but in order to use native SQL, we must use the
SAP ABAP Performance
connection created using DBCO right?
Tuning
What should we provide in conn info field for SQL Server connection in DBCO?

I gave, ABAP OOP's


MSSQL_SERVER=tcp:192.168.2.109 MSSQL_DBNAME=RFC

OBJECT_SOURCE=DBO ABAP Smartforms

ABAP WEB DYNPRO


But I got the error,
Synonyms missing: Please run initialization script as per SAP-note 706927 ABAP SAPScript

in ST04.
ABAP User Exits,

Customer Exits and


19 Aug 2013 6:05 am Sushma

2 of 7 16/06/2021, 10:57
Fetch Data From SQL Server to SAP https://www.stechies.com/fetch-data-from-sql-server-sap/

Hi, BADI

SAP ABAP PBO and PAI


How are you actually doing your connection and from what? .NET? VB? What
do your connection strings look like. ABAP Core Data Service

ABAP Native vs. Open


I've written several scenarios using VBA from Microsoft Access where the code
SQL
logs in using a normal user ID capable of executing an RFC, and calling a BAPI

to get the data needed. SAP ABAP Interview

Questions
19 Aug 2013 6:06 am Sushma

Hi, SAP ABAP Certification

Cost

I agree. I use Native SQL and DB Connection parameters are

stored in table DBCON. Be sure that SAP servers (Apps and DB) have access

to SQL Server server in your landscape (network rights..ping test). Toko Online untuk Perusahaan
monotaro.id

Here is an example on how to connect to SQL Server in table DBCON. NEW

Field DBCON-CON_ENV: MSSQL_SERVER=CLUSTERSQL3TEST

MSSQL_DBNAME=dboCMSSAP

Try to do it nicely in ABAP OO using classes. All DB access are

encapsulated into methods so this way, other programmers can easily reuse

without having to code Native SQL again and again. In fact, they just

don't know what kind of DB they are accessing. All Native SQL code is

hidden.

19 Aug 2013 6:06 am Sushma

You can still make the same calls into AIX without issue. Our original SAP world

was Unix and the calls worked. When we switched all to Windows, all we really
Monotaro Container
Rack - MC1532 1unit
did was change server names. Again, I would suggest you use BAPI calls to
Rp 1,1 JT
simplify the work. If a BAPI does not exist, create one.
Pesan Sekarang

3 of 7 16/06/2021, 10:57

You might also like