Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

fetch data into SAP from SQL Server

Former Member
0 Likes
1,595

Dear Guru,

I have a table in SQL server, i want to fetch data table into SAP and use in my program.

So it is possible to access sql server table into SAP and How i will use that table inside SAP.

thanks,

man

4 REPLIES 4
Read only

Former Member
0 Likes
920

Answer copied from - points removed.

When I understand you right you want to write a report in ABAP that can store data in an MS-SQL database that is located on an other server than your SAP database. Is that right?

If yes I would suggest looking into ADBC (wimre that stands for ABAP DataBase Connector). There are some classes like CL_SQL_STATEMENT that allow this. One requirement is that you have installed the right DBSL (if your SAP system is running on a MS-SQL DB that is ok anyway) and. Then you have to maintain an database connection to the remote system. Transaction DBACOCKPIT is one way to do that.

As I'm posting that from home and not being in the office I don't have access to all documentation at the moment so I cannot go into detail here. And I fear there is not much documentation available in the public at all. But if you search for it you will find something.

But please remember one drawback of using ADBC (or EXEC-SQL or anything like that): You are writing native SQL that is executed on the database. ABAP syntax checks cannot help you at all. And you can do a lot of damage when accessing a database directly without good knowledge of what you are doing.

installed Microsoft Data

Access Components (MDAC) and DBMSSLIB.DLL 32 bit instead of 64 bit.

Edited by: Matt on Jun 9, 2011 11:25 PM

Read only

Former Member
0 Likes
920

Deleted...

Edited by: BreakPoint on Aug 18, 2010 2:09 PM

Read only

former_member233090
Active Contributor
0 Likes
920

Hi Manish,

go through this link [Forum|]

/message/5328259#5328259 [original link is broken]

Cheers,

Bhavana

Read only

0 Likes
920

guru's,

I have one more query, if i were save excel file in my local system, and then through some .net application i want to upload that file into SAP RFC internal table, then it will upload the file in int. table or not.

And where we will save that excel file in SAP application server or .net server or local system.

thanks,

man