Hello community,
On my recent project I have faced the requirement to communicate with external database (MSSQL).
It was impossible to use DBConnect because application server running on AIX. Attempt to use UDConnect ended here.
So, I decided to create RFC server, that allow to communicate with external database via ODBC.
I hope it may be useful for someone who faced the same requirement.
Also it may be useful as RFC programming example.
It’s not as convenient as “usual” usage of SQL in ABAP, but the advantage is there is no no need to create database table with the same name and identical type in the ABAP Dictionary of the local AS ABAP, as DBConnect does.
How to make it work: in this scenario we assume to connect with NorthWind database on MSSQL.
DEST=DEST1 <-- this is the label for connection entry, pass it as first parameter when run rfcsrv_odbc.exe
ASHOST=XX.XX.XX.XX <-- sap application server ip-address
CLIENT=100 <-- client number
TRACE=1 <-- trace level
USER=BATCH <-- user name for rfc server to connect with SAP AS
PASSWD=****** <-- user's password
LANG=EN
SYSNR=00 <-- system number
TPNAME=ZNORTHWIND <-- Program ID.
If not - see .trc file for details.
Best regards,
Nick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |