Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 876
  • Last Modified:

How to create an Interface with SQL Server 2005 Database with SAP ?

I want to create an interface of my SQL Database with SAP. We are having attendance software in our company. When the user punches or swipes his/her card the data is stored in SQL Database. Now we want to create an interface between SQL Database and SAP so that all the entries also gets updated in SAP Tables automatically.
Please help me out, how to do this thing.
0
ashokpumca
Asked:
ashokpumca
  • 3
  • 2
1 Solution
 
dportasCommented:
I guess you are referring to SAP R/3. If I'm wrong then please tell us which SAP product(s) you are using.

A common way to integrate data and other systems with R/3 is via ABAP. Refer to the SAP documentation or consult an ABAP developer.

http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3976358411d1829f0000e829fbfe/content.htm
0
 
momi_sabagCommented:
when you say you want to get the data into sap, do you mean actually insert rows into sap's table, or do you want to use some sap api ?
0
 
ashokpumcaAuthor Commented:
I m referring to SAP R/3.  I want to pick the Data from the SQL Tables and Insert them into my SAP Tables.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ashokpumcaAuthor Commented:
I want to do this through ABAP. How to Establish a connection from ABAP to SQL Database.
0
 
dportasCommented:
I'm not an ABAP programmer but I expect you'll find some examples in the documentation.
0
 
ashokpumcaAuthor Commented:
FORM get_connection USING p_con_name TYPE dbcon_name
p_con_ref TYPE REF TO cl_sql_connection.
DATA:
sqlerr_ref TYPE REF TO cx_sql_exception.
* create a connection object
IF p_con_name IS INITIAL.
* default connection
CREATE OBJECT p_con_ref.
ELSE.
* open a secondary connection
TRY.
p_con_ref = cl_sql_connection=>get_connection( p_con_name ).
CATCH cx_sql_exception INTO sqlerr_ref.
PERFORM handle_sql_exception(adbc_demo) USING sqlerr_ref.
RETURN.
ENDTRY.
ENDIF.
ENDFORM.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now