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

obtaining data from SQL Server

Former Member
0 Likes
947

I want to fetch data from SQL Server 2000 database using abap programming and insert it into SAP Database or guide me if any concept is there in SAP to solve this.

8 REPLIES 8
Read only

Former Member
0 Likes
924

hi,

Check this out

Regards,

Santosh

Read only

0 Likes
924

thnx 4 ur reply......but i want to directly fetch the data from sql server 2000 database to sap database without using

lasmw & bdc.......can i use BAPI?? or is thr any other concept available in SAP(like idoc,ale etc)....plz clarify my query

Read only

0 Likes
924

Look at this thread:

Read only

0 Likes
924

can u give me some more clarified answer wihth code...

Read only

0 Likes
924

The final post in the above thread has the sample code for retrieving the data from the external database. Add a statement to append the fields to an internal table defined like your transparent table immediately after the FETCH statement.

Once you have data in your internal table, inssert the records into the transparent table using:

INSERT dbtab FROM TABLE itab

where dbtab is your SAP table and itab is the internal table defined like dbtab.

Read only

0 Likes
924

hello...can i automatically fetch data from sql server to SAP & viceversa....i want tat if the sql server database is updated ...it automatically insert data to SAP database also......tell me if we have to use any SAP concept like BAPI etc.

Read only

0 Likes
924

In this case, how is the SQL Server database being updated? What application is doing the update?

Read only

0 Likes
924

I think it is posiible - but you have to use Business Connector or XI.

BR< Jacek