Scenario
In today's business scenario, at the time of SAP implementation, it is required that we need to fetch data from the customer's existing third party application. For example the customer is having some websites where the enquiries are being stored. Or The company employees who are on tour log their requests for leave in the portal. In such case we may have to provide an interface between their existing application to the upcoming SAP system. It is possible that the system is using a differetn database altogather. So in that situation how a connectivity is established between the SAP database and External Application database.
REPORT ZSAP2ORACLE.
data: l_record(20).
* opening the connection to database
EXEC SQL.
CONNECT TO 'MYCONNECTION'
ENDEXEC.*executing the select command
EXEC SQL.
SELECT ars_no into :l_record FROM arsdata
ENDEXEC.*closing the connection
EXEC SQL.
DISCONNECT :'MYCONNECTION'
ENDEXEC.
WRITE: / l_record.
This should work and you should be able to fetch data from the external database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |