Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-05-09
6
827 Views
Last Modified: 2013-12-08
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
Comment
Question by:ashokpumca
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:dportas
ID: 24357706
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
 
LVL 37

Expert Comment

by:momi_sabag
ID: 24359134
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
 
LVL 5

Author Comment

by:ashokpumca
ID: 24361047
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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 5

Author Comment

by:ashokpumca
ID: 24361105
I want to do this through ABAP. How to Establish a connection from ABAP to SQL Database.
0
 
LVL 22

Expert Comment

by:dportas
ID: 24361498
I'm not an ABAP programmer but I expect you'll find some examples in the documentation.
0
 
LVL 5

Accepted Solution

by:
ashokpumca earned 0 total points
ID: 24464239
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

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question